1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.63 for avahi 0.6.25.
4@%:@
5@%:@ Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
6@%:@ 
7@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9@%:@ This configure script is free software; the Free Software Foundation
10@%:@ gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380    
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIB@&t@OBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='avahi'
747PACKAGE_TARNAME='avahi'
748PACKAGE_VERSION='0.6.25'
749PACKAGE_STRING='avahi 0.6.25'
750PACKAGE_BUGREPORT='avahi (at) lists (dot) freedesktop (dot) org'
751
752ac_unique_file="avahi-core/server.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='LTLIBOBJS
790ENABLE_COMPAT_HOWL_FALSE
791ENABLE_COMPAT_HOWL_TRUE
792ENABLE_COMPAT_LIBDNS_SD_FALSE
793ENABLE_COMPAT_LIBDNS_SD_TRUE
794ENABLE_TESTS_FALSE
795ENABLE_TESTS_TRUE
796BUILD_MANPAGES_FALSE
797BUILD_MANPAGES_TRUE
798USE_XMLTOMAN_FALSE
799USE_XMLTOMAN_TRUE
800have_xmltoman
801ENABLE_CORE_DOCS_FALSE
802ENABLE_CORE_DOCS_TRUE
803DOXYGEN_PAPER_SIZE
804DX_COND_latex_FALSE
805DX_COND_latex_TRUE
806DX_COND_pdf_FALSE
807DX_COND_pdf_TRUE
808DX_PDFLATEX
809DX_FLAG_pdf
810DX_COND_ps_FALSE
811DX_COND_ps_TRUE
812DX_EGREP
813DX_DVIPS
814DX_MAKEINDEX
815DX_LATEX
816DX_FLAG_ps
817DX_COND_html_FALSE
818DX_COND_html_TRUE
819DX_FLAG_html
820DX_COND_chi_FALSE
821DX_COND_chi_TRUE
822DX_FLAG_chi
823DX_COND_chm_FALSE
824DX_COND_chm_TRUE
825DX_HHC
826DX_FLAG_chm
827DX_COND_xml_FALSE
828DX_COND_xml_TRUE
829DX_FLAG_xml
830DX_COND_rtf_FALSE
831DX_COND_rtf_TRUE
832DX_FLAG_rtf
833DX_COND_man_FALSE
834DX_COND_man_TRUE
835DX_FLAG_man
836DX_COND_dot_FALSE
837DX_COND_dot_TRUE
838DX_DOT
839DX_FLAG_dot
840DX_COND_doc_FALSE
841DX_COND_doc_TRUE
842DX_PERL
843DX_DOXYGEN
844DX_FLAG_doc
845DX_ENV
846DX_DOCDIR
847DX_CONFIG
848DX_PROJECT
849interfacesdir
850avahi_socket
851avahi_runtime_dir
852AVAHI_AUTOIPD_GROUP
853AVAHI_AUTOIPD_USER
854AVAHI_PRIV_ACCESS_GROUP
855AVAHI_GROUP
856AVAHI_USER
857ENABLE_AUTOIPD_FALSE
858ENABLE_AUTOIPD_TRUE
859HAVE_MONODOC_FALSE
860HAVE_MONODOC_TRUE
861MONODOC_DIR
862MDASSEMBLER
863MONODOCER
864MONODOC_LIBS
865MONODOC_CFLAGS
866HAVE_MONO_FALSE
867HAVE_MONO_TRUE
868GACUTIL
869MCS
870HAVE_PYTHON_DBUS_FALSE
871HAVE_PYTHON_DBUS_TRUE
872HAVE_PYGTK_FALSE
873HAVE_PYGTK_TRUE
874HAVE_PYTHON_FALSE
875HAVE_PYTHON_TRUE
876pkgpyexecdir
877pyexecdir
878pkgpythondir
879pythondir
880PYTHON_PLATFORM
881PYTHON_EXEC_PREFIX
882PYTHON_PREFIX
883PYTHON_VERSION
884PYTHON
885HAVE_LIBDAEMON_FALSE
886HAVE_LIBDAEMON_TRUE
887LIBDAEMON_LIBS
888LIBDAEMON_CFLAGS
889HAVE_DBM_FALSE
890HAVE_DBM_TRUE
891HAVE_GDBM_FALSE
892HAVE_GDBM_TRUE
893HAVE_XML_FALSE
894HAVE_XML_TRUE
895XML_CFLAGS
896XML_LIBS
897HAVE_DBUS_FALSE
898HAVE_DBUS_TRUE
899DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
900DBUS_SYS_DIR
901DBUS_LIBS
902DBUS_CFLAGS
903HAVE_GTK_FALSE
904HAVE_GTK_TRUE
905GLADE20_LIBS
906GLADE20_CFLAGS
907GTK20_LIBS
908GTK20_CFLAGS
909HAVE_QT4_FALSE
910HAVE_QT4_TRUE
911MOC_QT4
912QT4_LIBS
913QT4_CFLAGS
914HAVE_QT3_FALSE
915HAVE_QT3_TRUE
916MOC_QT3
917QT3_LIBS
918QT3_CFLAGS
919HAVE_GOBJECT_FALSE
920HAVE_GOBJECT_TRUE
921GOBJECT_LIBS
922GOBJECT_CFLAGS
923HAVE_GLIB_FALSE
924HAVE_GLIB_TRUE
925GLIB20_LIBS
926GLIB20_CFLAGS
927PKG_CONFIG
928have_pkg_config
929avahilocaledir
930MKINSTALLDIRS
931POSUB
932POFILES
933PO_IN_DATADIR_FALSE
934PO_IN_DATADIR_TRUE
935INTLLIBS
936INSTOBJEXT
937GMOFILES
938CATOBJEXT
939CATALOGS
940MSGFMT_OPTS
941GETTEXT_PACKAGE
942DATADIRNAME
943ALL_LINGUAS
944INTLTOOL_PERL
945GMSGFMT
946MSGFMT
947MSGMERGE
948XGETTEXT
949INTLTOOL_POLICY_RULE
950INTLTOOL_SERVICE_RULE
951INTLTOOL_THEME_RULE
952INTLTOOL_SCHEMAS_RULE
953INTLTOOL_CAVES_RULE
954INTLTOOL_XML_NOMERGE_RULE
955INTLTOOL_XML_RULE
956INTLTOOL_KBD_RULE
957INTLTOOL_XAM_RULE
958INTLTOOL_UI_RULE
959INTLTOOL_SOUNDLIST_RULE
960INTLTOOL_SHEET_RULE
961INTLTOOL_SERVER_RULE
962INTLTOOL_PONG_RULE
963INTLTOOL_OAF_RULE
964INTLTOOL_PROP_RULE
965INTLTOOL_KEYS_RULE
966INTLTOOL_DIRECTORY_RULE
967INTLTOOL_DESKTOP_RULE
968INTLTOOL_EXTRACT
969INTLTOOL_MERGE
970INTLTOOL_UPDATE
971USE_NLS
972HAVE_KQUEUE_FALSE
973HAVE_KQUEUE_TRUE
974HAVE_INOTIFY_FALSE
975HAVE_INOTIFY_TRUE
976HAVE_DLOPEN_FALSE
977HAVE_DLOPEN_TRUE
978ENABLE_CHROOT_FALSE
979ENABLE_CHROOT_TRUE
980VISIBILITY_HIDDEN_CFLAGS
981LIB@&t@OBJS
982TARGET_SLACKWARE_FALSE
983TARGET_SLACKWARE_TRUE
984TARGET_FREEBSD_FALSE
985TARGET_FREEBSD_TRUE
986TARGET_NETBSD_FALSE
987TARGET_NETBSD_TRUE
988TARGET_DARWIN_FALSE
989TARGET_DARWIN_TRUE
990TARGET_MANDRIVA_FALSE
991TARGET_MANDRIVA_TRUE
992TARGET_FEDORA_FALSE
993TARGET_FEDORA_TRUE
994TARGET_ARCHLINUX_FALSE
995TARGET_ARCHLINUX_TRUE
996TARGET_DEBIAN_FALSE
997TARGET_DEBIAN_TRUE
998TARGET_GENTOO_FALSE
999TARGET_GENTOO_TRUE
1000TARGET_SUSE_FALSE
1001TARGET_SUSE_TRUE
1002TARGET_LFS_FALSE
1003TARGET_LFS_TRUE
1004HAVE_SYS_SYSCTL_H_FALSE
1005HAVE_SYS_SYSCTL_H_TRUE
1006HAVE_SYS_FILIO_H_FALSE
1007HAVE_SYS_FILIO_H_TRUE
1008HAVE_PF_ROUTE_FALSE
1009HAVE_PF_ROUTE_TRUE
1010HAVE_NETLINK_FALSE
1011HAVE_NETLINK_TRUE
1012PTHREAD_CFLAGS
1013PTHREAD_LIBS
1014PTHREAD_CC
1015acx_pthread_config
1016CXXCPP
1017OTOOL64
1018OTOOL
1019LIPO
1020NMEDIT
1021DSYMUTIL
1022lt_ECHO
1023RANLIB
1024AR
1025OBJDUMP
1026NM
1027ac_ct_DUMPBIN
1028DUMPBIN
1029LD
1030FGREP
1031SED
1032host_os
1033host_vendor
1034host_cpu
1035host
1036build_os
1037build_vendor
1038build_cpu
1039build
1040LIBTOOL
1041LN_S
1042EGREP
1043GREP
1044CPP
1045am__fastdepCXX_FALSE
1046am__fastdepCXX_TRUE
1047CXXDEPMODE
1048ac_ct_CXX
1049CXXFLAGS
1050CXX
1051am__fastdepCC_FALSE
1052am__fastdepCC_TRUE
1053CCDEPMODE
1054AMDEPBACKSLASH
1055AMDEP_FALSE
1056AMDEP_TRUE
1057am__quote
1058am__include
1059DEPDIR
1060OBJEXT
1061EXEEXT
1062ac_ct_CC
1063CPPFLAGS
1064LDFLAGS
1065CFLAGS
1066CC
1067HOWL_COMPAT_VERSION
1068LIBAVAHI_COMPAT_HOWL_VERSION_INFO
1069LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO
1070LIBAVAHI_UI_VERSION_INFO
1071LIBAVAHI_QT4_VERSION_INFO
1072LIBAVAHI_QT3_VERSION_INFO
1073LIBAVAHI_GOBJECT_VERSION_INFO
1074LIBAVAHI_GLIB_VERSION_INFO
1075LIBAVAHI_CLIENT_VERSION_INFO
1076LIBAVAHI_CORE_VERSION_INFO
1077LIBAVAHI_COMMON_VERSION_INFO
1078PACKAGE_URL
1079am__untar
1080am__tar
1081AMTAR
1082am__leading_dot
1083SET_MAKE
1084AWK
1085mkdir_p
1086MKDIR_P
1087INSTALL_STRIP_PROGRAM
1088STRIP
1089install_sh
1090MAKEINFO
1091AUTOHEADER
1092AUTOMAKE
1093AUTOCONF
1094ACLOCAL
1095VERSION
1096PACKAGE
1097CYGPATH_W
1098am__isrc
1099INSTALL_DATA
1100INSTALL_SCRIPT
1101INSTALL_PROGRAM
1102target_alias
1103host_alias
1104build_alias
1105LIBS
1106ECHO_T
1107ECHO_N
1108ECHO_C
1109DEFS
1110mandir
1111localedir
1112libdir
1113psdir
1114pdfdir
1115dvidir
1116htmldir
1117infodir
1118docdir
1119oldincludedir
1120includedir
1121localstatedir
1122sharedstatedir
1123sysconfdir
1124datadir
1125datarootdir
1126libexecdir
1127sbindir
1128bindir
1129program_transform_name
1130prefix
1131exec_prefix
1132PACKAGE_BUGREPORT
1133PACKAGE_STRING
1134PACKAGE_VERSION
1135PACKAGE_TARNAME
1136PACKAGE_NAME
1137PATH_SEPARATOR
1138SHELL'
1139ac_subst_files=''
1140ac_user_opts='
1141enable_option_checking
1142enable_dependency_tracking
1143enable_stack_protector
1144enable_shared
1145enable_static
1146with_pic
1147enable_fast_install
1148with_gnu_ld
1149enable_libtool_lock
1150with_distro
1151enable_nls
1152enable_glib
1153enable_gobject
1154enable_qt3
1155enable_qt4
1156enable_gtk
1157enable_dbus
1158with_dbus_sys
1159with_dbus_system_socket
1160with_xml
1161enable_dbm
1162enable_gdbm
1163enable_libdaemon
1164enable_python
1165enable_pygtk
1166enable_python_dbus
1167enable_mono
1168enable_monodoc
1169enable_autoipd
1170with_avahi_user
1171with_avahi_group
1172with_avahi_priv_access_group
1173with_autoipd_user
1174with_autoipd_group
1175enable_doxygen_doc
1176enable_doxygen_dot
1177enable_doxygen_man
1178enable_doxygen_rtf
1179enable_doxygen_xml
1180enable_doxygen_chm
1181enable_doxygen_chi
1182enable_doxygen_html
1183enable_doxygen_ps
1184enable_doxygen_pdf
1185enable_core_docs
1186enable_manpages
1187enable_xmltoman
1188enable_tests
1189enable_compat_libdns_sd
1190enable_compat_howl
1191'
1192      ac_precious_vars='build_alias
1193host_alias
1194target_alias
1195CC
1196CFLAGS
1197LDFLAGS
1198LIBS
1199CPPFLAGS
1200CXX
1201CXXFLAGS
1202CCC
1203CPP
1204CXXCPP
1205PKG_CONFIG
1206GLIB20_CFLAGS
1207GLIB20_LIBS
1208GOBJECT_CFLAGS
1209GOBJECT_LIBS
1210QT3_CFLAGS
1211QT3_LIBS
1212QT4_CFLAGS
1213QT4_LIBS
1214GTK20_CFLAGS
1215GTK20_LIBS
1216GLADE20_CFLAGS
1217GLADE20_LIBS
1218DBUS_CFLAGS
1219DBUS_LIBS
1220LIBDAEMON_CFLAGS
1221LIBDAEMON_LIBS
1222MONODOC_CFLAGS
1223MONODOC_LIBS
1224DOXYGEN_PAPER_SIZE'
1225
1226
1227# Initialize some variables set by options.
1228ac_init_help=
1229ac_init_version=false
1230ac_unrecognized_opts=
1231ac_unrecognized_sep=
1232# The variables have the same names as the options, with
1233# dashes changed to underlines.
1234cache_file=/dev/null
1235exec_prefix=NONE
1236no_create=
1237no_recursion=
1238prefix=NONE
1239program_prefix=NONE
1240program_suffix=NONE
1241program_transform_name=s,x,x,
1242silent=
1243site=
1244srcdir=
1245verbose=
1246x_includes=NONE
1247x_libraries=NONE
1248
1249# Installation directory options.
1250# These are left unexpanded so users can "make install exec_prefix=/foo"
1251# and all the variables that are supposed to be based on exec_prefix
1252# by default will actually change.
1253# Use braces instead of parens because sh, perl, etc. also accept them.
1254# (The list follows the same order as the GNU Coding Standards.)
1255bindir='${exec_prefix}/bin'
1256sbindir='${exec_prefix}/sbin'
1257libexecdir='${exec_prefix}/libexec'
1258datarootdir='${prefix}/share'
1259datadir='${datarootdir}'
1260sysconfdir='${prefix}/etc'
1261sharedstatedir='${prefix}/com'
1262localstatedir='${prefix}/var'
1263includedir='${prefix}/include'
1264oldincludedir='/usr/include'
1265docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1266infodir='${datarootdir}/info'
1267htmldir='${docdir}'
1268dvidir='${docdir}'
1269pdfdir='${docdir}'
1270psdir='${docdir}'
1271libdir='${exec_prefix}/lib'
1272localedir='${datarootdir}/locale'
1273mandir='${datarootdir}/man'
1274
1275ac_prev=
1276ac_dashdash=
1277for ac_option
1278do
1279  # If the previous option needs an argument, assign it.
1280  if test -n "$ac_prev"; then
1281    eval $ac_prev=\$ac_option
1282    ac_prev=
1283    continue
1284  fi
1285
1286  case $ac_option in
1287  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1288  *)	ac_optarg=yes ;;
1289  esac
1290
1291  # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293  case $ac_dashdash$ac_option in
1294  --)
1295    ac_dashdash=yes ;;
1296
1297  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298    ac_prev=bindir ;;
1299  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300    bindir=$ac_optarg ;;
1301
1302  -build | --build | --buil | --bui | --bu)
1303    ac_prev=build_alias ;;
1304  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305    build_alias=$ac_optarg ;;
1306
1307  -cache-file | --cache-file | --cache-fil | --cache-fi \
1308  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309    ac_prev=cache_file ;;
1310  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312    cache_file=$ac_optarg ;;
1313
1314  --config-cache | -C)
1315    cache_file=config.cache ;;
1316
1317  -datadir | --datadir | --datadi | --datad)
1318    ac_prev=datadir ;;
1319  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320    datadir=$ac_optarg ;;
1321
1322  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323  | --dataroo | --dataro | --datar)
1324    ac_prev=datarootdir ;;
1325  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327    datarootdir=$ac_optarg ;;
1328
1329  -disable-* | --disable-*)
1330    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331    # Reject names that are not valid shell variable names.
1332    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1334   { (exit 1); exit 1; }; }
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"enable_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval enable_$ac_useropt=no ;;
1345
1346  -docdir | --docdir | --docdi | --doc | --do)
1347    ac_prev=docdir ;;
1348  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1349    docdir=$ac_optarg ;;
1350
1351  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1352    ac_prev=dvidir ;;
1353  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1354    dvidir=$ac_optarg ;;
1355
1356  -enable-* | --enable-*)
1357    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1358    # Reject names that are not valid shell variable names.
1359    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1361   { (exit 1); exit 1; }; }
1362    ac_useropt_orig=$ac_useropt
1363    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364    case $ac_user_opts in
1365      *"
1366"enable_$ac_useropt"
1367"*) ;;
1368      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1369	 ac_unrecognized_sep=', ';;
1370    esac
1371    eval enable_$ac_useropt=\$ac_optarg ;;
1372
1373  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1374  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1375  | --exec | --exe | --ex)
1376    ac_prev=exec_prefix ;;
1377  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1378  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1379  | --exec=* | --exe=* | --ex=*)
1380    exec_prefix=$ac_optarg ;;
1381
1382  -gas | --gas | --ga | --g)
1383    # Obsolete; use --with-gas.
1384    with_gas=yes ;;
1385
1386  -help | --help | --hel | --he | -h)
1387    ac_init_help=long ;;
1388  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1389    ac_init_help=recursive ;;
1390  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1391    ac_init_help=short ;;
1392
1393  -host | --host | --hos | --ho)
1394    ac_prev=host_alias ;;
1395  -host=* | --host=* | --hos=* | --ho=*)
1396    host_alias=$ac_optarg ;;
1397
1398  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1399    ac_prev=htmldir ;;
1400  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1401  | --ht=*)
1402    htmldir=$ac_optarg ;;
1403
1404  -includedir | --includedir | --includedi | --included | --include \
1405  | --includ | --inclu | --incl | --inc)
1406    ac_prev=includedir ;;
1407  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1408  | --includ=* | --inclu=* | --incl=* | --inc=*)
1409    includedir=$ac_optarg ;;
1410
1411  -infodir | --infodir | --infodi | --infod | --info | --inf)
1412    ac_prev=infodir ;;
1413  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1414    infodir=$ac_optarg ;;
1415
1416  -libdir | --libdir | --libdi | --libd)
1417    ac_prev=libdir ;;
1418  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1419    libdir=$ac_optarg ;;
1420
1421  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1422  | --libexe | --libex | --libe)
1423    ac_prev=libexecdir ;;
1424  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1425  | --libexe=* | --libex=* | --libe=*)
1426    libexecdir=$ac_optarg ;;
1427
1428  -localedir | --localedir | --localedi | --localed | --locale)
1429    ac_prev=localedir ;;
1430  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1431    localedir=$ac_optarg ;;
1432
1433  -localstatedir | --localstatedir | --localstatedi | --localstated \
1434  | --localstate | --localstat | --localsta | --localst | --locals)
1435    ac_prev=localstatedir ;;
1436  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1437  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1438    localstatedir=$ac_optarg ;;
1439
1440  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1441    ac_prev=mandir ;;
1442  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1443    mandir=$ac_optarg ;;
1444
1445  -nfp | --nfp | --nf)
1446    # Obsolete; use --without-fp.
1447    with_fp=no ;;
1448
1449  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1450  | --no-cr | --no-c | -n)
1451    no_create=yes ;;
1452
1453  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1454  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1455    no_recursion=yes ;;
1456
1457  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1458  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1459  | --oldin | --oldi | --old | --ol | --o)
1460    ac_prev=oldincludedir ;;
1461  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1462  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1463  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1464    oldincludedir=$ac_optarg ;;
1465
1466  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1467    ac_prev=prefix ;;
1468  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1469    prefix=$ac_optarg ;;
1470
1471  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1472  | --program-pre | --program-pr | --program-p)
1473    ac_prev=program_prefix ;;
1474  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1475  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1476    program_prefix=$ac_optarg ;;
1477
1478  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1479  | --program-suf | --program-su | --program-s)
1480    ac_prev=program_suffix ;;
1481  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1482  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1483    program_suffix=$ac_optarg ;;
1484
1485  -program-transform-name | --program-transform-name \
1486  | --program-transform-nam | --program-transform-na \
1487  | --program-transform-n | --program-transform- \
1488  | --program-transform | --program-transfor \
1489  | --program-transfo | --program-transf \
1490  | --program-trans | --program-tran \
1491  | --progr-tra | --program-tr | --program-t)
1492    ac_prev=program_transform_name ;;
1493  -program-transform-name=* | --program-transform-name=* \
1494  | --program-transform-nam=* | --program-transform-na=* \
1495  | --program-transform-n=* | --program-transform-=* \
1496  | --program-transform=* | --program-transfor=* \
1497  | --program-transfo=* | --program-transf=* \
1498  | --program-trans=* | --program-tran=* \
1499  | --progr-tra=* | --program-tr=* | --program-t=*)
1500    program_transform_name=$ac_optarg ;;
1501
1502  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1503    ac_prev=pdfdir ;;
1504  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1505    pdfdir=$ac_optarg ;;
1506
1507  -psdir | --psdir | --psdi | --psd | --ps)
1508    ac_prev=psdir ;;
1509  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1510    psdir=$ac_optarg ;;
1511
1512  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1513  | -silent | --silent | --silen | --sile | --sil)
1514    silent=yes ;;
1515
1516  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1517    ac_prev=sbindir ;;
1518  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1519  | --sbi=* | --sb=*)
1520    sbindir=$ac_optarg ;;
1521
1522  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1523  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1524  | --sharedst | --shareds | --shared | --share | --shar \
1525  | --sha | --sh)
1526    ac_prev=sharedstatedir ;;
1527  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1528  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1529  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1530  | --sha=* | --sh=*)
1531    sharedstatedir=$ac_optarg ;;
1532
1533  -site | --site | --sit)
1534    ac_prev=site ;;
1535  -site=* | --site=* | --sit=*)
1536    site=$ac_optarg ;;
1537
1538  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1539    ac_prev=srcdir ;;
1540  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1541    srcdir=$ac_optarg ;;
1542
1543  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1544  | --syscon | --sysco | --sysc | --sys | --sy)
1545    ac_prev=sysconfdir ;;
1546  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1547  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1548    sysconfdir=$ac_optarg ;;
1549
1550  -target | --target | --targe | --targ | --tar | --ta | --t)
1551    ac_prev=target_alias ;;
1552  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1553    target_alias=$ac_optarg ;;
1554
1555  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1556    verbose=yes ;;
1557
1558  -version | --version | --versio | --versi | --vers | -V)
1559    ac_init_version=: ;;
1560
1561  -with-* | --with-*)
1562    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1563    # Reject names that are not valid shell variable names.
1564    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1565      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1566   { (exit 1); exit 1; }; }
1567    ac_useropt_orig=$ac_useropt
1568    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569    case $ac_user_opts in
1570      *"
1571"with_$ac_useropt"
1572"*) ;;
1573      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1574	 ac_unrecognized_sep=', ';;
1575    esac
1576    eval with_$ac_useropt=\$ac_optarg ;;
1577
1578  -without-* | --without-*)
1579    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1580    # Reject names that are not valid shell variable names.
1581    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1583   { (exit 1); exit 1; }; }
1584    ac_useropt_orig=$ac_useropt
1585    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586    case $ac_user_opts in
1587      *"
1588"with_$ac_useropt"
1589"*) ;;
1590      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1591	 ac_unrecognized_sep=', ';;
1592    esac
1593    eval with_$ac_useropt=no ;;
1594
1595  --x)
1596    # Obsolete; use --with-x.
1597    with_x=yes ;;
1598
1599  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1600  | --x-incl | --x-inc | --x-in | --x-i)
1601    ac_prev=x_includes ;;
1602  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1603  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1604    x_includes=$ac_optarg ;;
1605
1606  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1607  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1608    ac_prev=x_libraries ;;
1609  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1610  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1611    x_libraries=$ac_optarg ;;
1612
1613  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1614Try \`$0 --help' for more information." >&2
1615   { (exit 1); exit 1; }; }
1616    ;;
1617
1618  *=*)
1619    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1620    # Reject names that are not valid shell variable names.
1621    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1622      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1623   { (exit 1); exit 1; }; }
1624    eval $ac_envvar=\$ac_optarg
1625    export $ac_envvar ;;
1626
1627  *)
1628    # FIXME: should be removed in autoconf 3.0.
1629    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1630    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1631      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1632    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1633    ;;
1634
1635  esac
1636done
1637
1638if test -n "$ac_prev"; then
1639  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1640  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1641   { (exit 1); exit 1; }; }
1642fi
1643
1644if test -n "$ac_unrecognized_opts"; then
1645  case $enable_option_checking in
1646    no) ;;
1647    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1648   { (exit 1); exit 1; }; } ;;
1649    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650  esac
1651fi
1652
1653# Check all directory arguments for consistency.
1654for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1655		datadir sysconfdir sharedstatedir localstatedir includedir \
1656		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1657		libdir localedir mandir
1658do
1659  eval ac_val=\$$ac_var
1660  # Remove trailing slashes.
1661  case $ac_val in
1662    */ )
1663      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1664      eval $ac_var=\$ac_val;;
1665  esac
1666  # Be sure to have absolute directory names.
1667  case $ac_val in
1668    [\\/$]* | ?:[\\/]* )  continue;;
1669    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1670  esac
1671  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1672   { (exit 1); exit 1; }; }
1673done
1674
1675# There might be people who depend on the old broken behavior: `$host'
1676# used to hold the argument of --host etc.
1677# FIXME: To remove some day.
1678build=$build_alias
1679host=$host_alias
1680target=$target_alias
1681
1682# FIXME: To remove some day.
1683if test "x$host_alias" != x; then
1684  if test "x$build_alias" = x; then
1685    cross_compiling=maybe
1686    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1687    If a cross compiler is detected then cross compile mode will be used." >&2
1688  elif test "x$build_alias" != "x$host_alias"; then
1689    cross_compiling=yes
1690  fi
1691fi
1692
1693ac_tool_prefix=
1694test -n "$host_alias" && ac_tool_prefix=$host_alias-
1695
1696test "$silent" = yes && exec 6>/dev/null
1697
1698
1699ac_pwd=`pwd` && test -n "$ac_pwd" &&
1700ac_ls_di=`ls -di .` &&
1701ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1702  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1703   { (exit 1); exit 1; }; }
1704test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1705  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1706   { (exit 1); exit 1; }; }
1707
1708
1709# Find the source files, if location was not specified.
1710if test -z "$srcdir"; then
1711  ac_srcdir_defaulted=yes
1712  # Try the directory containing this script, then the parent directory.
1713  ac_confdir=`$as_dirname -- "$as_myself" ||
1714$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1715	 X"$as_myself" : 'X\(//\)[^/]' \| \
1716	 X"$as_myself" : 'X\(//\)$' \| \
1717	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1718$as_echo X"$as_myself" |
1719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1720	    s//\1/
1721	    q
1722	  }
1723	  /^X\(\/\/\)[^/].*/{
1724	    s//\1/
1725	    q
1726	  }
1727	  /^X\(\/\/\)$/{
1728	    s//\1/
1729	    q
1730	  }
1731	  /^X\(\/\).*/{
1732	    s//\1/
1733	    q
1734	  }
1735	  s/.*/./; q'`
1736  srcdir=$ac_confdir
1737  if test ! -r "$srcdir/$ac_unique_file"; then
1738    srcdir=..
1739  fi
1740else
1741  ac_srcdir_defaulted=no
1742fi
1743if test ! -r "$srcdir/$ac_unique_file"; then
1744  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1745  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1746   { (exit 1); exit 1; }; }
1747fi
1748ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1749ac_abs_confdir=`(
1750	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1751   { (exit 1); exit 1; }; }
1752	pwd)`
1753# When building in place, set srcdir=.
1754if test "$ac_abs_confdir" = "$ac_pwd"; then
1755  srcdir=.
1756fi
1757# Remove unnecessary trailing slashes from srcdir.
1758# Double slashes in file names in object file debugging info
1759# mess up M-x gdb in Emacs.
1760case $srcdir in
1761*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1762esac
1763for ac_var in $ac_precious_vars; do
1764  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1765  eval ac_env_${ac_var}_value=\$${ac_var}
1766  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1767  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1768done
1769
1770#
1771# Report the --help message.
1772#
1773if test "$ac_init_help" = "long"; then
1774  # Omit some internal or obsolete options to make the list less imposing.
1775  # This message is too long to be a string in the A/UX 3.1 sh.
1776  cat <<_ACEOF
1777\`configure' configures avahi 0.6.25 to adapt to many kinds of systems.
1778
1779Usage: $0 [OPTION]... [VAR=VALUE]...
1780
1781To assign environment variables (e.g., CC, CFLAGS...), specify them as
1782VAR=VALUE.  See below for descriptions of some of the useful variables.
1783
1784Defaults for the options are specified in brackets.
1785
1786Configuration:
1787  -h, --help              display this help and exit
1788      --help=short        display options specific to this package
1789      --help=recursive    display the short help of all the included packages
1790  -V, --version           display version information and exit
1791  -q, --quiet, --silent   do not print \`checking...' messages
1792      --cache-file=FILE   cache test results in FILE [disabled]
1793  -C, --config-cache      alias for \`--cache-file=config.cache'
1794  -n, --no-create         do not create output files
1795      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1796
1797Installation directories:
1798  --prefix=PREFIX         install architecture-independent files in PREFIX
1799                          [$ac_default_prefix]
1800  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1801                          [PREFIX]
1802
1803By default, \`make install' will install all the files in
1804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1806for instance \`--prefix=\$HOME'.
1807
1808For better control, use the options below.
1809
1810Fine tuning of the installation directories:
1811  --bindir=DIR            user executables [EPREFIX/bin]
1812  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1813  --libexecdir=DIR        program executables [EPREFIX/libexec]
1814  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1815  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1816  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1817  --libdir=DIR            object code libraries [EPREFIX/lib]
1818  --includedir=DIR        C header files [PREFIX/include]
1819  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1820  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1821  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1822  --infodir=DIR           info documentation [DATAROOTDIR/info]
1823  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1824  --mandir=DIR            man documentation [DATAROOTDIR/man]
1825  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/avahi@:>@
1826  --htmldir=DIR           html documentation [DOCDIR]
1827  --dvidir=DIR            dvi documentation [DOCDIR]
1828  --pdfdir=DIR            pdf documentation [DOCDIR]
1829  --psdir=DIR             ps documentation [DOCDIR]
1830_ACEOF
1831
1832  cat <<\_ACEOF
1833
1834Program names:
1835  --program-prefix=PREFIX            prepend PREFIX to installed program names
1836  --program-suffix=SUFFIX            append SUFFIX to installed program names
1837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1838
1839System types:
1840  --build=BUILD     configure for building on BUILD [guessed]
1841  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1842_ACEOF
1843fi
1844
1845if test -n "$ac_init_help"; then
1846  case $ac_init_help in
1847     short | recursive ) echo "Configuration of avahi 0.6.25:";;
1848   esac
1849  cat <<\_ACEOF
1850
1851Optional Features:
1852  --disable-option-checking  ignore unrecognized --enable/--with options
1853  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1854  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1855  --disable-dependency-tracking  speeds up one-time build
1856  --enable-dependency-tracking   do not reject slow dependency extractors
1857  --disable-stack-protector 
1858                          Disable GCC's/libc's stack-smashing protection
1859  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1860  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1861  --enable-fast-install@<:@=PKGS@:>@ 
1862                          optimize for fast installation @<:@default=yes@:>@
1863  --disable-libtool-lock  avoid locking (might break parallel builds)
1864  --disable-nls           do not use Native Language Support
1865  --disable-glib          Disable use of GLib
1866  --disable-gobject       Disable use of GLib GObject
1867  --disable-qt3           Disable building of Qt3 mainloop integration
1868  --disable-qt4           Disable building of Qt4Core mainloop integration
1869  --disable-gtk           Disable use of GTK+
1870  --disable-dbus          Disable use of D-Bus
1871  --enable-dbm            Enable use of DBM
1872  --disable-gdbm          Disable use of GDBM
1873  --disable-libdaemon     Disable use of libdaemon
1874  --disable-python        Disable scripts that depends on python
1875  --disable-pygtk         Disable use of GTK in Python
1876  --disable-python-dbus   Disable use of D-Bus in Python
1877  --disable-mono          Disable mono bindings
1878  --disable-monodoc       Disable documentation for mono bindings
1879  --disable-autoipd       Disable building of avahi-autoipd
1880  --disable-doxygen-doc   don't generate any doxygen documentation
1881  --disable-doxygen-dot   don't generate graphics for doxygen documentation
1882  --enable-doxygen-man    generate doxygen manual pages
1883  --enable-doxygen-rtf    generate doxygen RTF documentation
1884  --disable-doxygen-xml   don't generate doxygen XML documentation
1885  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1886  --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1887                          file
1888  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1889  --enable-doxygen-ps     generate doxygen PostScript documentation
1890  --enable-doxygen-pdf    generate doxygen PDF documentation
1891  --enable-core-docs      Enable building of documentation for avahi-core
1892  --disable-manpages      Disable building and installation of man pages
1893  --disable-xmltoman      Disable rebuilding of man pages with xmltoman
1894  --enable-tests          Enable building of tests and examples
1895  --enable-compat-libdns_sd 
1896                          Enable compatibility layer for libdns_sd
1897  --enable-compat-howl    Enable compatibility layer for HOWL
1898
1899Optional Packages:
1900  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1901  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1902  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1903                          both@:>@
1904  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1905  --with-distro=DISTRO    Specify the distribution to target: One of lfs,
1906                          debian, gentoo, archlinux, fedora, mandriva, darwin,
1907                          netbsd, freebsd, slackware or none
1908  --with-dbus-sys=<dir>   Path to D-Bus system.d directory
1909  --with-dbus-system-address=<address> 
1910                          Path to the D-Bus system socket, you probably want
1911                          to put unix:path= at the start. Only needed for very
1912                          old D-Bus releases
1913  --with-xml=expat/bsdxml/none 
1914                          XML library to use
1915  --with-avahi-user=<user> 
1916                          User for running avahi-daemon (avahi)
1917  --with-avahi-group=<group> 
1918                          Group for running avahi-daemon (avahi)
1919  --with-avahi-priv-access-group=<group> 
1920                          Priviliged access group for Avahi clients (netdev)
1921  --with-autoipd-user=<user> 
1922                          User for running the avahi-autoipd daemon
1923                          (avahi-autoipd)
1924  --with-autoipd-group=<group> 
1925                          Group for running the avahi-autoipd daemon
1926                          (avahi-autoipd)
1927
1928Some influential environment variables:
1929  CC          C compiler command
1930  CFLAGS      C compiler flags
1931  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1932              nonstandard directory <lib dir>
1933  LIBS        libraries to pass to the linker, e.g. -l<library>
1934  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1935              you have headers in a nonstandard directory <include dir>
1936  CXX         C++ compiler command
1937  CXXFLAGS    C++ compiler flags
1938  CPP         C preprocessor
1939  CXXCPP      C++ preprocessor
1940  PKG_CONFIG  path to pkg-config utility
1941  GLIB20_CFLAGS 
1942              C compiler flags for GLIB20, overriding pkg-config
1943  GLIB20_LIBS linker flags for GLIB20, overriding pkg-config
1944  GOBJECT_CFLAGS 
1945              C compiler flags for GOBJECT, overriding pkg-config
1946  GOBJECT_LIBS 
1947              linker flags for GOBJECT, overriding pkg-config
1948  QT3_CFLAGS  C compiler flags for QT3, overriding pkg-config
1949  QT3_LIBS    linker flags for QT3, overriding pkg-config
1950  QT4_CFLAGS  C compiler flags for QT4, overriding pkg-config
1951  QT4_LIBS    linker flags for QT4, overriding pkg-config
1952  GTK20_CFLAGS 
1953              C compiler flags for GTK20, overriding pkg-config
1954  GTK20_LIBS  linker flags for GTK20, overriding pkg-config
1955  GLADE20_CFLAGS 
1956              C compiler flags for GLADE20, overriding pkg-config
1957  GLADE20_LIBS 
1958              linker flags for GLADE20, overriding pkg-config
1959  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1960  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1961  LIBDAEMON_CFLAGS 
1962              C compiler flags for LIBDAEMON, overriding pkg-config
1963  LIBDAEMON_LIBS 
1964              linker flags for LIBDAEMON, overriding pkg-config
1965  MONODOC_CFLAGS 
1966              C compiler flags for MONODOC, overriding pkg-config
1967  MONODOC_LIBS 
1968              linker flags for MONODOC, overriding pkg-config
1969  DOXYGEN_PAPER_SIZE 
1970              a4wide (default), a4, letter, legal or executive
1971
1972Use these variables to override the choices made by `configure' or to help
1973it to find libraries and programs with nonstandard names/locations.
1974
1975Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
1976_ACEOF
1977ac_status=$?
1978fi
1979
1980if test "$ac_init_help" = "recursive"; then
1981  # If there are subdirs, report their specific --help.
1982  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1983    test -d "$ac_dir" ||
1984      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1985      continue
1986    ac_builddir=.
1987
1988case "$ac_dir" in
1989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1990*)
1991  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1992  # A ".." for each directory in $ac_dir_suffix.
1993  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1994  case $ac_top_builddir_sub in
1995  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1996  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1997  esac ;;
1998esac
1999ac_abs_top_builddir=$ac_pwd
2000ac_abs_builddir=$ac_pwd$ac_dir_suffix
2001# for backward compatibility:
2002ac_top_builddir=$ac_top_build_prefix
2003
2004case $srcdir in
2005  .)  # We are building in place.
2006    ac_srcdir=.
2007    ac_top_srcdir=$ac_top_builddir_sub
2008    ac_abs_top_srcdir=$ac_pwd ;;
2009  [\\/]* | ?:[\\/]* )  # Absolute name.
2010    ac_srcdir=$srcdir$ac_dir_suffix;
2011    ac_top_srcdir=$srcdir
2012    ac_abs_top_srcdir=$srcdir ;;
2013  *) # Relative name.
2014    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2015    ac_top_srcdir=$ac_top_build_prefix$srcdir
2016    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2017esac
2018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2019
2020    cd "$ac_dir" || { ac_status=$?; continue; }
2021    # Check for guested configure.
2022    if test -f "$ac_srcdir/configure.gnu"; then
2023      echo &&
2024      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2025    elif test -f "$ac_srcdir/configure"; then
2026      echo &&
2027      $SHELL "$ac_srcdir/configure" --help=recursive
2028    else
2029      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2030    fi || ac_status=$?
2031    cd "$ac_pwd" || { ac_status=$?; break; }
2032  done
2033fi
2034
2035test -n "$ac_init_help" && exit $ac_status
2036if $ac_init_version; then
2037  cat <<\_ACEOF
2038avahi configure 0.6.25
2039generated by GNU Autoconf 2.63
2040
2041Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
20422002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2043This configure script is free software; the Free Software Foundation
2044gives unlimited permission to copy, distribute and modify it.
2045_ACEOF
2046  exit
2047fi
2048cat >config.log <<_ACEOF
2049This file contains any messages produced by compilers while
2050running configure, to aid debugging if configure makes a mistake.
2051
2052It was created by avahi $as_me 0.6.25, which was
2053generated by GNU Autoconf 2.63.  Invocation command line was
2054
2055  $ $0 $@
2056
2057_ACEOF
2058exec 5>>config.log
2059{
2060cat <<_ASUNAME
2061@%:@@%:@ --------- @%:@@%:@
2062@%:@@%:@ Platform. @%:@@%:@
2063@%:@@%:@ --------- @%:@@%:@
2064
2065hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2066uname -m = `(uname -m) 2>/dev/null || echo unknown`
2067uname -r = `(uname -r) 2>/dev/null || echo unknown`
2068uname -s = `(uname -s) 2>/dev/null || echo unknown`
2069uname -v = `(uname -v) 2>/dev/null || echo unknown`
2070
2071/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2072/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2073
2074/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2075/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2076/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2077/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2078/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2079/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2080/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2081
2082_ASUNAME
2083
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087  IFS=$as_save_IFS
2088  test -z "$as_dir" && as_dir=.
2089  $as_echo "PATH: $as_dir"
2090done
2091IFS=$as_save_IFS
2092
2093} >&5
2094
2095cat >&5 <<_ACEOF
2096
2097
2098@%:@@%:@ ----------- @%:@@%:@
2099@%:@@%:@ Core tests. @%:@@%:@
2100@%:@@%:@ ----------- @%:@@%:@
2101
2102_ACEOF
2103
2104
2105# Keep a trace of the command line.
2106# Strip out --no-create and --no-recursion so they do not pile up.
2107# Strip out --silent because we don't want to record it for future runs.
2108# Also quote any args containing shell meta-characters.
2109# Make two passes to allow for proper duplicate-argument suppression.
2110ac_configure_args=
2111ac_configure_args0=
2112ac_configure_args1=
2113ac_must_keep_next=false
2114for ac_pass in 1 2
2115do
2116  for ac_arg
2117  do
2118    case $ac_arg in
2119    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2120    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2121    | -silent | --silent | --silen | --sile | --sil)
2122      continue ;;
2123    *\'*)
2124      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2125    esac
2126    case $ac_pass in
2127    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2128    2)
2129      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2130      if test $ac_must_keep_next = true; then
2131	ac_must_keep_next=false # Got value, back to normal.
2132      else
2133	case $ac_arg in
2134	  *=* | --config-cache | -C | -disable-* | --disable-* \
2135	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2136	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2137	  | -with-* | --with-* | -without-* | --without-* | --x)
2138	    case "$ac_configure_args0 " in
2139	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2140	    esac
2141	    ;;
2142	  -* ) ac_must_keep_next=true ;;
2143	esac
2144      fi
2145      ac_configure_args="$ac_configure_args '$ac_arg'"
2146      ;;
2147    esac
2148  done
2149done
2150$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2151$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2152
2153# When interrupted or exit'd, cleanup temporary files, and complete
2154# config.log.  We remove comments because anyway the quotes in there
2155# would cause problems or look ugly.
2156# WARNING: Use '\'' to represent an apostrophe within the trap.
2157# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2158trap 'exit_status=$?
2159  # Save into config.log some information that might help in debugging.
2160  {
2161    echo
2162
2163    cat <<\_ASBOX
2164@%:@@%:@ ---------------- @%:@@%:@
2165@%:@@%:@ Cache variables. @%:@@%:@
2166@%:@@%:@ ---------------- @%:@@%:@
2167_ASBOX
2168    echo
2169    # The following way of writing the cache mishandles newlines in values,
2170(
2171  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172    eval ac_val=\$$ac_var
2173    case $ac_val in #(
2174    *${as_nl}*)
2175      case $ac_var in #(
2176      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2177$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178      esac
2179      case $ac_var in #(
2180      _ | IFS | as_nl) ;; #(
2181      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182      *) $as_unset $ac_var ;;
2183      esac ;;
2184    esac
2185  done
2186  (set) 2>&1 |
2187    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188    *${as_nl}ac_space=\ *)
2189      sed -n \
2190	"s/'\''/'\''\\\\'\'''\''/g;
2191	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192      ;; #(
2193    *)
2194      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195      ;;
2196    esac |
2197    sort
2198)
2199    echo
2200
2201    cat <<\_ASBOX
2202@%:@@%:@ ----------------- @%:@@%:@
2203@%:@@%:@ Output variables. @%:@@%:@
2204@%:@@%:@ ----------------- @%:@@%:@
2205_ASBOX
2206    echo
2207    for ac_var in $ac_subst_vars
2208    do
2209      eval ac_val=\$$ac_var
2210      case $ac_val in
2211      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212      esac
2213      $as_echo "$ac_var='\''$ac_val'\''"
2214    done | sort
2215    echo
2216
2217    if test -n "$ac_subst_files"; then
2218      cat <<\_ASBOX
2219@%:@@%:@ ------------------- @%:@@%:@
2220@%:@@%:@ File substitutions. @%:@@%:@
2221@%:@@%:@ ------------------- @%:@@%:@
2222_ASBOX
2223      echo
2224      for ac_var in $ac_subst_files
2225      do
2226	eval ac_val=\$$ac_var
2227	case $ac_val in
2228	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229	esac
2230	$as_echo "$ac_var='\''$ac_val'\''"
2231      done | sort
2232      echo
2233    fi
2234
2235    if test -s confdefs.h; then
2236      cat <<\_ASBOX
2237@%:@@%:@ ----------- @%:@@%:@
2238@%:@@%:@ confdefs.h. @%:@@%:@
2239@%:@@%:@ ----------- @%:@@%:@
2240_ASBOX
2241      echo
2242      cat confdefs.h
2243      echo
2244    fi
2245    test "$ac_signal" != 0 &&
2246      $as_echo "$as_me: caught signal $ac_signal"
2247    $as_echo "$as_me: exit $exit_status"
2248  } >&5
2249  rm -f core *.core core.conftest.* &&
2250    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2251    exit $exit_status
2252' 0
2253for ac_signal in 1 2 13 15; do
2254  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2255done
2256ac_signal=0
2257
2258# confdefs.h avoids OS command line length limits that DEFS can exceed.
2259rm -f -r conftest* confdefs.h
2260
2261# Predefined preprocessor variables.
2262
2263cat >>confdefs.h <<_ACEOF
2264@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2265_ACEOF
2266
2267
2268cat >>confdefs.h <<_ACEOF
2269@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270_ACEOF
2271
2272
2273cat >>confdefs.h <<_ACEOF
2274@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2275_ACEOF
2276
2277
2278cat >>confdefs.h <<_ACEOF
2279@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2280_ACEOF
2281
2282
2283cat >>confdefs.h <<_ACEOF
2284@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285_ACEOF
2286
2287
2288# Let the site file select an alternate cache file if it wants to.
2289# Prefer an explicitly selected file to automatically selected ones.
2290ac_site_file1=NONE
2291ac_site_file2=NONE
2292if test -n "$CONFIG_SITE"; then
2293  ac_site_file1=$CONFIG_SITE
2294elif test "x$prefix" != xNONE; then
2295  ac_site_file1=$prefix/share/config.site
2296  ac_site_file2=$prefix/etc/config.site
2297else
2298  ac_site_file1=$ac_default_prefix/share/config.site
2299  ac_site_file2=$ac_default_prefix/etc/config.site
2300fi
2301for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2302do
2303  test "x$ac_site_file" = xNONE && continue
2304  if test -r "$ac_site_file"; then
2305    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2306$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307    sed 's/^/| /' "$ac_site_file" >&5
2308    . "$ac_site_file"
2309  fi
2310done
2311
2312if test -r "$cache_file"; then
2313  # Some versions of bash will fail to source /dev/null (special
2314  # files actually), so we avoid doing that.
2315  if test -f "$cache_file"; then
2316    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2317$as_echo "$as_me: loading cache $cache_file" >&6;}
2318    case $cache_file in
2319      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2320      *)                      . "./$cache_file";;
2321    esac
2322  fi
2323else
2324  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2325$as_echo "$as_me: creating cache $cache_file" >&6;}
2326  >$cache_file
2327fi
2328
2329# Check that the precious variables saved in the cache have kept the same
2330# value.
2331ac_cache_corrupted=false
2332for ac_var in $ac_precious_vars; do
2333  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2334  eval ac_new_set=\$ac_env_${ac_var}_set
2335  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2336  eval ac_new_val=\$ac_env_${ac_var}_value
2337  case $ac_old_set,$ac_new_set in
2338    set,)
2339      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2340$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2341      ac_cache_corrupted=: ;;
2342    ,set)
2343      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2344$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2345      ac_cache_corrupted=: ;;
2346    ,);;
2347    *)
2348      if test "x$ac_old_val" != "x$ac_new_val"; then
2349	# differences in whitespace do not lead to failure.
2350	ac_old_val_w=`echo x $ac_old_val`
2351	ac_new_val_w=`echo x $ac_new_val`
2352	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2353	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2354$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2355	  ac_cache_corrupted=:
2356	else
2357	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2358$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2359	  eval $ac_var=\$ac_old_val
2360	fi
2361	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2362$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2363	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2364$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2365      fi;;
2366  esac
2367  # Pass precious variables to config.status.
2368  if test "$ac_new_set" = set; then
2369    case $ac_new_val in
2370    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2371    *) ac_arg=$ac_var=$ac_new_val ;;
2372    esac
2373    case " $ac_configure_args " in
2374      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2375      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2376    esac
2377  fi
2378done
2379if $ac_cache_corrupted; then
2380  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2383$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2384  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2385$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2386   { (exit 1); exit 1; }; }
2387fi
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
2421ac_config_headers="$ac_config_headers config.h"
2422
2423am__api_version='1.10'
2424
2425ac_aux_dir=
2426for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427  if test -f "$ac_dir/install-sh"; then
2428    ac_aux_dir=$ac_dir
2429    ac_install_sh="$ac_aux_dir/install-sh -c"
2430    break
2431  elif test -f "$ac_dir/install.sh"; then
2432    ac_aux_dir=$ac_dir
2433    ac_install_sh="$ac_aux_dir/install.sh -c"
2434    break
2435  elif test -f "$ac_dir/shtool"; then
2436    ac_aux_dir=$ac_dir
2437    ac_install_sh="$ac_aux_dir/shtool install -c"
2438    break
2439  fi
2440done
2441if test -z "$ac_aux_dir"; then
2442  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2443$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2444   { (exit 1); exit 1; }; }
2445fi
2446
2447# These three variables are undocumented and unsupported,
2448# and are intended to be withdrawn in a future Autoconf release.
2449# They can cause serious problems if a builder's source tree is in a directory
2450# whose full name contains unusual characters.
2451ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2452ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2453ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2454
2455
2456# Find a good install program.  We prefer a C program (faster),
2457# so one script is as good as another.  But avoid the broken or
2458# incompatible versions:
2459# SysV /etc/install, /usr/sbin/install
2460# SunOS /usr/etc/install
2461# IRIX /sbin/install
2462# AIX /bin/install
2463# AmigaOS /C/install, which installs bootblocks on floppy discs
2464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467# OS/2's system install, which has a completely different semantic
2468# ./install, which can be erroneously created by make from ./install.sh.
2469# Reject install programs that cannot install multiple files.
2470{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2471$as_echo_n "checking for a BSD-compatible install... " >&6; }
2472if test -z "$INSTALL"; then
2473if test "${ac_cv_path_install+set}" = set; then
2474  $as_echo_n "(cached) " >&6
2475else
2476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481  # Account for people who put trailing slashes in PATH elements.
2482case $as_dir/ in
2483  ./ | .// | /cC/* | \
2484  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2486  /usr/ucb/* ) ;;
2487  *)
2488    # OSF1 and SCO ODT 3.0 have their own names for install.
2489    # Don't use installbsd from OSF since it installs stuff as root
2490    # by default.
2491    for ac_prog in ginstall scoinst install; do
2492      for ac_exec_ext in '' $ac_executable_extensions; do
2493	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494	  if test $ac_prog = install &&
2495	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496	    # AIX install.  It has an incompatible calling convention.
2497	    :
2498	  elif test $ac_prog = install &&
2499	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500	    # program-specific install script used by HP pwplus--don't use.
2501	    :
2502	  else
2503	    rm -rf conftest.one conftest.two conftest.dir
2504	    echo one > conftest.one
2505	    echo two > conftest.two
2506	    mkdir conftest.dir
2507	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508	      test -s conftest.one && test -s conftest.two &&
2509	      test -s conftest.dir/conftest.one &&
2510	      test -s conftest.dir/conftest.two
2511	    then
2512	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513	      break 3
2514	    fi
2515	  fi
2516	fi
2517      done
2518    done
2519    ;;
2520esac
2521
2522done
2523IFS=$as_save_IFS
2524
2525rm -rf conftest.one conftest.two conftest.dir
2526
2527fi
2528  if test "${ac_cv_path_install+set}" = set; then
2529    INSTALL=$ac_cv_path_install
2530  else
2531    # As a last resort, use the slow shell script.  Don't cache a
2532    # value for INSTALL within a source directory, because that will
2533    # break other packages using the cache if that directory is
2534    # removed, or if the value is a relative name.
2535    INSTALL=$ac_install_sh
2536  fi
2537fi
2538{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2539$as_echo "$INSTALL" >&6; }
2540
2541# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542# It thinks the first close brace ends the variable substitution.
2543test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
2549{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2550$as_echo_n "checking whether build environment is sane... " >&6; }
2551# Just in case
2552sleep 1
2553echo timestamp > conftest.file
2554# Do `set' in a subshell so we don't clobber the current shell's
2555# arguments.  Must try -L first in case configure is actually a
2556# symlink; some systems play weird games with the mod time of symlinks
2557# (eg FreeBSD returns the mod time of the symlink's containing
2558# directory).
2559if (
2560   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2561   if test "$*" = "X"; then
2562      # -L didn't work.
2563      set X `ls -t $srcdir/configure conftest.file`
2564   fi
2565   rm -f conftest.file
2566   if test "$*" != "X $srcdir/configure conftest.file" \
2567      && test "$*" != "X conftest.file $srcdir/configure"; then
2568
2569      # If neither matched, then we have a broken ls.  This can happen
2570      # if, for instance, CONFIG_SHELL is bash and it inherits a
2571      # broken ls alias from the environment.  This has actually
2572      # happened.  Such a system could not be considered "sane".
2573      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2574alias in your environment" >&5
2575$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2576alias in your environment" >&2;}
2577   { (exit 1); exit 1; }; }
2578   fi
2579
2580   test "$2" = conftest.file
2581   )
2582then
2583   # Ok.
2584   :
2585else
2586   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2587Check your system clock" >&5
2588$as_echo "$as_me: error: newly created file is older than distributed files!
2589Check your system clock" >&2;}
2590   { (exit 1); exit 1; }; }
2591fi
2592{ $as_echo "$as_me:$LINENO: result: yes" >&5
2593$as_echo "yes" >&6; }
2594test "$program_prefix" != NONE &&
2595  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596# Use a double $ so make ignores it.
2597test "$program_suffix" != NONE &&
2598  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2599# Double any \ or $.
2600# By default was `s,x,x', remove it if useless.
2601ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2603
2604# expand $ac_aux_dir to an absolute path
2605am_aux_dir=`cd $ac_aux_dir && pwd`
2606
2607test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2608# Use eval to expand $SHELL
2609if eval "$MISSING --run true"; then
2610  am_missing_run="$MISSING --run "
2611else
2612  am_missing_run=
2613  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2614$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2615fi
2616
2617{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2618$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619if test -z "$MKDIR_P"; then
2620  if test "${ac_cv_path_mkdir+set}" = set; then
2621  $as_echo_n "(cached) " >&6
2622else
2623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628  for ac_prog in mkdir gmkdir; do
2629	 for ac_exec_ext in '' $ac_executable_extensions; do
2630	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2631	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632	     'mkdir (GNU coreutils) '* | \
2633	     'mkdir (coreutils) '* | \
2634	     'mkdir (fileutils) '4.1*)
2635	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636	       break 3;;
2637	   esac
2638	 done
2639       done
2640done
2641IFS=$as_save_IFS
2642
2643fi
2644
2645  if test "${ac_cv_path_mkdir+set}" = set; then
2646    MKDIR_P="$ac_cv_path_mkdir -p"
2647  else
2648    # As a last resort, use the slow shell script.  Don't cache a
2649    # value for MKDIR_P within a source directory, because that will
2650    # break other packages using the cache if that directory is
2651    # removed, or if the value is a relative name.
2652    test -d ./--version && rmdir ./--version
2653    MKDIR_P="$ac_install_sh -d"
2654  fi
2655fi
2656{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2657$as_echo "$MKDIR_P" >&6; }
2658
2659mkdir_p="$MKDIR_P"
2660case $mkdir_p in
2661  [\\/$]* | ?:[\\/]*) ;;
2662  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2663esac
2664
2665for ac_prog in gawk mawk nawk awk
2666do
2667  # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
2669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_AWK+set}" = set; then
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$AWK"; then
2675  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682  for ac_exec_ext in '' $ac_executable_extensions; do
2683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684    ac_cv_prog_AWK="$ac_prog"
2685    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694AWK=$ac_cv_prog_AWK
2695if test -n "$AWK"; then
2696  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2697$as_echo "$AWK" >&6; }
2698else
2699  { $as_echo "$as_me:$LINENO: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  test -n "$AWK" && break
2705done
2706
2707{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709set x ${MAKE-make}
2710ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2712  $as_echo_n "(cached) " >&6
2713else
2714  cat >conftest.make <<\_ACEOF
2715SHELL = /bin/sh
2716all:
2717	@echo '@@@%%%=$(MAKE)=@@@%%%'
2718_ACEOF
2719# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2720case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721  *@@@%%%=?*=@@@%%%*)
2722    eval ac_cv_prog_make_${ac_make}_set=yes;;
2723  *)
2724    eval ac_cv_prog_make_${ac_make}_set=no;;
2725esac
2726rm -f conftest.make
2727fi
2728if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729  { $as_echo "$as_me:$LINENO: result: yes" >&5
2730$as_echo "yes" >&6; }
2731  SET_MAKE=
2732else
2733  { $as_echo "$as_me:$LINENO: result: no" >&5
2734$as_echo "no" >&6; }
2735  SET_MAKE="MAKE=${MAKE-make}"
2736fi
2737
2738rm -rf .tst 2>/dev/null
2739mkdir .tst 2>/dev/null
2740if test -d .tst; then
2741  am__leading_dot=.
2742else
2743  am__leading_dot=_
2744fi
2745rmdir .tst 2>/dev/null
2746
2747if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749  # is not polluted with repeated "-I."
2750  am__isrc=' -I$(srcdir)'
2751  # test to see if srcdir already configured
2752  if test -f $srcdir/config.status; then
2753    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2754$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2755   { (exit 1); exit 1; }; }
2756  fi
2757fi
2758
2759# test whether we have cygpath
2760if test -z "$CYGPATH_W"; then
2761  if (cygpath --version) >/dev/null 2>/dev/null; then
2762    CYGPATH_W='cygpath -w'
2763  else
2764    CYGPATH_W=echo
2765  fi
2766fi
2767
2768
2769# Define the identity of the package.
2770 PACKAGE='avahi'
2771 VERSION='0.6.25'
2772
2773
2774cat >>confdefs.h <<_ACEOF
2775@%:@define PACKAGE "$PACKAGE"
2776_ACEOF
2777
2778 
2779cat >>confdefs.h <<_ACEOF
2780@%:@define VERSION "$VERSION"
2781_ACEOF
2782
2783# Some tools Automake needs.
2784
2785ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2786
2787
2788AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2789
2790
2791AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2792
2793
2794AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2795
2796
2797MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2798
2799install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2800
2801# Installed binaries are usually stripped using `strip' when the user
2802# run `make install-strip'.  However `strip' might not be the right
2803# tool to use in cross-compilation environments, therefore Automake
2804# will honor the `STRIP' environment variable to overrule this program.
2805if test "$cross_compiling" != no; then
2806  if test -n "$ac_tool_prefix"; then
2807  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2808set dummy ${ac_tool_prefix}strip; ac_word=$2
2809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if test "${ac_cv_prog_STRIP+set}" = set; then
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$STRIP"; then
2815  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822  for ac_exec_ext in '' $ac_executable_extensions; do
2823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2825    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834STRIP=$ac_cv_prog_STRIP
2835if test -n "$STRIP"; then
2836  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2837$as_echo "$STRIP" >&6; }
2838else
2839  { $as_echo "$as_me:$LINENO: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843
2844fi
2845if test -z "$ac_cv_prog_STRIP"; then
2846  ac_ct_STRIP=$STRIP
2847  # Extract the first word of "strip", so it can be a program name with args.
2848set dummy strip; ac_word=$2
2849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$ac_ct_STRIP"; then
2855  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_ac_ct_STRIP="strip"
2865    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2875if test -n "$ac_ct_STRIP"; then
2876  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2877$as_echo "$ac_ct_STRIP" >&6; }
2878else
2879  { $as_echo "$as_me:$LINENO: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883  if test "x$ac_ct_STRIP" = x; then
2884    STRIP=":"
2885  else
2886    case $cross_compiling:$ac_tool_warned in
2887yes:)
2888{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890ac_tool_warned=yes ;;
2891esac
2892    STRIP=$ac_ct_STRIP
2893  fi
2894else
2895  STRIP="$ac_cv_prog_STRIP"
2896fi
2897
2898fi
2899INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2900
2901# We need awk for the "check" target.  The system "awk" is bad on
2902# some platforms.
2903# Always define AMTAR for backward compatibility.
2904
2905AMTAR=${AMTAR-"${am_missing_run}tar"}
2906
2907am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2908
2909
2910
2911
2912
2913
2914PACKAGE_URL=http://avahi.org/
2915
2916
2917LIBAVAHI_COMMON_VERSION_INFO=8:1:5
2918
2919LIBAVAHI_CORE_VERSION_INFO=6:1:0
2920
2921LIBAVAHI_CLIENT_VERSION_INFO=5:5:2
2922
2923LIBAVAHI_GLIB_VERSION_INFO=1:1:0
2924
2925LIBAVAHI_GOBJECT_VERSION_INFO=0:1:0
2926
2927LIBAVAHI_QT3_VERSION_INFO=1:2:0
2928
2929LIBAVAHI_QT4_VERSION_INFO=1:2:0
2930
2931LIBAVAHI_UI_VERSION_INFO=1:1:1
2932
2933
2934# Do not touch these, since they we took this version-info from upstream HOWL/Bonjour
2935LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO=1:0:0
2936
2937LIBAVAHI_COMPAT_HOWL_VERSION_INFO=0:0:0
2938
2939HOWL_COMPAT_VERSION=0.9.8
2940
2941
2942if type -p stow > /dev/null && test -d /usr/local/stow ; then
2943    { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2944$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2945    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2946fi
2947
2948# Checks for programs.
2949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954if test -n "$ac_tool_prefix"; then
2955  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if test "${ac_cv_prog_CC+set}" = set; then
2960  $as_echo_n "(cached) " >&6
2961else
2962  if test -n "$CC"; then
2963  ac_cv_prog_CC="$CC" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970  for ac_exec_ext in '' $ac_executable_extensions; do
2971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977done
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987  { $as_echo "$as_me:$LINENO: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$ac_cv_prog_CC"; then
2994  ac_ct_CC=$CC
2995  # Extract the first word of "gcc", so it can be a program name with args.
2996set dummy gcc; ac_word=$2
2997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3000  $as_echo_n "(cached) " >&6
3001else
3002  if test -n "$ac_ct_CC"; then
3003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  test -z "$as_dir" && as_dir=.
3010  for ac_exec_ext in '' $ac_executable_extensions; do
3011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012    ac_cv_prog_ac_ct_CC="gcc"
3013    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023if test -n "$ac_ct_CC"; then
3024  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3025$as_echo "$ac_ct_CC" >&6; }
3026else
3027  { $as_echo "$as_me:$LINENO: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031  if test "x$ac_ct_CC" = x; then
3032    CC=""
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    CC=$ac_ct_CC
3041  fi
3042else
3043  CC="$ac_cv_prog_CC"
3044fi
3045
3046if test -z "$CC"; then
3047          if test -n "$ac_tool_prefix"; then
3048    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}cc; ac_word=$2
3050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if test "${ac_cv_prog_CC+set}" = set; then
3053  $as_echo_n "(cached) " >&6
3054else
3055  if test -n "$CC"; then
3056  ac_cv_prog_CC="$CC" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063  for ac_exec_ext in '' $ac_executable_extensions; do
3064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065    ac_cv_prog_CC="${ac_tool_prefix}cc"
3066    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067    break 2
3068  fi
3069done
3070done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075CC=$ac_cv_prog_CC
3076if test -n "$CC"; then
3077  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3078$as_echo "$CC" >&6; }
3079else
3080  { $as_echo "$as_me:$LINENO: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085  fi
3086fi
3087if test -z "$CC"; then
3088  # Extract the first word of "cc", so it can be a program name with args.
3089set dummy cc; ac_word=$2
3090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_CC+set}" = set; then
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test -n "$CC"; then
3096  ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
3098  ac_prog_rejected=no
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104  for ac_exec_ext in '' $ac_executable_extensions; do
3105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107       ac_prog_rejected=yes
3108       continue
3109     fi
3110    ac_cv_prog_CC="cc"
3111    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115done
3116IFS=$as_save_IFS
3117
3118if test $ac_prog_rejected = yes; then
3119  # We found a bogon in the path, so make sure we never use it.
3120  set dummy $ac_cv_prog_CC
3121  shift
3122  if test $@%:@ != 0; then
3123    # We chose a different compiler from the bogus one.
3124    # However, it has the same basename, so the bogon will be chosen
3125    # first if we set CC to just the basename; use the full file name.
3126    shift
3127    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128  fi
3129fi
3130fi
3131fi
3132CC=$ac_cv_prog_CC
3133if test -n "$CC"; then
3134  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3135$as_echo "$CC" >&6; }
3136else
3137  { $as_echo "$as_me:$LINENO: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142fi
3143if test -z "$CC"; then
3144  if test -n "$ac_tool_prefix"; then
3145  for ac_prog in cl.exe
3146  do
3147    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162  for ac_exec_ext in '' $ac_executable_extensions; do
3163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:$LINENO: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184    test -n "$CC" && break
3185  done
3186fi
3187if test -z "$CC"; then
3188  ac_ct_CC=$CC
3189  for ac_prog in cl.exe
3190do
3191  # Extract the first word of "$ac_prog", so it can be a program name with args.
3192set dummy $ac_prog; ac_word=$2
3193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3196  $as_echo_n "(cached) " >&6
3197else
3198  if test -n "$ac_ct_CC"; then
3199  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206  for ac_exec_ext in '' $ac_executable_extensions; do
3207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208    ac_cv_prog_ac_ct_CC="$ac_prog"
3209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213done
3214IFS=$as_save_IFS
3215
3216fi
3217fi
3218ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219if test -n "$ac_ct_CC"; then
3220  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3221$as_echo "$ac_ct_CC" >&6; }
3222else
3223  { $as_echo "$as_me:$LINENO: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227
3228  test -n "$ac_ct_CC" && break
3229done
3230
3231  if test "x$ac_ct_CC" = x; then
3232    CC=""
3233  else
3234    case $cross_compiling:$ac_tool_warned in
3235yes:)
3236{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238ac_tool_warned=yes ;;
3239esac
3240    CC=$ac_ct_CC
3241  fi
3242fi
3243
3244fi
3245
3246
3247test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250See \`config.log' for more details." >&5
3251$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3252See \`config.log' for more details." >&2;}
3253   { (exit 1); exit 1; }; }; }
3254
3255# Provide some information about the compiler.
3256$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3257set X $ac_compile
3258ac_compiler=$2
3259{ (ac_try="$ac_compiler --version >&5"
3260case "(($ac_try" in
3261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262  *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265$as_echo "$ac_try_echo") >&5
3266  (eval "$ac_compiler --version >&5") 2>&5
3267  ac_status=$?
3268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); }
3270{ (ac_try="$ac_compiler -v >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276$as_echo "$ac_try_echo") >&5
3277  (eval "$ac_compiler -v >&5") 2>&5
3278  ac_status=$?
3279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }
3281{ (ac_try="$ac_compiler -V >&5"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287$as_echo "$ac_try_echo") >&5
3288  (eval "$ac_compiler -V >&5") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }
3292
3293cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h.  */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h.  */
3299
3300int
3301main ()
3302{
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308ac_clean_files_save=$ac_clean_files
3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310# Try to create an executable without -o first, disregard a.out.
3311# It will help us diagnose broken compilers, and finding out an intuition
3312# of exeext.
3313{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314$as_echo_n "checking for C compiler default output file name... " >&6; }
3315ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316
3317# The possible output files:
3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319
3320ac_rmfiles=
3321for ac_file in $ac_files
3322do
3323  case $ac_file in
3324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326  esac
3327done
3328rm -f $ac_rmfiles
3329
3330if { (ac_try="$ac_link_default"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336$as_echo "$ac_try_echo") >&5
3337  (eval "$ac_link_default") 2>&5
3338  ac_status=$?
3339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; then
3341  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3344# so that the user can short-circuit this test for compilers unknown to
3345# Autoconf.
3346for ac_file in $ac_files ''
3347do
3348  test -f "$ac_file" || continue
3349  case $ac_file in
3350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3351	;;
3352    [ab].out )
3353	# We found the default executable, but exeext='' is most
3354	# certainly right.
3355	break;;
3356    *.* )
3357        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358	then :; else
3359	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360	fi
3361	# We set ac_cv_exeext here because the later test for it is not
3362	# safe: cross compilers may not add the suffix if given an `-o'
3363	# argument, so we may need to know it at that point already.
3364	# Even if this section looks crufty: it has the advantage of
3365	# actually working.
3366	break;;
3367    * )
3368	break;;
3369  esac
3370done
3371test "$ac_cv_exeext" = no && ac_cv_exeext=
3372
3373else
3374  ac_file=''
3375fi
3376
3377{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3378$as_echo "$ac_file" >&6; }
3379if test -z "$ac_file"; then
3380  $as_echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3386See \`config.log' for more details." >&5
3387$as_echo "$as_me: error: C compiler cannot create executables
3388See \`config.log' for more details." >&2;}
3389   { (exit 77); exit 77; }; }; }
3390fi
3391
3392ac_exeext=$ac_cv_exeext
3393
3394# Check that the compiler produces executables we can run.  If not, either
3395# the compiler is broken, or we cross compile.
3396{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3397$as_echo_n "checking whether the C compiler works... " >&6; }
3398# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3399# If not cross compiling, check that we can run a simple program.
3400if test "$cross_compiling" != yes; then
3401  if { ac_try='./$ac_file'
3402  { (case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407$as_echo "$ac_try_echo") >&5
3408  (eval "$ac_try") 2>&5
3409  ac_status=$?
3410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412    cross_compiling=no
3413  else
3414    if test "$cross_compiling" = maybe; then
3415	cross_compiling=yes
3416    else
3417	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3420If you meant to cross compile, use \`--host'.
3421See \`config.log' for more details." >&5
3422$as_echo "$as_me: error: cannot run C compiled programs.
3423If you meant to cross compile, use \`--host'.
3424See \`config.log' for more details." >&2;}
3425   { (exit 1); exit 1; }; }; }
3426    fi
3427  fi
3428fi
3429{ $as_echo "$as_me:$LINENO: result: yes" >&5
3430$as_echo "yes" >&6; }
3431
3432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3433ac_clean_files=$ac_clean_files_save
3434# Check that the compiler produces executables we can run.  If not, either
3435# the compiler is broken, or we cross compile.
3436{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3437$as_echo_n "checking whether we are cross compiling... " >&6; }
3438{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3439$as_echo "$cross_compiling" >&6; }
3440
3441{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3442$as_echo_n "checking for suffix of executables... " >&6; }
3443if { (ac_try="$ac_link"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449$as_echo "$ac_try_echo") >&5
3450  (eval "$ac_link") 2>&5
3451  ac_status=$?
3452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; then
3454  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3456# work properly (i.e., refer to `conftest.exe'), while it won't with
3457# `rm'.
3458for ac_file in conftest.exe conftest conftest.*; do
3459  test -f "$ac_file" || continue
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463	  break;;
3464    * ) break;;
3465  esac
3466done
3467else
3468  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3471See \`config.log' for more details." >&5
3472$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3473See \`config.log' for more details." >&2;}
3474   { (exit 1); exit 1; }; }; }
3475fi
3476
3477rm -f conftest$ac_cv_exeext
3478{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3479$as_echo "$ac_cv_exeext" >&6; }
3480
3481rm -f conftest.$ac_ext
3482EXEEXT=$ac_cv_exeext
3483ac_exeext=$EXEEXT
3484{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3485$as_echo_n "checking for suffix of object files... " >&6; }
3486if test "${ac_cv_objext+set}" = set; then
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat >conftest.$ac_ext <<_ACEOF
3490/* confdefs.h.  */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499
3500  ;
3501  return 0;
3502}
3503_ACEOF
3504rm -f conftest.o conftest.obj
3505if { (ac_try="$ac_compile"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511$as_echo "$ac_try_echo") >&5
3512  (eval "$ac_compile") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; then
3516  for ac_file in conftest.o conftest.obj conftest.*; do
3517  test -f "$ac_file" || continue;
3518  case $ac_file in
3519    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521       break;;
3522  esac
3523done
3524else
3525  $as_echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3531See \`config.log' for more details." >&5
3532$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3533See \`config.log' for more details." >&2;}
3534   { (exit 1); exit 1; }; }; }
3535fi
3536
3537rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538fi
3539{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3540$as_echo "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545if test "${ac_cv_c_compiler_gnu+set}" = set; then
3546  $as_echo_n "(cached) " >&6
3547else
3548  cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558#ifndef __GNUC__
3559       choke me
3560#endif
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566rm -f conftest.$ac_objext
3567if { (ac_try="$ac_compile"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573$as_echo "$ac_try_echo") >&5
3574  (eval "$ac_compile") 2>conftest.er1
3575  ac_status=$?
3576  grep -v '^ *+' conftest.er1 >conftest.err
3577  rm -f conftest.er1
3578  cat conftest.err >&5
3579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); } && {
3581	 test -z "$ac_c_werror_flag" ||
3582	 test ! -s conftest.err
3583       } && test -s conftest.$ac_objext; then
3584  ac_compiler_gnu=yes
3585else
3586  $as_echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589	ac_compiler_gnu=no
3590fi
3591
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593ac_cv_c_compiler_gnu=$ac_compiler_gnu
3594
3595fi
3596{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598if test $ac_compiler_gnu = yes; then
3599  GCC=yes
3600else
3601  GCC=
3602fi
3603ac_test_CFLAGS=${CFLAGS+set}
3604ac_save_CFLAGS=$CFLAGS
3605{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3606$as_echo_n "checking whether $CC accepts -g... " >&6; }
3607if test "${ac_cv_prog_cc_g+set}" = set; then
3608  $as_echo_n "(cached) " >&6
3609else
3610  ac_save_c_werror_flag=$ac_c_werror_flag
3611   ac_c_werror_flag=yes
3612   ac_cv_prog_cc_g=no
3613   CFLAGS="-g"
3614   cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h.  */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h.  */
3620
3621int
3622main ()
3623{
3624
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (ac_try="$ac_compile"
3631case "(($ac_try" in
3632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633  *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636$as_echo "$ac_try_echo") >&5
3637  (eval "$ac_compile") 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } && {
3644	 test -z "$ac_c_werror_flag" ||
3645	 test ! -s conftest.err
3646       } && test -s conftest.$ac_objext; then
3647  ac_cv_prog_cc_g=yes
3648else
3649  $as_echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652	CFLAGS=""
3653      cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h.  */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668rm -f conftest.$ac_objext
3669if { (ac_try="$ac_compile"
3670case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3675$as_echo "$ac_try_echo") >&5
3676  (eval "$ac_compile") 2>conftest.er1
3677  ac_status=$?
3678  grep -v '^ *+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); } && {
3683	 test -z "$ac_c_werror_flag" ||
3684	 test ! -s conftest.err
3685       } && test -s conftest.$ac_objext; then
3686  :
3687else
3688  $as_echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691	ac_c_werror_flag=$ac_save_c_werror_flag
3692	 CFLAGS="-g"
3693	 cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h.  */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext
3709if { (ac_try="$ac_compile"
3710case "(($ac_try" in
3711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712  *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715$as_echo "$ac_try_echo") >&5
3716  (eval "$ac_compile") 2>conftest.er1
3717  ac_status=$?
3718  grep -v '^ *+' conftest.er1 >conftest.err
3719  rm -f conftest.er1
3720  cat conftest.err >&5
3721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); } && {
3723	 test -z "$ac_c_werror_flag" ||
3724	 test ! -s conftest.err
3725       } && test -s conftest.$ac_objext; then
3726  ac_cv_prog_cc_g=yes
3727else
3728  $as_echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731	
3732fi
3733
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736
3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738fi
3739
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741   ac_c_werror_flag=$ac_save_c_werror_flag
3742fi
3743{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3744$as_echo "$ac_cv_prog_cc_g" >&6; }
3745if test "$ac_test_CFLAGS" = set; then
3746  CFLAGS=$ac_save_CFLAGS
3747elif test $ac_cv_prog_cc_g = yes; then
3748  if test "$GCC" = yes; then
3749    CFLAGS="-g -O2"
3750  else
3751    CFLAGS="-g"
3752  fi
3753else
3754  if test "$GCC" = yes; then
3755    CFLAGS="-O2"
3756  else
3757    CFLAGS=
3758  fi
3759fi
3760{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3761$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3762if test "${ac_cv_prog_cc_c89+set}" = set; then
3763  $as_echo_n "(cached) " >&6
3764else
3765  ac_cv_prog_cc_c89=no
3766ac_save_CC=$CC
3767cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdarg.h>
3774#include <stdio.h>
3775#include <sys/types.h>
3776#include <sys/stat.h>
3777/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3778struct buf { int x; };
3779FILE * (*rcsopen) (struct buf *, struct stat *, int);
3780static char *e (p, i)
3781     char **p;
3782     int i;
3783{
3784  return p[i];
3785}
3786static char *f (char * (*g) (char **, int), char **p, ...)
3787{
3788  char *s;
3789  va_list v;
3790  va_start (v,p);
3791  s = g (p, va_arg (v,int));
3792  va_end (v);
3793  return s;
3794}
3795
3796/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3797   function prototypes and stuff, but not '\xHH' hex character constants.
3798   These don't provoke an error unfortunately, instead are silently treated
3799   as 'x'.  The following induces an error, until -std is added to get
3800   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3801   array size at least.  It's necessary to write '\x00'==0 to get something
3802   that's true only with -std.  */
3803int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804
3805/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806   inside strings and character constants.  */
3807#define FOO(x) 'x'
3808int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809
3810int test (int i, double x);
3811struct s1 {int (*f) (int a);};
3812struct s2 {int (*f) (double a);};
3813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3814int argc;
3815char **argv;
3816int
3817main ()
3818{
3819return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826do
3827  CC="$ac_save_CC $ac_arg"
3828  rm -f conftest.$ac_objext
3829if { (ac_try="$ac_compile"
3830case "(($ac_try" in
3831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832  *) ac_try_echo=$ac_try;;
3833esac
3834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3835$as_echo "$ac_try_echo") >&5
3836  (eval "$ac_compile") 2>conftest.er1
3837  ac_status=$?
3838  grep -v '^ *+' conftest.er1 >conftest.err
3839  rm -f conftest.er1
3840  cat conftest.err >&5
3841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); } && {
3843	 test -z "$ac_c_werror_flag" ||
3844	 test ! -s conftest.err
3845       } && test -s conftest.$ac_objext; then
3846  ac_cv_prog_cc_c89=$ac_arg
3847else
3848  $as_echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851	
3852fi
3853
3854rm -f core conftest.err conftest.$ac_objext 
3855  test "x$ac_cv_prog_cc_c89" != "xno" && break
3856done
3857rm -f conftest.$ac_ext
3858CC=$ac_save_CC
3859
3860fi
3861# AC_CACHE_VAL
3862case "x$ac_cv_prog_cc_c89" in
3863  x)
3864    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3865$as_echo "none needed" >&6; } ;;
3866  xno)
3867    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3868$as_echo "unsupported" >&6; } ;;
3869  *)
3870    CC="$CC $ac_cv_prog_cc_c89"
3871    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873esac
3874
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881DEPDIR="${am__leading_dot}deps"
3882
3883ac_config_commands="$ac_config_commands depfiles"
3884
3885
3886am_make=${MAKE-make}
3887cat > confinc << 'END'
3888am__doit:
3889	@echo done
3890.PHONY: am__doit
3891END
3892# If we don't find an include directive, just comment out the code.
3893{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3894$as_echo_n "checking for style of include used by $am_make... " >&6; }
3895am__include="#"
3896am__quote=
3897_am_result=none
3898# First try GNU make style include.
3899echo "include confinc" > confmf
3900# We grep out `Entering directory' and `Leaving directory'
3901# messages which can occur if `w' ends up in MAKEFLAGS.
3902# In particular we don't look at `^make:' because GNU make might
3903# be invoked under some other name (usually "gmake"), in which
3904# case it prints its new name instead of `make'.
3905if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3906   am__include=include
3907   am__quote=
3908   _am_result=GNU
3909fi
3910# Now try BSD make style include.
3911if test "$am__include" = "#"; then
3912   echo '.include "confinc"' > confmf
3913   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3914      am__include=.include
3915      am__quote="\""
3916      _am_result=BSD
3917   fi
3918fi
3919
3920
3921{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3922$as_echo "$_am_result" >&6; }
3923rm -f confinc confmf
3924
3925@%:@ Check whether --enable-dependency-tracking was given.
3926if test "${enable_dependency_tracking+set}" = set; then
3927  enableval=$enable_dependency_tracking; 
3928fi
3929
3930if test "x$enable_dependency_tracking" != xno; then
3931  am_depcomp="$ac_aux_dir/depcomp"
3932  AMDEPBACKSLASH='\'
3933fi
3934 if test "x$enable_dependency_tracking" != xno; then
3935  AMDEP_TRUE=
3936  AMDEP_FALSE='#'
3937else
3938  AMDEP_TRUE='#'
3939  AMDEP_FALSE=
3940fi
3941
3942
3943
3944depcc="$CC"   am_compiler_list=
3945
3946{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3947$as_echo_n "checking dependency style of $depcc... " >&6; }
3948if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3949  $as_echo_n "(cached) " >&6
3950else
3951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3952  # We make a subdir and do the tests there.  Otherwise we can end up
3953  # making bogus files that we don't know about and never remove.  For
3954  # instance it was reported that on HP-UX the gcc test will end up
3955  # making a dummy file named `D' -- because `-MD' means `put the output
3956  # in D'.
3957  mkdir conftest.dir
3958  # Copy depcomp to subdir because otherwise we won't find it if we're
3959  # using a relative directory.
3960  cp "$am_depcomp" conftest.dir
3961  cd conftest.dir
3962  # We will build objects and dependencies in a subdirectory because
3963  # it helps to detect inapplicable dependency modes.  For instance
3964  # both Tru64's cc and ICC support -MD to output dependencies as a
3965  # side effect of compilation, but ICC will put the dependencies in
3966  # the current directory while Tru64 will put them in the object
3967  # directory.
3968  mkdir sub
3969
3970  am_cv_CC_dependencies_compiler_type=none
3971  if test "$am_compiler_list" = ""; then
3972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973  fi
3974  for depmode in $am_compiler_list; do
3975    # Setup a source with many dependencies, because some compilers
3976    # like to wrap large dependency lists on column 80 (with \), and
3977    # we should not choose a depcomp mode which is confused by this.
3978    #
3979    # We need to recreate these files for each test, as the compiler may
3980    # overwrite some of them when testing with obscure command lines.
3981    # This happens at least with the AIX C compiler.
3982    : > sub/conftest.c
3983    for i in 1 2 3 4 5 6; do
3984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986      # Solaris 8's {/usr,}/bin/sh.
3987      touch sub/conftst$i.h
3988    done
3989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991    case $depmode in
3992    nosideeffect)
3993      # after this tag, mechanisms are not by side-effect, so they'll
3994      # only be used when explicitly requested
3995      if test "x$enable_dependency_tracking" = xyes; then
3996	continue
3997      else
3998	break
3999      fi
4000      ;;
4001    none) break ;;
4002    esac
4003    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4004    # mode.  It turns out that the SunPro C++ compiler does not properly
4005    # handle `-M -o', and we need to detect this.
4006    if depmode=$depmode \
4007       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4008       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4010         >/dev/null 2>conftest.err &&
4011       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4012       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4013       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4014       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4015      # icc doesn't choke on unknown options, it will just issue warnings
4016      # or remarks (even with -Werror).  So we grep stderr for any message
4017      # that says an option was ignored or not supported.
4018      # When given -MP, icc 7.0 and 7.1 complain thusly:
4019      #   icc: Command line warning: ignoring option '-M'; no argument required
4020      # The diagnosis changed in icc 8.0:
4021      #   icc: Command line remark: option '-MP' not supported
4022      if (grep 'ignoring option' conftest.err ||
4023          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4024        am_cv_CC_dependencies_compiler_type=$depmode
4025        break
4026      fi
4027    fi
4028  done
4029
4030  cd ..
4031  rm -rf conftest.dir
4032else
4033  am_cv_CC_dependencies_compiler_type=none
4034fi
4035
4036fi
4037{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4038$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4039CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4040
4041 if 
4042  test "x$enable_dependency_tracking" != xno \
4043  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4044  am__fastdepCC_TRUE=
4045  am__fastdepCC_FALSE='#'
4046else
4047  am__fastdepCC_TRUE='#'
4048  am__fastdepCC_FALSE=
4049fi
4050
4051
4052ac_ext=cpp
4053ac_cpp='$CXXCPP $CPPFLAGS'
4054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4057if test -z "$CXX"; then
4058  if test -n "$CCC"; then
4059    CXX=$CCC
4060  else
4061    if test -n "$ac_tool_prefix"; then
4062  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4063  do
4064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4067$as_echo_n "checking for $ac_word... " >&6; }
4068if test "${ac_cv_prog_CXX+set}" = set; then
4069  $as_echo_n "(cached) " >&6
4070else
4071  if test -n "$CXX"; then
4072  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4073else
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079  for ac_exec_ext in '' $ac_executable_extensions; do
4080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4081    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4082    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083    break 2
4084  fi
4085done
4086done
4087IFS=$as_save_IFS
4088
4089fi
4090fi
4091CXX=$ac_cv_prog_CXX
4092if test -n "$CXX"; then
4093  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4094$as_echo "$CXX" >&6; }
4095else
4096  { $as_echo "$as_me:$LINENO: result: no" >&5
4097$as_echo "no" >&6; }
4098fi
4099
4100
4101    test -n "$CXX" && break
4102  done
4103fi
4104if test -z "$CXX"; then
4105  ac_ct_CXX=$CXX
4106  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4107do
4108  # Extract the first word of "$ac_prog", so it can be a program name with args.
4109set dummy $ac_prog; ac_word=$2
4110{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4111$as_echo_n "checking for $ac_word... " >&6; }
4112if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -n "$ac_ct_CXX"; then
4116  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123  for ac_exec_ext in '' $ac_executable_extensions; do
4124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125    ac_cv_prog_ac_ct_CXX="$ac_prog"
4126    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127    break 2
4128  fi
4129done
4130done
4131IFS=$as_save_IFS
4132
4133fi
4134fi
4135ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4136if test -n "$ac_ct_CXX"; then
4137  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4138$as_echo "$ac_ct_CXX" >&6; }
4139else
4140  { $as_echo "$as_me:$LINENO: result: no" >&5
4141$as_echo "no" >&6; }
4142fi
4143
4144
4145  test -n "$ac_ct_CXX" && break
4146done
4147
4148  if test "x$ac_ct_CXX" = x; then
4149    CXX="g++"
4150  else
4151    case $cross_compiling:$ac_tool_warned in
4152yes:)
4153{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155ac_tool_warned=yes ;;
4156esac
4157    CXX=$ac_ct_CXX
4158  fi
4159fi
4160
4161  fi
4162fi
4163# Provide some information about the compiler.
4164$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4165set X $ac_compile
4166ac_compiler=$2
4167{ (ac_try="$ac_compiler --version >&5"
4168case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173$as_echo "$ac_try_echo") >&5
4174  (eval "$ac_compiler --version >&5") 2>&5
4175  ac_status=$?
4176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }
4178{ (ac_try="$ac_compiler -v >&5"
4179case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4184$as_echo "$ac_try_echo") >&5
4185  (eval "$ac_compiler -v >&5") 2>&5
4186  ac_status=$?
4187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }
4189{ (ac_try="$ac_compiler -V >&5"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4195$as_echo "$ac_try_echo") >&5
4196  (eval "$ac_compiler -V >&5") 2>&5
4197  ac_status=$?
4198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }
4200
4201{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4202$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4204  $as_echo_n "(cached) " >&6
4205else
4206  cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h.  */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h.  */
4212
4213int
4214main ()
4215{
4216#ifndef __GNUC__
4217       choke me
4218#endif
4219
4220  ;
4221  return 0;
4222}
4223_ACEOF
4224rm -f conftest.$ac_objext
4225if { (ac_try="$ac_compile"
4226case "(($ac_try" in
4227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228  *) ac_try_echo=$ac_try;;
4229esac
4230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231$as_echo "$ac_try_echo") >&5
4232  (eval "$ac_compile") 2>conftest.er1
4233  ac_status=$?
4234  grep -v '^ *+' conftest.er1 >conftest.err
4235  rm -f conftest.er1
4236  cat conftest.err >&5
4237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); } && {
4239	 test -z "$ac_cxx_werror_flag" ||
4240	 test ! -s conftest.err
4241       } && test -s conftest.$ac_objext; then
4242  ac_compiler_gnu=yes
4243else
4244  $as_echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247	ac_compiler_gnu=no
4248fi
4249
4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4252
4253fi
4254{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4255$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4256if test $ac_compiler_gnu = yes; then
4257  GXX=yes
4258else
4259  GXX=
4260fi
4261ac_test_CXXFLAGS=${CXXFLAGS+set}
4262ac_save_CXXFLAGS=$CXXFLAGS
4263{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4264$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4265if test "${ac_cv_prog_cxx_g+set}" = set; then
4266  $as_echo_n "(cached) " >&6
4267else
4268  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4269   ac_cxx_werror_flag=yes
4270   ac_cv_prog_cxx_g=no
4271   CXXFLAGS="-g"
4272   cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278
4279int
4280main ()
4281{
4282
4283  ;
4284  return 0;
4285}
4286_ACEOF
4287rm -f conftest.$ac_objext
4288if { (ac_try="$ac_compile"
4289case "(($ac_try" in
4290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291  *) ac_try_echo=$ac_try;;
4292esac
4293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4294$as_echo "$ac_try_echo") >&5
4295  (eval "$ac_compile") 2>conftest.er1
4296  ac_status=$?
4297  grep -v '^ *+' conftest.er1 >conftest.err
4298  rm -f conftest.er1
4299  cat conftest.err >&5
4300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); } && {
4302	 test -z "$ac_cxx_werror_flag" ||
4303	 test ! -s conftest.err
4304       } && test -s conftest.$ac_objext; then
4305  ac_cv_prog_cxx_g=yes
4306else
4307  $as_echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310	CXXFLAGS=""
4311      cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317
4318int
4319main ()
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext
4327if { (ac_try="$ac_compile"
4328case "(($ac_try" in
4329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330  *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333$as_echo "$ac_try_echo") >&5
4334  (eval "$ac_compile") 2>conftest.er1
4335  ac_status=$?
4336  grep -v '^ *+' conftest.er1 >conftest.err
4337  rm -f conftest.er1
4338  cat conftest.err >&5
4339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); } && {
4341	 test -z "$ac_cxx_werror_flag" ||
4342	 test ! -s conftest.err
4343       } && test -s conftest.$ac_objext; then
4344  :
4345else
4346  $as_echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4350	 CXXFLAGS="-g"
4351	 cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h.  */
4353_ACEOF
4354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h.  */
4357
4358int
4359main ()
4360{
4361
4362  ;
4363  return 0;
4364}
4365_ACEOF
4366rm -f conftest.$ac_objext
4367if { (ac_try="$ac_compile"
4368case "(($ac_try" in
4369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370  *) ac_try_echo=$ac_try;;
4371esac
4372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373$as_echo "$ac_try_echo") >&5
4374  (eval "$ac_compile") 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } && {
4381	 test -z "$ac_cxx_werror_flag" ||
4382	 test ! -s conftest.err
4383       } && test -s conftest.$ac_objext; then
4384  ac_cv_prog_cxx_g=yes
4385else
4386  $as_echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389	
4390fi
4391
4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393fi
4394
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396fi
4397
4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4400fi
4401{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4402$as_echo "$ac_cv_prog_cxx_g" >&6; }
4403if test "$ac_test_CXXFLAGS" = set; then
4404  CXXFLAGS=$ac_save_CXXFLAGS
4405elif test $ac_cv_prog_cxx_g = yes; then
4406  if test "$GXX" = yes; then
4407    CXXFLAGS="-g -O2"
4408  else
4409    CXXFLAGS="-g"
4410  fi
4411else
4412  if test "$GXX" = yes; then
4413    CXXFLAGS="-O2"
4414  else
4415    CXXFLAGS=
4416  fi
4417fi
4418ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423
4424depcc="$CXX"  am_compiler_list=
4425
4426{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4427$as_echo_n "checking dependency style of $depcc... " >&6; }
4428if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4429  $as_echo_n "(cached) " >&6
4430else
4431  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4432  # We make a subdir and do the tests there.  Otherwise we can end up
4433  # making bogus files that we don't know about and never remove.  For
4434  # instance it was reported that on HP-UX the gcc test will end up
4435  # making a dummy file named `D' -- because `-MD' means `put the output
4436  # in D'.
4437  mkdir conftest.dir
4438  # Copy depcomp to subdir because otherwise we won't find it if we're
4439  # using a relative directory.
4440  cp "$am_depcomp" conftest.dir
4441  cd conftest.dir
4442  # We will build objects and dependencies in a subdirectory because
4443  # it helps to detect inapplicable dependency modes.  For instance
4444  # both Tru64's cc and ICC support -MD to output dependencies as a
4445  # side effect of compilation, but ICC will put the dependencies in
4446  # the current directory while Tru64 will put them in the object
4447  # directory.
4448  mkdir sub
4449
4450  am_cv_CXX_dependencies_compiler_type=none
4451  if test "$am_compiler_list" = ""; then
4452     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4453  fi
4454  for depmode in $am_compiler_list; do
4455    # Setup a source with many dependencies, because some compilers
4456    # like to wrap large dependency lists on column 80 (with \), and
4457    # we should not choose a depcomp mode which is confused by this.
4458    #
4459    # We need to recreate these files for each test, as the compiler may
4460    # overwrite some of them when testing with obscure command lines.
4461    # This happens at least with the AIX C compiler.
4462    : > sub/conftest.c
4463    for i in 1 2 3 4 5 6; do
4464      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4465      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4466      # Solaris 8's {/usr,}/bin/sh.
4467      touch sub/conftst$i.h
4468    done
4469    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4470
4471    case $depmode in
4472    nosideeffect)
4473      # after this tag, mechanisms are not by side-effect, so they'll
4474      # only be used when explicitly requested
4475      if test "x$enable_dependency_tracking" = xyes; then
4476	continue
4477      else
4478	break
4479      fi
4480      ;;
4481    none) break ;;
4482    esac
4483    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4484    # mode.  It turns out that the SunPro C++ compiler does not properly
4485    # handle `-M -o', and we need to detect this.
4486    if depmode=$depmode \
4487       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4488       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4489       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4490         >/dev/null 2>conftest.err &&
4491       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4492       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4493       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4494       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4495      # icc doesn't choke on unknown options, it will just issue warnings
4496      # or remarks (even with -Werror).  So we grep stderr for any message
4497      # that says an option was ignored or not supported.
4498      # When given -MP, icc 7.0 and 7.1 complain thusly:
4499      #   icc: Command line warning: ignoring option '-M'; no argument required
4500      # The diagnosis changed in icc 8.0:
4501      #   icc: Command line remark: option '-MP' not supported
4502      if (grep 'ignoring option' conftest.err ||
4503          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4504        am_cv_CXX_dependencies_compiler_type=$depmode
4505        break
4506      fi
4507    fi
4508  done
4509
4510  cd ..
4511  rm -rf conftest.dir
4512else
4513  am_cv_CXX_dependencies_compiler_type=none
4514fi
4515
4516fi
4517{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4518$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4519CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4520
4521 if 
4522  test "x$enable_dependency_tracking" != xno \
4523  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4524  am__fastdepCXX_TRUE=
4525  am__fastdepCXX_FALSE='#'
4526else
4527  am__fastdepCXX_TRUE='#'
4528  am__fastdepCXX_FALSE=
4529fi
4530
4531
4532
4533ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4539$as_echo_n "checking how to run the C preprocessor... " >&6; }
4540# On Suns, sometimes $CPP names a directory.
4541if test -n "$CPP" && test -d "$CPP"; then
4542  CPP=
4543fi
4544if test -z "$CPP"; then
4545  if test "${ac_cv_prog_CPP+set}" = set; then
4546  $as_echo_n "(cached) " >&6
4547else
4548      # Double quotes because CPP needs to be expanded
4549    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4550    do
4551      ac_preproc_ok=false
4552for ac_c_preproc_warn_flag in '' yes
4553do
4554  # Use a header file that comes with gcc, so configuring glibc
4555  # with a fresh cross-compiler works.
4556  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557  # <limits.h> exists even on freestanding compilers.
4558  # On the NeXT, cc -E runs the code through the compiler's parser,
4559  # not just through cpp. "Syntax error" is here to catch this case.
4560  cat >conftest.$ac_ext <<_ACEOF
4561/* confdefs.h.  */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h.  */
4566@%:@ifdef __STDC__
4567@%:@ include <limits.h>
4568@%:@else
4569@%:@ include <assert.h>
4570@%:@endif
4571		     Syntax error
4572_ACEOF
4573if { (ac_try="$ac_cpp conftest.$ac_ext"
4574case "(($ac_try" in
4575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576  *) ac_try_echo=$ac_try;;
4577esac
4578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4579$as_echo "$ac_try_echo") >&5
4580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581  ac_status=$?
4582  grep -v '^ *+' conftest.er1 >conftest.err
4583  rm -f conftest.er1
4584  cat conftest.err >&5
4585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); } >/dev/null && {
4587	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588	 test ! -s conftest.err
4589       }; then
4590  :
4591else
4592  $as_echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595  # Broken: fails on valid input.
4596continue
4597fi
4598
4599rm -f conftest.err conftest.$ac_ext
4600
4601  # OK, works on sane cases.  Now check whether nonexistent headers
4602  # can be detected and how.
4603  cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609@%:@include <ac_nonexistent.h>
4610_ACEOF
4611if { (ac_try="$ac_cpp conftest.$ac_ext"
4612case "(($ac_try" in
4613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614  *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617$as_echo "$ac_try_echo") >&5
4618  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619  ac_status=$?
4620  grep -v '^ *+' conftest.er1 >conftest.err
4621  rm -f conftest.er1
4622  cat conftest.err >&5
4623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624  (exit $ac_status); } >/dev/null && {
4625	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4626	 test ! -s conftest.err
4627       }; then
4628  # Broken: success on invalid input.
4629continue
4630else
4631  $as_echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634  # Passes both tests.
4635ac_preproc_ok=:
4636break
4637fi
4638
4639rm -f conftest.err conftest.$ac_ext
4640
4641done
4642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643rm -f conftest.err conftest.$ac_ext
4644if $ac_preproc_ok; then
4645  break
4646fi
4647
4648    done
4649    ac_cv_prog_CPP=$CPP
4650  
4651fi
4652  CPP=$ac_cv_prog_CPP
4653else
4654  ac_cv_prog_CPP=$CPP
4655fi
4656{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4657$as_echo "$CPP" >&6; }
4658ac_preproc_ok=false
4659for ac_c_preproc_warn_flag in '' yes
4660do
4661  # Use a header file that comes with gcc, so configuring glibc
4662  # with a fresh cross-compiler works.
4663  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664  # <limits.h> exists even on freestanding compilers.
4665  # On the NeXT, cc -E runs the code through the compiler's parser,
4666  # not just through cpp. "Syntax error" is here to catch this case.
4667  cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673@%:@ifdef __STDC__
4674@%:@ include <limits.h>
4675@%:@else
4676@%:@ include <assert.h>
4677@%:@endif
4678		     Syntax error
4679_ACEOF
4680if { (ac_try="$ac_cpp conftest.$ac_ext"
4681case "(($ac_try" in
4682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683  *) ac_try_echo=$ac_try;;
4684esac
4685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4686$as_echo "$ac_try_echo") >&5
4687  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688  ac_status=$?
4689  grep -v '^ *+' conftest.er1 >conftest.err
4690  rm -f conftest.er1
4691  cat conftest.err >&5
4692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); } >/dev/null && {
4694	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695	 test ! -s conftest.err
4696       }; then
4697  :
4698else
4699  $as_echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702  # Broken: fails on valid input.
4703continue
4704fi
4705
4706rm -f conftest.err conftest.$ac_ext
4707
4708  # OK, works on sane cases.  Now check whether nonexistent headers
4709  # can be detected and how.
4710  cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716@%:@include <ac_nonexistent.h>
4717_ACEOF
4718if { (ac_try="$ac_cpp conftest.$ac_ext"
4719case "(($ac_try" in
4720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721  *) ac_try_echo=$ac_try;;
4722esac
4723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724$as_echo "$ac_try_echo") >&5
4725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726  ac_status=$?
4727  grep -v '^ *+' conftest.er1 >conftest.err
4728  rm -f conftest.er1
4729  cat conftest.err >&5
4730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); } >/dev/null && {
4732	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733	 test ! -s conftest.err
4734       }; then
4735  # Broken: success on invalid input.
4736continue
4737else
4738  $as_echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741  # Passes both tests.
4742ac_preproc_ok=:
4743break
4744fi
4745
4746rm -f conftest.err conftest.$ac_ext
4747
4748done
4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750rm -f conftest.err conftest.$ac_ext
4751if $ac_preproc_ok; then
4752  :
4753else
4754  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4756{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4757See \`config.log' for more details." >&5
4758$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4759See \`config.log' for more details." >&2;}
4760   { (exit 1); exit 1; }; }; }
4761fi
4762
4763ac_ext=c
4764ac_cpp='$CPP $CPPFLAGS'
4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769
4770{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4771$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4772if test "${ac_cv_path_GREP+set}" = set; then
4773  $as_echo_n "(cached) " >&6
4774else
4775  if test -z "$GREP"; then
4776  ac_path_GREP_found=false
4777  # Loop through the user's path and test for each of PROGNAME-LIST
4778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4780do
4781  IFS=$as_save_IFS
4782  test -z "$as_dir" && as_dir=.
4783  for ac_prog in grep ggrep; do
4784    for ac_exec_ext in '' $ac_executable_extensions; do
4785      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4786      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4787# Check for GNU ac_path_GREP and select it if it is found.
4788  # Check for GNU $ac_path_GREP
4789case `"$ac_path_GREP" --version 2>&1` in
4790*GNU*)
4791  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4792*)
4793  ac_count=0
4794  $as_echo_n 0123456789 >"conftest.in"
4795  while :
4796  do
4797    cat "conftest.in" "conftest.in" >"conftest.tmp"
4798    mv "conftest.tmp" "conftest.in"
4799    cp "conftest.in" "conftest.nl"
4800    $as_echo 'GREP' >> "conftest.nl"
4801    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4802    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4803    ac_count=`expr $ac_count + 1`
4804    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4805      # Best one so far, save it but keep looking for a better one
4806      ac_cv_path_GREP="$ac_path_GREP"
4807      ac_path_GREP_max=$ac_count
4808    fi
4809    # 10*(2^10) chars as input seems more than enough
4810    test $ac_count -gt 10 && break
4811  done
4812  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4813esac
4814
4815      $ac_path_GREP_found && break 3
4816    done
4817  done
4818done
4819IFS=$as_save_IFS
4820  if test -z "$ac_cv_path_GREP"; then
4821    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4822$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4823   { (exit 1); exit 1; }; }
4824  fi
4825else
4826  ac_cv_path_GREP=$GREP
4827fi
4828
4829fi
4830{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4831$as_echo "$ac_cv_path_GREP" >&6; }
4832 GREP="$ac_cv_path_GREP"
4833 
4834
4835{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4836$as_echo_n "checking for egrep... " >&6; }
4837if test "${ac_cv_path_EGREP+set}" = set; then
4838  $as_echo_n "(cached) " >&6
4839else
4840  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4841   then ac_cv_path_EGREP="$GREP -E"
4842   else
4843     if test -z "$EGREP"; then
4844  ac_path_EGREP_found=false
4845  # Loop through the user's path and test for each of PROGNAME-LIST
4846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4848do
4849  IFS=$as_save_IFS
4850  test -z "$as_dir" && as_dir=.
4851  for ac_prog in egrep; do
4852    for ac_exec_ext in '' $ac_executable_extensions; do
4853      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4854      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4855# Check for GNU ac_path_EGREP and select it if it is found.
4856  # Check for GNU $ac_path_EGREP
4857case `"$ac_path_EGREP" --version 2>&1` in
4858*GNU*)
4859  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4860*)
4861  ac_count=0
4862  $as_echo_n 0123456789 >"conftest.in"
4863  while :
4864  do
4865    cat "conftest.in" "conftest.in" >"conftest.tmp"
4866    mv "conftest.tmp" "conftest.in"
4867    cp "conftest.in" "conftest.nl"
4868    $as_echo 'EGREP' >> "conftest.nl"
4869    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4871    ac_count=`expr $ac_count + 1`
4872    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4873      # Best one so far, save it but keep looking for a better one
4874      ac_cv_path_EGREP="$ac_path_EGREP"
4875      ac_path_EGREP_max=$ac_count
4876    fi
4877    # 10*(2^10) chars as input seems more than enough
4878    test $ac_count -gt 10 && break
4879  done
4880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4881esac
4882
4883      $ac_path_EGREP_found && break 3
4884    done
4885  done
4886done
4887IFS=$as_save_IFS
4888  if test -z "$ac_cv_path_EGREP"; then
4889    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4890$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4891   { (exit 1); exit 1; }; }
4892  fi
4893else
4894  ac_cv_path_EGREP=$EGREP
4895fi
4896
4897   fi
4898fi
4899{ $as_echo "$as_me:$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:$LINENO: checking for ANSI C header files" >&5
4905$as_echo_n "checking for ANSI C header files... " >&6; }
4906if test "${ac_cv_header_stdc+set}" = set; then
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#include <stdlib.h>
4916#include <stdarg.h>
4917#include <string.h>
4918#include <float.h>
4919
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935$as_echo "$ac_try_echo") >&5
4936  (eval "$ac_compile") 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } && {
4943	 test -z "$ac_c_werror_flag" ||
4944	 test ! -s conftest.err
4945       } && test -s conftest.$ac_objext; then
4946  ac_cv_header_stdc=yes
4947else
4948  $as_echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951	ac_cv_header_stdc=no
4952fi
4953
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
4956if test $ac_cv_header_stdc = yes; then
4957  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958  cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <string.h>
4965
4966_ACEOF
4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968  $EGREP "memchr" >/dev/null 2>&1; then
4969  :
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f conftest*
4974
4975fi
4976
4977if test $ac_cv_header_stdc = yes; then
4978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4979  cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h.  */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h.  */
4985#include <stdlib.h>
4986
4987_ACEOF
4988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989  $EGREP "free" >/dev/null 2>&1; then
4990  :
4991else
4992  ac_cv_header_stdc=no
4993fi
4994rm -f conftest*
4995
4996fi
4997
4998if test $ac_cv_header_stdc = yes; then
4999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5000  if test "$cross_compiling" = yes; then
5001  :
5002else
5003  cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h.  */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h.  */
5009#include <ctype.h>
5010#include <stdlib.h>
5011#if ((' ' & 0x0FF) == 0x020)
5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014#else
5015# define ISLOWER(c) \
5016		   (('a' <= (c) && (c) <= 'i') \
5017		     || ('j' <= (c) && (c) <= 'r') \
5018		     || ('s' <= (c) && (c) <= 'z'))
5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020#endif
5021
5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023int
5024main ()
5025{
5026  int i;
5027  for (i = 0; i < 256; i++)
5028    if (XOR (islower (i), ISLOWER (i))
5029	|| toupper (i) != TOUPPER (i))
5030      return 2;
5031  return 0;
5032}
5033_ACEOF
5034rm -f conftest$ac_exeext
5035if { (ac_try="$ac_link"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041$as_echo "$ac_try_echo") >&5
5042  (eval "$ac_link") 2>&5
5043  ac_status=$?
5044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5046  { (case "(($ac_try" in
5047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048  *) ac_try_echo=$ac_try;;
5049esac
5050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051$as_echo "$ac_try_echo") >&5
5052  (eval "$ac_try") 2>&5
5053  ac_status=$?
5054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; }; then
5056  :
5057else
5058  $as_echo "$as_me: program exited with status $ac_status" >&5
5059$as_echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062( exit $ac_status )
5063ac_cv_header_stdc=no
5064fi
5065rm -rf conftest.dSYM
5066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067fi
5068
5069
5070fi
5071fi
5072{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073$as_echo "$ac_cv_header_stdc" >&6; }
5074if test $ac_cv_header_stdc = yes; then
5075  
5076cat >>confdefs.h <<\_ACEOF
5077@%:@define STDC_HEADERS 1
5078_ACEOF
5079
5080fi
5081
5082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093		  inttypes.h stdint.h unistd.h
5094do
5095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5097$as_echo_n "checking for $ac_header... " >&6; }
5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107$ac_includes_default
5108
5109@%:@include <$ac_header>
5110_ACEOF
5111rm -f conftest.$ac_objext
5112if { (ac_try="$ac_compile"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118$as_echo "$ac_try_echo") >&5
5119  (eval "$ac_compile") 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } && {
5126	 test -z "$ac_c_werror_flag" ||
5127	 test ! -s conftest.err
5128       } && test -s conftest.$ac_objext; then
5129  eval "$as_ac_Header=yes"
5130else
5131  $as_echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134	eval "$as_ac_Header=no"
5135fi
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139ac_res=`eval 'as_val=${'$as_ac_Header'}
5140		 $as_echo "$as_val"'`
5141	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5142$as_echo "$ac_res" >&6; }
5143as_val=`eval 'as_val=${'$as_ac_Header'}
5144		 $as_echo "$as_val"'`
5145   if test "x$as_val" = x""yes; then
5146  cat >>confdefs.h <<_ACEOF
5147@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148_ACEOF
5149 
5150fi
5151
5152done
5153
5154
5155
5156  if test "${ac_cv_header_minix_config_h+set}" = set; then
5157  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5158$as_echo_n "checking for minix/config.h... " >&6; }
5159if test "${ac_cv_header_minix_config_h+set}" = set; then
5160  $as_echo_n "(cached) " >&6
5161fi
5162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5163$as_echo "$ac_cv_header_minix_config_h" >&6; }
5164else
5165  # Is the header compilable?
5166{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5167$as_echo_n "checking minix/config.h usability... " >&6; }
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174$ac_includes_default
5175@%:@include <minix/config.h>
5176_ACEOF
5177rm -f conftest.$ac_objext
5178if { (ac_try="$ac_compile"
5179case "(($ac_try" in
5180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181  *) ac_try_echo=$ac_try;;
5182esac
5183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184$as_echo "$ac_try_echo") >&5
5185  (eval "$ac_compile") 2>conftest.er1
5186  ac_status=$?
5187  grep -v '^ *+' conftest.er1 >conftest.err
5188  rm -f conftest.er1
5189  cat conftest.err >&5
5190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191  (exit $ac_status); } && {
5192	 test -z "$ac_c_werror_flag" ||
5193	 test ! -s conftest.err
5194       } && test -s conftest.$ac_objext; then
5195  ac_header_compiler=yes
5196else
5197  $as_echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200	ac_header_compiler=no
5201fi
5202
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5205$as_echo "$ac_header_compiler" >&6; }
5206
5207# Is the header present?
5208{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5209$as_echo_n "checking minix/config.h presence... " >&6; }
5210cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h.  */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h.  */
5216@%:@include <minix/config.h>
5217_ACEOF
5218if { (ac_try="$ac_cpp conftest.$ac_ext"
5219case "(($ac_try" in
5220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221  *) ac_try_echo=$ac_try;;
5222esac
5223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224$as_echo "$ac_try_echo") >&5
5225  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } >/dev/null && {
5232	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5233	 test ! -s conftest.err
5234       }; then
5235  ac_header_preproc=yes
5236else
5237  $as_echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240  ac_header_preproc=no
5241fi
5242
5243rm -f conftest.err conftest.$ac_ext
5244{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5245$as_echo "$ac_header_preproc" >&6; }
5246
5247# So?  What about this header?
5248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5249  yes:no: )
5250    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5251$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5252    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5253$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5254    ac_header_preproc=yes
5255    ;;
5256  no:yes:* )
5257    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5258$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5259    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5260$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5261    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5262$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5263    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5264$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5265    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5266$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5267    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5268$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5269    ( cat <<\_ASBOX
5270@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
5271@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
5272@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
5273_ASBOX
5274     ) | sed "s/^/$as_me: WARNING:     /" >&2
5275    ;;
5276esac
5277{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5278$as_echo_n "checking for minix/config.h... " >&6; }
5279if test "${ac_cv_header_minix_config_h+set}" = set; then
5280  $as_echo_n "(cached) " >&6
5281else
5282  ac_cv_header_minix_config_h=$ac_header_preproc
5283fi
5284{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5285$as_echo "$ac_cv_header_minix_config_h" >&6; }
5286
5287fi
5288if test "x$ac_cv_header_minix_config_h" = x""yes; then
5289  MINIX=yes
5290else
5291  MINIX=
5292fi
5293
5294
5295  if test "$MINIX" = yes; then
5296    
5297cat >>confdefs.h <<\_ACEOF
5298@%:@define _POSIX_SOURCE 1
5299_ACEOF
5300
5301    
5302cat >>confdefs.h <<\_ACEOF
5303@%:@define _POSIX_1_SOURCE 2
5304_ACEOF
5305
5306    
5307cat >>confdefs.h <<\_ACEOF
5308@%:@define _MINIX 1
5309_ACEOF
5310
5311  fi
5312
5313  
5314
5315  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5316$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5317if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5318  $as_echo_n "(cached) " >&6
5319else
5320  cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h.  */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h.  */
5326
5327#	  define __EXTENSIONS__ 1
5328	  $ac_includes_default
5329int
5330main ()
5331{
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337rm -f conftest.$ac_objext
5338if { (ac_try="$ac_compile"
5339case "(($ac_try" in
5340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341  *) ac_try_echo=$ac_try;;
5342esac
5343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344$as_echo "$ac_try_echo") >&5
5345  (eval "$ac_compile") 2>conftest.er1
5346  ac_status=$?
5347  grep -v '^ *+' conftest.er1 >conftest.err
5348  rm -f conftest.er1
5349  cat conftest.err >&5
5350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); } && {
5352	 test -z "$ac_c_werror_flag" ||
5353	 test ! -s conftest.err
5354       } && test -s conftest.$ac_objext; then
5355  ac_cv_safe_to_define___extensions__=yes
5356else
5357  $as_echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360	ac_cv_safe_to_define___extensions__=no
5361fi
5362
5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364fi
5365{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5366$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5367  test $ac_cv_safe_to_define___extensions__ = yes &&
5368    cat >>confdefs.h <<\_ACEOF
5369@%:@define __EXTENSIONS__ 1
5370_ACEOF
5371
5372  cat >>confdefs.h <<\_ACEOF
5373@%:@define _ALL_SOURCE 1
5374_ACEOF
5375
5376  cat >>confdefs.h <<\_ACEOF
5377@%:@define _GNU_SOURCE 1
5378_ACEOF
5379
5380  cat >>confdefs.h <<\_ACEOF
5381@%:@define _POSIX_PTHREAD_SEMANTICS 1
5382_ACEOF
5383
5384  cat >>confdefs.h <<\_ACEOF
5385@%:@define _TANDEM_SOURCE 1
5386_ACEOF
5387
5388
5389ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5395$as_echo_n "checking how to run the C preprocessor... " >&6; }
5396# On Suns, sometimes $CPP names a directory.
5397if test -n "$CPP" && test -d "$CPP"; then
5398  CPP=
5399fi
5400if test -z "$CPP"; then
5401  if test "${ac_cv_prog_CPP+set}" = set; then
5402  $as_echo_n "(cached) " >&6
5403else
5404      # Double quotes because CPP needs to be expanded
5405    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5406    do
5407      ac_preproc_ok=false
5408for ac_c_preproc_warn_flag in '' yes
5409do
5410  # Use a header file that comes with gcc, so configuring glibc
5411  # with a fresh cross-compiler works.
5412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5413  # <limits.h> exists even on freestanding compilers.
5414  # On the NeXT, cc -E runs the code through the compiler's parser,
5415  # not just through cpp. "Syntax error" is here to catch this case.
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422@%:@ifdef __STDC__
5423@%:@ include <limits.h>
5424@%:@else
5425@%:@ include <assert.h>
5426@%:@endif
5427		     Syntax error
5428_ACEOF
5429if { (ac_try="$ac_cpp conftest.$ac_ext"
5430case "(($ac_try" in
5431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432  *) ac_try_echo=$ac_try;;
5433esac
5434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435$as_echo "$ac_try_echo") >&5
5436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5437  ac_status=$?
5438  grep -v '^ *+' conftest.er1 >conftest.err
5439  rm -f conftest.er1
5440  cat conftest.err >&5
5441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); } >/dev/null && {
5443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5444	 test ! -s conftest.err
5445       }; then
5446  :
5447else
5448  $as_echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451  # Broken: fails on valid input.
5452continue
5453fi
5454
5455rm -f conftest.err conftest.$ac_ext
5456
5457  # OK, works on sane cases.  Now check whether nonexistent headers
5458  # can be detected and how.
5459  cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465@%:@include <ac_nonexistent.h>
5466_ACEOF
5467if { (ac_try="$ac_cpp conftest.$ac_ext"
5468case "(($ac_try" in
5469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470  *) ac_try_echo=$ac_try;;
5471esac
5472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5473$as_echo "$ac_try_echo") >&5
5474  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } >/dev/null && {
5481	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5482	 test ! -s conftest.err
5483       }; then
5484  # Broken: success on invalid input.
5485continue
5486else
5487  $as_echo "$as_me: failed program was:" >&5
5488sed 's/^/| /' conftest.$ac_ext >&5
5489
5490  # Passes both tests.
5491ac_preproc_ok=:
5492break
5493fi
5494
5495rm -f conftest.err conftest.$ac_ext
5496
5497done
5498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5499rm -f conftest.err conftest.$ac_ext
5500if $ac_preproc_ok; then
5501  break
5502fi
5503
5504    done
5505    ac_cv_prog_CPP=$CPP
5506  
5507fi
5508  CPP=$ac_cv_prog_CPP
5509else
5510  ac_cv_prog_CPP=$CPP
5511fi
5512{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5513$as_echo "$CPP" >&6; }
5514ac_preproc_ok=false
5515for ac_c_preproc_warn_flag in '' yes
5516do
5517  # Use a header file that comes with gcc, so configuring glibc
5518  # with a fresh cross-compiler works.
5519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520  # <limits.h> exists even on freestanding compilers.
5521  # On the NeXT, cc -E runs the code through the compiler's parser,
5522  # not just through cpp. "Syntax error" is here to catch this case.
5523  cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h.  */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h.  */
5529@%:@ifdef __STDC__
5530@%:@ include <limits.h>
5531@%:@else
5532@%:@ include <assert.h>
5533@%:@endif
5534		     Syntax error
5535_ACEOF
5536if { (ac_try="$ac_cpp conftest.$ac_ext"
5537case "(($ac_try" in
5538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539  *) ac_try_echo=$ac_try;;
5540esac
5541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542$as_echo "$ac_try_echo") >&5
5543  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } >/dev/null && {
5550	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5551	 test ! -s conftest.err
5552       }; then
5553  :
5554else
5555  $as_echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558  # Broken: fails on valid input.
5559continue
5560fi
5561
5562rm -f conftest.err conftest.$ac_ext
5563
5564  # OK, works on sane cases.  Now check whether nonexistent headers
5565  # can be detected and how.
5566  cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572@%:@include <ac_nonexistent.h>
5573_ACEOF
5574if { (ac_try="$ac_cpp conftest.$ac_ext"
5575case "(($ac_try" in
5576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577  *) ac_try_echo=$ac_try;;
5578esac
5579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580$as_echo "$ac_try_echo") >&5
5581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } >/dev/null && {
5588	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5589	 test ! -s conftest.err
5590       }; then
5591  # Broken: success on invalid input.
5592continue
5593else
5594  $as_echo "$as_me: failed program was:" >&5
5595sed 's/^/| /' conftest.$ac_ext >&5
5596
5597  # Passes both tests.
5598ac_preproc_ok=:
5599break
5600fi
5601
5602rm -f conftest.err conftest.$ac_ext
5603
5604done
5605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5606rm -f conftest.err conftest.$ac_ext
5607if $ac_preproc_ok; then
5608  :
5609else
5610  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5612{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5613See \`config.log' for more details." >&5
5614$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5615See \`config.log' for more details." >&2;}
5616   { (exit 1); exit 1; }; }; }
5617fi
5618
5619ac_ext=c
5620ac_cpp='$CPP $CPPFLAGS'
5621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624
5625# Find a good install program.  We prefer a C program (faster),
5626# so one script is as good as another.  But avoid the broken or
5627# incompatible versions:
5628# SysV /etc/install, /usr/sbin/install
5629# SunOS /usr/etc/install
5630# IRIX /sbin/install
5631# AIX /bin/install
5632# AmigaOS /C/install, which installs bootblocks on floppy discs
5633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5636# OS/2's system install, which has a completely different semantic
5637# ./install, which can be erroneously created by make from ./install.sh.
5638# Reject install programs that cannot install multiple files.
5639{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5640$as_echo_n "checking for a BSD-compatible install... " >&6; }
5641if test -z "$INSTALL"; then
5642if test "${ac_cv_path_install+set}" = set; then
5643  $as_echo_n "(cached) " >&6
5644else
5645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650  # Account for people who put trailing slashes in PATH elements.
5651case $as_dir/ in
5652  ./ | .// | /cC/* | \
5653  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5654  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5655  /usr/ucb/* ) ;;
5656  *)
5657    # OSF1 and SCO ODT 3.0 have their own names for install.
5658    # Don't use installbsd from OSF since it installs stuff as root
5659    # by default.
5660    for ac_prog in ginstall scoinst install; do
5661      for ac_exec_ext in '' $ac_executable_extensions; do
5662	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5663	  if test $ac_prog = install &&
5664	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5665	    # AIX install.  It has an incompatible calling convention.
5666	    :
5667	  elif test $ac_prog = install &&
5668	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5669	    # program-specific install script used by HP pwplus--don't use.
5670	    :
5671	  else
5672	    rm -rf conftest.one conftest.two conftest.dir
5673	    echo one > conftest.one
5674	    echo two > conftest.two
5675	    mkdir conftest.dir
5676	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5677	      test -s conftest.one && test -s conftest.two &&
5678	      test -s conftest.dir/conftest.one &&
5679	      test -s conftest.dir/conftest.two
5680	    then
5681	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5682	      break 3
5683	    fi
5684	  fi
5685	fi
5686      done
5687    done
5688    ;;
5689esac
5690
5691done
5692IFS=$as_save_IFS
5693
5694rm -rf conftest.one conftest.two conftest.dir
5695
5696fi
5697  if test "${ac_cv_path_install+set}" = set; then
5698    INSTALL=$ac_cv_path_install
5699  else
5700    # As a last resort, use the slow shell script.  Don't cache a
5701    # value for INSTALL within a source directory, because that will
5702    # break other packages using the cache if that directory is
5703    # removed, or if the value is a relative name.
5704    INSTALL=$ac_install_sh
5705  fi
5706fi
5707{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5708$as_echo "$INSTALL" >&6; }
5709
5710# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5711# It thinks the first close brace ends the variable substitution.
5712test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5713
5714test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5715
5716test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5717
5718{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5719$as_echo_n "checking whether ln -s works... " >&6; }
5720LN_S=$as_ln_s
5721if test "$LN_S" = "ln -s"; then
5722  { $as_echo "$as_me:$LINENO: result: yes" >&5
5723$as_echo "yes" >&6; }
5724else
5725  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5726$as_echo "no, using $LN_S" >&6; }
5727fi
5728
5729{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5730$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5731set x ${MAKE-make}
5732ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5733if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5734  $as_echo_n "(cached) " >&6
5735else
5736  cat >conftest.make <<\_ACEOF
5737SHELL = /bin/sh
5738all:
5739	@echo '@@@%%%=$(MAKE)=@@@%%%'
5740_ACEOF
5741# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5742case `${MAKE-make} -f conftest.make 2>/dev/null` in
5743  *@@@%%%=?*=@@@%%%*)
5744    eval ac_cv_prog_make_${ac_make}_set=yes;;
5745  *)
5746    eval ac_cv_prog_make_${ac_make}_set=no;;
5747esac
5748rm -f conftest.make
5749fi
5750if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5751  { $as_echo "$as_me:$LINENO: result: yes" >&5
5752$as_echo "yes" >&6; }
5753  SET_MAKE=
5754else
5755  { $as_echo "$as_me:$LINENO: result: no" >&5
5756$as_echo "no" >&6; }
5757  SET_MAKE="MAKE=${MAKE-make}"
5758fi
5759
5760if test $ac_cv_c_compiler_gnu = yes; then
5761    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5762$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5763if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5764  $as_echo_n "(cached) " >&6
5765else
5766    ac_pattern="Autoconf.*'x'"
5767  cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773#include <sgtty.h>
5774Autoconf TIOCGETP
5775_ACEOF
5776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5777  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5778  ac_cv_prog_gcc_traditional=yes
5779else
5780  ac_cv_prog_gcc_traditional=no
5781fi
5782rm -f conftest*
5783
5784
5785  if test $ac_cv_prog_gcc_traditional = no; then
5786    cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h.  */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h.  */
5792#include <termio.h>
5793Autoconf TCGETA
5794_ACEOF
5795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5796  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5797  ac_cv_prog_gcc_traditional=yes
5798fi
5799rm -f conftest*
5800
5801  fi
5802fi
5803{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5804$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5805  if test $ac_cv_prog_gcc_traditional = yes; then
5806    CC="$CC -traditional"
5807  fi
5808fi
5809
5810
5811if test "x$CC" != xcc; then
5812  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5813$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5814else
5815  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5816$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5817fi
5818set dummy $CC; ac_cc=`$as_echo "$2" |
5819		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5820if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5821  $as_echo_n "(cached) " >&6
5822else
5823  cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h.  */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h.  */
5829
5830int
5831main ()
5832{
5833
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838# Make sure it works both with $CC and with simple cc.
5839# We do the test twice because some compilers refuse to overwrite an
5840# existing .o file with -o, though they will create one.
5841ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5842rm -f conftest2.*
5843if { (case "(($ac_try" in
5844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845  *) ac_try_echo=$ac_try;;
5846esac
5847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5848$as_echo "$ac_try_echo") >&5
5849  (eval "$ac_try") 2>&5
5850  ac_status=$?
5851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } &&
5853   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858$as_echo "$ac_try_echo") >&5
5859  (eval "$ac_try") 2>&5
5860  ac_status=$?
5861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); };
5863then
5864  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5865  if test "x$CC" != xcc; then
5866    # Test first that cc exists at all.
5867    if { ac_try='cc -c conftest.$ac_ext >&5'
5868  { (case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873$as_echo "$ac_try_echo") >&5
5874  (eval "$ac_try") 2>&5
5875  ac_status=$?
5876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); }; }; then
5878      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5879      rm -f conftest2.*
5880      if { (case "(($ac_try" in
5881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882  *) ac_try_echo=$ac_try;;
5883esac
5884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885$as_echo "$ac_try_echo") >&5
5886  (eval "$ac_try") 2>&5
5887  ac_status=$?
5888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); } &&
5890	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892  *) ac_try_echo=$ac_try;;
5893esac
5894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5895$as_echo "$ac_try_echo") >&5
5896  (eval "$ac_try") 2>&5
5897  ac_status=$?
5898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); };
5900      then
5901	# cc works too.
5902	:
5903      else
5904	# cc exists but doesn't like -o.
5905	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5906      fi
5907    fi
5908  fi
5909else
5910  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5911fi
5912rm -f core conftest*
5913
5914fi
5915if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5916  { $as_echo "$as_me:$LINENO: result: yes" >&5
5917$as_echo "yes" >&6; }
5918else
5919  { $as_echo "$as_me:$LINENO: result: no" >&5
5920$as_echo "no" >&6; }
5921  
5922cat >>confdefs.h <<\_ACEOF
5923@%:@define NO_MINUS_C_MINUS_O 1
5924_ACEOF
5925
5926fi
5927
5928# FIXME: we rely on the cache variable name because
5929# there is no other way.
5930set dummy $CC
5931ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5932if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5933   # Losing compiler, so override with the script.
5934   # FIXME: It is wrong to rewrite CC.
5935   # But if we don't then we get into trouble of one sort or another.
5936   # A longer-term fix would be to have automake use am__CC in this case,
5937   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5938   CC="$am_aux_dir/compile $CC"
5939fi
5940
5941
5942
5943# -fstack-protector
5944@%:@ Check whether --enable-stack-protector was given.
5945if test "${enable_stack_protector+set}" = set; then
5946  enableval=$enable_stack_protector; case "${enableval}" in
5947         yes) enable_ssp=yes ;;
5948          no) enable_ssp=no ;;
5949           *) { { $as_echo "$as_me:$LINENO: error: invalid value ${enableval} for --disable-stack-protector" >&5
5950$as_echo "$as_me: error: invalid value ${enableval} for --disable-stack-protector" >&2;}
5951   { (exit 1); exit 1; }; } ;;
5952     esac
5953else
5954  enable_ssp=yes
5955fi
5956
5957
5958if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then
5959    { $as_echo "$as_me:$LINENO: Disabling stack-smashing protection because compiler is not GCC" >&5
5960$as_echo "$as_me: Disabling stack-smashing protection because compiler is not GCC" >&6;}
5961    enable_ssp=no
5962fi
5963
5964if test x"$enable_ssp" = x"yes"; then
5965    # Check for broken ssp in libc: http://www.avahi.org/ticket/105
5966    # libc's brokenness will get in the way regardless of whether -lssp is
5967    # provided, but provide it anyway (otherwise non-libc ssp would wrongly
5968    # break here)
5969
5970    # Get -lssp if it exists
5971    
5972  { $as_echo "$as_me:$LINENO: checking whether libssp exists" >&5
5973$as_echo_n "checking whether libssp exists... " >&6; }
5974if test "${ssp_cv_lib+set}" = set; then
5975  $as_echo_n "(cached) " >&6
5976else
5977  ssp_old_libs="$LIBS"
5978     LIBS="$LIBS -lssp"
5979     cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h.  */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h.  */
5985
5986int
5987main ()
5988{
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext conftest$ac_exeext
5995if { (ac_try="$ac_link"
5996case "(($ac_try" in
5997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998  *) ac_try_echo=$ac_try;;
5999esac
6000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001$as_echo "$ac_try_echo") >&5
6002  (eval "$ac_link") 2>conftest.er1
6003  ac_status=$?
6004  grep -v '^ *+' conftest.er1 >conftest.err
6005  rm -f conftest.er1
6006  cat conftest.err >&5
6007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } && {
6009	 test -z "$ac_c_werror_flag" ||
6010	 test ! -s conftest.err
6011       } && test -s conftest$ac_exeext && {
6012	 test "$cross_compiling" = yes ||
6013	 $as_test_x conftest$ac_exeext
6014       }; then
6015  ssp_cv_lib=yes
6016else
6017  $as_echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020	ssp_cv_lib=no
6021fi
6022
6023rm -rf conftest.dSYM
6024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6025      conftest$ac_exeext conftest.$ac_ext
6026     LIBS="$ssp_old_libs"
6027    
6028fi
6029{ $as_echo "$as_me:$LINENO: result: $ssp_cv_lib" >&5
6030$as_echo "$ssp_cv_lib" >&6; }
6031  if test $ssp_cv_lib = yes; then
6032    LIBS="$LIBS -lssp"
6033  fi
6034
6035
6036    { $as_echo "$as_me:$LINENO: checking whether stack-smashing protection is available" >&5
6037$as_echo_n "checking whether stack-smashing protection is available... " >&6; }
6038    ssp_old_cflags="$CFLAGS"
6039    ssp_old_ldflags="$LDFLAGS"
6040    CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC"
6041    LDFLAGS="$LDFLAGS -Wl,-z,defs"
6042    cat confdefs.h > conftest.c
6043    cat >>conftest.c <<_ACEOF
6044void test_broken_ssp(c)
6045    const char *c;
6046{
6047    char arr[123], *p; /* beware of possible double-braces if copying this */
6048    for (p = arr; *c; ++p) {
6049        *p = *c;
6050        ++c;
6051    }
6052}
6053_ACEOF
6054    rm -f conftest.o
6055
6056    if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then
6057        { $as_echo "$as_me:$LINENO: result: yes" >&5
6058$as_echo "yes" >&6; }
6059        { $as_echo "$as_me:$LINENO: checking whether stack-smashing protection is buggy" >&5
6060$as_echo_n "checking whether stack-smashing protection is buggy... " >&6; }
6061        if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then
6062            { $as_echo "$as_me:$LINENO: result: no" >&5
6063$as_echo "no" >&6; }
6064        else
6065            { $as_echo "$as_me:$LINENO: result: yes" >&5
6066$as_echo "yes" >&6; }
6067            enable_ssp=no
6068        fi
6069    else
6070        { $as_echo "$as_me:$LINENO: result: no" >&5
6071$as_echo "no" >&6; }
6072    fi
6073
6074    rm -f conftest.c conftest.o conftest.so
6075
6076    CFLAGS="$ssp_old_cflags"
6077    LDFLAGS="$ssp_old_ldflags"
6078fi
6079
6080if test x"$enable_ssp" = x"yes"; then
6081    # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice
6082    
6083  
6084  if test "X$CC" != "X"; then
6085    { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
6086$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
6087if test "${ssp_cv_cc+set}" = set; then
6088  $as_echo_n "(cached) " >&6
6089else
6090  ssp_old_cflags="$CFLAGS"
6091       CFLAGS="$CFLAGS -fstack-protector -Werror"
6092       cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h.  */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h.  */
6098
6099int
6100main ()
6101{
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107rm -f conftest.$ac_objext
6108if { (ac_try="$ac_compile"
6109case "(($ac_try" in
6110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111  *) ac_try_echo=$ac_try;;
6112esac
6113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6114$as_echo "$ac_try_echo") >&5
6115  (eval "$ac_compile") 2>conftest.er1
6116  ac_status=$?
6117  grep -v '^ *+' conftest.er1 >conftest.err
6118  rm -f conftest.er1
6119  cat conftest.err >&5
6120  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); } && {
6122	 test -z "$ac_c_werror_flag" ||
6123	 test ! -s conftest.err
6124       } && test -s conftest.$ac_objext; then
6125  ssp_cv_cc=yes
6126else
6127  $as_echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130	ssp_cv_cc=no
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134       CFLAGS="$ssp_old_cflags"
6135      
6136fi
6137{ $as_echo "$as_me:$LINENO: result: $ssp_cv_cc" >&5
6138$as_echo "$ssp_cv_cc" >&6; }
6139    if test $ssp_cv_cc = yes; then
6140      CFLAGS="$CFLAGS -fstack-protector"
6141      
6142cat >>confdefs.h <<\_ACEOF
6143@%:@define ENABLE_SSP_CC 1
6144_ACEOF
6145
6146    fi
6147  fi
6148
6149
6150    ac_ext=cpp
6151ac_cpp='$CXXCPP $CPPFLAGS'
6152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6155
6156    
6157
6158  
6159  if test "X$CXX" != "X"; then
6160    { $as_echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstack-protector" >&5
6161$as_echo_n "checking whether ${CXX} accepts -fstack-protector... " >&6; }
6162if test "${ssp_cv_cxx+set}" = set; then
6163  $as_echo_n "(cached) " >&6
6164else
6165  ssp_old_cxxflags="$CXXFLAGS"
6166       CXXFLAGS="$CXXFLAGS -fstack-protector -Werror"
6167       cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h.  */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h.  */
6173
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182rm -f conftest.$ac_objext
6183if { (ac_try="$ac_compile"
6184case "(($ac_try" in
6185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186  *) ac_try_echo=$ac_try;;
6187esac
6188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189$as_echo "$ac_try_echo") >&5
6190  (eval "$ac_compile") 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } && {
6197	 test -z "$ac_cxx_werror_flag" ||
6198	 test ! -s conftest.err
6199       } && test -s conftest.$ac_objext; then
6200  ssp_cv_cxx=yes
6201else
6202  $as_echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205	ssp_cv_cxx=no
6206fi
6207
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209       CXXFLAGS="$ssp_old_cxxflags"
6210      
6211fi
6212{ $as_echo "$as_me:$LINENO: result: $ssp_cv_cxx" >&5
6213$as_echo "$ssp_cv_cxx" >&6; }
6214    if test $ssp_cv_cxx = yes; then
6215      CXXFLAGS="$CXXFLAGS -fstack-protector"
6216      
6217cat >>confdefs.h <<\_ACEOF
6218@%:@define ENABLE_SSP_CXX 1
6219_ACEOF
6220
6221    fi
6222  fi
6223
6224    ac_ext=c
6225ac_cpp='$CPP $CPPFLAGS'
6226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229
6230    # XXX: Update the enable_ssp value now for output later?
6231fi
6232
6233# libtool stuff
6234case `pwd` in
6235  *\ * | *\	*)
6236    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6237$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6238esac
6239
6240
6241
6242macro_version='2.2.6'
6243macro_revision='1.3012'
6244
6245    
6246    
6247    
6248
6249
6250    
6251    
6252    
6253
6254
6255
6256
6257ltmain="$ac_aux_dir/ltmain.sh"
6258
6259# Make sure we can run config.sub.
6260$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6261  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6262$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6263   { (exit 1); exit 1; }; }
6264
6265{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6266$as_echo_n "checking build system type... " >&6; }
6267if test "${ac_cv_build+set}" = set; then
6268  $as_echo_n "(cached) " >&6
6269else
6270  ac_build_alias=$build_alias
6271test "x$ac_build_alias" = x &&
6272  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6273test "x$ac_build_alias" = x &&
6274  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6275$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6276   { (exit 1); exit 1; }; }
6277ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6278  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6279$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6280   { (exit 1); exit 1; }; }
6281
6282fi
6283{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6284$as_echo "$ac_cv_build" >&6; }
6285case $ac_cv_build in
6286*-*-*) ;;
6287*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6288$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6289   { (exit 1); exit 1; }; };;
6290esac
6291build=$ac_cv_build
6292ac_save_IFS=$IFS; IFS='-'
6293set x $ac_cv_build
6294shift
6295build_cpu=$1
6296build_vendor=$2
6297shift; shift
6298# Remember, the first character of IFS is used to create $*,
6299# except with old shells:
6300build_os=$*
6301IFS=$ac_save_IFS
6302case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6303
6304
6305{ $as_echo "$as_me:$LINENO: checking host system type" >&5
6306$as_echo_n "checking host system type... " >&6; }
6307if test "${ac_cv_host+set}" = set; then
6308  $as_echo_n "(cached) " >&6
6309else
6310  if test "x$host_alias" = x; then
6311  ac_cv_host=$ac_cv_build
6312else
6313  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6314    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6315$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6316   { (exit 1); exit 1; }; }
6317fi
6318
6319fi
6320{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6321$as_echo "$ac_cv_host" >&6; }
6322case $ac_cv_host in
6323*-*-*) ;;
6324*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6325$as_echo "$as_me: error: invalid value of canonical host" >&2;}
6326   { (exit 1); exit 1; }; };;
6327esac
6328host=$ac_cv_host
6329ac_save_IFS=$IFS; IFS='-'
6330set x $ac_cv_host
6331shift
6332host_cpu=$1
6333host_vendor=$2
6334shift; shift
6335# Remember, the first character of IFS is used to create $*,
6336# except with old shells:
6337host_os=$*
6338IFS=$ac_save_IFS
6339case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6340
6341
6342{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6344if test "${ac_cv_path_SED+set}" = set; then
6345  $as_echo_n "(cached) " >&6
6346else
6347            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6348     for ac_i in 1 2 3 4 5 6 7; do
6349       ac_script="$ac_script$as_nl$ac_script"
6350     done
6351     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6352     $as_unset ac_script || ac_script=
6353     if test -z "$SED"; then
6354  ac_path_SED_found=false
6355  # Loop through the user's path and test for each of PROGNAME-LIST
6356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361  for ac_prog in sed gsed; do
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6364      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6365# Check for GNU ac_path_SED and select it if it is found.
6366  # Check for GNU $ac_path_SED
6367case `"$ac_path_SED" --version 2>&1` in
6368*GNU*)
6369  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6370*)
6371  ac_count=0
6372  $as_echo_n 0123456789 >"conftest.in"
6373  while :
6374  do
6375    cat "conftest.in" "conftest.in" >"conftest.tmp"
6376    mv "conftest.tmp" "conftest.in"
6377    cp "conftest.in" "conftest.nl"
6378    $as_echo '' >> "conftest.nl"
6379    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6381    ac_count=`expr $ac_count + 1`
6382    if test $ac_count -gt ${ac_path_SED_max-0}; then
6383      # Best one so far, save it but keep looking for a better one
6384      ac_cv_path_SED="$ac_path_SED"
6385      ac_path_SED_max=$ac_count
6386    fi
6387    # 10*(2^10) chars as input seems more than enough
6388    test $ac_count -gt 10 && break
6389  done
6390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391esac
6392
6393      $ac_path_SED_found && break 3
6394    done
6395  done
6396done
6397IFS=$as_save_IFS
6398  if test -z "$ac_cv_path_SED"; then
6399    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6400$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6401   { (exit 1); exit 1; }; }
6402  fi
6403else
6404  ac_cv_path_SED=$SED
6405fi
6406
6407fi
6408{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6409$as_echo "$ac_cv_path_SED" >&6; }
6410 SED="$ac_cv_path_SED"
6411  rm -f conftest.sed
6412
6413test -z "$SED" && SED=sed
6414Xsed="$SED -e 1s/^X//"
6415
6416    
6417    
6418    
6419
6420
6421    
6422    
6423    
6424
6425
6426{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6427$as_echo_n "checking for fgrep... " >&6; }
6428if test "${ac_cv_path_FGREP+set}" = set; then
6429  $as_echo_n "(cached) " >&6
6430else
6431  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6432   then ac_cv_path_FGREP="$GREP -F"
6433   else
6434     if test -z "$FGREP"; then
6435  ac_path_FGREP_found=false
6436  # Loop through the user's path and test for each of PROGNAME-LIST
6437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442  for ac_prog in fgrep; do
6443    for ac_exec_ext in '' $ac_executable_extensions; do
6444      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6445      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6446# Check for GNU ac_path_FGREP and select it if it is found.
6447  # Check for GNU $ac_path_FGREP
6448case `"$ac_path_FGREP" --version 2>&1` in
6449*GNU*)
6450  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6451*)
6452  ac_count=0
6453  $as_echo_n 0123456789 >"conftest.in"
6454  while :
6455  do
6456    cat "conftest.in" "conftest.in" >"conftest.tmp"
6457    mv "conftest.tmp" "conftest.in"
6458    cp "conftest.in" "conftest.nl"
6459    $as_echo 'FGREP' >> "conftest.nl"
6460    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6461    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6462    ac_count=`expr $ac_count + 1`
6463    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6464      # Best one so far, save it but keep looking for a better one
6465      ac_cv_path_FGREP="$ac_path_FGREP"
6466      ac_path_FGREP_max=$ac_count
6467    fi
6468    # 10*(2^10) chars as input seems more than enough
6469    test $ac_count -gt 10 && break
6470  done
6471  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6472esac
6473
6474      $ac_path_FGREP_found && break 3
6475    done
6476  done
6477done
6478IFS=$as_save_IFS
6479  if test -z "$ac_cv_path_FGREP"; then
6480    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6481$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6482   { (exit 1); exit 1; }; }
6483  fi
6484else
6485  ac_cv_path_FGREP=$FGREP
6486fi
6487
6488   fi
6489fi
6490{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6491$as_echo "$ac_cv_path_FGREP" >&6; }
6492 FGREP="$ac_cv_path_FGREP"
6493 
6494
6495test -z "$GREP" && GREP=grep
6496
6497    
6498    
6499    
6500
6501
6502    
6503    
6504    
6505
6506
6507    
6508    
6509    
6510
6511
6512
6513
6514
6515@%:@ Check whether --with-gnu-ld was given.
6516if test "${with_gnu_ld+set}" = set; then
6517  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6518else
6519  with_gnu_ld=no
6520fi
6521
6522ac_prog=ld
6523if test "$GCC" = yes; then
6524  # Check if gcc -print-prog-name=ld gives a path.
6525  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6526$as_echo_n "checking for ld used by $CC... " >&6; }
6527  case $host in
6528  *-*-mingw*)
6529    # gcc leaves a trailing carriage return which upsets mingw
6530    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6531  *)
6532    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6533  esac
6534  case $ac_prog in
6535    # Accept absolute paths.
6536    [\\/]* | ?:[\\/]*)
6537      re_direlt='/[^/][^/]*/\.\./'
6538      # Canonicalize the pathname of ld
6539      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6540      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6541	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6542      done
6543      test -z "$LD" && LD="$ac_prog"
6544      ;;
6545  "")
6546    # If it fails, then pretend we aren't using GCC.
6547    ac_prog=ld
6548    ;;
6549  *)
6550    # If it is relative, then search for the first ld in PATH.
6551    with_gnu_ld=unknown
6552    ;;
6553  esac
6554elif test "$with_gnu_ld" = yes; then
6555  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6556$as_echo_n "checking for GNU ld... " >&6; }
6557else
6558  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6559$as_echo_n "checking for non-GNU ld... " >&6; }
6560fi
6561if test "${lt_cv_path_LD+set}" = set; then
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -z "$LD"; then
6565  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6566  for ac_dir in $PATH; do
6567    IFS="$lt_save_ifs"
6568    test -z "$ac_dir" && ac_dir=.
6569    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6570      lt_cv_path_LD="$ac_dir/$ac_prog"
6571      # Check to see if the program is GNU ld.  I'd rather use --version,
6572      # but apparently some variants of GNU ld only accept -v.
6573      # Break only if it was the GNU/non-GNU ld that we prefer.
6574      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6575      *GNU* | *'with BFD'*)
6576	test "$with_gnu_ld" != no && break
6577	;;
6578      *)
6579	test "$with_gnu_ld" != yes && break
6580	;;
6581      esac
6582    fi
6583  done
6584  IFS="$lt_save_ifs"
6585else
6586  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6587fi
6588fi
6589
6590LD="$lt_cv_path_LD"
6591if test -n "$LD"; then
6592  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6593$as_echo "$LD" >&6; }
6594else
6595  { $as_echo "$as_me:$LINENO: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6599$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6600   { (exit 1); exit 1; }; }
6601{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6603if test "${lt_cv_prog_gnu_ld+set}" = set; then
6604  $as_echo_n "(cached) " >&6
6605else
6606  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6607case `$LD -v 2>&1 </dev/null` in
6608*GNU* | *'with BFD'*)
6609  lt_cv_prog_gnu_ld=yes
6610  ;;
6611*)
6612  lt_cv_prog_gnu_ld=no
6613  ;;
6614esac
6615fi
6616{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6617$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6618with_gnu_ld=$lt_cv_prog_gnu_ld
6619
6620
6621
6622
6623    
6624    
6625    
6626
6627
6628{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6629$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6630if test "${lt_cv_path_NM+set}" = set; then
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$NM"; then
6634  # Let the user override the test.
6635  lt_cv_path_NM="$NM"
6636else
6637  lt_nm_to_check="${ac_tool_prefix}nm"
6638  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6639    lt_nm_to_check="$lt_nm_to_check nm"
6640  fi
6641  for lt_tmp_nm in $lt_nm_to_check; do
6642    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6643    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6644      IFS="$lt_save_ifs"
6645      test -z "$ac_dir" && ac_dir=.
6646      tmp_nm="$ac_dir/$lt_tmp_nm"
6647      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6648	# Check to see if the nm accepts a BSD-compat flag.
6649	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6650	#   nm: unknown option "B" ignored
6651	# Tru64's nm complains that /dev/null is an invalid object file
6652	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6653	*/dev/null* | *'Invalid file or object type'*)
6654	  lt_cv_path_NM="$tmp_nm -B"
6655	  break
6656	  ;;
6657	*)
6658	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6659	  */dev/null*)
6660	    lt_cv_path_NM="$tmp_nm -p"
6661	    break
6662	    ;;
6663	  *)
6664	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6665	    continue # so that we can try to find one that supports BSD flags
6666	    ;;
6667	  esac
6668	  ;;
6669	esac
6670      fi
6671    done
6672    IFS="$lt_save_ifs"
6673  done
6674  : ${lt_cv_path_NM=no}
6675fi
6676fi
6677{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6678$as_echo "$lt_cv_path_NM" >&6; }
6679if test "$lt_cv_path_NM" != "no"; then
6680  NM="$lt_cv_path_NM"
6681else
6682  # Didn't find any BSD compatible name lister, look for dumpbin.
6683  if test -n "$ac_tool_prefix"; then
6684  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6685  do
6686    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6688{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6691  $as_echo_n "(cached) " >&6
6692else
6693  if test -n "$DUMPBIN"; then
6694  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699  IFS=$as_save_IFS
6700  test -z "$as_dir" && as_dir=.
6701  for ac_exec_ext in '' $ac_executable_extensions; do
6702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6704    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705    break 2
6706  fi
6707done
6708done
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713DUMPBIN=$ac_cv_prog_DUMPBIN
6714if test -n "$DUMPBIN"; then
6715  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6716$as_echo "$DUMPBIN" >&6; }
6717else
6718  { $as_echo "$as_me:$LINENO: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722
6723    test -n "$DUMPBIN" && break
6724  done
6725fi
6726if test -z "$DUMPBIN"; then
6727  ac_ct_DUMPBIN=$DUMPBIN
6728  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6729do
6730  # Extract the first word of "$ac_prog", so it can be a program name with args.
6731set dummy $ac_prog; ac_word=$2
6732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$ac_ct_DUMPBIN"; then
6738  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745  for ac_exec_ext in '' $ac_executable_extensions; do
6746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6748    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6758if test -n "$ac_ct_DUMPBIN"; then
6759  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6760$as_echo "$ac_ct_DUMPBIN" >&6; }
6761else
6762  { $as_echo "$as_me:$LINENO: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766
6767  test -n "$ac_ct_DUMPBIN" && break
6768done
6769
6770  if test "x$ac_ct_DUMPBIN" = x; then
6771    DUMPBIN=":"
6772  else
6773    case $cross_compiling:$ac_tool_warned in
6774yes:)
6775{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777ac_tool_warned=yes ;;
6778esac
6779    DUMPBIN=$ac_ct_DUMPBIN
6780  fi
6781fi
6782
6783  
6784  if test "$DUMPBIN" != ":"; then
6785    NM="$DUMPBIN"
6786  fi
6787fi
6788test -z "$NM" && NM=nm
6789
6790
6791    
6792    
6793    
6794
6795{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6796$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6797if test "${lt_cv_nm_interface+set}" = set; then
6798  $as_echo_n "(cached) " >&6
6799else
6800  lt_cv_nm_interface="BSD nm"
6801  echo "int some_variable = 0;" > conftest.$ac_ext
6802  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
6803  (eval "$ac_compile" 2>conftest.err)
6804  cat conftest.err >&5
6805  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6806  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6807  cat conftest.err >&5
6808  (eval echo "\"\$as_me:__oline__: output\"" >&5)
6809  cat conftest.out >&5
6810  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6811    lt_cv_nm_interface="MS dumpbin"
6812  fi
6813  rm -f conftest*
6814fi
6815{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6816$as_echo "$lt_cv_nm_interface" >&6; }
6817
6818# find the maximum length of command line arguments
6819{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6820$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6821if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6822  $as_echo_n "(cached) " >&6
6823else
6824    i=0
6825  teststring="ABCD"
6826
6827  case $build_os in
6828  msdosdjgpp*)
6829    # On DJGPP, this test can blow up pretty badly due to problems in libc
6830    # (any single argument exceeding 2000 bytes causes a buffer overrun
6831    # during glob expansion).  Even if it were fixed, the result of this
6832    # check would be larger than it should be.
6833    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6834    ;;
6835
6836  gnu*)
6837    # Under GNU Hurd, this test is not required because there is
6838    # no limit to the length of command line arguments.
6839    # Libtool will interpret -1 as no limit whatsoever
6840    lt_cv_sys_max_cmd_len=-1;
6841    ;;
6842
6843  cygwin* | mingw* | cegcc*)
6844    # On Win9x/ME, this test blows up -- it succeeds, but takes
6845    # about 5 minutes as the teststring grows exponentially.
6846    # Worse, since 9x/ME are not pre-emptively multitasking,
6847    # you end up with a "frozen" computer, even though with patience
6848    # the test eventually succeeds (with a max line length of 256k).
6849    # Instead, let's just punt: use the minimum linelength reported by
6850    # all of the supported platforms: 8192 (on NT/2K/XP).
6851    lt_cv_sys_max_cmd_len=8192;
6852    ;;
6853
6854  amigaos*)
6855    # On AmigaOS with pdksh, this test takes hours, literally.
6856    # So we just punt and use a minimum line length of 8192.
6857    lt_cv_sys_max_cmd_len=8192;
6858    ;;
6859
6860  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6861    # This has been around since 386BSD, at least.  Likely further.
6862    if test -x /sbin/sysctl; then
6863      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6864    elif test -x /usr/sbin/sysctl; then
6865      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6866    else
6867      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6868    fi
6869    # And add a safety zone
6870    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6871    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6872    ;;
6873
6874  interix*)
6875    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6876    lt_cv_sys_max_cmd_len=196608
6877    ;;
6878
6879  osf*)
6880    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6881    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6882    # nice to cause kernel panics so lets avoid the loop below.
6883    # First set a reasonable default.
6884    lt_cv_sys_max_cmd_len=16384
6885    #
6886    if test -x /sbin/sysconfig; then
6887      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6888        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6889      esac
6890    fi
6891    ;;
6892  sco3.2v5*)
6893    lt_cv_sys_max_cmd_len=102400
6894    ;;
6895  sysv5* | sco5v6* | sysv4.2uw2*)
6896    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6897    if test -n "$kargmax"; then
6898      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6899    else
6900      lt_cv_sys_max_cmd_len=32768
6901    fi
6902    ;;
6903  *)
6904    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6905    if test -n "$lt_cv_sys_max_cmd_len"; then
6906      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6907      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6908    else
6909      # Make teststring a little bigger before we do anything with it.
6910      # a 1K string should be a reasonable start.
6911      for i in 1 2 3 4 5 6 7 8 ; do
6912        teststring=$teststring$teststring
6913      done
6914      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6915      # If test is not a shell built-in, we'll probably end up computing a
6916      # maximum length that is only half of the actual maximum length, but
6917      # we can't tell.
6918      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6919	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6920	      test $i != 17 # 1/2 MB should be enough
6921      do
6922        i=`expr $i + 1`
6923        teststring=$teststring$teststring
6924      done
6925      # Only check the string length outside the loop.
6926      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6927      teststring=
6928      # Add a significant safety factor because C++ compilers can tack on
6929      # massive amounts of additional arguments before passing them to the
6930      # linker.  It appears as though 1/2 is a usable value.
6931      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6932    fi
6933    ;;
6934  esac
6935
6936fi
6937
6938if test -n $lt_cv_sys_max_cmd_len ; then
6939  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6940$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6941else
6942  { $as_echo "$as_me:$LINENO: result: none" >&5
6943$as_echo "none" >&6; }
6944fi
6945max_cmd_len=$lt_cv_sys_max_cmd_len
6946
6947    
6948    
6949    
6950
6951
6952: ${CP="cp -f"}
6953: ${MV="mv -f"}
6954: ${RM="rm -f"}
6955
6956{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6957$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6958# Try some XSI features
6959xsi_shell=no
6960( _lt_dummy="a/b/c"
6961  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6962      = c,a/b,, \
6963    && eval 'test $(( 1 + 1 )) -eq 2 \
6964    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6965  && xsi_shell=yes
6966{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6967$as_echo "$xsi_shell" >&6; }
6968
6969
6970{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6971$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6972lt_shell_append=no
6973( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6974    >/dev/null 2>&1 \
6975  && lt_shell_append=yes
6976{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6977$as_echo "$lt_shell_append" >&6; }
6978
6979
6980if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6981  lt_unset=unset
6982else
6983  lt_unset=false
6984fi
6985
6986    
6987    
6988    
6989
6990# test EBCDIC or ASCII
6991case `echo X|tr X '\101'` in
6992 A) # ASCII based system
6993    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6994  lt_SP2NL='tr \040 \012'
6995  lt_NL2SP='tr \015\012 \040\040'
6996  ;;
6997 *) # EBCDIC based system
6998  lt_SP2NL='tr \100 \n'
6999  lt_NL2SP='tr \r\n \100\100'
7000  ;;
7001esac
7002
7003    
7004    
7005    
7006
7007    
7008    
7009    
7010
7011{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7012$as_echo_n "checking for $LD option to reload object files... " >&6; }
7013if test "${lt_cv_ld_reload_flag+set}" = set; then
7014  $as_echo_n "(cached) " >&6
7015else
7016  lt_cv_ld_reload_flag='-r'
7017fi
7018{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7019$as_echo "$lt_cv_ld_reload_flag" >&6; }
7020reload_flag=$lt_cv_ld_reload_flag
7021case $reload_flag in
7022"" | " "*) ;;
7023*) reload_flag=" $reload_flag" ;;
7024esac
7025reload_cmds='$LD$reload_flag -o $output$reload_objs'
7026case $host_os in
7027  darwin*)
7028    if test "$GCC" = yes; then
7029      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7030    else
7031      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7032    fi
7033    ;;
7034esac
7035
7036    
7037    
7038    
7039
7040    
7041    
7042    
7043
7044if test -n "$ac_tool_prefix"; then
7045  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7046set dummy ${ac_tool_prefix}objdump; ac_word=$2
7047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7050  $as_echo_n "(cached) " >&6
7051else
7052  if test -n "$OBJDUMP"; then
7053  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060  for ac_exec_ext in '' $ac_executable_extensions; do
7061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7063    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072OBJDUMP=$ac_cv_prog_OBJDUMP
7073if test -n "$OBJDUMP"; then
7074  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7075$as_echo "$OBJDUMP" >&6; }
7076else
7077  { $as_echo "$as_me:$LINENO: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081
7082fi
7083if test -z "$ac_cv_prog_OBJDUMP"; then
7084  ac_ct_OBJDUMP=$OBJDUMP
7085  # Extract the first word of "objdump", so it can be a program name with args.
7086set dummy objdump; ac_word=$2
7087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7090  $as_echo_n "(cached) " >&6
7091else
7092  if test -n "$ac_ct_OBJDUMP"; then
7093  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100  for ac_exec_ext in '' $ac_executable_extensions; do
7101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7113if test -n "$ac_ct_OBJDUMP"; then
7114  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7115$as_echo "$ac_ct_OBJDUMP" >&6; }
7116else
7117  { $as_echo "$as_me:$LINENO: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121  if test "x$ac_ct_OBJDUMP" = x; then
7122    OBJDUMP="false"
7123  else
7124    case $cross_compiling:$ac_tool_warned in
7125yes:)
7126{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128ac_tool_warned=yes ;;
7129esac
7130    OBJDUMP=$ac_ct_OBJDUMP
7131  fi
7132else
7133  OBJDUMP="$ac_cv_prog_OBJDUMP"
7134fi
7135
7136test -z "$OBJDUMP" && OBJDUMP=objdump
7137
7138    
7139    
7140    
7141
7142
7143
7144
7145
7146{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7147$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7148if test "${lt_cv_deplibs_check_method+set}" = set; then
7149  $as_echo_n "(cached) " >&6
7150else
7151  lt_cv_file_magic_cmd='$MAGIC_CMD'
7152lt_cv_file_magic_test_file=
7153lt_cv_deplibs_check_method='unknown'
7154# Need to set the preceding variable on all platforms that support
7155# interlibrary dependencies.
7156# 'none' -- dependencies not supported.
7157# `unknown' -- same as none, but documents that we really don't know.
7158# 'pass_all' -- all dependencies passed with no checks.
7159# 'test_compile' -- check by making test program.
7160# 'file_magic [[regex]]' -- check by looking for files in library path
7161# which responds to the $file_magic_cmd with a given extended regex.
7162# If you have `file' or equivalent on your system and you're not sure
7163# whether `pass_all' will *always* work, you probably want this one.
7164
7165case $host_os in
7166aix[4-9]*)
7167  lt_cv_deplibs_check_method=pass_all
7168  ;;
7169
7170beos*)
7171  lt_cv_deplibs_check_method=pass_all
7172  ;;
7173
7174bsdi[45]*)
7175  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7176  lt_cv_file_magic_cmd='/usr/bin/file -L'
7177  lt_cv_file_magic_test_file=/shlib/libc.so
7178  ;;
7179
7180cygwin*)
7181  # func_win32_libid is a shell function defined in ltmain.sh
7182  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7183  lt_cv_file_magic_cmd='func_win32_libid'
7184  ;;
7185
7186mingw* | pw32*)
7187  # Base MSYS/MinGW do not provide the 'file' command needed by
7188  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7189  # unless we find 'file', for example because we are cross-compiling.
7190  if ( file / ) >/dev/null 2>&1; then
7191    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7192    lt_cv_file_magic_cmd='func_win32_libid'
7193  else
7194    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7195    lt_cv_file_magic_cmd='$OBJDUMP -f'
7196  fi
7197  ;;
7198
7199cegcc)
7200  # use the weaker test based on 'objdump'. See mingw*.
7201  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7202  lt_cv_file_magic_cmd='$OBJDUMP -f'
7203  ;;
7204
7205darwin* | rhapsody*)
7206  lt_cv_deplibs_check_method=pass_all
7207  ;;
7208
7209freebsd* | dragonfly*)
7210  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7211    case $host_cpu in
7212    i*86 )
7213      # Not sure whether the presence of OpenBSD here was a mistake.
7214      # Let's accept both of them until this is cleared up.
7215      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7216      lt_cv_file_magic_cmd=/usr/bin/file
7217      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7218      ;;
7219    esac
7220  else
7221    lt_cv_deplibs_check_method=pass_all
7222  fi
7223  ;;
7224
7225gnu*)
7226  lt_cv_deplibs_check_method=pass_all
7227  ;;
7228
7229hpux10.20* | hpux11*)
7230  lt_cv_file_magic_cmd=/usr/bin/file
7231  case $host_cpu in
7232  ia64*)
7233    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7234    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7235    ;;
7236  hppa*64*)
7237    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]'
7238    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7239    ;;
7240  *)
7241    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7242    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7243    ;;
7244  esac
7245  ;;
7246
7247interix[3-9]*)
7248  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7249  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7250  ;;
7251
7252irix5* | irix6* | nonstopux*)
7253  case $LD in
7254  *-32|*"-32 ") libmagic=32-bit;;
7255  *-n32|*"-n32 ") libmagic=N32;;
7256  *-64|*"-64 ") libmagic=64-bit;;
7257  *) libmagic=never-match;;
7258  esac
7259  lt_cv_deplibs_check_method=pass_all
7260  ;;
7261
7262# This must be Linux ELF.
7263linux* | k*bsd*-gnu)
7264  lt_cv_deplibs_check_method=pass_all
7265  ;;
7266
7267netbsd*)
7268  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7269    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7270  else
7271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7272  fi
7273  ;;
7274
7275newos6*)
7276  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7277  lt_cv_file_magic_cmd=/usr/bin/file
7278  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7279  ;;
7280
7281*nto* | *qnx*)
7282  lt_cv_deplibs_check_method=pass_all
7283  ;;
7284
7285openbsd*)
7286  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7287    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7288  else
7289    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7290  fi
7291  ;;
7292
7293osf3* | osf4* | osf5*)
7294  lt_cv_deplibs_check_method=pass_all
7295  ;;
7296
7297rdos*)
7298  lt_cv_deplibs_check_method=pass_all
7299  ;;
7300
7301solaris*)
7302  lt_cv_deplibs_check_method=pass_all
7303  ;;
7304
7305sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7306  lt_cv_deplibs_check_method=pass_all
7307  ;;
7308
7309sysv4 | sysv4.3*)
7310  case $host_vendor in
7311  motorola)
7312    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]'
7313    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7314    ;;
7315  ncr)
7316    lt_cv_deplibs_check_method=pass_all
7317    ;;
7318  sequent)
7319    lt_cv_file_magic_cmd='/bin/file'
7320    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7321    ;;
7322  sni)
7323    lt_cv_file_magic_cmd='/bin/file'
7324    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7325    lt_cv_file_magic_test_file=/lib/libc.so
7326    ;;
7327  siemens)
7328    lt_cv_deplibs_check_method=pass_all
7329    ;;
7330  pc)
7331    lt_cv_deplibs_check_method=pass_all
7332    ;;
7333  esac
7334  ;;
7335
7336tpf*)
7337  lt_cv_deplibs_check_method=pass_all
7338  ;;
7339esac
7340
7341fi
7342{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7343$as_echo "$lt_cv_deplibs_check_method" >&6; }
7344file_magic_cmd=$lt_cv_file_magic_cmd
7345deplibs_check_method=$lt_cv_deplibs_check_method
7346test -z "$deplibs_check_method" && deplibs_check_method=unknown
7347
7348
7349    
7350    
7351    
7352
7353
7354    
7355    
7356    
7357
7358
7359if test -n "$ac_tool_prefix"; then
7360  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7361set dummy ${ac_tool_prefix}ar; ac_word=$2
7362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7363$as_echo_n "checking for $ac_word... " >&6; }
7364if test "${ac_cv_prog_AR+set}" = set; then
7365  $as_echo_n "(cached) " >&6
7366else
7367  if test -n "$AR"; then
7368  ac_cv_prog_AR="$AR" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375  for ac_exec_ext in '' $ac_executable_extensions; do
7376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377    ac_cv_prog_AR="${ac_tool_prefix}ar"
7378    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382done
7383IFS=$as_save_IFS
7384
7385fi
7386fi
7387AR=$ac_cv_prog_AR
7388if test -n "$AR"; then
7389  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7390$as_echo "$AR" >&6; }
7391else
7392  { $as_echo "$as_me:$LINENO: result: no" >&5
7393$as_echo "no" >&6; }
7394fi
7395
7396
7397fi
7398if test -z "$ac_cv_prog_AR"; then
7399  ac_ct_AR=$AR
7400  # Extract the first word of "ar", so it can be a program name with args.
7401set dummy ar; ac_word=$2
7402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7403$as_echo_n "checking for $ac_word... " >&6; }
7404if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7405  $as_echo_n "(cached) " >&6
7406else
7407  if test -n "$ac_ct_AR"; then
7408  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415  for ac_exec_ext in '' $ac_executable_extensions; do
7416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417    ac_cv_prog_ac_ct_AR="ar"
7418    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419    break 2
7420  fi
7421done
7422done
7423IFS=$as_save_IFS
7424
7425fi
7426fi
7427ac_ct_AR=$ac_cv_prog_ac_ct_AR
7428if test -n "$ac_ct_AR"; then
7429  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7430$as_echo "$ac_ct_AR" >&6; }
7431else
7432  { $as_echo "$as_me:$LINENO: result: no" >&5
7433$as_echo "no" >&6; }
7434fi
7435
7436  if test "x$ac_ct_AR" = x; then
7437    AR="false"
7438  else
7439    case $cross_compiling:$ac_tool_warned in
7440yes:)
7441{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443ac_tool_warned=yes ;;
7444esac
7445    AR=$ac_ct_AR
7446  fi
7447else
7448  AR="$ac_cv_prog_AR"
7449fi
7450
7451test -z "$AR" && AR=ar
7452test -z "$AR_FLAGS" && AR_FLAGS=cru
7453
7454    
7455    
7456    
7457
7458
7459    
7460    
7461    
7462
7463
7464if test -n "$ac_tool_prefix"; then
7465  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}strip; ac_word=$2
7467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
7469if test "${ac_cv_prog_STRIP+set}" = set; then
7470  $as_echo_n "(cached) " >&6
7471else
7472  if test -n "$STRIP"; then
7473  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478  IFS=$as_save_IFS
7479  test -z "$as_dir" && as_dir=.
7480  for ac_exec_ext in '' $ac_executable_extensions; do
7481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7483    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484    break 2
7485  fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490fi
7491fi
7492STRIP=$ac_cv_prog_STRIP
7493if test -n "$STRIP"; then
7494  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7495$as_echo "$STRIP" >&6; }
7496else
7497  { $as_echo "$as_me:$LINENO: result: no" >&5
7498$as_echo "no" >&6; }
7499fi
7500
7501
7502fi
7503if test -z "$ac_cv_prog_STRIP"; then
7504  ac_ct_STRIP=$STRIP
7505  # Extract the first word of "strip", so it can be a program name with args.
7506set dummy strip; ac_word=$2
7507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7510  $as_echo_n "(cached) " >&6
7511else
7512  if test -n "$ac_ct_STRIP"; then
7513  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518  IFS=$as_save_IFS
7519  test -z "$as_dir" && as_dir=.
7520  for ac_exec_ext in '' $ac_executable_extensions; do
7521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522    ac_cv_prog_ac_ct_STRIP="strip"
7523    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524    break 2
7525  fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530fi
7531fi
7532ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7533if test -n "$ac_ct_STRIP"; then
7534  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7535$as_echo "$ac_ct_STRIP" >&6; }
7536else
7537  { $as_echo "$as_me:$LINENO: result: no" >&5
7538$as_echo "no" >&6; }
7539fi
7540
7541  if test "x$ac_ct_STRIP" = x; then
7542    STRIP=":"
7543  else
7544    case $cross_compiling:$ac_tool_warned in
7545yes:)
7546{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548ac_tool_warned=yes ;;
7549esac
7550    STRIP=$ac_ct_STRIP
7551  fi
7552else
7553  STRIP="$ac_cv_prog_STRIP"
7554fi
7555
7556test -z "$STRIP" && STRIP=:
7557
7558    
7559    
7560    
7561
7562
7563if test -n "$ac_tool_prefix"; then
7564  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7565set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7567$as_echo_n "checking for $ac_word... " >&6; }
7568if test "${ac_cv_prog_RANLIB+set}" = set; then
7569  $as_echo_n "(cached) " >&6
7570else
7571  if test -n "$RANLIB"; then
7572  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7573else
7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575for as_dir in $PATH
7576do
7577  IFS=$as_save_IFS
7578  test -z "$as_dir" && as_dir=.
7579  for ac_exec_ext in '' $ac_executable_extensions; do
7580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7582    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583    break 2
7584  fi
7585done
7586done
7587IFS=$as_save_IFS
7588
7589fi
7590fi
7591RANLIB=$ac_cv_prog_RANLIB
7592if test -n "$RANLIB"; then
7593  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7594$as_echo "$RANLIB" >&6; }
7595else
7596  { $as_echo "$as_me:$LINENO: result: no" >&5
7597$as_echo "no" >&6; }
7598fi
7599
7600
7601fi
7602if test -z "$ac_cv_prog_RANLIB"; then
7603  ac_ct_RANLIB=$RANLIB
7604  # Extract the first word of "ranlib", so it can be a program name with args.
7605set dummy ranlib; ac_word=$2
7606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7609  $as_echo_n "(cached) " >&6
7610else
7611  if test -n "$ac_ct_RANLIB"; then
7612  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617  IFS=$as_save_IFS
7618  test -z "$as_dir" && as_dir=.
7619  for ac_exec_ext in '' $ac_executable_extensions; do
7620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621    ac_cv_prog_ac_ct_RANLIB="ranlib"
7622    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623    break 2
7624  fi
7625done
7626done
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7631ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7632if test -n "$ac_ct_RANLIB"; then
7633  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7634$as_echo "$ac_ct_RANLIB" >&6; }
7635else
7636  { $as_echo "$as_me:$LINENO: result: no" >&5
7637$as_echo "no" >&6; }
7638fi
7639
7640  if test "x$ac_ct_RANLIB" = x; then
7641    RANLIB=":"
7642  else
7643    case $cross_compiling:$ac_tool_warned in
7644yes:)
7645{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647ac_tool_warned=yes ;;
7648esac
7649    RANLIB=$ac_ct_RANLIB
7650  fi
7651else
7652  RANLIB="$ac_cv_prog_RANLIB"
7653fi
7654
7655test -z "$RANLIB" && RANLIB=:
7656
7657    
7658    
7659    
7660
7661
7662# Determine commands to create old-style static archives.
7663old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7664old_postinstall_cmds='chmod 644 $oldlib'
7665old_postuninstall_cmds=
7666
7667if test -n "$RANLIB"; then
7668  case $host_os in
7669  openbsd*)
7670    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7671    ;;
7672  *)
7673    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7674    ;;
7675  esac
7676  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7677fi
7678
7679    
7680    
7681    
7682
7683
7684    
7685    
7686    
7687
7688
7689    
7690    
7691    
7692
7693
7694
7695
7696    
7697    
7698    
7699
7700    
7701    
7702    
7703
7704    
7705    
7706    
7707
7708    
7709    
7710    
7711
7712# If no C compiler was specified, use CC.
7713LTCC=${LTCC-"$CC"}
7714
7715# If no C compiler flags were specified, use CFLAGS.
7716LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7717
7718# Allow CC to be a program name with arguments.
7719compiler=$CC
7720
7721
7722# Check for command to grab the raw symbol name followed by C symbol from nm.
7723{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7724$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7725if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7726  $as_echo_n "(cached) " >&6
7727else
7728  
7729# These are sane defaults that work on at least a few old systems.
7730# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7731
7732# Character class describing NM global symbol codes.
7733symcode='[BCDEGRST]'
7734
7735# Regexp to match symbols that can be accessed directly from C.
7736sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7737
7738# Define system-specific variables.
7739case $host_os in
7740aix*)
7741  symcode='[BCDT]'
7742  ;;
7743cygwin* | mingw* | pw32* | cegcc*)
7744  symcode='[ABCDGISTW]'
7745  ;;
7746hpux*)
7747  if test "$host_cpu" = ia64; then
7748    symcode='[ABCDEGRST]'
7749  fi
7750  ;;
7751irix* | nonstopux*)
7752  symcode='[BCDEGRST]'
7753  ;;
7754osf*)
7755  symcode='[BCDEGQRST]'
7756  ;;
7757solaris*)
7758  symcode='[BDRT]'
7759  ;;
7760sco3.2v5*)
7761  symcode='[DT]'
7762  ;;
7763sysv4.2uw2*)
7764  symcode='[DT]'
7765  ;;
7766sysv5* | sco5v6* | unixware* | OpenUNIX*)
7767  symcode='[ABDT]'
7768  ;;
7769sysv4)
7770  symcode='[DFNSTU]'
7771  ;;
7772esac
7773
7774# If we're using GNU nm, then use its standard symbol codes.
7775case `$NM -V 2>&1` in
7776*GNU* | *'with BFD'*)
7777  symcode='[ABCDGIRSTW]' ;;
7778esac
7779
7780# Transform an extracted symbol line into a proper C declaration.
7781# Some systems (esp. on ia64) link data and code symbols differently,
7782# so use this general approach.
7783lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7784
7785# Transform an extracted symbol line into symbol name and symbol address
7786lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7787lt_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'"
7788
7789# Handle CRLF in mingw tool chain
7790opt_cr=
7791case $build_os in
7792mingw*)
7793  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7794  ;;
7795esac
7796
7797# Try without a prefix underscore, then with it.
7798for ac_symprfx in "" "_"; do
7799
7800  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7801  symxfrm="\\1 $ac_symprfx\\2 \\2"
7802
7803  # Write the raw and C identifiers.
7804  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7805    # Fake it for dumpbin and say T for any non-static function
7806    # and D for any global variable.
7807    # Also find C++ and __fastcall symbols from MSVC++,
7808    # which start with @ or ?.
7809    lt_cv_sys_global_symbol_pipe="$AWK '"\
7810"     {last_section=section; section=\$ 3};"\
7811"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7812"     \$ 0!~/External *\|/{next};"\
7813"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7814"     {if(hide[section]) next};"\
7815"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7816"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7817"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7818"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7819"     ' prfx=^$ac_symprfx"
7820  else
7821    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7822  fi
7823
7824  # Check to see that the pipe works correctly.
7825  pipe_works=no
7826
7827  rm -f conftest*
7828  cat > conftest.$ac_ext <<_LT_EOF
7829#ifdef __cplusplus
7830extern "C" {
7831#endif
7832char nm_test_var;
7833void nm_test_func(void);
7834void nm_test_func(void){}
7835#ifdef __cplusplus
7836}
7837#endif
7838int main(){nm_test_var='a';nm_test_func();return(0);}
7839_LT_EOF
7840
7841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7842  (eval $ac_compile) 2>&5
7843  ac_status=$?
7844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845  (exit $ac_status); }; then
7846    # Now try to grab the symbols.
7847    nlist=conftest.nm
7848    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7849  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7850  ac_status=$?
7851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852  (exit $ac_status); } && test -s "$nlist"; then
7853      # Try sorting and uniquifying the output.
7854      if sort "$nlist" | uniq > "$nlist"T; then
7855	mv -f "$nlist"T "$nlist"
7856      else
7857	rm -f "$nlist"T
7858      fi
7859
7860      # Make sure that we snagged all the symbols we need.
7861      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7862	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7863	  cat <<_LT_EOF > conftest.$ac_ext
7864#ifdef __cplusplus
7865extern "C" {
7866#endif
7867
7868_LT_EOF
7869	  # Now generate the symbol file.
7870	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7871
7872	  cat <<_LT_EOF >> conftest.$ac_ext
7873
7874/* The mapping between symbol names and symbols.  */
7875const struct {
7876  const char *name;
7877  void       *address;
7878}
7879lt__PROGRAM__LTX_preloaded_symbols[] =
7880{
7881  { "@PROGRAM@", (void *) 0 },
7882_LT_EOF
7883	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7884	  cat <<\_LT_EOF >> conftest.$ac_ext
7885  {0, (void *) 0}
7886};
7887
7888/* This works around a problem in FreeBSD linker */
7889#ifdef FREEBSD_WORKAROUND
7890static const void *lt_preloaded_setup() {
7891  return lt__PROGRAM__LTX_preloaded_symbols;
7892}
7893#endif
7894
7895#ifdef __cplusplus
7896}
7897#endif
7898_LT_EOF
7899	  # Now try linking the two files.
7900	  mv conftest.$ac_objext conftstm.$ac_objext
7901	  lt_save_LIBS="$LIBS"
7902	  lt_save_CFLAGS="$CFLAGS"
7903	  LIBS="conftstm.$ac_objext"
7904	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7905	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7906  (eval $ac_link) 2>&5
7907  ac_status=$?
7908  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7910	    pipe_works=yes
7911	  fi
7912	  LIBS="$lt_save_LIBS"
7913	  CFLAGS="$lt_save_CFLAGS"
7914	else
7915	  echo "cannot find nm_test_func in $nlist" >&5
7916	fi
7917      else
7918	echo "cannot find nm_test_var in $nlist" >&5
7919      fi
7920    else
7921      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7922    fi
7923  else
7924    echo "$progname: failed program was:" >&5
7925    cat conftest.$ac_ext >&5
7926  fi
7927  rm -rf conftest* conftst*
7928
7929  # Do not use the global_symbol_pipe unless it works.
7930  if test "$pipe_works" = yes; then
7931    break
7932  else
7933    lt_cv_sys_global_symbol_pipe=
7934  fi
7935done
7936
7937fi
7938
7939if test -z "$lt_cv_sys_global_symbol_pipe"; then
7940  lt_cv_sys_global_symbol_to_cdecl=
7941fi
7942if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7943  { $as_echo "$as_me:$LINENO: result: failed" >&5
7944$as_echo "failed" >&6; }
7945else
7946  { $as_echo "$as_me:$LINENO: result: ok" >&5
7947$as_echo "ok" >&6; }
7948fi
7949
7950
7951    
7952    
7953    
7954
7955
7956    
7957    
7958    
7959
7960
7961    
7962    
7963    
7964
7965
7966    
7967    
7968    
7969
7970
7971@%:@ Check whether --enable-libtool-lock was given.
7972if test "${enable_libtool_lock+set}" = set; then
7973  enableval=$enable_libtool_lock; 
7974fi
7975
7976test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7977
7978# Some flags need to be propagated to the compiler or linker for good
7979# libtool support.
7980case $host in
7981ia64-*-hpux*)
7982  # Find out which ABI we are using.
7983  echo 'int i;' > conftest.$ac_ext
7984  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985  (eval $ac_compile) 2>&5
7986  ac_status=$?
7987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); }; then
7989    case `/usr/bin/file conftest.$ac_objext` in
7990      *ELF-32*)
7991	HPUX_IA64_MODE="32"
7992	;;
7993      *ELF-64*)
7994	HPUX_IA64_MODE="64"
7995	;;
7996    esac
7997  fi
7998  rm -rf conftest*
7999  ;;
8000*-*-irix6*)
8001  # Find out which ABI we are using.
8002  echo '#line __oline__ "configure"' > conftest.$ac_ext
8003  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004  (eval $ac_compile) 2>&5
8005  ac_status=$?
8006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); }; then
8008    if test "$lt_cv_prog_gnu_ld" = yes; then
8009      case `/usr/bin/file conftest.$ac_objext` in
8010	*32-bit*)
8011	  LD="${LD-ld} -melf32bsmip"
8012	  ;;
8013	*N32*)
8014	  LD="${LD-ld} -melf32bmipn32"
8015	  ;;
8016	*64-bit*)
8017	  LD="${LD-ld} -melf64bmip"
8018	;;
8019      esac
8020    else
8021      case `/usr/bin/file conftest.$ac_objext` in
8022	*32-bit*)
8023	  LD="${LD-ld} -32"
8024	  ;;
8025	*N32*)
8026	  LD="${LD-ld} -n32"
8027	  ;;
8028	*64-bit*)
8029	  LD="${LD-ld} -64"
8030	  ;;
8031      esac
8032    fi
8033  fi
8034  rm -rf conftest*
8035  ;;
8036
8037x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8038s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8039  # Find out which ABI we are using.
8040  echo 'int i;' > conftest.$ac_ext
8041  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042  (eval $ac_compile) 2>&5
8043  ac_status=$?
8044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); }; then
8046    case `/usr/bin/file conftest.o` in
8047      *32-bit*)
8048	case $host in
8049	  x86_64-*kfreebsd*-gnu)
8050	    LD="${LD-ld} -m elf_i386_fbsd"
8051	    ;;
8052	  x86_64-*linux*)
8053	    LD="${LD-ld} -m elf_i386"
8054	    ;;
8055	  ppc64-*linux*|powerpc64-*linux*)
8056	    LD="${LD-ld} -m elf32ppclinux"
8057	    ;;
8058	  s390x-*linux*)
8059	    LD="${LD-ld} -m elf_s390"
8060	    ;;
8061	  sparc64-*linux*)
8062	    LD="${LD-ld} -m elf32_sparc"
8063	    ;;
8064	esac
8065	;;
8066      *64-bit*)
8067	case $host in
8068	  x86_64-*kfreebsd*-gnu)
8069	    LD="${LD-ld} -m elf_x86_64_fbsd"
8070	    ;;
8071	  x86_64-*linux*)
8072	    LD="${LD-ld} -m elf_x86_64"
8073	    ;;
8074	  ppc*-*linux*|powerpc*-*linux*)
8075	    LD="${LD-ld} -m elf64ppc"
8076	    ;;
8077	  s390*-*linux*|s390*-*tpf*)
8078	    LD="${LD-ld} -m elf64_s390"
8079	    ;;
8080	  sparc*-*linux*)
8081	    LD="${LD-ld} -m elf64_sparc"
8082	    ;;
8083	esac
8084	;;
8085    esac
8086  fi
8087  rm -rf conftest*
8088  ;;
8089
8090*-*-sco3.2v5*)
8091  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8092  SAVE_CFLAGS="$CFLAGS"
8093  CFLAGS="$CFLAGS -belf"
8094  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8095$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8096if test "${lt_cv_cc_needs_belf+set}" = set; then
8097  $as_echo_n "(cached) " >&6
8098else
8099  ac_ext=c
8100ac_cpp='$CPP $CPPFLAGS'
8101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104
8105     cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h.  */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h.  */
8111
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120rm -f conftest.$ac_objext conftest$ac_exeext
8121if { (ac_try="$ac_link"
8122case "(($ac_try" in
8123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124  *) ac_try_echo=$ac_try;;
8125esac
8126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127$as_echo "$ac_try_echo") >&5
8128  (eval "$ac_link") 2>conftest.er1
8129  ac_status=$?
8130  grep -v '^ *+' conftest.er1 >conftest.err
8131  rm -f conftest.er1
8132  cat conftest.err >&5
8133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); } && {
8135	 test -z "$ac_c_werror_flag" ||
8136	 test ! -s conftest.err
8137       } && test -s conftest$ac_exeext && {
8138	 test "$cross_compiling" = yes ||
8139	 $as_test_x conftest$ac_exeext
8140       }; then
8141  lt_cv_cc_needs_belf=yes
8142else
8143  $as_echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146	lt_cv_cc_needs_belf=no
8147fi
8148
8149rm -rf conftest.dSYM
8150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151      conftest$ac_exeext conftest.$ac_ext
8152     ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158fi
8159{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8160$as_echo "$lt_cv_cc_needs_belf" >&6; }
8161  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8162    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8163    CFLAGS="$SAVE_CFLAGS"
8164  fi
8165  ;;
8166sparc*-*solaris*)
8167  # Find out which ABI we are using.
8168  echo 'int i;' > conftest.$ac_ext
8169  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170  (eval $ac_compile) 2>&5
8171  ac_status=$?
8172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173  (exit $ac_status); }; then
8174    case `/usr/bin/file conftest.o` in
8175    *64-bit*)
8176      case $lt_cv_prog_gnu_ld in
8177      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8178      *)
8179	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8180	  LD="${LD-ld} -64"
8181	fi
8182	;;
8183      esac
8184      ;;
8185    esac
8186  fi
8187  rm -rf conftest*
8188  ;;
8189esac
8190
8191need_locks="$enable_libtool_lock"
8192
8193
8194  case $host_os in
8195    rhapsody* | darwin*)
8196    if test -n "$ac_tool_prefix"; then
8197  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8198set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8200$as_echo_n "checking for $ac_word... " >&6; }
8201if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8202  $as_echo_n "(cached) " >&6
8203else
8204  if test -n "$DSYMUTIL"; then
8205  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8206else
8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208for as_dir in $PATH
8209do
8210  IFS=$as_save_IFS
8211  test -z "$as_dir" && as_dir=.
8212  for ac_exec_ext in '' $ac_executable_extensions; do
8213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8215    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216    break 2
8217  fi
8218done
8219done
8220IFS=$as_save_IFS
8221
8222fi
8223fi
8224DSYMUTIL=$ac_cv_prog_DSYMUTIL
8225if test -n "$DSYMUTIL"; then
8226  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8227$as_echo "$DSYMUTIL" >&6; }
8228else
8229  { $as_echo "$as_me:$LINENO: result: no" >&5
8230$as_echo "no" >&6; }
8231fi
8232
8233
8234fi
8235if test -z "$ac_cv_prog_DSYMUTIL"; then
8236  ac_ct_DSYMUTIL=$DSYMUTIL
8237  # Extract the first word of "dsymutil", so it can be a program name with args.
8238set dummy dsymutil; ac_word=$2
8239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8240$as_echo_n "checking for $ac_word... " >&6; }
8241if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8242  $as_echo_n "(cached) " >&6
8243else
8244  if test -n "$ac_ct_DSYMUTIL"; then
8245  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8246else
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250  IFS=$as_save_IFS
8251  test -z "$as_dir" && as_dir=.
8252  for ac_exec_ext in '' $ac_executable_extensions; do
8253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8255    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256    break 2
8257  fi
8258done
8259done
8260IFS=$as_save_IFS
8261
8262fi
8263fi
8264ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8265if test -n "$ac_ct_DSYMUTIL"; then
8266  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8267$as_echo "$ac_ct_DSYMUTIL" >&6; }
8268else
8269  { $as_echo "$as_me:$LINENO: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273  if test "x$ac_ct_DSYMUTIL" = x; then
8274    DSYMUTIL=":"
8275  else
8276    case $cross_compiling:$ac_tool_warned in
8277yes:)
8278{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280ac_tool_warned=yes ;;
8281esac
8282    DSYMUTIL=$ac_ct_DSYMUTIL
8283  fi
8284else
8285  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8286fi
8287
8288    if test -n "$ac_tool_prefix"; then
8289  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8290set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8292$as_echo_n "checking for $ac_word... " >&6; }
8293if test "${ac_cv_prog_NMEDIT+set}" = set; then
8294  $as_echo_n "(cached) " >&6
8295else
8296  if test -n "$NMEDIT"; then
8297  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8298else
8299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302  IFS=$as_save_IFS
8303  test -z "$as_dir" && as_dir=.
8304  for ac_exec_ext in '' $ac_executable_extensions; do
8305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8307    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308    break 2
8309  fi
8310done
8311done
8312IFS=$as_save_IFS
8313
8314fi
8315fi
8316NMEDIT=$ac_cv_prog_NMEDIT
8317if test -n "$NMEDIT"; then
8318  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8319$as_echo "$NMEDIT" >&6; }
8320else
8321  { $as_echo "$as_me:$LINENO: result: no" >&5
8322$as_echo "no" >&6; }
8323fi
8324
8325
8326fi
8327if test -z "$ac_cv_prog_NMEDIT"; then
8328  ac_ct_NMEDIT=$NMEDIT
8329  # Extract the first word of "nmedit", so it can be a program name with args.
8330set dummy nmedit; ac_word=$2
8331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8332$as_echo_n "checking for $ac_word... " >&6; }
8333if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8334  $as_echo_n "(cached) " >&6
8335else
8336  if test -n "$ac_ct_NMEDIT"; then
8337  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8338else
8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342  IFS=$as_save_IFS
8343  test -z "$as_dir" && as_dir=.
8344  for ac_exec_ext in '' $ac_executable_extensions; do
8345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8346    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8347    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348    break 2
8349  fi
8350done
8351done
8352IFS=$as_save_IFS
8353
8354fi
8355fi
8356ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8357if test -n "$ac_ct_NMEDIT"; then
8358  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8359$as_echo "$ac_ct_NMEDIT" >&6; }
8360else
8361  { $as_echo "$as_me:$LINENO: result: no" >&5
8362$as_echo "no" >&6; }
8363fi
8364
8365  if test "x$ac_ct_NMEDIT" = x; then
8366    NMEDIT=":"
8367  else
8368    case $cross_compiling:$ac_tool_warned in
8369yes:)
8370{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372ac_tool_warned=yes ;;
8373esac
8374    NMEDIT=$ac_ct_NMEDIT
8375  fi
8376else
8377  NMEDIT="$ac_cv_prog_NMEDIT"
8378fi
8379
8380    if test -n "$ac_tool_prefix"; then
8381  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8382set dummy ${ac_tool_prefix}lipo; ac_word=$2
8383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8384$as_echo_n "checking for $ac_word... " >&6; }
8385if test "${ac_cv_prog_LIPO+set}" = set; then
8386  $as_echo_n "(cached) " >&6
8387else
8388  if test -n "$LIPO"; then
8389  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8390else
8391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392for as_dir in $PATH
8393do
8394  IFS=$as_save_IFS
8395  test -z "$as_dir" && as_dir=.
8396  for ac_exec_ext in '' $ac_executable_extensions; do
8397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8399    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8400    break 2
8401  fi
8402done
8403done
8404IFS=$as_save_IFS
8405
8406fi
8407fi
8408LIPO=$ac_cv_prog_LIPO
8409if test -n "$LIPO"; then
8410  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8411$as_echo "$LIPO" >&6; }
8412else
8413  { $as_echo "$as_me:$LINENO: result: no" >&5
8414$as_echo "no" >&6; }
8415fi
8416
8417
8418fi
8419if test -z "$ac_cv_prog_LIPO"; then
8420  ac_ct_LIPO=$LIPO
8421  # Extract the first word of "lipo", so it can be a program name with args.
8422set dummy lipo; ac_word=$2
8423{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8424$as_echo_n "checking for $ac_word... " >&6; }
8425if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8426  $as_echo_n "(cached) " >&6
8427else
8428  if test -n "$ac_ct_LIPO"; then
8429  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8430else
8431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432for as_dir in $PATH
8433do
8434  IFS=$as_save_IFS
8435  test -z "$as_dir" && as_dir=.
8436  for ac_exec_ext in '' $ac_executable_extensions; do
8437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8438    ac_cv_prog_ac_ct_LIPO="lipo"
8439    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8440    break 2
8441  fi
8442done
8443done
8444IFS=$as_save_IFS
8445
8446fi
8447fi
8448ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8449if test -n "$ac_ct_LIPO"; then
8450  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8451$as_echo "$ac_ct_LIPO" >&6; }
8452else
8453  { $as_echo "$as_me:$LINENO: result: no" >&5
8454$as_echo "no" >&6; }
8455fi
8456
8457  if test "x$ac_ct_LIPO" = x; then
8458    LIPO=":"
8459  else
8460    case $cross_compiling:$ac_tool_warned in
8461yes:)
8462{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8464ac_tool_warned=yes ;;
8465esac
8466    LIPO=$ac_ct_LIPO
8467  fi
8468else
8469  LIPO="$ac_cv_prog_LIPO"
8470fi
8471
8472    if test -n "$ac_tool_prefix"; then
8473  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8474set dummy ${ac_tool_prefix}otool; ac_word=$2
8475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
8477if test "${ac_cv_prog_OTOOL+set}" = set; then
8478  $as_echo_n "(cached) " >&6
8479else
8480  if test -n "$OTOOL"; then
8481  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8482else
8483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486  IFS=$as_save_IFS
8487  test -z "$as_dir" && as_dir=.
8488  for ac_exec_ext in '' $ac_executable_extensions; do
8489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8491    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8492    break 2
8493  fi
8494done
8495done
8496IFS=$as_save_IFS
8497
8498fi
8499fi
8500OTOOL=$ac_cv_prog_OTOOL
8501if test -n "$OTOOL"; then
8502  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8503$as_echo "$OTOOL" >&6; }
8504else
8505  { $as_echo "$as_me:$LINENO: result: no" >&5
8506$as_echo "no" >&6; }
8507fi
8508
8509
8510fi
8511if test -z "$ac_cv_prog_OTOOL"; then
8512  ac_ct_OTOOL=$OTOOL
8513  # Extract the first word of "otool", so it can be a program name with args.
8514set dummy otool; ac_word=$2
8515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8516$as_echo_n "checking for $ac_word... " >&6; }
8517if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8518  $as_echo_n "(cached) " >&6
8519else
8520  if test -n "$ac_ct_OTOOL"; then
8521  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8522else
8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526  IFS=$as_save_IFS
8527  test -z "$as_dir" && as_dir=.
8528  for ac_exec_ext in '' $ac_executable_extensions; do
8529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530    ac_cv_prog_ac_ct_OTOOL="otool"
8531    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532    break 2
8533  fi
8534done
8535done
8536IFS=$as_save_IFS
8537
8538fi
8539fi
8540ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8541if test -n "$ac_ct_OTOOL"; then
8542  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8543$as_echo "$ac_ct_OTOOL" >&6; }
8544else
8545  { $as_echo "$as_me:$LINENO: result: no" >&5
8546$as_echo "no" >&6; }
8547fi
8548
8549  if test "x$ac_ct_OTOOL" = x; then
8550    OTOOL=":"
8551  else
8552    case $cross_compiling:$ac_tool_warned in
8553yes:)
8554{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8556ac_tool_warned=yes ;;
8557esac
8558    OTOOL=$ac_ct_OTOOL
8559  fi
8560else
8561  OTOOL="$ac_cv_prog_OTOOL"
8562fi
8563
8564    if test -n "$ac_tool_prefix"; then
8565  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8566set dummy ${ac_tool_prefix}otool64; ac_word=$2
8567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8568$as_echo_n "checking for $ac_word... " >&6; }
8569if test "${ac_cv_prog_OTOOL64+set}" = set; then
8570  $as_echo_n "(cached) " >&6
8571else
8572  if test -n "$OTOOL64"; then
8573  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8574else
8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578  IFS=$as_save_IFS
8579  test -z "$as_dir" && as_dir=.
8580  for ac_exec_ext in '' $ac_executable_extensions; do
8581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8583    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584    break 2
8585  fi
8586done
8587done
8588IFS=$as_save_IFS
8589
8590fi
8591fi
8592OTOOL64=$ac_cv_prog_OTOOL64
8593if test -n "$OTOOL64"; then
8594  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8595$as_echo "$OTOOL64" >&6; }
8596else
8597  { $as_echo "$as_me:$LINENO: result: no" >&5
8598$as_echo "no" >&6; }
8599fi
8600
8601
8602fi
8603if test -z "$ac_cv_prog_OTOOL64"; then
8604  ac_ct_OTOOL64=$OTOOL64
8605  # Extract the first word of "otool64", so it can be a program name with args.
8606set dummy otool64; ac_word=$2
8607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
8609if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8610  $as_echo_n "(cached) " >&6
8611else
8612  if test -n "$ac_ct_OTOOL64"; then
8613  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8614else
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618  IFS=$as_save_IFS
8619  test -z "$as_dir" && as_dir=.
8620  for ac_exec_ext in '' $ac_executable_extensions; do
8621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622    ac_cv_prog_ac_ct_OTOOL64="otool64"
8623    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624    break 2
8625  fi
8626done
8627done
8628IFS=$as_save_IFS
8629
8630fi
8631fi
8632ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8633if test -n "$ac_ct_OTOOL64"; then
8634  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8635$as_echo "$ac_ct_OTOOL64" >&6; }
8636else
8637  { $as_echo "$as_me:$LINENO: result: no" >&5
8638$as_echo "no" >&6; }
8639fi
8640
8641  if test "x$ac_ct_OTOOL64" = x; then
8642    OTOOL64=":"
8643  else
8644    case $cross_compiling:$ac_tool_warned in
8645yes:)
8646{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8648ac_tool_warned=yes ;;
8649esac
8650    OTOOL64=$ac_ct_OTOOL64
8651  fi
8652else
8653  OTOOL64="$ac_cv_prog_OTOOL64"
8654fi
8655
8656    
8657    
8658    
8659    
8660
8661    
8662    
8663    
8664    
8665
8666    
8667    
8668    
8669    
8670
8671    
8672    
8673    
8674    
8675
8676    
8677    
8678    
8679    
8680
8681
8682    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8683$as_echo_n "checking for -single_module linker flag... " >&6; }
8684if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8685  $as_echo_n "(cached) " >&6
8686else
8687  lt_cv_apple_cc_single_mod=no
8688      if test -z "${LT_MULTI_MODULE}"; then
8689	# By default we will add the -single_module flag. You can override
8690	# by either setting the environment variable LT_MULTI_MODULE
8691	# non-empty at configure time, or by adding -multi_module to the
8692	# link flags.
8693	rm -rf libconftest.dylib*
8694	echo "int foo(void){return 1;}" > conftest.c
8695	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8696-dynamiclib -Wl,-single_module conftest.c" >&5
8697	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8698	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8699        _lt_result=$?
8700	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8701	  lt_cv_apple_cc_single_mod=yes
8702	else
8703	  cat conftest.err >&5
8704	fi
8705	rm -rf libconftest.dylib*
8706	rm -f conftest.*
8707      fi
8708fi
8709{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8710$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8711    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8712$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8713if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8714  $as_echo_n "(cached) " >&6
8715else
8716  lt_cv_ld_exported_symbols_list=no
8717      save_LDFLAGS=$LDFLAGS
8718      echo "_main" > conftest.sym
8719      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8720      cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h.  */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h.  */
8726
8727int
8728main ()
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735rm -f conftest.$ac_objext conftest$ac_exeext
8736if { (ac_try="$ac_link"
8737case "(($ac_try" in
8738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739  *) ac_try_echo=$ac_try;;
8740esac
8741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742$as_echo "$ac_try_echo") >&5
8743  (eval "$ac_link") 2>conftest.er1
8744  ac_status=$?
8745  grep -v '^ *+' conftest.er1 >conftest.err
8746  rm -f conftest.er1
8747  cat conftest.err >&5
8748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); } && {
8750	 test -z "$ac_c_werror_flag" ||
8751	 test ! -s conftest.err
8752       } && test -s conftest$ac_exeext && {
8753	 test "$cross_compiling" = yes ||
8754	 $as_test_x conftest$ac_exeext
8755       }; then
8756  lt_cv_ld_exported_symbols_list=yes
8757else
8758  $as_echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761	lt_cv_ld_exported_symbols_list=no
8762fi
8763
8764rm -rf conftest.dSYM
8765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8766      conftest$ac_exeext conftest.$ac_ext
8767	LDFLAGS="$save_LDFLAGS"
8768    
8769fi
8770{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8771$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8772    case $host_os in
8773    rhapsody* | darwin1.[012])
8774      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8775    darwin1.*)
8776      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8777    darwin*) # darwin 5.x on
8778      # if running on 10.5 or later, the deployment target defaults
8779      # to the OS version, if on x86, and 10.4, the deployment
8780      # target defaults to 10.4. Don't you love it?
8781      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8782	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8783	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8784	10.[012]*)
8785	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8786	10.*)
8787	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8788      esac
8789    ;;
8790  esac
8791    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8792      _lt_dar_single_mod='$single_module'
8793    fi
8794    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8795      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8796    else
8797      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798    fi
8799    if test "$DSYMUTIL" != ":"; then
8800      _lt_dsymutil='~$DSYMUTIL $lib || :'
8801    else
8802      _lt_dsymutil=
8803    fi
8804    ;;
8805  esac
8806
8807
8808for ac_header in dlfcn.h
8809do
8810as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8811{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8812$as_echo_n "checking for $ac_header... " >&6; }
8813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8814  $as_echo_n "(cached) " >&6
8815else
8816  cat >conftest.$ac_ext <<_ACEOF
8817/* confdefs.h.  */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h.  */
8822$ac_includes_default
8823
8824@%:@include <$ac_header>
8825_ACEOF
8826rm -f conftest.$ac_objext
8827if { (ac_try="$ac_compile"
8828case "(($ac_try" in
8829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830  *) ac_try_echo=$ac_try;;
8831esac
8832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8833$as_echo "$ac_try_echo") >&5
8834  (eval "$ac_compile") 2>conftest.er1
8835  ac_status=$?
8836  grep -v '^ *+' conftest.er1 >conftest.err
8837  rm -f conftest.er1
8838  cat conftest.err >&5
8839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); } && {
8841	 test -z "$ac_c_werror_flag" ||
8842	 test ! -s conftest.err
8843       } && test -s conftest.$ac_objext; then
8844  eval "$as_ac_Header=yes"
8845else
8846  $as_echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849	eval "$as_ac_Header=no"
8850fi
8851
8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853fi
8854ac_res=`eval 'as_val=${'$as_ac_Header'}
8855		 $as_echo "$as_val"'`
8856	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8857$as_echo "$ac_res" >&6; }
8858as_val=`eval 'as_val=${'$as_ac_Header'}
8859		 $as_echo "$as_val"'`
8860   if test "x$as_val" = x""yes; then
8861  cat >>confdefs.h <<_ACEOF
8862@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863_ACEOF
8864 
8865fi
8866
8867done
8868
8869
8870
8871ac_ext=cpp
8872ac_cpp='$CXXCPP $CPPFLAGS'
8873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8876if test -z "$CXX"; then
8877  if test -n "$CCC"; then
8878    CXX=$CCC
8879  else
8880    if test -n "$ac_tool_prefix"; then
8881  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8882  do
8883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8885{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_CXX+set}" = set; then
8888  $as_echo_n "(cached) " >&6
8889else
8890  if test -n "$CXX"; then
8891  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896  IFS=$as_save_IFS
8897  test -z "$as_dir" && as_dir=.
8898  for ac_exec_ext in '' $ac_executable_extensions; do
8899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8901    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8902    break 2
8903  fi
8904done
8905done
8906IFS=$as_save_IFS
8907
8908fi
8909fi
8910CXX=$ac_cv_prog_CXX
8911if test -n "$CXX"; then
8912  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8913$as_echo "$CXX" >&6; }
8914else
8915  { $as_echo "$as_me:$LINENO: result: no" >&5
8916$as_echo "no" >&6; }
8917fi
8918
8919
8920    test -n "$CXX" && break
8921  done
8922fi
8923if test -z "$CXX"; then
8924  ac_ct_CXX=$CXX
8925  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8926do
8927  # Extract the first word of "$ac_prog", so it can be a program name with args.
8928set dummy $ac_prog; ac_word=$2
8929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8930$as_echo_n "checking for $ac_word... " >&6; }
8931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8932  $as_echo_n "(cached) " >&6
8933else
8934  if test -n "$ac_ct_CXX"; then
8935  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8936else
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940  IFS=$as_save_IFS
8941  test -z "$as_dir" && as_dir=.
8942  for ac_exec_ext in '' $ac_executable_extensions; do
8943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944    ac_cv_prog_ac_ct_CXX="$ac_prog"
8945    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8946    break 2
8947  fi
8948done
8949done
8950IFS=$as_save_IFS
8951
8952fi
8953fi
8954ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8955if test -n "$ac_ct_CXX"; then
8956  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8957$as_echo "$ac_ct_CXX" >&6; }
8958else
8959  { $as_echo "$as_me:$LINENO: result: no" >&5
8960$as_echo "no" >&6; }
8961fi
8962
8963
8964  test -n "$ac_ct_CXX" && break
8965done
8966
8967  if test "x$ac_ct_CXX" = x; then
8968    CXX="g++"
8969  else
8970    case $cross_compiling:$ac_tool_warned in
8971yes:)
8972{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8974ac_tool_warned=yes ;;
8975esac
8976    CXX=$ac_ct_CXX
8977  fi
8978fi
8979
8980  fi
8981fi
8982# Provide some information about the compiler.
8983$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8984set X $ac_compile
8985ac_compiler=$2
8986{ (ac_try="$ac_compiler --version >&5"
8987case "(($ac_try" in
8988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989  *) ac_try_echo=$ac_try;;
8990esac
8991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8992$as_echo "$ac_try_echo") >&5
8993  (eval "$ac_compiler --version >&5") 2>&5
8994  ac_status=$?
8995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996  (exit $ac_status); }
8997{ (ac_try="$ac_compiler -v >&5"
8998case "(($ac_try" in
8999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000  *) ac_try_echo=$ac_try;;
9001esac
9002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003$as_echo "$ac_try_echo") >&5
9004  (eval "$ac_compiler -v >&5") 2>&5
9005  ac_status=$?
9006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); }
9008{ (ac_try="$ac_compiler -V >&5"
9009case "(($ac_try" in
9010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011  *) ac_try_echo=$ac_try;;
9012esac
9013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9014$as_echo "$ac_try_echo") >&5
9015  (eval "$ac_compiler -V >&5") 2>&5
9016  ac_status=$?
9017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018  (exit $ac_status); }
9019
9020{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9021$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9023  $as_echo_n "(cached) " >&6
9024else
9025  cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h.  */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h.  */
9031
9032int
9033main ()
9034{
9035#ifndef __GNUC__
9036       choke me
9037#endif
9038
9039  ;
9040  return 0;
9041}
9042_ACEOF
9043rm -f conftest.$ac_objext
9044if { (ac_try="$ac_compile"
9045case "(($ac_try" in
9046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047  *) ac_try_echo=$ac_try;;
9048esac
9049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9050$as_echo "$ac_try_echo") >&5
9051  (eval "$ac_compile") 2>conftest.er1
9052  ac_status=$?
9053  grep -v '^ *+' conftest.er1 >conftest.err
9054  rm -f conftest.er1
9055  cat conftest.err >&5
9056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); } && {
9058	 test -z "$ac_cxx_werror_flag" ||
9059	 test ! -s conftest.err
9060       } && test -s conftest.$ac_objext; then
9061  ac_compiler_gnu=yes
9062else
9063  $as_echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
9066	ac_compiler_gnu=no
9067fi
9068
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9071
9072fi
9073{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9074$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9075if test $ac_compiler_gnu = yes; then
9076  GXX=yes
9077else
9078  GXX=
9079fi
9080ac_test_CXXFLAGS=${CXXFLAGS+set}
9081ac_save_CXXFLAGS=$CXXFLAGS
9082{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9083$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9084if test "${ac_cv_prog_cxx_g+set}" = set; then
9085  $as_echo_n "(cached) " >&6
9086else
9087  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9088   ac_cxx_werror_flag=yes
9089   ac_cv_prog_cxx_g=no
9090   CXXFLAGS="-g"
9091   cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h.  */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h.  */
9097
9098int
9099main ()
9100{
9101
9102  ;
9103  return 0;
9104}
9105_ACEOF
9106rm -f conftest.$ac_objext
9107if { (ac_try="$ac_compile"
9108case "(($ac_try" in
9109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110  *) ac_try_echo=$ac_try;;
9111esac
9112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9113$as_echo "$ac_try_echo") >&5
9114  (eval "$ac_compile") 2>conftest.er1
9115  ac_status=$?
9116  grep -v '^ *+' conftest.er1 >conftest.err
9117  rm -f conftest.er1
9118  cat conftest.err >&5
9119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } && {
9121	 test -z "$ac_cxx_werror_flag" ||
9122	 test ! -s conftest.err
9123       } && test -s conftest.$ac_objext; then
9124  ac_cv_prog_cxx_g=yes
9125else
9126  $as_echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129	CXXFLAGS=""
9130      cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h.  */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h.  */
9136
9137int
9138main ()
9139{
9140
9141  ;
9142  return 0;
9143}
9144_ACEOF
9145rm -f conftest.$ac_objext
9146if { (ac_try="$ac_compile"
9147case "(($ac_try" in
9148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149  *) ac_try_echo=$ac_try;;
9150esac
9151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152$as_echo "$ac_try_echo") >&5
9153  (eval "$ac_compile") 2>conftest.er1
9154  ac_status=$?
9155  grep -v '^ *+' conftest.er1 >conftest.err
9156  rm -f conftest.er1
9157  cat conftest.err >&5
9158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159  (exit $ac_status); } && {
9160	 test -z "$ac_cxx_werror_flag" ||
9161	 test ! -s conftest.err
9162       } && test -s conftest.$ac_objext; then
9163  :
9164else
9165  $as_echo "$as_me: failed program was:" >&5
9166sed 's/^/| /' conftest.$ac_ext >&5
9167
9168	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9169	 CXXFLAGS="-g"
9170	 cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h.  */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h.  */
9176
9177int
9178main ()
9179{
9180
9181  ;
9182  return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext
9186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189  *) ac_try_echo=$ac_try;;
9190esac
9191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9192$as_echo "$ac_try_echo") >&5
9193  (eval "$ac_compile") 2>conftest.er1
9194  ac_status=$?
9195  grep -v '^ *+' conftest.er1 >conftest.err
9196  rm -f conftest.er1
9197  cat conftest.err >&5
9198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199  (exit $ac_status); } && {
9200	 test -z "$ac_cxx_werror_flag" ||
9201	 test ! -s conftest.err
9202       } && test -s conftest.$ac_objext; then
9203  ac_cv_prog_cxx_g=yes
9204else
9205  $as_echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208	
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212fi
9213
9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215fi
9216
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9219fi
9220{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9221$as_echo "$ac_cv_prog_cxx_g" >&6; }
9222if test "$ac_test_CXXFLAGS" = set; then
9223  CXXFLAGS=$ac_save_CXXFLAGS
9224elif test $ac_cv_prog_cxx_g = yes; then
9225  if test "$GXX" = yes; then
9226    CXXFLAGS="-g -O2"
9227  else
9228    CXXFLAGS="-g"
9229  fi
9230else
9231  if test "$GXX" = yes; then
9232    CXXFLAGS="-O2"
9233  else
9234    CXXFLAGS=
9235  fi
9236fi
9237ac_ext=c
9238ac_cpp='$CPP $CPPFLAGS'
9239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9241ac_compiler_gnu=$ac_cv_c_compiler_gnu
9242
9243depcc="$CXX"  am_compiler_list=
9244
9245{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9246$as_echo_n "checking dependency style of $depcc... " >&6; }
9247if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9248  $as_echo_n "(cached) " >&6
9249else
9250  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9251  # We make a subdir and do the tests there.  Otherwise we can end up
9252  # making bogus files that we don't know about and never remove.  For
9253  # instance it was reported that on HP-UX the gcc test will end up
9254  # making a dummy file named `D' -- because `-MD' means `put the output
9255  # in D'.
9256  mkdir conftest.dir
9257  # Copy depcomp to subdir because otherwise we won't find it if we're
9258  # using a relative directory.
9259  cp "$am_depcomp" conftest.dir
9260  cd conftest.dir
9261  # We will build objects and dependencies in a subdirectory because
9262  # it helps to detect inapplicable dependency modes.  For instance
9263  # both Tru64's cc and ICC support -MD to output dependencies as a
9264  # side effect of compilation, but ICC will put the dependencies in
9265  # the current directory while Tru64 will put them in the object
9266  # directory.
9267  mkdir sub
9268
9269  am_cv_CXX_dependencies_compiler_type=none
9270  if test "$am_compiler_list" = ""; then
9271     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9272  fi
9273  for depmode in $am_compiler_list; do
9274    # Setup a source with many dependencies, because some compilers
9275    # like to wrap large dependency lists on column 80 (with \), and
9276    # we should not choose a depcomp mode which is confused by this.
9277    #
9278    # We need to recreate these files for each test, as the compiler may
9279    # overwrite some of them when testing with obscure command lines.
9280    # This happens at least with the AIX C compiler.
9281    : > sub/conftest.c
9282    for i in 1 2 3 4 5 6; do
9283      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9284      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9285      # Solaris 8's {/usr,}/bin/sh.
9286      touch sub/conftst$i.h
9287    done
9288    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9289
9290    case $depmode in
9291    nosideeffect)
9292      # after this tag, mechanisms are not by side-effect, so they'll
9293      # only be used when explicitly requested
9294      if test "x$enable_dependency_tracking" = xyes; then
9295	continue
9296      else
9297	break
9298      fi
9299      ;;
9300    none) break ;;
9301    esac
9302    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9303    # mode.  It turns out that the SunPro C++ compiler does not properly
9304    # handle `-M -o', and we need to detect this.
9305    if depmode=$depmode \
9306       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9307       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9308       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9309         >/dev/null 2>conftest.err &&
9310       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9311       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9312       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9313       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9314      # icc doesn't choke on unknown options, it will just issue warnings
9315      # or remarks (even with -Werror).  So we grep stderr for any message
9316      # that says an option was ignored or not supported.
9317      # When given -MP, icc 7.0 and 7.1 complain thusly:
9318      #   icc: Command line warning: ignoring option '-M'; no argument required
9319      # The diagnosis changed in icc 8.0:
9320      #   icc: Command line remark: option '-MP' not supported
9321      if (grep 'ignoring option' conftest.err ||
9322          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9323        am_cv_CXX_dependencies_compiler_type=$depmode
9324        break
9325      fi
9326    fi
9327  done
9328
9329  cd ..
9330  rm -rf conftest.dir
9331else
9332  am_cv_CXX_dependencies_compiler_type=none
9333fi
9334
9335fi
9336{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9337$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9338CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9339
9340 if 
9341  test "x$enable_dependency_tracking" != xno \
9342  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9343  am__fastdepCXX_TRUE=
9344  am__fastdepCXX_FALSE='#'
9345else
9346  am__fastdepCXX_TRUE='#'
9347  am__fastdepCXX_FALSE=
9348fi
9349
9350
9351if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9352    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9353    (test "X$CXX" != "Xg++"))) ; then
9354  ac_ext=cpp
9355ac_cpp='$CXXCPP $CPPFLAGS'
9356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9359{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9360$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9361if test -z "$CXXCPP"; then
9362  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9363  $as_echo_n "(cached) " >&6
9364else
9365      # Double quotes because CXXCPP needs to be expanded
9366    for CXXCPP in "$CXX -E" "/lib/cpp"
9367    do
9368      ac_preproc_ok=false
9369for ac_cxx_preproc_warn_flag in '' yes
9370do
9371  # Use a header file that comes with gcc, so configuring glibc
9372  # with a fresh cross-compiler works.
9373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9374  # <limits.h> exists even on freestanding compilers.
9375  # On the NeXT, cc -E runs the code through the compiler's parser,
9376  # not just through cpp. "Syntax error" is here to catch this case.
9377  cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h.  */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h.  */
9383@%:@ifdef __STDC__
9384@%:@ include <limits.h>
9385@%:@else
9386@%:@ include <assert.h>
9387@%:@endif
9388		     Syntax error
9389_ACEOF
9390if { (ac_try="$ac_cpp conftest.$ac_ext"
9391case "(($ac_try" in
9392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393  *) ac_try_echo=$ac_try;;
9394esac
9395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9396$as_echo "$ac_try_echo") >&5
9397  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9398  ac_status=$?
9399  grep -v '^ *+' conftest.er1 >conftest.err
9400  rm -f conftest.er1
9401  cat conftest.err >&5
9402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); } >/dev/null && {
9404	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9405	 test ! -s conftest.err
9406       }; then
9407  :
9408else
9409  $as_echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
9412  # Broken: fails on valid input.
9413continue
9414fi
9415
9416rm -f conftest.err conftest.$ac_ext
9417
9418  # OK, works on sane cases.  Now check whether nonexistent headers
9419  # can be detected and how.
9420  cat >conftest.$ac_ext <<_ACEOF
9421/* confdefs.h.  */
9422_ACEOF
9423cat confdefs.h >>conftest.$ac_ext
9424cat >>conftest.$ac_ext <<_ACEOF
9425/* end confdefs.h.  */
9426@%:@include <ac_nonexistent.h>
9427_ACEOF
9428if { (ac_try="$ac_cpp conftest.$ac_ext"
9429case "(($ac_try" in
9430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431  *) ac_try_echo=$ac_try;;
9432esac
9433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9434$as_echo "$ac_try_echo") >&5
9435  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9436  ac_status=$?
9437  grep -v '^ *+' conftest.er1 >conftest.err
9438  rm -f conftest.er1
9439  cat conftest.err >&5
9440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441  (exit $ac_status); } >/dev/null && {
9442	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9443	 test ! -s conftest.err
9444       }; then
9445  # Broken: success on invalid input.
9446continue
9447else
9448  $as_echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
9451  # Passes both tests.
9452ac_preproc_ok=:
9453break
9454fi
9455
9456rm -f conftest.err conftest.$ac_ext
9457
9458done
9459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9460rm -f conftest.err conftest.$ac_ext
9461if $ac_preproc_ok; then
9462  break
9463fi
9464
9465    done
9466    ac_cv_prog_CXXCPP=$CXXCPP
9467  
9468fi
9469  CXXCPP=$ac_cv_prog_CXXCPP
9470else
9471  ac_cv_prog_CXXCPP=$CXXCPP
9472fi
9473{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9474$as_echo "$CXXCPP" >&6; }
9475ac_preproc_ok=false
9476for ac_cxx_preproc_warn_flag in '' yes
9477do
9478  # Use a header file that comes with gcc, so configuring glibc
9479  # with a fresh cross-compiler works.
9480  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481  # <limits.h> exists even on freestanding compilers.
9482  # On the NeXT, cc -E runs the code through the compiler's parser,
9483  # not just through cpp. "Syntax error" is here to catch this case.
9484  cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h.  */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h.  */
9490@%:@ifdef __STDC__
9491@%:@ include <limits.h>
9492@%:@else
9493@%:@ include <assert.h>
9494@%:@endif
9495		     Syntax error
9496_ACEOF
9497if { (ac_try="$ac_cpp conftest.$ac_ext"
9498case "(($ac_try" in
9499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500  *) ac_try_echo=$ac_try;;
9501esac
9502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9503$as_echo "$ac_try_echo") >&5
9504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9505  ac_status=$?
9506  grep -v '^ *+' conftest.er1 >conftest.err
9507  rm -f conftest.er1
9508  cat conftest.err >&5
9509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510  (exit $ac_status); } >/dev/null && {
9511	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9512	 test ! -s conftest.err
9513       }; then
9514  :
9515else
9516  $as_echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
9519  # Broken: fails on valid input.
9520continue
9521fi
9522
9523rm -f conftest.err conftest.$ac_ext
9524
9525  # OK, works on sane cases.  Now check whether nonexistent headers
9526  # can be detected and how.
9527  cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h.  */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h.  */
9533@%:@include <ac_nonexistent.h>
9534_ACEOF
9535if { (ac_try="$ac_cpp conftest.$ac_ext"
9536case "(($ac_try" in
9537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538  *) ac_try_echo=$ac_try;;
9539esac
9540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541$as_echo "$ac_try_echo") >&5
9542  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9543  ac_status=$?
9544  grep -v '^ *+' conftest.er1 >conftest.err
9545  rm -f conftest.er1
9546  cat conftest.err >&5
9547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); } >/dev/null && {
9549	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9550	 test ! -s conftest.err
9551       }; then
9552  # Broken: success on invalid input.
9553continue
9554else
9555  $as_echo "$as_me: failed program was:" >&5
9556sed 's/^/| /' conftest.$ac_ext >&5
9557
9558  # Passes both tests.
9559ac_preproc_ok=:
9560break
9561fi
9562
9563rm -f conftest.err conftest.$ac_ext
9564
9565done
9566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9567rm -f conftest.err conftest.$ac_ext
9568if $ac_preproc_ok; then
9569  :
9570else
9571  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9573_lt_caught_CXX_error=yes; }
9574fi
9575
9576ac_ext=c
9577ac_cpp='$CPP $CPPFLAGS'
9578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582else
9583  _lt_caught_CXX_error=yes
9584fi
9585
9586
9587
9588
9589# Set options
9590
9591
9592
9593        enable_dlopen=no
9594  
9595
9596  enable_win32_dll=no
9597  
9598
9599            @%:@ Check whether --enable-shared was given.
9600if test "${enable_shared+set}" = set; then
9601  enableval=$enable_shared; p=${PACKAGE-default}
9602    case $enableval in
9603    yes) enable_shared=yes ;;
9604    no) enable_shared=no ;;
9605    *)
9606      enable_shared=no
9607      # Look at the argument we got.  We use all the common list separators.
9608      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9609      for pkg in $enableval; do
9610	IFS="$lt_save_ifs"
9611	if test "X$pkg" = "X$p"; then
9612	  enable_shared=yes
9613	fi
9614      done
9615      IFS="$lt_save_ifs"
9616      ;;
9617    esac
9618else
9619  enable_shared=yes
9620fi
9621
9622
9623    
9624    
9625    
9626    
9627
9628
9629
9630  @%:@ Check whether --enable-static was given.
9631if test "${enable_static+set}" = set; then
9632  enableval=$enable_static; p=${PACKAGE-default}
9633    case $enableval in
9634    yes) enable_static=yes ;;
9635    no) enable_static=no ;;
9636    *)
9637     enable_static=no
9638      # Look at the argument we got.  We use all the common list separators.
9639      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9640      for pkg in $enableval; do
9641	IFS="$lt_save_ifs"
9642	if test "X$pkg" = "X$p"; then
9643	  enable_static=yes
9644	fi
9645      done
9646      IFS="$lt_save_ifs"
9647      ;;
9648    esac
9649else
9650  enable_static=yes
9651fi
9652
9653
9654    
9655    
9656    
9657    
9658
9659
9660
9661  
9662@%:@ Check whether --with-pic was given.
9663if test "${with_pic+set}" = set; then
9664  withval=$with_pic; pic_mode="$withval"
9665else
9666  pic_mode=default
9667fi
9668
9669
9670test -z "$pic_mode" && pic_mode=default
9671
9672
9673    
9674    
9675    
9676
9677
9678  @%:@ Check whether --enable-fast-install was given.
9679if test "${enable_fast_install+set}" = set; then
9680  enableval=$enable_fast_install; p=${PACKAGE-default}
9681    case $enableval in
9682    yes) enable_fast_install=yes ;;
9683    no) enable_fast_install=no ;;
9684    *)
9685      enable_fast_install=no
9686      # Look at the argument we got.  We use all the common list separators.
9687      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9688      for pkg in $enableval; do
9689	IFS="$lt_save_ifs"
9690	if test "X$pkg" = "X$p"; then
9691	  enable_fast_install=yes
9692	fi
9693      done
9694      IFS="$lt_save_ifs"
9695      ;;
9696    esac
9697else
9698  enable_fast_install=yes
9699fi
9700
9701
9702
9703    
9704    
9705    
9706
9707
9708  
9709
9710
9711# This can be used to rebuild libtool when needed
9712LIBTOOL_DEPS="$ltmain"
9713
9714# Always use our own libtool.
9715LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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    
9741test -z "$LN_S" && LN_S="ln -s"
9742
9743    
9744    
9745    
9746
9747    
9748    
9749    
9750
9751    
9752    
9753    
9754
9755
9756if test -n "${ZSH_VERSION+set}" ; then
9757   setopt NO_GLOB_SUBST
9758fi
9759
9760{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9761$as_echo_n "checking for objdir... " >&6; }
9762if test "${lt_cv_objdir+set}" = set; then
9763  $as_echo_n "(cached) " >&6
9764else
9765  rm -f .libs 2>/dev/null
9766mkdir .libs 2>/dev/null
9767if test -d .libs; then
9768  lt_cv_objdir=.libs
9769else
9770  # MS-DOS does not allow filenames that begin with a dot.
9771  lt_cv_objdir=_libs
9772fi
9773rmdir .libs 2>/dev/null
9774fi
9775{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9776$as_echo "$lt_cv_objdir" >&6; }
9777objdir=$lt_cv_objdir
9778
9779    
9780    
9781    
9782
9783cat >>confdefs.h <<_ACEOF
9784@%:@define LT_OBJDIR "$lt_cv_objdir/"
9785_ACEOF
9786
9787
9788
9789
9790
9791
9792    
9793    
9794    
9795
9796
9797    
9798    
9799    
9800
9801
9802
9803case $host_os in
9804aix3*)
9805  # AIX sometimes has problems with the GCC collect2 program.  For some
9806  # reason, if we set the COLLECT_NAMES environment variable, the problems
9807  # vanish in a puff of smoke.
9808  if test "X${COLLECT_NAMES+set}" != Xset; then
9809    COLLECT_NAMES=
9810    export COLLECT_NAMES
9811  fi
9812  ;;
9813esac
9814
9815# Sed substitution that helps us do robust quoting.  It backslashifies
9816# metacharacters that are still active within double-quoted strings.
9817sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9818
9819# Same as above, but do not quote variable references.
9820double_quote_subst='s/\(["`\\]\)/\\\1/g'
9821
9822# Sed substitution to delay expansion of an escaped shell variable in a
9823# double_quote_subst'ed string.
9824delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9825
9826# Sed substitution to delay expansion of an escaped single quote.
9827delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9828
9829# Sed substitution to avoid accidental globbing in evaled expressions
9830no_glob_subst='s/\*/\\\*/g'
9831
9832# Global variables:
9833ofile=libtool
9834can_build_shared=yes
9835
9836# All known linkers require a `.a' archive for static linking (except MSVC,
9837# which needs '.lib').
9838libext=a
9839
9840with_gnu_ld="$lt_cv_prog_gnu_ld"
9841
9842old_CC="$CC"
9843old_CFLAGS="$CFLAGS"
9844
9845# Set sane defaults for various variables
9846test -z "$CC" && CC=cc
9847test -z "$LTCC" && LTCC=$CC
9848test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9849test -z "$LD" && LD=ld
9850test -z "$ac_objext" && ac_objext=o
9851
9852for cc_temp in $compiler""; do
9853  case $cc_temp in
9854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9856    \-*) ;;
9857    *) break;;
9858  esac
9859done
9860cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9861
9862
9863# Only perform the check for file, if the check method requires it
9864test -z "$MAGIC_CMD" && MAGIC_CMD=file
9865case $deplibs_check_method in
9866file_magic*)
9867  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9868    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9869$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9870if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9871  $as_echo_n "(cached) " >&6
9872else
9873  case $MAGIC_CMD in
9874[\\/*] |  ?:[\\/]*)
9875  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9876  ;;
9877*)
9878  lt_save_MAGIC_CMD="$MAGIC_CMD"
9879  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9880  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9881  for ac_dir in $ac_dummy; do
9882    IFS="$lt_save_ifs"
9883    test -z "$ac_dir" && ac_dir=.
9884    if test -f $ac_dir/${ac_tool_prefix}file; then
9885      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9886      if test -n "$file_magic_test_file"; then
9887	case $deplibs_check_method in
9888	"file_magic "*)
9889	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9890	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9891	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9892	    $EGREP "$file_magic_regex" > /dev/null; then
9893	    :
9894	  else
9895	    cat <<_LT_EOF 1>&2
9896
9897*** Warning: the command libtool uses to detect shared libraries,
9898*** $file_magic_cmd, produces output that libtool cannot recognize.
9899*** The result is that libtool may fail to recognize shared libraries
9900*** as such.  This will affect the creation of libtool libraries that
9901*** depend on shared libraries, but programs linked with such libtool
9902*** libraries will work regardless of this problem.  Nevertheless, you
9903*** may want to report the problem to your system manager and/or to
9904*** bug-libtool@gnu.org
9905
9906_LT_EOF
9907	  fi ;;
9908	esac
9909      fi
9910      break
9911    fi
9912  done
9913  IFS="$lt_save_ifs"
9914  MAGIC_CMD="$lt_save_MAGIC_CMD"
9915  ;;
9916esac
9917fi
9918
9919MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9920if test -n "$MAGIC_CMD"; then
9921  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9922$as_echo "$MAGIC_CMD" >&6; }
9923else
9924  { $as_echo "$as_me:$LINENO: result: no" >&5
9925$as_echo "no" >&6; }
9926fi
9927
9928    
9929    
9930    
9931
9932if test -z "$lt_cv_path_MAGIC_CMD"; then
9933  if test -n "$ac_tool_prefix"; then
9934    { $as_echo "$as_me:$LINENO: checking for file" >&5
9935$as_echo_n "checking for file... " >&6; }
9936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9937  $as_echo_n "(cached) " >&6
9938else
9939  case $MAGIC_CMD in
9940[\\/*] |  ?:[\\/]*)
9941  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9942  ;;
9943*)
9944  lt_save_MAGIC_CMD="$MAGIC_CMD"
9945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9946  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9947  for ac_dir in $ac_dummy; do
9948    IFS="$lt_save_ifs"
9949    test -z "$ac_dir" && ac_dir=.
9950    if test -f $ac_dir/file; then
9951      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9952      if test -n "$file_magic_test_file"; then
9953	case $deplibs_check_method in
9954	"file_magic "*)
9955	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9956	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9957	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9958	    $EGREP "$file_magic_regex" > /dev/null; then
9959	    :
9960	  else
9961	    cat <<_LT_EOF 1>&2
9962
9963*** Warning: the command libtool uses to detect shared libraries,
9964*** $file_magic_cmd, produces output that libtool cannot recognize.
9965*** The result is that libtool may fail to recognize shared libraries
9966*** as such.  This will affect the creation of libtool libraries that
9967*** depend on shared libraries, but programs linked with such libtool
9968*** libraries will work regardless of this problem.  Nevertheless, you
9969*** may want to report the problem to your system manager and/or to
9970*** bug-libtool@gnu.org
9971
9972_LT_EOF
9973	  fi ;;
9974	esac
9975      fi
9976      break
9977    fi
9978  done
9979  IFS="$lt_save_ifs"
9980  MAGIC_CMD="$lt_save_MAGIC_CMD"
9981  ;;
9982esac
9983fi
9984
9985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9986if test -n "$MAGIC_CMD"; then
9987  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9988$as_echo "$MAGIC_CMD" >&6; }
9989else
9990  { $as_echo "$as_me:$LINENO: result: no" >&5
9991$as_echo "no" >&6; }
9992fi
9993
9994
9995  else
9996    MAGIC_CMD=:
9997  fi
9998fi
9999
10000  fi
10001  ;;
10002esac
10003
10004# Use C for the default configuration in the libtool script
10005
10006lt_save_CC="$CC"
10007ac_ext=c
10008ac_cpp='$CPP $CPPFLAGS'
10009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10011ac_compiler_gnu=$ac_cv_c_compiler_gnu
10012
10013
10014# Source file extension for C test sources.
10015ac_ext=c
10016
10017# Object file extension for compiled C test sources.
10018objext=o
10019objext=$objext
10020
10021# Code to be used in simple compile tests
10022lt_simple_compile_test_code="int some_variable = 0;"
10023
10024# Code to be used in simple link tests
10025lt_simple_link_test_code='int main(){return(0);}'
10026
10027
10028
10029
10030
10031
10032
10033# If no C compiler was specified, use CC.
10034LTCC=${LTCC-"$CC"}
10035
10036# If no C compiler flags were specified, use CFLAGS.
10037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10038
10039# Allow CC to be a program name with arguments.
10040compiler=$CC
10041
10042# Save the default compiler, since it gets overwritten when the other
10043# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10044compiler_DEFAULT=$CC
10045
10046# save warnings/boilerplate of simple test code
10047ac_outfile=conftest.$ac_objext
10048echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10049eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10050_lt_compiler_boilerplate=`cat conftest.err`
10051$RM conftest*
10052
10053ac_outfile=conftest.$ac_objext
10054echo "$lt_simple_link_test_code" >conftest.$ac_ext
10055eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10056_lt_linker_boilerplate=`cat conftest.err`
10057$RM -r conftest*
10058
10059
10060## CAVEAT EMPTOR:
10061## There is no encapsulation within the following macros, do not change
10062## the running order or otherwise move them around unless you know exactly
10063## what you are doing...
10064if test -n "$compiler"; then
10065  
10066lt_prog_compiler_no_builtin_flag=
10067
10068if test "$GCC" = yes; then
10069  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10070
10071  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10072$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10073if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10074  $as_echo_n "(cached) " >&6
10075else
10076  lt_cv_prog_compiler_rtti_exceptions=no
10077   ac_outfile=conftest.$ac_objext
10078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10079   lt_compiler_flag="-fno-rtti -fno-exceptions"
10080   # Insert the option either (1) after the last *FLAGS variable, or
10081   # (2) before a word containing "conftest.", or (3) at the end.
10082   # Note that $ac_compile itself does not contain backslashes and begins
10083   # with a dollar sign (not a hyphen), so the echo should work correctly.
10084   # The option is referenced via a variable to avoid confusing sed.
10085   lt_compile=`echo "$ac_compile" | $SED \
10086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10088   -e 's:$: $lt_compiler_flag:'`
10089   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10090   (eval "$lt_compile" 2>conftest.err)
10091   ac_status=$?
10092   cat conftest.err >&5
10093   echo "$as_me:__oline__: \$? = $ac_status" >&5
10094   if (exit $ac_status) && test -s "$ac_outfile"; then
10095     # The compiler can only warn and ignore the option if not recognized
10096     # So say no if there are warnings other than the usual output.
10097     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10098     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10099     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10100       lt_cv_prog_compiler_rtti_exceptions=yes
10101     fi
10102   fi
10103   $RM conftest*
10104
10105fi
10106{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10107$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10108
10109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10110    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10111else
10112    :
10113fi
10114
10115fi
10116
10117    
10118    
10119    
10120
10121
10122  lt_prog_compiler_wl=
10123lt_prog_compiler_pic=
10124lt_prog_compiler_static=
10125
10126{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10127$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10128
10129  if test "$GCC" = yes; then
10130    lt_prog_compiler_wl='-Wl,'
10131    lt_prog_compiler_static='-static'
10132
10133    case $host_os in
10134      aix*)
10135      # All AIX code is PIC.
10136      if test "$host_cpu" = ia64; then
10137	# AIX 5 now supports IA64 processor
10138	lt_prog_compiler_static='-Bstatic'
10139      fi
10140      ;;
10141
10142    amigaos*)
10143      case $host_cpu in
10144      powerpc)
10145            # see comment about AmigaOS4 .so support
10146            lt_prog_compiler_pic='-fPIC'
10147        ;;
10148      m68k)
10149            # FIXME: we need at least 68020 code to build shared libraries, but
10150            # adding the `-m68020' flag to GCC prevents building anything better,
10151            # like `-m68040'.
10152            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10153        ;;
10154      esac
10155      ;;
10156
10157    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10158      # PIC is the default for these OSes.
10159      ;;
10160
10161    mingw* | cygwin* | pw32* | os2* | cegcc*)
10162      # This hack is so that the source file can tell whether it is being
10163      # built for inclusion in a dll (and should export symbols for example).
10164      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10165      # (--disable-auto-import) libraries
10166      lt_prog_compiler_pic='-DDLL_EXPORT'
10167      ;;
10168
10169    darwin* | rhapsody*)
10170      # PIC is the default on this platform
10171      # Common symbols not allowed in MH_DYLIB files
10172      lt_prog_compiler_pic='-fno-common'
10173      ;;
10174
10175    hpux*)
10176      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10177      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10178      # sets the default TLS model and affects inlining.
10179      case $host_cpu in
10180      hppa*64*)
10181	# +Z the default
10182	;;
10183      *)
10184	lt_prog_compiler_pic='-fPIC'
10185	;;
10186      esac
10187      ;;
10188
10189    interix[3-9]*)
10190      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10191      # Instead, we relocate shared libraries at runtime.
10192      ;;
10193
10194    msdosdjgpp*)
10195      # Just because we use GCC doesn't mean we suddenly get shared libraries
10196      # on systems that don't support them.
10197      lt_prog_compiler_can_build_shared=no
10198      enable_shared=no
10199      ;;
10200
10201    *nto* | *qnx*)
10202      # QNX uses GNU C++, but need to define -shared option too, otherwise
10203      # it will coredump.
10204      lt_prog_compiler_pic='-fPIC -shared'
10205      ;;
10206
10207    sysv4*MP*)
10208      if test -d /usr/nec; then
10209	lt_prog_compiler_pic=-Kconform_pic
10210      fi
10211      ;;
10212
10213    *)
10214      lt_prog_compiler_pic='-fPIC'
10215      ;;
10216    esac
10217  else
10218    # PORTME Check for flag to pass linker flags through the system compiler.
10219    case $host_os in
10220    aix*)
10221      lt_prog_compiler_wl='-Wl,'
10222      if test "$host_cpu" = ia64; then
10223	# AIX 5 now supports IA64 processor
10224	lt_prog_compiler_static='-Bstatic'
10225      else
10226	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10227      fi
10228      ;;
10229
10230    mingw* | cygwin* | pw32* | os2* | cegcc*)
10231      # This hack is so that the source file can tell whether it is being
10232      # built for inclusion in a dll (and should export symbols for example).
10233      lt_prog_compiler_pic='-DDLL_EXPORT'
10234      ;;
10235
10236    hpux9* | hpux10* | hpux11*)
10237      lt_prog_compiler_wl='-Wl,'
10238      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10239      # not for PA HP-UX.
10240      case $host_cpu in
10241      hppa*64*|ia64*)
10242	# +Z the default
10243	;;
10244      *)
10245	lt_prog_compiler_pic='+Z'
10246	;;
10247      esac
10248      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10249      lt_prog_compiler_static='${wl}-a ${wl}archive'
10250      ;;
10251
10252    irix5* | irix6* | nonstopux*)
10253      lt_prog_compiler_wl='-Wl,'
10254      # PIC (with -KPIC) is the default.
10255      lt_prog_compiler_static='-non_shared'
10256      ;;
10257
10258    linux* | k*bsd*-gnu)
10259      case $cc_basename in
10260      # old Intel for x86_64 which still supported -KPIC.
10261      ecc*)
10262	lt_prog_compiler_wl='-Wl,'
10263	lt_prog_compiler_pic='-KPIC'
10264	lt_prog_compiler_static='-static'
10265        ;;
10266      # icc used to be incompatible with GCC.
10267      # ICC 10 doesn't accept -KPIC any more.
10268      icc* | ifort*)
10269	lt_prog_compiler_wl='-Wl,'
10270	lt_prog_compiler_pic='-fPIC'
10271	lt_prog_compiler_static='-static'
10272        ;;
10273      # Lahey Fortran 8.1.
10274      lf95*)
10275	lt_prog_compiler_wl='-Wl,'
10276	lt_prog_compiler_pic='--shared'
10277	lt_prog_compiler_static='--static'
10278	;;
10279      pgcc* | pgf77* | pgf90* | pgf95*)
10280        # Portland Group compilers (*not* the Pentium gcc compiler,
10281	# which looks to be a dead project)
10282	lt_prog_compiler_wl='-Wl,'
10283	lt_prog_compiler_pic='-fpic'
10284	lt_prog_compiler_static='-Bstatic'
10285        ;;
10286      ccc*)
10287        lt_prog_compiler_wl='-Wl,'
10288        # All Alpha code is PIC.
10289        lt_prog_compiler_static='-non_shared'
10290        ;;
10291      xl*)
10292	# IBM XL C 8.0/Fortran 10.1 on PPC
10293	lt_prog_compiler_wl='-Wl,'
10294	lt_prog_compiler_pic='-qpic'
10295	lt_prog_compiler_static='-qstaticlink'
10296	;;
10297      *)
10298	case `$CC -V 2>&1 | sed 5q` in
10299	*Sun\ C*)
10300	  # Sun C 5.9
10301	  lt_prog_compiler_pic='-KPIC'
10302	  lt_prog_compiler_static='-Bstatic'
10303	  lt_prog_compiler_wl='-Wl,'
10304	  ;;
10305	*Sun\ F*)
10306	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10307	  lt_prog_compiler_pic='-KPIC'
10308	  lt_prog_compiler_static='-Bstatic'
10309	  lt_prog_compiler_wl=''
10310	  ;;
10311	esac
10312	;;
10313      esac
10314      ;;
10315
10316    newsos6)
10317      lt_prog_compiler_pic='-KPIC'
10318      lt_prog_compiler_static='-Bstatic'
10319      ;;
10320
10321    *nto* | *qnx*)
10322      # QNX uses GNU C++, but need to define -shared option too, otherwise
10323      # it will coredump.
10324      lt_prog_compiler_pic='-fPIC -shared'
10325      ;;
10326
10327    osf3* | osf4* | osf5*)
10328      lt_prog_compiler_wl='-Wl,'
10329      # All OSF/1 code is PIC.
10330      lt_prog_compiler_static='-non_shared'
10331      ;;
10332
10333    rdos*)
10334      lt_prog_compiler_static='-non_shared'
10335      ;;
10336
10337    solaris*)
10338      lt_prog_compiler_pic='-KPIC'
10339      lt_prog_compiler_static='-Bstatic'
10340      case $cc_basename in
10341      f77* | f90* | f95*)
10342	lt_prog_compiler_wl='-Qoption ld ';;
10343      *)
10344	lt_prog_compiler_wl='-Wl,';;
10345      esac
10346      ;;
10347
10348    sunos4*)
10349      lt_prog_compiler_wl='-Qoption ld '
10350      lt_prog_compiler_pic='-PIC'
10351      lt_prog_compiler_static='-Bstatic'
10352      ;;
10353
10354    sysv4 | sysv4.2uw2* | sysv4.3*)
10355      lt_prog_compiler_wl='-Wl,'
10356      lt_prog_compiler_pic='-KPIC'
10357      lt_prog_compiler_static='-Bstatic'
10358      ;;
10359
10360    sysv4*MP*)
10361      if test -d /usr/nec ;then
10362	lt_prog_compiler_pic='-Kconform_pic'
10363	lt_prog_compiler_static='-Bstatic'
10364      fi
10365      ;;
10366
10367    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10368      lt_prog_compiler_wl='-Wl,'
10369      lt_prog_compiler_pic='-KPIC'
10370      lt_prog_compiler_static='-Bstatic'
10371      ;;
10372
10373    unicos*)
10374      lt_prog_compiler_wl='-Wl,'
10375      lt_prog_compiler_can_build_shared=no
10376      ;;
10377
10378    uts4*)
10379      lt_prog_compiler_pic='-pic'
10380      lt_prog_compiler_static='-Bstatic'
10381      ;;
10382
10383    *)
10384      lt_prog_compiler_can_build_shared=no
10385      ;;
10386    esac
10387  fi
10388
10389case $host_os in
10390  # For platforms which do not support PIC, -DPIC is meaningless:
10391  *djgpp*)
10392    lt_prog_compiler_pic=
10393    ;;
10394  *)
10395    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
10396    ;;
10397esac
10398{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10399$as_echo "$lt_prog_compiler_pic" >&6; }
10400
10401    
10402    
10403    
10404
10405
10406#
10407# Check to make sure the PIC flag actually works.
10408#
10409if test -n "$lt_prog_compiler_pic"; then
10410  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10411$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10412if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10413  $as_echo_n "(cached) " >&6
10414else
10415  lt_cv_prog_compiler_pic_works=no
10416   ac_outfile=conftest.$ac_objext
10417   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10418   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
10419   # Insert the option either (1) after the last *FLAGS variable, or
10420   # (2) before a word containing "conftest.", or (3) at the end.
10421   # Note that $ac_compile itself does not contain backslashes and begins
10422   # with a dollar sign (not a hyphen), so the echo should work correctly.
10423   # The option is referenced via a variable to avoid confusing sed.
10424   lt_compile=`echo "$ac_compile" | $SED \
10425   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10426   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10427   -e 's:$: $lt_compiler_flag:'`
10428   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10429   (eval "$lt_compile" 2>conftest.err)
10430   ac_status=$?
10431   cat conftest.err >&5
10432   echo "$as_me:__oline__: \$? = $ac_status" >&5
10433   if (exit $ac_status) && test -s "$ac_outfile"; then
10434     # The compiler can only warn and ignore the option if not recognized
10435     # So say no if there are warnings other than the usual output.
10436     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10437     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10438     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10439       lt_cv_prog_compiler_pic_works=yes
10440     fi
10441   fi
10442   $RM conftest*
10443
10444fi
10445{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10446$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10447
10448if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10449    case $lt_prog_compiler_pic in
10450     "" | " "*) ;;
10451     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10452     esac
10453else
10454    lt_prog_compiler_pic=
10455     lt_prog_compiler_can_build_shared=no
10456fi
10457
10458fi
10459
10460    
10461    
10462    
10463
10464
10465#
10466# Check to make sure the static flag actually works.
10467#
10468wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10469{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10470$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10471if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10472  $as_echo_n "(cached) " >&6
10473else
10474  lt_cv_prog_compiler_static_works=no
10475   save_LDFLAGS="$LDFLAGS"
10476   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10477   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10478   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10479     # The linker can only warn and ignore the option if not recognized
10480     # So say no if there are warnings
10481     if test -s conftest.err; then
10482       # Append any errors to the config.log.
10483       cat conftest.err 1>&5
10484       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10485       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10486       if diff conftest.exp conftest.er2 >/dev/null; then
10487         lt_cv_prog_compiler_static_works=yes
10488       fi
10489     else
10490       lt_cv_prog_compiler_static_works=yes
10491     fi
10492   fi
10493   $RM -r conftest*
10494   LDFLAGS="$save_LDFLAGS"
10495
10496fi
10497{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10498$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10499
10500if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10501    :
10502else
10503    lt_prog_compiler_static=
10504fi
10505
10506
10507    
10508    
10509    
10510
10511
10512  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10513$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10514if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10515  $as_echo_n "(cached) " >&6
10516else
10517  lt_cv_prog_compiler_c_o=no
10518   $RM -r conftest 2>/dev/null
10519   mkdir conftest
10520   cd conftest
10521   mkdir out
10522   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10523
10524   lt_compiler_flag="-o out/conftest2.$ac_objext"
10525   # Insert the option either (1) after the last *FLAGS variable, or
10526   # (2) before a word containing "conftest.", or (3) at the end.
10527   # Note that $ac_compile itself does not contain backslashes and begins
10528   # with a dollar sign (not a hyphen), so the echo should work correctly.
10529   lt_compile=`echo "$ac_compile" | $SED \
10530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10532   -e 's:$: $lt_compiler_flag:'`
10533   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10534   (eval "$lt_compile" 2>out/conftest.err)
10535   ac_status=$?
10536   cat out/conftest.err >&5
10537   echo "$as_me:__oline__: \$? = $ac_status" >&5
10538   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10539   then
10540     # The compiler can only warn and ignore the option if not recognized
10541     # So say no if there are warnings
10542     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10543     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10544     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10545       lt_cv_prog_compiler_c_o=yes
10546     fi
10547   fi
10548   chmod u+w . 2>&5
10549   $RM conftest*
10550   # SGI C++ compiler will create directory out/ii_files/ for
10551   # template instantiation
10552   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10553   $RM out/* && rmdir out
10554   cd ..
10555   $RM -r conftest
10556   $RM conftest*
10557
10558fi
10559{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10560$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10561
10562    
10563    
10564    
10565
10566
10567  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10568$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10569if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10570  $as_echo_n "(cached) " >&6
10571else
10572  lt_cv_prog_compiler_c_o=no
10573   $RM -r conftest 2>/dev/null
10574   mkdir conftest
10575   cd conftest
10576   mkdir out
10577   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10578
10579   lt_compiler_flag="-o out/conftest2.$ac_objext"
10580   # Insert the option either (1) after the last *FLAGS variable, or
10581   # (2) before a word containing "conftest.", or (3) at the end.
10582   # Note that $ac_compile itself does not contain backslashes and begins
10583   # with a dollar sign (not a hyphen), so the echo should work correctly.
10584   lt_compile=`echo "$ac_compile" | $SED \
10585   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10587   -e 's:$: $lt_compiler_flag:'`
10588   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10589   (eval "$lt_compile" 2>out/conftest.err)
10590   ac_status=$?
10591   cat out/conftest.err >&5
10592   echo "$as_me:__oline__: \$? = $ac_status" >&5
10593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10594   then
10595     # The compiler can only warn and ignore the option if not recognized
10596     # So say no if there are warnings
10597     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10598     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10599     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10600       lt_cv_prog_compiler_c_o=yes
10601     fi
10602   fi
10603   chmod u+w . 2>&5
10604   $RM conftest*
10605   # SGI C++ compiler will create directory out/ii_files/ for
10606   # template instantiation
10607   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10608   $RM out/* && rmdir out
10609   cd ..
10610   $RM -r conftest
10611   $RM conftest*
10612
10613fi
10614{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10615$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10616
10617
10618
10619
10620hard_links="nottested"
10621if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10622  # do not overwrite the value of need_locks provided by the user
10623  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10624$as_echo_n "checking if we can lock with hard links... " >&6; }
10625  hard_links=yes
10626  $RM conftest*
10627  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10628  touch conftest.a
10629  ln conftest.a conftest.b 2>&5 || hard_links=no
10630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10631  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10632$as_echo "$hard_links" >&6; }
10633  if test "$hard_links" = no; then
10634    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10635$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10636    need_locks=warn
10637  fi
10638else
10639  need_locks=no
10640fi
10641
10642    
10643    
10644    
10645
10646
10647  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10648$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10649
10650  runpath_var=
10651  allow_undefined_flag=
10652  always_export_symbols=no
10653  archive_cmds=
10654  archive_expsym_cmds=
10655  compiler_needs_object=no
10656  enable_shared_with_static_runtimes=no
10657  export_dynamic_flag_spec=
10658  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10659  hardcode_automatic=no
10660  hardcode_direct=no
10661  hardcode_direct_absolute=no
10662  hardcode_libdir_flag_spec=
10663  hardcode_libdir_flag_spec_ld=
10664  hardcode_libdir_separator=
10665  hardcode_minus_L=no
10666  hardcode_shlibpath_var=unsupported
10667  inherit_rpath=no
10668  link_all_deplibs=unknown
10669  module_cmds=
10670  module_expsym_cmds=
10671  old_archive_from_new_cmds=
10672  old_archive_from_expsyms_cmds=
10673  thread_safe_flag_spec=
10674  whole_archive_flag_spec=
10675  # include_expsyms should be a list of space-separated symbols to be *always*
10676  # included in the symbol list
10677  include_expsyms=
10678  # exclude_expsyms can be an extended regexp of symbols to exclude
10679  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10680  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10681  # as well as any symbol that contains `d'.
10682  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10683  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10684  # platforms (ab)use it in PIC code, but their linkers get confused if
10685  # the symbol is explicitly referenced.  Since portable code cannot
10686  # rely on this symbol name, it's probably fine to never include it in
10687  # preloaded symbol tables.
10688  # Exclude shared library initialization/finalization symbols.
10689  extract_expsyms_cmds=
10690
10691  case $host_os in
10692  cygwin* | mingw* | pw32* | cegcc*)
10693    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10694    # When not using gcc, we currently assume that we are using
10695    # Microsoft Visual C++.
10696    if test "$GCC" != yes; then
10697      with_gnu_ld=no
10698    fi
10699    ;;
10700  interix*)
10701    # we just hope/assume this is gcc and not c89 (= MSVC++)
10702    with_gnu_ld=yes
10703    ;;
10704  openbsd*)
10705    with_gnu_ld=no
10706    ;;
10707  esac
10708
10709  ld_shlibs=yes
10710  if test "$with_gnu_ld" = yes; then
10711    # If archive_cmds runs LD, not CC, wlarc should be empty
10712    wlarc='${wl}'
10713
10714    # Set some defaults for GNU ld with shared library support. These
10715    # are reset later if shared libraries are not supported. Putting them
10716    # here allows them to be overridden if necessary.
10717    runpath_var=LD_RUN_PATH
10718    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10719    export_dynamic_flag_spec='${wl}--export-dynamic'
10720    # ancient GNU ld didn't support --whole-archive et. al.
10721    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10722      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10723    else
10724      whole_archive_flag_spec=
10725    fi
10726    supports_anon_versioning=no
10727    case `$LD -v 2>&1` in
10728      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10729      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10730      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10731      *\ 2.11.*) ;; # other 2.11 versions
10732      *) supports_anon_versioning=yes ;;
10733    esac
10734
10735    # See if GNU ld supports shared libraries.
10736    case $host_os in
10737    aix[3-9]*)
10738      # On AIX/PPC, the GNU linker is very broken
10739      if test "$host_cpu" != ia64; then
10740	ld_shlibs=no
10741	cat <<_LT_EOF 1>&2
10742
10743*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10744*** to be unable to reliably create shared libraries on AIX.
10745*** Therefore, libtool is disabling shared libraries support.  If you
10746*** really care for shared libraries, you may want to modify your PATH
10747*** so that a non-GNU linker is found, and then restart.
10748
10749_LT_EOF
10750      fi
10751      ;;
10752
10753    amigaos*)
10754      case $host_cpu in
10755      powerpc)
10756            # see comment about AmigaOS4 .so support
10757            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10758            archive_expsym_cmds=''
10759        ;;
10760      m68k)
10761            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)'
10762            hardcode_libdir_flag_spec='-L$libdir'
10763            hardcode_minus_L=yes
10764        ;;
10765      esac
10766      ;;
10767
10768    beos*)
10769      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10770	allow_undefined_flag=unsupported
10771	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10772	# support --undefined.  This deserves some investigation.  FIXME
10773	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10774      else
10775	ld_shlibs=no
10776      fi
10777      ;;
10778
10779    cygwin* | mingw* | pw32* | cegcc*)
10780      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10781      # as there is no search path for DLLs.
10782      hardcode_libdir_flag_spec='-L$libdir'
10783      allow_undefined_flag=unsupported
10784      always_export_symbols=no
10785      enable_shared_with_static_runtimes=yes
10786      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10787
10788      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10789        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10790	# If the export-symbols file already is a .def file (1st line
10791	# is EXPORTS), use it as is; otherwise, prepend...
10792	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10793	  cp $export_symbols $output_objdir/$soname.def;
10794	else
10795	  echo EXPORTS > $output_objdir/$soname.def;
10796	  cat $export_symbols >> $output_objdir/$soname.def;
10797	fi~
10798	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10799      else
10800	ld_shlibs=no
10801      fi
10802      ;;
10803
10804    interix[3-9]*)
10805      hardcode_direct=no
10806      hardcode_shlibpath_var=no
10807      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10808      export_dynamic_flag_spec='${wl}-E'
10809      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10810      # Instead, shared libraries are loaded at an image base (0x10000000 by
10811      # default) and relocated if they conflict, which is a slow very memory
10812      # consuming and fragmenting process.  To avoid this, we pick a random,
10813      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10814      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10815      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10816      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'
10817      ;;
10818
10819    gnu* | linux* | tpf* | k*bsd*-gnu)
10820      tmp_diet=no
10821      if test "$host_os" = linux-dietlibc; then
10822	case $cc_basename in
10823	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10824	esac
10825      fi
10826      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10827	 && test "$tmp_diet" = no
10828      then
10829	tmp_addflag=
10830	tmp_sharedflag='-shared'
10831	case $cc_basename,$host_cpu in
10832        pgcc*)				# Portland Group C compiler
10833	  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'
10834	  tmp_addflag=' $pic_flag'
10835	  ;;
10836	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10837	  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'
10838	  tmp_addflag=' $pic_flag -Mnomain' ;;
10839	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10840	  tmp_addflag=' -i_dynamic' ;;
10841	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10842	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10843	ifc* | ifort*)			# Intel Fortran compiler
10844	  tmp_addflag=' -nofor_main' ;;
10845	lf95*)				# Lahey Fortran 8.1
10846	  whole_archive_flag_spec=
10847	  tmp_sharedflag='--shared' ;;
10848	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10849	  tmp_sharedflag='-qmkshrobj'
10850	  tmp_addflag= ;;
10851	esac
10852	case `$CC -V 2>&1 | sed 5q` in
10853	*Sun\ C*)			# Sun C 5.9
10854	  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'
10855	  compiler_needs_object=yes
10856	  tmp_sharedflag='-G' ;;
10857	*Sun\ F*)			# Sun Fortran 8.3
10858	  tmp_sharedflag='-G' ;;
10859	esac
10860	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10861
10862        if test "x$supports_anon_versioning" = xyes; then
10863          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10864	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10865	    echo "local: *; };" >> $output_objdir/$libname.ver~
10866	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10867        fi
10868
10869	case $cc_basename in
10870	xlf*)
10871	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10872	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10873	  hardcode_libdir_flag_spec=
10874	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10875	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10876	  if test "x$supports_anon_versioning" = xyes; then
10877	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10878	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10879	      echo "local: *; };" >> $output_objdir/$libname.ver~
10880	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10881	  fi
10882	  ;;
10883	esac
10884      else
10885        ld_shlibs=no
10886      fi
10887      ;;
10888
10889    netbsd*)
10890      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10891	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10892	wlarc=
10893      else
10894	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10895	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10896      fi
10897      ;;
10898
10899    solaris*)
10900      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10901	ld_shlibs=no
10902	cat <<_LT_EOF 1>&2
10903
10904*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10905*** create shared libraries on Solaris systems.  Therefore, libtool
10906*** is disabling shared libraries support.  We urge you to upgrade GNU
10907*** binutils to release 2.9.1 or newer.  Another option is to modify
10908*** your PATH or compiler configuration so that the native linker is
10909*** used, and then restart.
10910
10911_LT_EOF
10912      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10913	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10914	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10915      else
10916	ld_shlibs=no
10917      fi
10918      ;;
10919
10920    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10921      case `$LD -v 2>&1` in
10922        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10923	ld_shlibs=no
10924	cat <<_LT_EOF 1>&2
10925
10926*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10927*** reliably create shared libraries on SCO systems.  Therefore, libtool
10928*** is disabling shared libraries support.  We urge you to upgrade GNU
10929*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10930*** your PATH or compiler configuration so that the native linker is
10931*** used, and then restart.
10932
10933_LT_EOF
10934	;;
10935	*)
10936	  # For security reasons, it is highly recommended that you always
10937	  # use absolute paths for naming shared libraries, and exclude the
10938	  # DT_RUNPATH tag from executables and libraries.  But doing so
10939	  # requires that you compile everything twice, which is a pain.
10940	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10941	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10942	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10944	  else
10945	    ld_shlibs=no
10946	  fi
10947	;;
10948      esac
10949      ;;
10950
10951    sunos4*)
10952      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10953      wlarc=
10954      hardcode_direct=yes
10955      hardcode_shlibpath_var=no
10956      ;;
10957
10958    *)
10959      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10962      else
10963	ld_shlibs=no
10964      fi
10965      ;;
10966    esac
10967
10968    if test "$ld_shlibs" = no; then
10969      runpath_var=
10970      hardcode_libdir_flag_spec=
10971      export_dynamic_flag_spec=
10972      whole_archive_flag_spec=
10973    fi
10974  else
10975    # PORTME fill in a description of your system's linker (not GNU ld)
10976    case $host_os in
10977    aix3*)
10978      allow_undefined_flag=unsupported
10979      always_export_symbols=yes
10980      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'
10981      # Note: this linker hardcodes the directories in LIBPATH if there
10982      # are no directories specified by -L.
10983      hardcode_minus_L=yes
10984      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10985	# Neither direct hardcoding nor static linking is supported with a
10986	# broken collect2.
10987	hardcode_direct=unsupported
10988      fi
10989      ;;
10990
10991    aix[4-9]*)
10992      if test "$host_cpu" = ia64; then
10993	# On IA64, the linker does run time linking by default, so we don't
10994	# have to do anything special.
10995	aix_use_runtimelinking=no
10996	exp_sym_flag='-Bexport'
10997	no_entry_flag=""
10998      else
10999	# If we're using GNU nm, then we don't want the "-C" option.
11000	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11001	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11002	  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'
11003	else
11004	  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'
11005	fi
11006	aix_use_runtimelinking=no
11007
11008	# Test if we are trying to use run time linking or normal
11009	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11010	# need to do runtime linking.
11011	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11012	  for ld_flag in $LDFLAGS; do
11013	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11014	    aix_use_runtimelinking=yes
11015	    break
11016	  fi
11017	  done
11018	  ;;
11019	esac
11020
11021	exp_sym_flag='-bexport'
11022	no_entry_flag='-bnoentry'
11023      fi
11024
11025      # When large executables or shared objects are built, AIX ld can
11026      # have problems creating the table of contents.  If linking a library
11027      # or program results in "error TOC overflow" add -mminimal-toc to
11028      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11029      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11030
11031      archive_cmds=''
11032      hardcode_direct=yes
11033      hardcode_direct_absolute=yes
11034      hardcode_libdir_separator=':'
11035      link_all_deplibs=yes
11036      file_list_spec='${wl}-f,'
11037
11038      if test "$GCC" = yes; then
11039	case $host_os in aix4.[012]|aix4.[012].*)
11040	# We only want to do this on AIX 4.2 and lower, the check
11041	# below for broken collect2 doesn't work under 4.3+
11042	  collect2name=`${CC} -print-prog-name=collect2`
11043	  if test -f "$collect2name" &&
11044	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11045	  then
11046	  # We have reworked collect2
11047	  :
11048	  else
11049	  # We have old collect2
11050	  hardcode_direct=unsupported
11051	  # It fails to find uninstalled libraries when the uninstalled
11052	  # path is not listed in the libpath.  Setting hardcode_minus_L
11053	  # to unsupported forces relinking
11054	  hardcode_minus_L=yes
11055	  hardcode_libdir_flag_spec='-L$libdir'
11056	  hardcode_libdir_separator=
11057	  fi
11058	  ;;
11059	esac
11060	shared_flag='-shared'
11061	if test "$aix_use_runtimelinking" = yes; then
11062	  shared_flag="$shared_flag "'${wl}-G'
11063	fi
11064      else
11065	# not using gcc
11066	if test "$host_cpu" = ia64; then
11067	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11068	# chokes on -Wl,-G. The following line is correct:
11069	  shared_flag='-G'
11070	else
11071	  if test "$aix_use_runtimelinking" = yes; then
11072	    shared_flag='${wl}-G'
11073	  else
11074	    shared_flag='${wl}-bM:SRE'
11075	  fi
11076	fi
11077      fi
11078
11079      export_dynamic_flag_spec='${wl}-bexpall'
11080      # It seems that -bexpall does not export symbols beginning with
11081      # underscore (_), so it is better to generate a list of symbols to export.
11082      always_export_symbols=yes
11083      if test "$aix_use_runtimelinking" = yes; then
11084	# Warning - without using the other runtime loading flags (-brtl),
11085	# -berok will link without error, but may produce a broken library.
11086	allow_undefined_flag='-berok'
11087        # Determine the default libpath from the value encoded in an
11088        # empty executable.
11089        cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h.  */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h.  */
11095
11096int
11097main ()
11098{
11099
11100  ;
11101  return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
11105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108  *) ac_try_echo=$ac_try;;
11109esac
11110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111$as_echo "$ac_try_echo") >&5
11112  (eval "$ac_link") 2>conftest.er1
11113  ac_status=$?
11114  grep -v '^ *+' conftest.er1 >conftest.err
11115  rm -f conftest.er1
11116  cat conftest.err >&5
11117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118  (exit $ac_status); } && {
11119	 test -z "$ac_c_werror_flag" ||
11120	 test ! -s conftest.err
11121       } && test -s conftest$ac_exeext && {
11122	 test "$cross_compiling" = yes ||
11123	 $as_test_x conftest$ac_exeext
11124       }; then
11125  
11126lt_aix_libpath_sed='
11127    /Import File Strings/,/^$/ {
11128	/^0/ {
11129	    s/^0  *\(.*\)$/\1/
11130	    p
11131	}
11132    }'
11133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11134# Check for a 64-bit object if we didn't find anything.
11135if test -z "$aix_libpath"; then
11136  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137fi
11138else
11139  $as_echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142	
11143fi
11144
11145rm -rf conftest.dSYM
11146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11147      conftest$ac_exeext conftest.$ac_ext
11148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11149
11150        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11151        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"
11152      else
11153	if test "$host_cpu" = ia64; then
11154	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11155	  allow_undefined_flag="-z nodefs"
11156	  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"
11157	else
11158	 # Determine the default libpath from the value encoded in an
11159	 # empty executable.
11160	 cat >conftest.$ac_ext <<_ACEOF
11161/* confdefs.h.  */
11162_ACEOF
11163cat confdefs.h >>conftest.$ac_ext
11164cat >>conftest.$ac_ext <<_ACEOF
11165/* end confdefs.h.  */
11166
11167int
11168main ()
11169{
11170
11171  ;
11172  return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext conftest$ac_exeext
11176if { (ac_try="$ac_link"
11177case "(($ac_try" in
11178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179  *) ac_try_echo=$ac_try;;
11180esac
11181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11182$as_echo "$ac_try_echo") >&5
11183  (eval "$ac_link") 2>conftest.er1
11184  ac_status=$?
11185  grep -v '^ *+' conftest.er1 >conftest.err
11186  rm -f conftest.er1
11187  cat conftest.err >&5
11188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189  (exit $ac_status); } && {
11190	 test -z "$ac_c_werror_flag" ||
11191	 test ! -s conftest.err
11192       } && test -s conftest$ac_exeext && {
11193	 test "$cross_compiling" = yes ||
11194	 $as_test_x conftest$ac_exeext
11195       }; then
11196  
11197lt_aix_libpath_sed='
11198    /Import File Strings/,/^$/ {
11199	/^0/ {
11200	    s/^0  *\(.*\)$/\1/
11201	    p
11202	}
11203    }'
11204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11205# Check for a 64-bit object if we didn't find anything.
11206if test -z "$aix_libpath"; then
11207  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208fi
11209else
11210  $as_echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213	
11214fi
11215
11216rm -rf conftest.dSYM
11217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11218      conftest$ac_exeext conftest.$ac_ext
11219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11220
11221	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11222	  # Warning - without using the other run time loading flags,
11223	  # -berok will link without error, but may produce a broken library.
11224	  no_undefined_flag=' ${wl}-bernotok'
11225	  allow_undefined_flag=' ${wl}-berok'
11226	  # Exported symbols can be pulled into shared objects from archives
11227	  whole_archive_flag_spec='$convenience'
11228	  archive_cmds_need_lc=yes
11229	  # This is similar to how AIX traditionally builds its shared libraries.
11230	  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'
11231	fi
11232      fi
11233      ;;
11234
11235    amigaos*)
11236      case $host_cpu in
11237      powerpc)
11238            # see comment about AmigaOS4 .so support
11239            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240            archive_expsym_cmds=''
11241        ;;
11242      m68k)
11243            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)'
11244            hardcode_libdir_flag_spec='-L$libdir'
11245            hardcode_minus_L=yes
11246        ;;
11247      esac
11248      ;;
11249
11250    bsdi[45]*)
11251      export_dynamic_flag_spec=-rdynamic
11252      ;;
11253
11254    cygwin* | mingw* | pw32* | cegcc*)
11255      # When not using gcc, we currently assume that we are using
11256      # Microsoft Visual C++.
11257      # hardcode_libdir_flag_spec is actually meaningless, as there is
11258      # no search path for DLLs.
11259      hardcode_libdir_flag_spec=' '
11260      allow_undefined_flag=unsupported
11261      # Tell ltmain to make .lib files, not .a files.
11262      libext=lib
11263      # Tell ltmain to make .dll files, not .so files.
11264      shrext_cmds=".dll"
11265      # FIXME: Setting linknames here is a bad hack.
11266      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11267      # The linker will automatically build a .lib file if we build a DLL.
11268      old_archive_from_new_cmds='true'
11269      # FIXME: Should let the user specify the lib program.
11270      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11271      fix_srcfile_path='`cygpath -w "$srcfile"`'
11272      enable_shared_with_static_runtimes=yes
11273      ;;
11274
11275    darwin* | rhapsody*)
11276      
11277  
11278  archive_cmds_need_lc=no
11279  hardcode_direct=no
11280  hardcode_automatic=yes
11281  hardcode_shlibpath_var=unsupported
11282  whole_archive_flag_spec=''
11283  link_all_deplibs=yes
11284  allow_undefined_flag="$_lt_dar_allow_undefined"
11285  case $cc_basename in
11286     ifort*) _lt_dar_can_shared=yes ;;
11287     *) _lt_dar_can_shared=$GCC ;;
11288  esac
11289  if test "$_lt_dar_can_shared" = "yes"; then
11290    output_verbose_link_cmd=echo
11291    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11292    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11293    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}"
11294    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}"
11295    
11296  else
11297  ld_shlibs=no
11298  fi
11299
11300      ;;
11301
11302    dgux*)
11303      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304      hardcode_libdir_flag_spec='-L$libdir'
11305      hardcode_shlibpath_var=no
11306      ;;
11307
11308    freebsd1*)
11309      ld_shlibs=no
11310      ;;
11311
11312    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11313    # support.  Future versions do this automatically, but an explicit c++rt0.o
11314    # does not break anything, and helps significantly (at the cost of a little
11315    # extra space).
11316    freebsd2.2*)
11317      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11318      hardcode_libdir_flag_spec='-R$libdir'
11319      hardcode_direct=yes
11320      hardcode_shlibpath_var=no
11321      ;;
11322
11323    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11324    freebsd2*)
11325      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11326      hardcode_direct=yes
11327      hardcode_minus_L=yes
11328      hardcode_shlibpath_var=no
11329      ;;
11330
11331    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11332    freebsd* | dragonfly*)
11333      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11334      hardcode_libdir_flag_spec='-R$libdir'
11335      hardcode_direct=yes
11336      hardcode_shlibpath_var=no
11337      ;;
11338
11339    hpux9*)
11340      if test "$GCC" = yes; then
11341	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'
11342      else
11343	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'
11344      fi
11345      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11346      hardcode_libdir_separator=:
11347      hardcode_direct=yes
11348
11349      # hardcode_minus_L: Not really in the search PATH,
11350      # but as the default location of the library.
11351      hardcode_minus_L=yes
11352      export_dynamic_flag_spec='${wl}-E'
11353      ;;
11354
11355    hpux10*)
11356      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11357	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11358      else
11359	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11360      fi
11361      if test "$with_gnu_ld" = no; then
11362	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11363	hardcode_libdir_flag_spec_ld='+b $libdir'
11364	hardcode_libdir_separator=:
11365	hardcode_direct=yes
11366	hardcode_direct_absolute=yes
11367	export_dynamic_flag_spec='${wl}-E'
11368	# hardcode_minus_L: Not really in the search PATH,
11369	# but as the default location of the library.
11370	hardcode_minus_L=yes
11371      fi
11372      ;;
11373
11374    hpux11*)
11375      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11376	case $host_cpu in
11377	hppa*64*)
11378	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11379	  ;;
11380	ia64*)
11381	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11382	  ;;
11383	*)
11384	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11385	  ;;
11386	esac
11387      else
11388	case $host_cpu in
11389	hppa*64*)
11390	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11391	  ;;
11392	ia64*)
11393	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11394	  ;;
11395	*)
11396	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11397	  ;;
11398	esac
11399      fi
11400      if test "$with_gnu_ld" = no; then
11401	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11402	hardcode_libdir_separator=:
11403
11404	case $host_cpu in
11405	hppa*64*|ia64*)
11406	  hardcode_direct=no
11407	  hardcode_shlibpath_var=no
11408	  ;;
11409	*)
11410	  hardcode_direct=yes
11411	  hardcode_direct_absolute=yes
11412	  export_dynamic_flag_spec='${wl}-E'
11413
11414	  # hardcode_minus_L: Not really in the search PATH,
11415	  # but as the default location of the library.
11416	  hardcode_minus_L=yes
11417	  ;;
11418	esac
11419      fi
11420      ;;
11421
11422    irix5* | irix6* | nonstopux*)
11423      if test "$GCC" = yes; then
11424	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'
11425	# Try to use the -exported_symbol ld option, if it does not
11426	# work, assume that -exports_file does not work either and
11427	# implicitly export all symbols.
11428        save_LDFLAGS="$LDFLAGS"
11429        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11430        cat >conftest.$ac_ext <<_ACEOF
11431int foo(void) {}
11432_ACEOF
11433rm -f conftest.$ac_objext conftest$ac_exeext
11434if { (ac_try="$ac_link"
11435case "(($ac_try" in
11436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437  *) ac_try_echo=$ac_try;;
11438esac
11439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11440$as_echo "$ac_try_echo") >&5
11441  (eval "$ac_link") 2>conftest.er1
11442  ac_status=$?
11443  grep -v '^ *+' conftest.er1 >conftest.err
11444  rm -f conftest.er1
11445  cat conftest.err >&5
11446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447  (exit $ac_status); } && {
11448	 test -z "$ac_c_werror_flag" ||
11449	 test ! -s conftest.err
11450       } && test -s conftest$ac_exeext && {
11451	 test "$cross_compiling" = yes ||
11452	 $as_test_x conftest$ac_exeext
11453       }; then
11454  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'
11455        
11456else
11457  $as_echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460	
11461fi
11462
11463rm -rf conftest.dSYM
11464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11465      conftest$ac_exeext conftest.$ac_ext
11466        LDFLAGS="$save_LDFLAGS"
11467      else
11468	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'
11469	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'
11470      fi
11471      archive_cmds_need_lc='no'
11472      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11473      hardcode_libdir_separator=:
11474      inherit_rpath=yes
11475      link_all_deplibs=yes
11476      ;;
11477
11478    netbsd*)
11479      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11480	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11481      else
11482	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11483      fi
11484      hardcode_libdir_flag_spec='-R$libdir'
11485      hardcode_direct=yes
11486      hardcode_shlibpath_var=no
11487      ;;
11488
11489    newsos6)
11490      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11491      hardcode_direct=yes
11492      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11493      hardcode_libdir_separator=:
11494      hardcode_shlibpath_var=no
11495      ;;
11496
11497    *nto* | *qnx*)
11498      ;;
11499
11500    openbsd*)
11501      if test -f /usr/libexec/ld.so; then
11502	hardcode_direct=yes
11503	hardcode_shlibpath_var=no
11504	hardcode_direct_absolute=yes
11505	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11506	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11507	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11508	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11509	  export_dynamic_flag_spec='${wl}-E'
11510	else
11511	  case $host_os in
11512	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11513	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11514	     hardcode_libdir_flag_spec='-R$libdir'
11515	     ;;
11516	   *)
11517	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11518	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11519	     ;;
11520	  esac
11521	fi
11522      else
11523	ld_shlibs=no
11524      fi
11525      ;;
11526
11527    os2*)
11528      hardcode_libdir_flag_spec='-L$libdir'
11529      hardcode_minus_L=yes
11530      allow_undefined_flag=unsupported
11531      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'
11532      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11533      ;;
11534
11535    osf3*)
11536      if test "$GCC" = yes; then
11537	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11538	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'
11539      else
11540	allow_undefined_flag=' -expect_unresolved \*'
11541	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'
11542      fi
11543      archive_cmds_need_lc='no'
11544      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11545      hardcode_libdir_separator=:
11546      ;;
11547
11548    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11549      if test "$GCC" = yes; then
11550	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11551	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'
11552	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11553      else
11554	allow_undefined_flag=' -expect_unresolved \*'
11555	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'
11556	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~
11557	$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'
11558
11559	# Both c and cxx compiler support -rpath directly
11560	hardcode_libdir_flag_spec='-rpath $libdir'
11561      fi
11562      archive_cmds_need_lc='no'
11563      hardcode_libdir_separator=:
11564      ;;
11565
11566    solaris*)
11567      no_undefined_flag=' -z defs'
11568      if test "$GCC" = yes; then
11569	wlarc='${wl}'
11570	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11571	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11572	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11573      else
11574	case `$CC -V 2>&1` in
11575	*"Compilers 5.0"*)
11576	  wlarc=''
11577	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11578	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11579	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11580	  ;;
11581	*)
11582	  wlarc='${wl}'
11583	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11584	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11585	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11586	  ;;
11587	esac
11588      fi
11589      hardcode_libdir_flag_spec='-R$libdir'
11590      hardcode_shlibpath_var=no
11591      case $host_os in
11592      solaris2.[0-5] | solaris2.[0-5].*) ;;
11593      *)
11594	# The compiler driver will combine and reorder linker options,
11595	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11596	# but is careful enough not to reorder.
11597	# Supported since Solaris 2.6 (maybe 2.5.1?)
11598	if test "$GCC" = yes; then
11599	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11600	else
11601	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11602	fi
11603	;;
11604      esac
11605      link_all_deplibs=yes
11606      ;;
11607
11608    sunos4*)
11609      if test "x$host_vendor" = xsequent; then
11610	# Use $CC to link under sequent, because it throws in some extra .o
11611	# files that make .init and .fini sections work.
11612	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11613      else
11614	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11615      fi
11616      hardcode_libdir_flag_spec='-L$libdir'
11617      hardcode_direct=yes
11618      hardcode_minus_L=yes
11619      hardcode_shlibpath_var=no
11620      ;;
11621
11622    sysv4)
11623      case $host_vendor in
11624	sni)
11625	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11626	  hardcode_direct=yes # is this really true???
11627	;;
11628	siemens)
11629	  ## LD is ld it makes a PLAMLIB
11630	  ## CC just makes a GrossModule.
11631	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11632	  reload_cmds='$CC -r -o $output$reload_objs'
11633	  hardcode_direct=no
11634        ;;
11635	motorola)
11636	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11637	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11638	;;
11639      esac
11640      runpath_var='LD_RUN_PATH'
11641      hardcode_shlibpath_var=no
11642      ;;
11643
11644    sysv4.3*)
11645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11646      hardcode_shlibpath_var=no
11647      export_dynamic_flag_spec='-Bexport'
11648      ;;
11649
11650    sysv4*MP*)
11651      if test -d /usr/nec; then
11652	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11653	hardcode_shlibpath_var=no
11654	runpath_var=LD_RUN_PATH
11655	hardcode_runpath_var=yes
11656	ld_shlibs=yes
11657      fi
11658      ;;
11659
11660    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11661      no_undefined_flag='${wl}-z,text'
11662      archive_cmds_need_lc=no
11663      hardcode_shlibpath_var=no
11664      runpath_var='LD_RUN_PATH'
11665
11666      if test "$GCC" = yes; then
11667	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669      else
11670	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11672      fi
11673      ;;
11674
11675    sysv5* | sco3.2v5* | sco5v6*)
11676      # Note: We can NOT use -z defs as we might desire, because we do not
11677      # link with -lc, and that would cause any symbols used from libc to
11678      # always be unresolved, which means just about no library would
11679      # ever link correctly.  If we're not using GNU ld we use -z text
11680      # though, which does catch some bad symbols but isn't as heavy-handed
11681      # as -z defs.
11682      no_undefined_flag='${wl}-z,text'
11683      allow_undefined_flag='${wl}-z,nodefs'
11684      archive_cmds_need_lc=no
11685      hardcode_shlibpath_var=no
11686      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11687      hardcode_libdir_separator=':'
11688      link_all_deplibs=yes
11689      export_dynamic_flag_spec='${wl}-Bexport'
11690      runpath_var='LD_RUN_PATH'
11691
11692      if test "$GCC" = yes; then
11693	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11695      else
11696	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698      fi
11699      ;;
11700
11701    uts4*)
11702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11703      hardcode_libdir_flag_spec='-L$libdir'
11704      hardcode_shlibpath_var=no
11705      ;;
11706
11707    *)
11708      ld_shlibs=no
11709      ;;
11710    esac
11711
11712    if test x$host_vendor = xsni; then
11713      case $host in
11714      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11715	export_dynamic_flag_spec='${wl}-Blargedynsym'
11716	;;
11717      esac
11718    fi
11719  fi
11720
11721{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11722$as_echo "$ld_shlibs" >&6; }
11723test "$ld_shlibs" = no && can_build_shared=no
11724
11725with_gnu_ld=$with_gnu_ld
11726
11727
11728    
11729    
11730    
11731
11732    
11733    
11734    
11735
11736    
11737    
11738    
11739
11740
11741#
11742# Do we need to explicitly link libc?
11743#
11744case "x$archive_cmds_need_lc" in
11745x|xyes)
11746  # Assume -lc should be added
11747  archive_cmds_need_lc=yes
11748
11749  if test "$enable_shared" = yes && test "$GCC" = yes; then
11750    case $archive_cmds in
11751    *'~'*)
11752      # FIXME: we may have to deal with multi-command sequences.
11753      ;;
11754    '$CC '*)
11755      # Test whether the compiler implicitly links with -lc since on some
11756      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11757      # to ld, don't add -lc before -lgcc.
11758      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11760      $RM conftest*
11761      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11762
11763      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11764  (eval $ac_compile) 2>&5
11765  ac_status=$?
11766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767  (exit $ac_status); } 2>conftest.err; then
11768        soname=conftest
11769        lib=conftest
11770        libobjs=conftest.$ac_objext
11771        deplibs=
11772        wl=$lt_prog_compiler_wl
11773	pic_flag=$lt_prog_compiler_pic
11774        compiler_flags=-v
11775        linker_flags=-v
11776        verstring=
11777        output_objdir=.
11778        libname=conftest
11779        lt_save_allow_undefined_flag=$allow_undefined_flag
11780        allow_undefined_flag=
11781        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11782  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11783  ac_status=$?
11784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785  (exit $ac_status); }
11786        then
11787	  archive_cmds_need_lc=no
11788        else
11789	  archive_cmds_need_lc=yes
11790        fi
11791        allow_undefined_flag=$lt_save_allow_undefined_flag
11792      else
11793        cat conftest.err 1>&5
11794      fi
11795      $RM conftest*
11796      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11797$as_echo "$archive_cmds_need_lc" >&6; }
11798      ;;
11799    esac
11800  fi
11801  ;;
11802esac
11803
11804
11805    
11806    
11807    
11808
11809
11810    
11811    
11812    
11813
11814
11815    
11816    
11817    
11818
11819
11820    
11821    
11822    
11823
11824
11825    
11826    
11827    
11828
11829
11830    
11831    
11832    
11833
11834
11835    
11836    
11837    
11838
11839
11840    
11841    
11842    
11843
11844
11845    
11846    
11847    
11848
11849
11850    
11851    
11852    
11853
11854
11855    
11856    
11857    
11858
11859
11860    
11861    
11862    
11863
11864
11865    
11866    
11867    
11868
11869
11870    
11871    
11872    
11873
11874
11875    
11876    
11877    
11878
11879
11880    
11881    
11882    
11883
11884
11885    
11886    
11887    
11888
11889
11890    
11891    
11892    
11893
11894
11895    
11896    
11897    
11898
11899
11900    
11901    
11902    
11903
11904
11905    
11906    
11907    
11908
11909
11910    
11911    
11912    
11913
11914
11915    
11916    
11917    
11918
11919
11920    
11921    
11922    
11923
11924
11925    
11926    
11927    
11928
11929
11930    
11931    
11932    
11933
11934
11935    
11936    
11937    
11938
11939
11940    
11941    
11942    
11943
11944
11945    
11946    
11947    
11948
11949
11950    
11951    
11952    
11953
11954
11955    
11956    
11957    
11958
11959
11960  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11961$as_echo_n "checking dynamic linker characteristics... " >&6; }
11962
11963if test "$GCC" = yes; then
11964  case $host_os in
11965    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11966    *) lt_awk_arg="/^libraries:/" ;;
11967  esac
11968  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11969  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11970    # if the path contains ";" then we assume it to be the separator
11971    # otherwise default to the standard path separator (i.e. ":") - it is
11972    # assumed that no part of a normal pathname contains ";" but that should
11973    # okay in the real world where ";" in dirpaths is itself problematic.
11974    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11975  else
11976    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11977  fi
11978  # Ok, now we have the path, separated by spaces, we can step through it
11979  # and add multilib dir if necessary.
11980  lt_tmp_lt_search_path_spec=
11981  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11982  for lt_sys_path in $lt_search_path_spec; do
11983    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11984      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11985    else
11986      test -d "$lt_sys_path" && \
11987	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11988    fi
11989  done
11990  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11991BEGIN {RS=" "; FS="/|\n";} {
11992  lt_foo="";
11993  lt_count=0;
11994  for (lt_i = NF; lt_i > 0; lt_i--) {
11995    if ($lt_i != "" && $lt_i != ".") {
11996      if ($lt_i == "..") {
11997        lt_count++;
11998      } else {
11999        if (lt_count == 0) {
12000          lt_foo="/" $lt_i lt_foo;
12001        } else {
12002          lt_count--;
12003        }
12004      }
12005    }
12006  }
12007  if (lt_foo != "") { lt_freq[lt_foo]++; }
12008  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12009}'`
12010  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12011else
12012  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12013fi
12014library_names_spec=
12015libname_spec='lib$name'
12016soname_spec=
12017shrext_cmds=".so"
12018postinstall_cmds=
12019postuninstall_cmds=
12020finish_cmds=
12021finish_eval=
12022shlibpath_var=
12023shlibpath_overrides_runpath=unknown
12024version_type=none
12025dynamic_linker="$host_os ld.so"
12026sys_lib_dlsearch_path_spec="/lib /usr/lib"
12027need_lib_prefix=unknown
12028hardcode_into_libs=no
12029
12030# when you set need_version to no, make sure it does not cause -set_version
12031# flags to be left without arguments
12032need_version=unknown
12033
12034case $host_os in
12035aix3*)
12036  version_type=linux
12037  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12038  shlibpath_var=LIBPATH
12039
12040  # AIX 3 has no versioning support, so we append a major version to the name.
12041  soname_spec='${libname}${release}${shared_ext}$major'
12042  ;;
12043
12044aix[4-9]*)
12045  version_type=linux
12046  need_lib_prefix=no
12047  need_version=no
12048  hardcode_into_libs=yes
12049  if test "$host_cpu" = ia64; then
12050    # AIX 5 supports IA64
12051    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12052    shlibpath_var=LD_LIBRARY_PATH
12053  else
12054    # With GCC up to 2.95.x, collect2 would create an import file
12055    # for dependence libraries.  The import file would start with
12056    # the line `#! .'.  This would cause the generated library to
12057    # depend on `.', always an invalid library.  This was fixed in
12058    # development snapshots of GCC prior to 3.0.
12059    case $host_os in
12060      aix4 | aix4.[01] | aix4.[01].*)
12061      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12062	   echo ' yes '
12063	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12064	:
12065      else
12066	can_build_shared=no
12067      fi
12068      ;;
12069    esac
12070    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12071    # soname into executable. Probably we can add versioning support to
12072    # collect2, so additional links can be useful in future.
12073    if test "$aix_use_runtimelinking" = yes; then
12074      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12075      # instead of lib<name>.a to let people know that these are not
12076      # typical AIX shared libraries.
12077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12078    else
12079      # We preserve .a as extension for shared libraries through AIX4.2
12080      # and later when we are not doing run time linking.
12081      library_names_spec='${libname}${release}.a $libname.a'
12082      soname_spec='${libname}${release}${shared_ext}$major'
12083    fi
12084    shlibpath_var=LIBPATH
12085  fi
12086  ;;
12087
12088amigaos*)
12089  case $host_cpu in
12090  powerpc)
12091    # Since July 2007 AmigaOS4 officially supports .so libraries.
12092    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094    ;;
12095  m68k)
12096    library_names_spec='$libname.ixlibrary $libname.a'
12097    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12098    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'
12099    ;;
12100  esac
12101  ;;
12102
12103beos*)
12104  library_names_spec='${libname}${shared_ext}'
12105  dynamic_linker="$host_os ld.so"
12106  shlibpath_var=LIBRARY_PATH
12107  ;;
12108
12109bsdi[45]*)
12110  version_type=linux
12111  need_version=no
12112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113  soname_spec='${libname}${release}${shared_ext}$major'
12114  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12115  shlibpath_var=LD_LIBRARY_PATH
12116  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12117  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12118  # the default ld.so.conf also contains /usr/contrib/lib and
12119  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12120  # libtool to hard-code these into programs
12121  ;;
12122
12123cygwin* | mingw* | pw32* | cegcc*)
12124  version_type=windows
12125  shrext_cmds=".dll"
12126  need_version=no
12127  need_lib_prefix=no
12128
12129  case $GCC,$host_os in
12130  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12131    library_names_spec='$libname.dll.a'
12132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12133    postinstall_cmds='base_file=`basename \${file}`~
12134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12135      dldir=$destdir/`dirname \$dlpath`~
12136      test -d \$dldir || mkdir -p \$dldir~
12137      $install_prog $dir/$dlname \$dldir/$dlname~
12138      chmod a+x \$dldir/$dlname~
12139      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12140        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12141      fi'
12142    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12143      dlpath=$dir/\$dldll~
12144       $RM \$dlpath'
12145    shlibpath_overrides_runpath=yes
12146
12147    case $host_os in
12148    cygwin*)
12149      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12150      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12151      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12152      ;;
12153    mingw* | cegcc*)
12154      # MinGW DLLs use traditional 'lib' prefix
12155      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12156      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12157      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12158        # It is most probably a Windows format PATH printed by
12159        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12160        # path with ; separators, and with drive letters. We can handle the
12161        # drive letters (cygwin fileutils understands them), so leave them,
12162        # especially as we might pass files found there to a mingw objdump,
12163        # which wouldn't understand a cygwinified path. Ahh.
12164        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12165      else
12166        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12167      fi
12168      ;;
12169    pw32*)
12170      # pw32 DLLs use 'pw' prefix rather than 'lib'
12171      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12172      ;;
12173    esac
12174    ;;
12175
12176  *)
12177    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12178    ;;
12179  esac
12180  dynamic_linker='Win32 ld.exe'
12181  # FIXME: first we should search . and the directory the executable is in
12182  shlibpath_var=PATH
12183  ;;
12184
12185darwin* | rhapsody*)
12186  dynamic_linker="$host_os dyld"
12187  version_type=darwin
12188  need_lib_prefix=no
12189  need_version=no
12190  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12191  soname_spec='${libname}${release}${major}$shared_ext'
12192  shlibpath_overrides_runpath=yes
12193  shlibpath_var=DYLD_LIBRARY_PATH
12194  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12195
12196  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12197  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12198  ;;
12199
12200dgux*)
12201  version_type=linux
12202  need_lib_prefix=no
12203  need_version=no
12204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12205  soname_spec='${libname}${release}${shared_ext}$major'
12206  shlibpath_var=LD_LIBRARY_PATH
12207  ;;
12208
12209freebsd1*)
12210  dynamic_linker=no
12211  ;;
12212
12213freebsd* | dragonfly*)
12214  # DragonFly does not have aout.  When/if they implement a new
12215  # versioning mechanism, adjust this.
12216  if test -x /usr/bin/objformat; then
12217    objformat=`/usr/bin/objformat`
12218  else
12219    case $host_os in
12220    freebsd[123]*) objformat=aout ;;
12221    *) objformat=elf ;;
12222    esac
12223  fi
12224  version_type=freebsd-$objformat
12225  case $version_type in
12226    freebsd-elf*)
12227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12228      need_version=no
12229      need_lib_prefix=no
12230      ;;
12231    freebsd-*)
12232      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12233      need_version=yes
12234      ;;
12235  esac
12236  shlibpath_var=LD_LIBRARY_PATH
12237  case $host_os in
12238  freebsd2*)
12239    shlibpath_overrides_runpath=yes
12240    ;;
12241  freebsd3.[01]* | freebsdelf3.[01]*)
12242    shlibpath_overrides_runpath=yes
12243    hardcode_into_libs=yes
12244    ;;
12245  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12246  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12247    shlibpath_overrides_runpath=no
12248    hardcode_into_libs=yes
12249    ;;
12250  *) # from 4.6 on, and DragonFly
12251    shlibpath_overrides_runpath=yes
12252    hardcode_into_libs=yes
12253    ;;
12254  esac
12255  ;;
12256
12257gnu*)
12258  version_type=linux
12259  need_lib_prefix=no
12260  need_version=no
12261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12262  soname_spec='${libname}${release}${shared_ext}$major'
12263  shlibpath_var=LD_LIBRARY_PATH
12264  hardcode_into_libs=yes
12265  ;;
12266
12267hpux9* | hpux10* | hpux11*)
12268  # Give a soname corresponding to the major version so that dld.sl refuses to
12269  # link against other versions.
12270  version_type=sunos
12271  need_lib_prefix=no
12272  need_version=no
12273  case $host_cpu in
12274  ia64*)
12275    shrext_cmds='.so'
12276    hardcode_into_libs=yes
12277    dynamic_linker="$host_os dld.so"
12278    shlibpath_var=LD_LIBRARY_PATH
12279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281    soname_spec='${libname}${release}${shared_ext}$major'
12282    if test "X$HPUX_IA64_MODE" = X32; then
12283      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12284    else
12285      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12286    fi
12287    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12288    ;;
12289  hppa*64*)
12290    shrext_cmds='.sl'
12291    hardcode_into_libs=yes
12292    dynamic_linker="$host_os dld.sl"
12293    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12294    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296    soname_spec='${libname}${release}${shared_ext}$major'
12297    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12298    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12299    ;;
12300  *)
12301    shrext_cmds='.sl'
12302    dynamic_linker="$host_os dld.sl"
12303    shlibpath_var=SHLIB_PATH
12304    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306    soname_spec='${libname}${release}${shared_ext}$major'
12307    ;;
12308  esac
12309  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12310  postinstall_cmds='chmod 555 $lib'
12311  ;;
12312
12313interix[3-9]*)
12314  version_type=linux
12315  need_lib_prefix=no
12316  need_version=no
12317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12318  soname_spec='${libname}${release}${shared_ext}$major'
12319  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  shlibpath_overrides_runpath=no
12322  hardcode_into_libs=yes
12323  ;;
12324
12325irix5* | irix6* | nonstopux*)
12326  case $host_os in
12327    nonstopux*) version_type=nonstopux ;;
12328    *)
12329	if test "$lt_cv_prog_gnu_ld" = yes; then
12330		version_type=linux
12331	else
12332		version_type=irix
12333	fi ;;
12334  esac
12335  need_lib_prefix=no
12336  need_version=no
12337  soname_spec='${libname}${release}${shared_ext}$major'
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12339  case $host_os in
12340  irix5* | nonstopux*)
12341    libsuff= shlibsuff=
12342    ;;
12343  *)
12344    case $LD in # libtool.m4 will add one of these switches to LD
12345    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12346      libsuff= shlibsuff= libmagic=32-bit;;
12347    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12348      libsuff=32 shlibsuff=N32 libmagic=N32;;
12349    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12350      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12351    *) libsuff= shlibsuff= libmagic=never-match;;
12352    esac
12353    ;;
12354  esac
12355  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12356  shlibpath_overrides_runpath=no
12357  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12358  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12359  hardcode_into_libs=yes
12360  ;;
12361
12362# No shared lib support for Linux oldld, aout, or coff.
12363linux*oldld* | linux*aout* | linux*coff*)
12364  dynamic_linker=no
12365  ;;
12366
12367# This must be Linux ELF.
12368linux* | k*bsd*-gnu)
12369  version_type=linux
12370  need_lib_prefix=no
12371  need_version=no
12372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373  soname_spec='${libname}${release}${shared_ext}$major'
12374  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12375  shlibpath_var=LD_LIBRARY_PATH
12376  shlibpath_overrides_runpath=no
12377  # Some binutils ld are patched to set DT_RUNPATH
12378  save_LDFLAGS=$LDFLAGS
12379  save_libdir=$libdir
12380  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12381       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12382  cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h.  */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h.  */
12388
12389int
12390main ()
12391{
12392
12393  ;
12394  return 0;
12395}
12396_ACEOF
12397rm -f conftest.$ac_objext conftest$ac_exeext
12398if { (ac_try="$ac_link"
12399case "(($ac_try" in
12400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401  *) ac_try_echo=$ac_try;;
12402esac
12403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12404$as_echo "$ac_try_echo") >&5
12405  (eval "$ac_link") 2>conftest.er1
12406  ac_status=$?
12407  grep -v '^ *+' conftest.er1 >conftest.err
12408  rm -f conftest.er1
12409  cat conftest.err >&5
12410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411  (exit $ac_status); } && {
12412	 test -z "$ac_c_werror_flag" ||
12413	 test ! -s conftest.err
12414       } && test -s conftest$ac_exeext && {
12415	 test "$cross_compiling" = yes ||
12416	 $as_test_x conftest$ac_exeext
12417       }; then
12418  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12419  shlibpath_overrides_runpath=yes
12420fi
12421
12422else
12423  $as_echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426	
12427fi
12428
12429rm -rf conftest.dSYM
12430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12431      conftest$ac_exeext conftest.$ac_ext
12432  LDFLAGS=$save_LDFLAGS
12433  libdir=$save_libdir
12434
12435  # This implies no fast_install, which is unacceptable.
12436  # Some rework will be needed to allow for fast_install
12437  # before this can be enabled.
12438  hardcode_into_libs=yes
12439
12440  # Add ABI-specific directories to the system library path.
12441  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12442
12443  # Append ld.so.conf contents to the search path
12444  if test -f /etc/ld.so.conf; then
12445    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' ' '`
12446    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12447  fi
12448
12449  # We used to test for /lib/ld.so.1 and disable shared libraries on
12450  # powerpc, because MkLinux only supported shared libraries with the
12451  # GNU dynamic linker.  Since this was broken with cross compilers,
12452  # most powerpc-linux boxes support dynamic linking these days and
12453  # people can always --disable-shared, the test was removed, and we
12454  # assume the GNU/Linux dynamic linker is in use.
12455  dynamic_linker='GNU/Linux ld.so'
12456  ;;
12457
12458netbsd*)
12459  version_type=sunos
12460  need_lib_prefix=no
12461  need_version=no
12462  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12464    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465    dynamic_linker='NetBSD (a.out) ld.so'
12466  else
12467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12468    soname_spec='${libname}${release}${shared_ext}$major'
12469    dynamic_linker='NetBSD ld.elf_so'
12470  fi
12471  shlibpath_var=LD_LIBRARY_PATH
12472  shlibpath_overrides_runpath=yes
12473  hardcode_into_libs=yes
12474  ;;
12475
12476newsos6)
12477  version_type=linux
12478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12479  shlibpath_var=LD_LIBRARY_PATH
12480  shlibpath_overrides_runpath=yes
12481  ;;
12482
12483*nto* | *qnx*)
12484  version_type=qnx
12485  need_lib_prefix=no
12486  need_version=no
12487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12488  soname_spec='${libname}${release}${shared_ext}$major'
12489  shlibpath_var=LD_LIBRARY_PATH
12490  shlibpath_overrides_runpath=no
12491  hardcode_into_libs=yes
12492  dynamic_linker='ldqnx.so'
12493  ;;
12494
12495openbsd*)
12496  version_type=sunos
12497  sys_lib_dlsearch_path_spec="/usr/lib"
12498  need_lib_prefix=no
12499  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12500  case $host_os in
12501    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12502    *)				need_version=no  ;;
12503  esac
12504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12505  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12506  shlibpath_var=LD_LIBRARY_PATH
12507  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12508    case $host_os in
12509      openbsd2.[89] | openbsd2.[89].*)
12510	shlibpath_overrides_runpath=no
12511	;;
12512      *)
12513	shlibpath_overrides_runpath=yes
12514	;;
12515      esac
12516  else
12517    shlibpath_overrides_runpath=yes
12518  fi
12519  ;;
12520
12521os2*)
12522  libname_spec='$name'
12523  shrext_cmds=".dll"
12524  need_lib_prefix=no
12525  library_names_spec='$libname${shared_ext} $libname.a'
12526  dynamic_linker='OS/2 ld.exe'
12527  shlibpath_var=LIBPATH
12528  ;;
12529
12530osf3* | osf4* | osf5*)
12531  version_type=osf
12532  need_lib_prefix=no
12533  need_version=no
12534  soname_spec='${libname}${release}${shared_ext}$major'
12535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536  shlibpath_var=LD_LIBRARY_PATH
12537  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12538  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12539  ;;
12540
12541rdos*)
12542  dynamic_linker=no
12543  ;;
12544
12545solaris*)
12546  version_type=linux
12547  need_lib_prefix=no
12548  need_version=no
12549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12550  soname_spec='${libname}${release}${shared_ext}$major'
12551  shlibpath_var=LD_LIBRARY_PATH
12552  shlibpath_overrides_runpath=yes
12553  hardcode_into_libs=yes
12554  # ldd complains unless libraries are executable
12555  postinstall_cmds='chmod +x $lib'
12556  ;;
12557
12558sunos4*)
12559  version_type=sunos
12560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12561  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12562  shlibpath_var=LD_LIBRARY_PATH
12563  shlibpath_overrides_runpath=yes
12564  if test "$with_gnu_ld" = yes; then
12565    need_lib_prefix=no
12566  fi
12567  need_version=yes
12568  ;;
12569
12570sysv4 | sysv4.3*)
12571  version_type=linux
12572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573  soname_spec='${libname}${release}${shared_ext}$major'
12574  shlibpath_var=LD_LIBRARY_PATH
12575  case $host_vendor in
12576    sni)
12577      shlibpath_overrides_runpath=no
12578      need_lib_prefix=no
12579      runpath_var=LD_RUN_PATH
12580      ;;
12581    siemens)
12582      need_lib_prefix=no
12583      ;;
12584    motorola)
12585      need_lib_prefix=no
12586      need_version=no
12587      shlibpath_overrides_runpath=no
12588      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12589      ;;
12590  esac
12591  ;;
12592
12593sysv4*MP*)
12594  if test -d /usr/nec ;then
12595    version_type=linux
12596    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12597    soname_spec='$libname${shared_ext}.$major'
12598    shlibpath_var=LD_LIBRARY_PATH
12599  fi
12600  ;;
12601
12602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12603  version_type=freebsd-elf
12604  need_lib_prefix=no
12605  need_version=no
12606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12607  soname_spec='${libname}${release}${shared_ext}$major'
12608  shlibpath_var=LD_LIBRARY_PATH
12609  shlibpath_overrides_runpath=yes
12610  hardcode_into_libs=yes
12611  if test "$with_gnu_ld" = yes; then
12612    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12613  else
12614    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12615    case $host_os in
12616      sco3.2v5*)
12617        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12618	;;
12619    esac
12620  fi
12621  sys_lib_dlsearch_path_spec='/usr/lib'
12622  ;;
12623
12624tpf*)
12625  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12626  version_type=linux
12627  need_lib_prefix=no
12628  need_version=no
12629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630  shlibpath_var=LD_LIBRARY_PATH
12631  shlibpath_overrides_runpath=no
12632  hardcode_into_libs=yes
12633  ;;
12634
12635uts4*)
12636  version_type=linux
12637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12638  soname_spec='${libname}${release}${shared_ext}$major'
12639  shlibpath_var=LD_LIBRARY_PATH
12640  ;;
12641
12642*)
12643  dynamic_linker=no
12644  ;;
12645esac
12646{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12647$as_echo "$dynamic_linker" >&6; }
12648test "$dynamic_linker" = no && can_build_shared=no
12649
12650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12651if test "$GCC" = yes; then
12652  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12653fi
12654
12655if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12656  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12657fi
12658if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12659  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12660fi
12661
12662
12663    
12664    
12665    
12666
12667
12668    
12669    
12670    
12671
12672
12673    
12674    
12675    
12676
12677
12678    
12679    
12680    
12681
12682
12683    
12684    
12685    
12686
12687
12688    
12689    
12690    
12691
12692
12693    
12694    
12695    
12696
12697
12698    
12699    
12700    
12701
12702
12703    
12704    
12705    
12706
12707
12708    
12709    
12710    
12711
12712
12713    
12714    
12715    
12716
12717
12718    
12719    
12720    
12721
12722
12723    
12724    
12725    
12726
12727
12728    
12729    
12730    
12731
12732
12733    
12734    
12735    
12736
12737
12738    
12739    
12740    
12741
12742
12743    
12744    
12745    
12746
12747
12748  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12749$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12750hardcode_action=
12751if test -n "$hardcode_libdir_flag_spec" ||
12752   test -n "$runpath_var" ||
12753   test "X$hardcode_automatic" = "Xyes" ; then
12754
12755  # We can hardcode non-existent directories.
12756  if test "$hardcode_direct" != no &&
12757     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12758     # have to relink, otherwise we might link with an installed library
12759     # when we should be linking with a yet-to-be-installed one
12760     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12761     test "$hardcode_minus_L" != no; then
12762    # Linking always hardcodes the temporary library directory.
12763    hardcode_action=relink
12764  else
12765    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12766    hardcode_action=immediate
12767  fi
12768else
12769  # We cannot hardcode anything, or else we can only hardcode existing
12770  # directories.
12771  hardcode_action=unsupported
12772fi
12773{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12774$as_echo "$hardcode_action" >&6; }
12775
12776if test "$hardcode_action" = relink ||
12777   test "$inherit_rpath" = yes; then
12778  # Fast installation is not supported
12779  enable_fast_install=no
12780elif test "$shlibpath_overrides_runpath" = yes ||
12781     test "$enable_shared" = no; then
12782  # Fast installation is not necessary
12783  enable_fast_install=needless
12784fi
12785
12786    
12787    
12788    
12789
12790
12791  if test "x$enable_dlopen" != xyes; then
12792  enable_dlopen=unknown
12793  enable_dlopen_self=unknown
12794  enable_dlopen_self_static=unknown
12795else
12796  lt_cv_dlopen=no
12797  lt_cv_dlopen_libs=
12798
12799  case $host_os in
12800  beos*)
12801    lt_cv_dlopen="load_add_on"
12802    lt_cv_dlopen_libs=
12803    lt_cv_dlopen_self=yes
12804    ;;
12805
12806  mingw* | pw32* | cegcc*)
12807    lt_cv_dlopen="LoadLibrary"
12808    lt_cv_dlopen_libs=
12809    ;;
12810
12811  cygwin*)
12812    lt_cv_dlopen="dlopen"
12813    lt_cv_dlopen_libs=
12814    ;;
12815
12816  darwin*)
12817  # if libdl is installed we need to link against it
12818    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12819$as_echo_n "checking for dlopen in -ldl... " >&6; }
12820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12821  $as_echo_n "(cached) " >&6
12822else
12823  ac_check_lib_save_LIBS=$LIBS
12824LIBS="-ldl  $LIBS"
12825cat >conftest.$ac_ext <<_ACEOF
12826/* confdefs.h.  */
12827_ACEOF
12828cat confdefs.h >>conftest.$ac_ext
12829cat >>conftest.$ac_ext <<_ACEOF
12830/* end confdefs.h.  */
12831
12832/* Override any GCC internal prototype to avoid an error.
12833   Use char because int might match the return type of a GCC
12834   builtin and then its argument prototype would still apply.  */
12835#ifdef __cplusplus
12836extern "C"
12837#endif
12838char dlopen ();
12839int
12840main ()
12841{
12842return dlopen ();
12843  ;
12844  return 0;
12845}
12846_ACEOF
12847rm -f conftest.$ac_objext conftest$ac_exeext
12848if { (ac_try="$ac_link"
12849case "(($ac_try" in
12850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851  *) ac_try_echo=$ac_try;;
12852esac
12853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854$as_echo "$ac_try_echo") >&5
12855  (eval "$ac_link") 2>conftest.er1
12856  ac_status=$?
12857  grep -v '^ *+' conftest.er1 >conftest.err
12858  rm -f conftest.er1
12859  cat conftest.err >&5
12860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861  (exit $ac_status); } && {
12862	 test -z "$ac_c_werror_flag" ||
12863	 test ! -s conftest.err
12864       } && test -s conftest$ac_exeext && {
12865	 test "$cross_compiling" = yes ||
12866	 $as_test_x conftest$ac_exeext
12867       }; then
12868  ac_cv_lib_dl_dlopen=yes
12869else
12870  $as_echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
12873	ac_cv_lib_dl_dlopen=no
12874fi
12875
12876rm -rf conftest.dSYM
12877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12878      conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS
12880fi
12881{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12883if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12885else
12886  
12887    lt_cv_dlopen="dyld"
12888    lt_cv_dlopen_libs=
12889    lt_cv_dlopen_self=yes
12890    
12891fi
12892
12893    ;;
12894
12895  *)
12896    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12897$as_echo_n "checking for shl_load... " >&6; }
12898if test "${ac_cv_func_shl_load+set}" = set; then
12899  $as_echo_n "(cached) " >&6
12900else
12901  cat >conftest.$ac_ext <<_ACEOF
12902/* confdefs.h.  */
12903_ACEOF
12904cat confdefs.h >>conftest.$ac_ext
12905cat >>conftest.$ac_ext <<_ACEOF
12906/* end confdefs.h.  */
12907/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12909#define shl_load innocuous_shl_load
12910
12911/* System header to define __stub macros and hopefully few prototypes,
12912    which can conflict with char shl_load (); below.
12913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12914    <limits.h> exists even on freestanding compilers.  */
12915
12916#ifdef __STDC__
12917# include <limits.h>
12918#else
12919# include <assert.h>
12920#endif
12921
12922#undef shl_load
12923
12924/* Override any GCC internal prototype to avoid an error.
12925   Use char because int might match the return type of a GCC
12926   builtin and then its argument prototype would still apply.  */
12927#ifdef __cplusplus
12928extern "C"
12929#endif
12930char shl_load ();
12931/* The GNU C library defines this for functions which it implements
12932    to always fail with ENOSYS.  Some functions are actually named
12933    something starting with __ and the normal name is an alias.  */
12934#if defined __stub_shl_load || defined __stub___shl_load
12935choke me
12936#endif
12937
12938int
12939main ()
12940{
12941return shl_load ();
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946rm -f conftest.$ac_objext conftest$ac_exeext
12947if { (ac_try="$ac_link"
12948case "(($ac_try" in
12949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950  *) ac_try_echo=$ac_try;;
12951esac
12952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12953$as_echo "$ac_try_echo") >&5
12954  (eval "$ac_link") 2>conftest.er1
12955  ac_status=$?
12956  grep -v '^ *+' conftest.er1 >conftest.err
12957  rm -f conftest.er1
12958  cat conftest.err >&5
12959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); } && {
12961	 test -z "$ac_c_werror_flag" ||
12962	 test ! -s conftest.err
12963       } && test -s conftest$ac_exeext && {
12964	 test "$cross_compiling" = yes ||
12965	 $as_test_x conftest$ac_exeext
12966       }; then
12967  ac_cv_func_shl_load=yes
12968else
12969  $as_echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972	ac_cv_func_shl_load=no
12973fi
12974
12975rm -rf conftest.dSYM
12976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977      conftest$ac_exeext conftest.$ac_ext
12978fi
12979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12980$as_echo "$ac_cv_func_shl_load" >&6; }
12981if test "x$ac_cv_func_shl_load" = x""yes; then
12982  lt_cv_dlopen="shl_load"
12983else
12984  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12985$as_echo_n "checking for shl_load in -ldld... " >&6; }
12986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12987  $as_echo_n "(cached) " >&6
12988else
12989  ac_check_lib_save_LIBS=$LIBS
12990LIBS="-ldld  $LIBS"
12991cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h.  */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h.  */
12997
12998/* Override any GCC internal prototype to avoid an error.
12999   Use char because int might match the return type of a GCC
13000   builtin and then its argument prototype would still apply.  */
13001#ifdef __cplusplus
13002extern "C"
13003#endif
13004char shl_load ();
13005int
13006main ()
13007{
13008return shl_load ();
13009  ;
13010  return 0;
13011}
13012_ACEOF
13013rm -f conftest.$ac_objext conftest$ac_exeext
13014if { (ac_try="$ac_link"
13015case "(($ac_try" in
13016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017  *) ac_try_echo=$ac_try;;
13018esac
13019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020$as_echo "$ac_try_echo") >&5
13021  (eval "$ac_link") 2>conftest.er1
13022  ac_status=$?
13023  grep -v '^ *+' conftest.er1 >conftest.err
13024  rm -f conftest.er1
13025  cat conftest.err >&5
13026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027  (exit $ac_status); } && {
13028	 test -z "$ac_c_werror_flag" ||
13029	 test ! -s conftest.err
13030       } && test -s conftest$ac_exeext && {
13031	 test "$cross_compiling" = yes ||
13032	 $as_test_x conftest$ac_exeext
13033       }; then
13034  ac_cv_lib_dld_shl_load=yes
13035else
13036  $as_echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
13039	ac_cv_lib_dld_shl_load=no
13040fi
13041
13042rm -rf conftest.dSYM
13043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13044      conftest$ac_exeext conftest.$ac_ext
13045LIBS=$ac_check_lib_save_LIBS
13046fi
13047{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13048$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13049if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13050  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13051else
13052  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13053$as_echo_n "checking for dlopen... " >&6; }
13054if test "${ac_cv_func_dlopen+set}" = set; then
13055  $as_echo_n "(cached) " >&6
13056else
13057  cat >conftest.$ac_ext <<_ACEOF
13058/* confdefs.h.  */
13059_ACEOF
13060cat confdefs.h >>conftest.$ac_ext
13061cat >>conftest.$ac_ext <<_ACEOF
13062/* end confdefs.h.  */
13063/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13065#define dlopen innocuous_dlopen
13066
13067/* System header to define __stub macros and hopefully few prototypes,
13068    which can conflict with char dlopen (); below.
13069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13070    <limits.h> exists even on freestanding compilers.  */
13071
13072#ifdef __STDC__
13073# include <limits.h>
13074#else
13075# include <assert.h>
13076#endif
13077
13078#undef dlopen
13079
13080/* Override any GCC internal prototype to avoid an error.
13081   Use char because int might match the return type of a GCC
13082   builtin and then its argument prototype would still apply.  */
13083#ifdef __cplusplus
13084extern "C"
13085#endif
13086char dlopen ();
13087/* The GNU C library defines this for functions which it implements
13088    to always fail with ENOSYS.  Some functions are actually named
13089    something starting with __ and the normal name is an alias.  */
13090#if defined __stub_dlopen || defined __stub___dlopen
13091choke me
13092#endif
13093
13094int
13095main ()
13096{
13097return dlopen ();
13098  ;
13099  return 0;
13100}
13101_ACEOF
13102rm -f conftest.$ac_objext conftest$ac_exeext
13103if { (ac_try="$ac_link"
13104case "(($ac_try" in
13105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106  *) ac_try_echo=$ac_try;;
13107esac
13108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13109$as_echo "$ac_try_echo") >&5
13110  (eval "$ac_link") 2>conftest.er1
13111  ac_status=$?
13112  grep -v '^ *+' conftest.er1 >conftest.err
13113  rm -f conftest.er1
13114  cat conftest.err >&5
13115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116  (exit $ac_status); } && {
13117	 test -z "$ac_c_werror_flag" ||
13118	 test ! -s conftest.err
13119       } && test -s conftest$ac_exeext && {
13120	 test "$cross_compiling" = yes ||
13121	 $as_test_x conftest$ac_exeext
13122       }; then
13123  ac_cv_func_dlopen=yes
13124else
13125  $as_echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128	ac_cv_func_dlopen=no
13129fi
13130
13131rm -rf conftest.dSYM
13132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133      conftest$ac_exeext conftest.$ac_ext
13134fi
13135{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13136$as_echo "$ac_cv_func_dlopen" >&6; }
13137if test "x$ac_cv_func_dlopen" = x""yes; then
13138  lt_cv_dlopen="dlopen"
13139else
13140  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13141$as_echo_n "checking for dlopen in -ldl... " >&6; }
13142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13143  $as_echo_n "(cached) " >&6
13144else
13145  ac_check_lib_save_LIBS=$LIBS
13146LIBS="-ldl  $LIBS"
13147cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h.  */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h.  */
13153
13154/* Override any GCC internal prototype to avoid an error.
13155   Use char because int might match the return type of a GCC
13156   builtin and then its argument prototype would still apply.  */
13157#ifdef __cplusplus
13158extern "C"
13159#endif
13160char dlopen ();
13161int
13162main ()
13163{
13164return dlopen ();
13165  ;
13166  return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext conftest$ac_exeext
13170if { (ac_try="$ac_link"
13171case "(($ac_try" in
13172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173  *) ac_try_echo=$ac_try;;
13174esac
13175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176$as_echo "$ac_try_echo") >&5
13177  (eval "$ac_link") 2>conftest.er1
13178  ac_status=$?
13179  grep -v '^ *+' conftest.er1 >conftest.err
13180  rm -f conftest.er1
13181  cat conftest.err >&5
13182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183  (exit $ac_status); } && {
13184	 test -z "$ac_c_werror_flag" ||
13185	 test ! -s conftest.err
13186       } && test -s conftest$ac_exeext && {
13187	 test "$cross_compiling" = yes ||
13188	 $as_test_x conftest$ac_exeext
13189       }; then
13190  ac_cv_lib_dl_dlopen=yes
13191else
13192  $as_echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195	ac_cv_lib_dl_dlopen=no
13196fi
13197
13198rm -rf conftest.dSYM
13199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13200      conftest$ac_exeext conftest.$ac_ext
13201LIBS=$ac_check_lib_save_LIBS
13202fi
13203{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13204$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13205if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13206  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13207else
13208  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13209$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13210if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13211  $as_echo_n "(cached) " >&6
13212else
13213  ac_check_lib_save_LIBS=$LIBS
13214LIBS="-lsvld  $LIBS"
13215cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h.  */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h.  */
13221
13222/* Override any GCC internal prototype to avoid an error.
13223   Use char because int might match the return type of a GCC
13224   builtin and then its argument prototype would still apply.  */
13225#ifdef __cplusplus
13226extern "C"
13227#endif
13228char dlopen ();
13229int
13230main ()
13231{
13232return dlopen ();
13233  ;
13234  return 0;
13235}
13236_ACEOF
13237rm -f conftest.$ac_objext conftest$ac_exeext
13238if { (ac_try="$ac_link"
13239case "(($ac_try" in
13240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241  *) ac_try_echo=$ac_try;;
13242esac
13243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244$as_echo "$ac_try_echo") >&5
13245  (eval "$ac_link") 2>conftest.er1
13246  ac_status=$?
13247  grep -v '^ *+' conftest.er1 >conftest.err
13248  rm -f conftest.er1
13249  cat conftest.err >&5
13250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251  (exit $ac_status); } && {
13252	 test -z "$ac_c_werror_flag" ||
13253	 test ! -s conftest.err
13254       } && test -s conftest$ac_exeext && {
13255	 test "$cross_compiling" = yes ||
13256	 $as_test_x conftest$ac_exeext
13257       }; then
13258  ac_cv_lib_svld_dlopen=yes
13259else
13260  $as_echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263	ac_cv_lib_svld_dlopen=no
13264fi
13265
13266rm -rf conftest.dSYM
13267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268      conftest$ac_exeext conftest.$ac_ext
13269LIBS=$ac_check_lib_save_LIBS
13270fi
13271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13272$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13273if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13275else
13276  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13277$as_echo_n "checking for dld_link in -ldld... " >&6; }
13278if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13279  $as_echo_n "(cached) " >&6
13280else
13281  ac_check_lib_save_LIBS=$LIBS
13282LIBS="-ldld  $LIBS"
13283cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h.  */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h.  */
13289
13290/* Override any GCC internal prototype to avoid an error.
13291   Use char because int might match the return type of a GCC
13292   builtin and then its argument prototype would still apply.  */
13293#ifdef __cplusplus
13294extern "C"
13295#endif
13296char dld_link ();
13297int
13298main ()
13299{
13300return dld_link ();
13301  ;
13302  return 0;
13303}
13304_ACEOF
13305rm -f conftest.$ac_objext conftest$ac_exeext
13306if { (ac_try="$ac_link"
13307case "(($ac_try" in
13308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309  *) ac_try_echo=$ac_try;;
13310esac
13311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312$as_echo "$ac_try_echo") >&5
13313  (eval "$ac_link") 2>conftest.er1
13314  ac_status=$?
13315  grep -v '^ *+' conftest.er1 >conftest.err
13316  rm -f conftest.er1
13317  cat conftest.err >&5
13318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); } && {
13320	 test -z "$ac_c_werror_flag" ||
13321	 test ! -s conftest.err
13322       } && test -s conftest$ac_exeext && {
13323	 test "$cross_compiling" = yes ||
13324	 $as_test_x conftest$ac_exeext
13325       }; then
13326  ac_cv_lib_dld_dld_link=yes
13327else
13328  $as_echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331	ac_cv_lib_dld_dld_link=no
13332fi
13333
13334rm -rf conftest.dSYM
13335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13336      conftest$ac_exeext conftest.$ac_ext
13337LIBS=$ac_check_lib_save_LIBS
13338fi
13339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13340$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13341if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13342  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13343fi
13344
13345	      
13346fi
13347
13348	    
13349fi
13350
13351	  
13352fi
13353
13354	
13355fi
13356
13357      
13358fi
13359
13360    ;;
13361  esac
13362
13363  if test "x$lt_cv_dlopen" != xno; then
13364    enable_dlopen=yes
13365  else
13366    enable_dlopen=no
13367  fi
13368
13369  case $lt_cv_dlopen in
13370  dlopen)
13371    save_CPPFLAGS="$CPPFLAGS"
13372    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13373
13374    save_LDFLAGS="$LDFLAGS"
13375    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13376
13377    save_LIBS="$LIBS"
13378    LIBS="$lt_cv_dlopen_libs $LIBS"
13379
13380    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13381$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13382if test "${lt_cv_dlopen_self+set}" = set; then
13383  $as_echo_n "(cached) " >&6
13384else
13385  	  if test "$cross_compiling" = yes; then :
13386  lt_cv_dlopen_self=cross
13387else
13388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13389  lt_status=$lt_dlunknown
13390  cat > conftest.$ac_ext <<_LT_EOF
13391#line __oline__ "configure"
13392#include "confdefs.h"
13393
13394#if HAVE_DLFCN_H
13395#include <dlfcn.h>
13396#endif
13397
13398#include <stdio.h>
13399
13400#ifdef RTLD_GLOBAL
13401#  define LT_DLGLOBAL		RTLD_GLOBAL
13402#else
13403#  ifdef DL_GLOBAL
13404#    define LT_DLGLOBAL		DL_GLOBAL
13405#  else
13406#    define LT_DLGLOBAL		0
13407#  endif
13408#endif
13409
13410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13411   find out it does not work in some platform. */
13412#ifndef LT_DLLAZY_OR_NOW
13413#  ifdef RTLD_LAZY
13414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13415#  else
13416#    ifdef DL_LAZY
13417#      define LT_DLLAZY_OR_NOW		DL_LAZY
13418#    else
13419#      ifdef RTLD_NOW
13420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13421#      else
13422#        ifdef DL_NOW
13423#          define LT_DLLAZY_OR_NOW	DL_NOW
13424#        else
13425#          define LT_DLLAZY_OR_NOW	0
13426#        endif
13427#      endif
13428#    endif
13429#  endif
13430#endif
13431
13432void fnord() { int i=42;}
13433int main ()
13434{
13435  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13436  int status = $lt_dlunknown;
13437
13438  if (self)
13439    {
13440      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13441      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13442      /* dlclose (self); */
13443    }
13444  else
13445    puts (dlerror ());
13446
13447  return status;
13448}
13449_LT_EOF
13450  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451  (eval $ac_link) 2>&5
13452  ac_status=$?
13453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13455    (./conftest; exit; ) >&5 2>/dev/null
13456    lt_status=$?
13457    case x$lt_status in
13458      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13459      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13460      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13461    esac
13462  else :
13463    # compilation failed
13464    lt_cv_dlopen_self=no
13465  fi
13466fi
13467rm -fr conftest*
13468
13469    
13470fi
13471{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13472$as_echo "$lt_cv_dlopen_self" >&6; }
13473
13474    if test "x$lt_cv_dlopen_self" = xyes; then
13475      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13476      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13477$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13478if test "${lt_cv_dlopen_self_static+set}" = set; then
13479  $as_echo_n "(cached) " >&6
13480else
13481  	  if test "$cross_compiling" = yes; then :
13482  lt_cv_dlopen_self_static=cross
13483else
13484  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13485  lt_status=$lt_dlunknown
13486  cat > conftest.$ac_ext <<_LT_EOF
13487#line __oline__ "configure"
13488#include "confdefs.h"
13489
13490#if HAVE_DLFCN_H
13491#include <dlfcn.h>
13492#endif
13493
13494#include <stdio.h>
13495
13496#ifdef RTLD_GLOBAL
13497#  define LT_DLGLOBAL		RTLD_GLOBAL
13498#else
13499#  ifdef DL_GLOBAL
13500#    define LT_DLGLOBAL		DL_GLOBAL
13501#  else
13502#    define LT_DLGLOBAL		0
13503#  endif
13504#endif
13505
13506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13507   find out it does not work in some platform. */
13508#ifndef LT_DLLAZY_OR_NOW
13509#  ifdef RTLD_LAZY
13510#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13511#  else
13512#    ifdef DL_LAZY
13513#      define LT_DLLAZY_OR_NOW		DL_LAZY
13514#    else
13515#      ifdef RTLD_NOW
13516#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13517#      else
13518#        ifdef DL_NOW
13519#          define LT_DLLAZY_OR_NOW	DL_NOW
13520#        else
13521#          define LT_DLLAZY_OR_NOW	0
13522#        endif
13523#      endif
13524#    endif
13525#  endif
13526#endif
13527
13528void fnord() { int i=42;}
13529int main ()
13530{
13531  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13532  int status = $lt_dlunknown;
13533
13534  if (self)
13535    {
13536      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13537      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13538      /* dlclose (self); */
13539    }
13540  else
13541    puts (dlerror ());
13542
13543  return status;
13544}
13545_LT_EOF
13546  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547  (eval $ac_link) 2>&5
13548  ac_status=$?
13549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13551    (./conftest; exit; ) >&5 2>/dev/null
13552    lt_status=$?
13553    case x$lt_status in
13554      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13555      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13556      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13557    esac
13558  else :
13559    # compilation failed
13560    lt_cv_dlopen_self_static=no
13561  fi
13562fi
13563rm -fr conftest*
13564
13565      
13566fi
13567{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13568$as_echo "$lt_cv_dlopen_self_static" >&6; }
13569    fi
13570
13571    CPPFLAGS="$save_CPPFLAGS"
13572    LDFLAGS="$save_LDFLAGS"
13573    LIBS="$save_LIBS"
13574    ;;
13575  esac
13576
13577  case $lt_cv_dlopen_self in
13578  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13579  *) enable_dlopen_self=unknown ;;
13580  esac
13581
13582  case $lt_cv_dlopen_self_static in
13583  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13584  *) enable_dlopen_self_static=unknown ;;
13585  esac
13586fi
13587
13588    
13589    
13590    
13591
13592
13593    
13594    
13595    
13596
13597
13598    
13599    
13600    
13601
13602
13603  
13604striplib=
13605old_striplib=
13606{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13607$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13608if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13609  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13610  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13611  { $as_echo "$as_me:$LINENO: result: yes" >&5
13612$as_echo "yes" >&6; }
13613else
13614# FIXME - insert some real tests, host_os isn't really good enough
13615  case $host_os in
13616  darwin*)
13617    if test -n "$STRIP" ; then
13618      striplib="$STRIP -x"
13619      old_striplib="$STRIP -S"
13620      { $as_echo "$as_me:$LINENO: result: yes" >&5
13621$as_echo "yes" >&6; }
13622    else
13623      { $as_echo "$as_me:$LINENO: result: no" >&5
13624$as_echo "no" >&6; }
13625    fi
13626    ;;
13627  *)
13628    { $as_echo "$as_me:$LINENO: result: no" >&5
13629$as_echo "no" >&6; }
13630    ;;
13631  esac
13632fi
13633
13634    
13635    
13636    
13637
13638
13639    
13640    
13641    
13642
13643
13644
13645  # Report which library types will actually be built
13646  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13647$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13648  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13649$as_echo "$can_build_shared" >&6; }
13650
13651  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13652$as_echo_n "checking whether to build shared libraries... " >&6; }
13653  test "$can_build_shared" = "no" && enable_shared=no
13654
13655  # On AIX, shared libraries and static libraries use the same namespace, and
13656  # are all built from PIC.
13657  case $host_os in
13658  aix3*)
13659    test "$enable_shared" = yes && enable_static=no
13660    if test -n "$RANLIB"; then
13661      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13662      postinstall_cmds='$RANLIB $lib'
13663    fi
13664    ;;
13665
13666  aix[4-9]*)
13667    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13668      test "$enable_shared" = yes && enable_static=no
13669    fi
13670    ;;
13671  esac
13672  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13673$as_echo "$enable_shared" >&6; }
13674
13675  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13676$as_echo_n "checking whether to build static libraries... " >&6; }
13677  # Make sure either enable_shared or enable_static is yes.
13678  test "$enable_shared" = yes || enable_static=yes
13679  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13680$as_echo "$enable_static" >&6; }
13681
13682  
13683
13684
13685fi
13686ac_ext=c
13687ac_cpp='$CPP $CPPFLAGS'
13688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690ac_compiler_gnu=$ac_cv_c_compiler_gnu
13691
13692CC="$lt_save_CC"
13693
13694      
13695ac_ext=cpp
13696ac_cpp='$CXXCPP $CPPFLAGS'
13697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13700
13701archive_cmds_need_lc_CXX=no
13702allow_undefined_flag_CXX=
13703always_export_symbols_CXX=no
13704archive_expsym_cmds_CXX=
13705compiler_needs_object_CXX=no
13706export_dynamic_flag_spec_CXX=
13707hardcode_direct_CXX=no
13708hardcode_direct_absolute_CXX=no
13709hardcode_libdir_flag_spec_CXX=
13710hardcode_libdir_flag_spec_ld_CXX=
13711hardcode_libdir_separator_CXX=
13712hardcode_minus_L_CXX=no
13713hardcode_shlibpath_var_CXX=unsupported
13714hardcode_automatic_CXX=no
13715inherit_rpath_CXX=no
13716module_cmds_CXX=
13717module_expsym_cmds_CXX=
13718link_all_deplibs_CXX=unknown
13719old_archive_cmds_CXX=$old_archive_cmds
13720no_undefined_flag_CXX=
13721whole_archive_flag_spec_CXX=
13722enable_shared_with_static_runtimes_CXX=no
13723
13724# Source file extension for C++ test sources.
13725ac_ext=cpp
13726
13727# Object file extension for compiled C++ test sources.
13728objext=o
13729objext_CXX=$objext
13730
13731# No sense in running all these tests if we already determined that
13732# the CXX compiler isn't working.  Some variables (like enable_shared)
13733# are currently assumed to apply to all compilers on this platform,
13734# and will be corrupted by setting them based on a non-working compiler.
13735if test "$_lt_caught_CXX_error" != yes; then
13736  # Code to be used in simple compile tests
13737  lt_simple_compile_test_code="int some_variable = 0;"
13738
13739  # Code to be used in simple link tests
13740  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13741
13742  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13743  
13744
13745
13746
13747
13748
13749# If no C compiler was specified, use CC.
13750LTCC=${LTCC-"$CC"}
13751
13752# If no C compiler flags were specified, use CFLAGS.
13753LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13754
13755# Allow CC to be a program name with arguments.
13756compiler=$CC
13757
13758
13759  # save warnings/boilerplate of simple test code
13760  ac_outfile=conftest.$ac_objext
13761echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13762eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13763_lt_compiler_boilerplate=`cat conftest.err`
13764$RM conftest*
13765
13766  ac_outfile=conftest.$ac_objext
13767echo "$lt_simple_link_test_code" >conftest.$ac_ext
13768eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13769_lt_linker_boilerplate=`cat conftest.err`
13770$RM -r conftest*
13771
13772
13773  # Allow CC to be a program name with arguments.
13774  lt_save_CC=$CC
13775  lt_save_LD=$LD
13776  lt_save_GCC=$GCC
13777  GCC=$GXX
13778  lt_save_with_gnu_ld=$with_gnu_ld
13779  lt_save_path_LD=$lt_cv_path_LD
13780  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13781    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13782  else
13783    $as_unset lt_cv_prog_gnu_ld
13784  fi
13785  if test -n "${lt_cv_path_LDCXX+set}"; then
13786    lt_cv_path_LD=$lt_cv_path_LDCXX
13787  else
13788    $as_unset lt_cv_path_LD
13789  fi
13790  test -z "${LDCXX+set}" || LD=$LDCXX
13791  CC=${CXX-"c++"}
13792  compiler=$CC
13793  compiler_CXX=$CC
13794  for cc_temp in $compiler""; do
13795  case $cc_temp in
13796    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13797    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13798    \-*) ;;
13799    *) break;;
13800  esac
13801done
13802cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13803
13804
13805  if test -n "$compiler"; then
13806    # We don't want -fno-exception when compiling C++ code, so set the
13807    # no_builtin_flag separately
13808    if test "$GXX" = yes; then
13809      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13810    else
13811      lt_prog_compiler_no_builtin_flag_CXX=
13812    fi
13813
13814    if test "$GXX" = yes; then
13815      # Set up default GNU C++ configuration
13816
13817      
13818
13819@%:@ Check whether --with-gnu-ld was given.
13820if test "${with_gnu_ld+set}" = set; then
13821  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13822else
13823  with_gnu_ld=no
13824fi
13825
13826ac_prog=ld
13827if test "$GCC" = yes; then
13828  # Check if gcc -print-prog-name=ld gives a path.
13829  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13830$as_echo_n "checking for ld used by $CC... " >&6; }
13831  case $host in
13832  *-*-mingw*)
13833    # gcc leaves a trailing carriage return which upsets mingw
13834    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13835  *)
13836    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13837  esac
13838  case $ac_prog in
13839    # Accept absolute paths.
13840    [\\/]* | ?:[\\/]*)
13841      re_direlt='/[^/][^/]*/\.\./'
13842      # Canonicalize the pathname of ld
13843      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13844      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13845	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13846      done
13847      test -z "$LD" && LD="$ac_prog"
13848      ;;
13849  "")
13850    # If it fails, then pretend we aren't using GCC.
13851    ac_prog=ld
13852    ;;
13853  *)
13854    # If it is relative, then search for the first ld in PATH.
13855    with_gnu_ld=unknown
13856    ;;
13857  esac
13858elif test "$with_gnu_ld" = yes; then
13859  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13860$as_echo_n "checking for GNU ld... " >&6; }
13861else
13862  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13863$as_echo_n "checking for non-GNU ld... " >&6; }
13864fi
13865if test "${lt_cv_path_LD+set}" = set; then
13866  $as_echo_n "(cached) " >&6
13867else
13868  if test -z "$LD"; then
13869  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13870  for ac_dir in $PATH; do
13871    IFS="$lt_save_ifs"
13872    test -z "$ac_dir" && ac_dir=.
13873    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13874      lt_cv_path_LD="$ac_dir/$ac_prog"
13875      # Check to see if the program is GNU ld.  I'd rather use --version,
13876      # but apparently some variants of GNU ld only accept -v.
13877      # Break only if it was the GNU/non-GNU ld that we prefer.
13878      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13879      *GNU* | *'with BFD'*)
13880	test "$with_gnu_ld" != no && break
13881	;;
13882      *)
13883	test "$with_gnu_ld" != yes && break
13884	;;
13885      esac
13886    fi
13887  done
13888  IFS="$lt_save_ifs"
13889else
13890  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13891fi
13892fi
13893
13894LD="$lt_cv_path_LD"
13895if test -n "$LD"; then
13896  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13897$as_echo "$LD" >&6; }
13898else
13899  { $as_echo "$as_me:$LINENO: result: no" >&5
13900$as_echo "no" >&6; }
13901fi
13902test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13903$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13904   { (exit 1); exit 1; }; }
13905{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13906$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13907if test "${lt_cv_prog_gnu_ld+set}" = set; then
13908  $as_echo_n "(cached) " >&6
13909else
13910  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13911case `$LD -v 2>&1 </dev/null` in
13912*GNU* | *'with BFD'*)
13913  lt_cv_prog_gnu_ld=yes
13914  ;;
13915*)
13916  lt_cv_prog_gnu_ld=no
13917  ;;
13918esac
13919fi
13920{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13921$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13922with_gnu_ld=$lt_cv_prog_gnu_ld
13923
13924
13925
13926
13927
13928
13929
13930      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13931      # archiving commands below assume that GNU ld is being used.
13932      if test "$with_gnu_ld" = yes; then
13933        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13935
13936        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13937        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13938
13939        # If archive_cmds runs LD, not CC, wlarc should be empty
13940        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13941        #     investigate it a little bit more. (MM)
13942        wlarc='${wl}'
13943
13944        # ancient GNU ld didn't support --whole-archive et. al.
13945        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13946	  $GREP 'no-whole-archive' > /dev/null; then
13947          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13948        else
13949          whole_archive_flag_spec_CXX=
13950        fi
13951      else
13952        with_gnu_ld=no
13953        wlarc=
13954
13955        # A generic and very simple default shared library creation
13956        # command for GNU C++ for the case where it uses the native
13957        # linker, instead of GNU ld.  If possible, this setting should
13958        # overridden to take advantage of the native linker features on
13959        # the platform it is being used on.
13960        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13961      fi
13962
13963      # Commands to make compiler produce verbose output that lists
13964      # what "hidden" libraries, object files and flags are used when
13965      # linking a shared library.
13966      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13967
13968    else
13969      GXX=no
13970      with_gnu_ld=no
13971      wlarc=
13972    fi
13973
13974    # PORTME: fill in a description of your system's C++ link characteristics
13975    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13976$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13977    ld_shlibs_CXX=yes
13978    case $host_os in
13979      aix3*)
13980        # FIXME: insert proper C++ library support
13981        ld_shlibs_CXX=no
13982        ;;
13983      aix[4-9]*)
13984        if test "$host_cpu" = ia64; then
13985          # On IA64, the linker does run time linking by default, so we don't
13986          # have to do anything special.
13987          aix_use_runtimelinking=no
13988          exp_sym_flag='-Bexport'
13989          no_entry_flag=""
13990        else
13991          aix_use_runtimelinking=no
13992
13993          # Test if we are trying to use run time linking or normal
13994          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13995          # need to do runtime linking.
13996          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13997	    for ld_flag in $LDFLAGS; do
13998	      case $ld_flag in
13999	      *-brtl*)
14000	        aix_use_runtimelinking=yes
14001	        break
14002	        ;;
14003	      esac
14004	    done
14005	    ;;
14006          esac
14007
14008          exp_sym_flag='-bexport'
14009          no_entry_flag='-bnoentry'
14010        fi
14011
14012        # When large executables or shared objects are built, AIX ld can
14013        # have problems creating the table of contents.  If linking a library
14014        # or program results in "error TOC overflow" add -mminimal-toc to
14015        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14016        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14017
14018        archive_cmds_CXX=''
14019        hardcode_direct_CXX=yes
14020        hardcode_direct_absolute_CXX=yes
14021        hardcode_libdir_separator_CXX=':'
14022        link_all_deplibs_CXX=yes
14023        file_list_spec_CXX='${wl}-f,'
14024
14025        if test "$GXX" = yes; then
14026          case $host_os in aix4.[012]|aix4.[012].*)
14027          # We only want to do this on AIX 4.2 and lower, the check
14028          # below for broken collect2 doesn't work under 4.3+
14029	  collect2name=`${CC} -print-prog-name=collect2`
14030	  if test -f "$collect2name" &&
14031	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14032	  then
14033	    # We have reworked collect2
14034	    :
14035	  else
14036	    # We have old collect2
14037	    hardcode_direct_CXX=unsupported
14038	    # It fails to find uninstalled libraries when the uninstalled
14039	    # path is not listed in the libpath.  Setting hardcode_minus_L
14040	    # to unsupported forces relinking
14041	    hardcode_minus_L_CXX=yes
14042	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14043	    hardcode_libdir_separator_CXX=
14044	  fi
14045          esac
14046          shared_flag='-shared'
14047	  if test "$aix_use_runtimelinking" = yes; then
14048	    shared_flag="$shared_flag "'${wl}-G'
14049	  fi
14050        else
14051          # not using gcc
14052          if test "$host_cpu" = ia64; then
14053	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14054	  # chokes on -Wl,-G. The following line is correct:
14055	  shared_flag='-G'
14056          else
14057	    if test "$aix_use_runtimelinking" = yes; then
14058	      shared_flag='${wl}-G'
14059	    else
14060	      shared_flag='${wl}-bM:SRE'
14061	    fi
14062          fi
14063        fi
14064
14065        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14066        # It seems that -bexpall does not export symbols beginning with
14067        # underscore (_), so it is better to generate a list of symbols to
14068	# export.
14069        always_export_symbols_CXX=yes
14070        if test "$aix_use_runtimelinking" = yes; then
14071          # Warning - without using the other runtime loading flags (-brtl),
14072          # -berok will link without error, but may produce a broken library.
14073          allow_undefined_flag_CXX='-berok'
14074          # Determine the default libpath from the value encoded in an empty
14075          # executable.
14076          cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h.  */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h.  */
14082
14083int
14084main ()
14085{
14086
14087  ;
14088  return 0;
14089}
14090_ACEOF
14091rm -f conftest.$ac_objext conftest$ac_exeext
14092if { (ac_try="$ac_link"
14093case "(($ac_try" in
14094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095  *) ac_try_echo=$ac_try;;
14096esac
14097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14098$as_echo "$ac_try_echo") >&5
14099  (eval "$ac_link") 2>conftest.er1
14100  ac_status=$?
14101  grep -v '^ *+' conftest.er1 >conftest.err
14102  rm -f conftest.er1
14103  cat conftest.err >&5
14104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105  (exit $ac_status); } && {
14106	 test -z "$ac_cxx_werror_flag" ||
14107	 test ! -s conftest.err
14108       } && test -s conftest$ac_exeext && {
14109	 test "$cross_compiling" = yes ||
14110	 $as_test_x conftest$ac_exeext
14111       }; then
14112  
14113lt_aix_libpath_sed='
14114    /Import File Strings/,/^$/ {
14115	/^0/ {
14116	    s/^0  *\(.*\)$/\1/
14117	    p
14118	}
14119    }'
14120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14121# Check for a 64-bit object if we didn't find anything.
14122if test -z "$aix_libpath"; then
14123  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14124fi
14125else
14126  $as_echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129	
14130fi
14131
14132rm -rf conftest.dSYM
14133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14134      conftest$ac_exeext conftest.$ac_ext
14135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14136
14137          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14138
14139          archive_expsym_cmds_CXX='$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"
14140        else
14141          if test "$host_cpu" = ia64; then
14142	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14143	    allow_undefined_flag_CXX="-z nodefs"
14144	    archive_expsym_cmds_CXX="\$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"
14145          else
14146	    # Determine the default libpath from the value encoded in an
14147	    # empty executable.
14148	    cat >conftest.$ac_ext <<_ACEOF
14149/* confdefs.h.  */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
14153/* end confdefs.h.  */
14154
14155int
14156main ()
14157{
14158
14159  ;
14160  return 0;
14161}
14162_ACEOF
14163rm -f conftest.$ac_objext conftest$ac_exeext
14164if { (ac_try="$ac_link"
14165case "(($ac_try" in
14166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167  *) ac_try_echo=$ac_try;;
14168esac
14169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14170$as_echo "$ac_try_echo") >&5
14171  (eval "$ac_link") 2>conftest.er1
14172  ac_status=$?
14173  grep -v '^ *+' conftest.er1 >conftest.err
14174  rm -f conftest.er1
14175  cat conftest.err >&5
14176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177  (exit $ac_status); } && {
14178	 test -z "$ac_cxx_werror_flag" ||
14179	 test ! -s conftest.err
14180       } && test -s conftest$ac_exeext && {
14181	 test "$cross_compiling" = yes ||
14182	 $as_test_x conftest$ac_exeext
14183       }; then
14184  
14185lt_aix_libpath_sed='
14186    /Import File Strings/,/^$/ {
14187	/^0/ {
14188	    s/^0  *\(.*\)$/\1/
14189	    p
14190	}
14191    }'
14192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14193# Check for a 64-bit object if we didn't find anything.
14194if test -z "$aix_libpath"; then
14195  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14196fi
14197else
14198  $as_echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201	
14202fi
14203
14204rm -rf conftest.dSYM
14205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14206      conftest$ac_exeext conftest.$ac_ext
14207if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14208
14209	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14210	    # Warning - without using the other run time loading flags,
14211	    # -berok will link without error, but may produce a broken library.
14212	    no_undefined_flag_CXX=' ${wl}-bernotok'
14213	    allow_undefined_flag_CXX=' ${wl}-berok'
14214	    # Exported symbols can be pulled into shared objects from archives
14215	    whole_archive_flag_spec_CXX='$convenience'
14216	    archive_cmds_need_lc_CXX=yes
14217	    # This is similar to how AIX traditionally builds its shared
14218	    # libraries.
14219	    archive_expsym_cmds_CXX="\$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'
14220          fi
14221        fi
14222        ;;
14223
14224      beos*)
14225	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14226	  allow_undefined_flag_CXX=unsupported
14227	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14228	  # support --undefined.  This deserves some investigation.  FIXME
14229	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230	else
14231	  ld_shlibs_CXX=no
14232	fi
14233	;;
14234
14235      chorus*)
14236        case $cc_basename in
14237          *)
14238	  # FIXME: insert proper C++ library support
14239	  ld_shlibs_CXX=no
14240	  ;;
14241        esac
14242        ;;
14243
14244      cygwin* | mingw* | pw32* | cegcc*)
14245        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14246        # as there is no search path for DLLs.
14247        hardcode_libdir_flag_spec_CXX='-L$libdir'
14248        allow_undefined_flag_CXX=unsupported
14249        always_export_symbols_CXX=no
14250        enable_shared_with_static_runtimes_CXX=yes
14251
14252        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14253          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14254          # If the export-symbols file already is a .def file (1st line
14255          # is EXPORTS), use it as is; otherwise, prepend...
14256          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14257	    cp $export_symbols $output_objdir/$soname.def;
14258          else
14259	    echo EXPORTS > $output_objdir/$soname.def;
14260	    cat $export_symbols >> $output_objdir/$soname.def;
14261          fi~
14262          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14263        else
14264          ld_shlibs_CXX=no
14265        fi
14266        ;;
14267      darwin* | rhapsody*)
14268        
14269  
14270  archive_cmds_need_lc_CXX=no
14271  hardcode_direct_CXX=no
14272  hardcode_automatic_CXX=yes
14273  hardcode_shlibpath_var_CXX=unsupported
14274  whole_archive_flag_spec_CXX=''
14275  link_all_deplibs_CXX=yes
14276  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14277  case $cc_basename in
14278     ifort*) _lt_dar_can_shared=yes ;;
14279     *) _lt_dar_can_shared=$GCC ;;
14280  esac
14281  if test "$_lt_dar_can_shared" = "yes"; then
14282    output_verbose_link_cmd=echo
14283    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14284    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14285    archive_expsym_cmds_CXX="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}"
14286    module_expsym_cmds_CXX="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}"
14287       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14288      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14289      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14290    fi
14291
14292  else
14293  ld_shlibs_CXX=no
14294  fi
14295
14296	;;
14297
14298      dgux*)
14299        case $cc_basename in
14300          ec++*)
14301	    # FIXME: insert proper C++ library support
14302	    ld_shlibs_CXX=no
14303	    ;;
14304          ghcx*)
14305	    # Green Hills C++ Compiler
14306	    # FIXME: insert proper C++ library support
14307	    ld_shlibs_CXX=no
14308	    ;;
14309          *)
14310	    # FIXME: insert proper C++ library support
14311	    ld_shlibs_CXX=no
14312	    ;;
14313        esac
14314        ;;
14315
14316      freebsd[12]*)
14317        # C++ shared libraries reported to be fairly broken before
14318	# switch to ELF
14319        ld_shlibs_CXX=no
14320        ;;
14321
14322      freebsd-elf*)
14323        archive_cmds_need_lc_CXX=no
14324        ;;
14325
14326      freebsd* | dragonfly*)
14327        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14328        # conventions
14329        ld_shlibs_CXX=yes
14330        ;;
14331
14332      gnu*)
14333        ;;
14334
14335      hpux9*)
14336        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14337        hardcode_libdir_separator_CXX=:
14338        export_dynamic_flag_spec_CXX='${wl}-E'
14339        hardcode_direct_CXX=yes
14340        hardcode_minus_L_CXX=yes # Not in the search PATH,
14341				             # but as the default
14342				             # location of the library.
14343
14344        case $cc_basename in
14345          CC*)
14346            # FIXME: insert proper C++ library support
14347            ld_shlibs_CXX=no
14348            ;;
14349          aCC*)
14350            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14351            # Commands to make compiler produce verbose output that lists
14352            # what "hidden" libraries, object files and flags are used when
14353            # linking a shared library.
14354            #
14355            # There doesn't appear to be a way to prevent this compiler from
14356            # explicitly linking system object files so we need to strip them
14357            # from the output so that they don't get included in the library
14358            # dependencies.
14359            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14360            ;;
14361          *)
14362            if test "$GXX" = yes; then
14363              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14364            else
14365              # FIXME: insert proper C++ library support
14366              ld_shlibs_CXX=no
14367            fi
14368            ;;
14369        esac
14370        ;;
14371
14372      hpux10*|hpux11*)
14373        if test $with_gnu_ld = no; then
14374	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14375	  hardcode_libdir_separator_CXX=:
14376
14377          case $host_cpu in
14378            hppa*64*|ia64*)
14379              ;;
14380            *)
14381	      export_dynamic_flag_spec_CXX='${wl}-E'
14382              ;;
14383          esac
14384        fi
14385        case $host_cpu in
14386          hppa*64*|ia64*)
14387            hardcode_direct_CXX=no
14388            hardcode_shlibpath_var_CXX=no
14389            ;;
14390          *)
14391            hardcode_direct_CXX=yes
14392            hardcode_direct_absolute_CXX=yes
14393            hardcode_minus_L_CXX=yes # Not in the search PATH,
14394					         # but as the default
14395					         # location of the library.
14396            ;;
14397        esac
14398
14399        case $cc_basename in
14400          CC*)
14401	    # FIXME: insert proper C++ library support
14402	    ld_shlibs_CXX=no
14403	    ;;
14404          aCC*)
14405	    case $host_cpu in
14406	      hppa*64*)
14407	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14408	        ;;
14409	      ia64*)
14410	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14411	        ;;
14412	      *)
14413	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14414	        ;;
14415	    esac
14416	    # Commands to make compiler produce verbose output that lists
14417	    # what "hidden" libraries, object files and flags are used when
14418	    # linking a shared library.
14419	    #
14420	    # There doesn't appear to be a way to prevent this compiler from
14421	    # explicitly linking system object files so we need to strip them
14422	    # from the output so that they don't get included in the library
14423	    # dependencies.
14424	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14425	    ;;
14426          *)
14427	    if test "$GXX" = yes; then
14428	      if test $with_gnu_ld = no; then
14429	        case $host_cpu in
14430	          hppa*64*)
14431	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14432	            ;;
14433	          ia64*)
14434	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14435	            ;;
14436	          *)
14437	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438	            ;;
14439	        esac
14440	      fi
14441	    else
14442	      # FIXME: insert proper C++ library support
14443	      ld_shlibs_CXX=no
14444	    fi
14445	    ;;
14446        esac
14447        ;;
14448
14449      interix[3-9]*)
14450	hardcode_direct_CXX=no
14451	hardcode_shlibpath_var_CXX=no
14452	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14453	export_dynamic_flag_spec_CXX='${wl}-E'
14454	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14455	# Instead, shared libraries are loaded at an image base (0x10000000 by
14456	# default) and relocated if they conflict, which is a slow very memory
14457	# consuming and fragmenting process.  To avoid this, we pick a random,
14458	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14459	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14460	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14461	archive_expsym_cmds_CXX='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'
14462	;;
14463      irix5* | irix6*)
14464        case $cc_basename in
14465          CC*)
14466	    # SGI C++
14467	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14468
14469	    # Archives containing C++ object files must be created using
14470	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14471	    # necessary to make sure instantiated templates are included
14472	    # in the archive.
14473	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14474	    ;;
14475          *)
14476	    if test "$GXX" = yes; then
14477	      if test "$with_gnu_ld" = no; then
14478	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14479	      else
14480	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14481	      fi
14482	    fi
14483	    link_all_deplibs_CXX=yes
14484	    ;;
14485        esac
14486        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14487        hardcode_libdir_separator_CXX=:
14488        inherit_rpath_CXX=yes
14489        ;;
14490
14491      linux* | k*bsd*-gnu)
14492        case $cc_basename in
14493          KCC*)
14494	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14495
14496	    # KCC will only create a shared library if the output file
14497	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14498	    # to its proper name (with version) after linking.
14499	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14500	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14501	    # Commands to make compiler produce verbose output that lists
14502	    # what "hidden" libraries, object files and flags are used when
14503	    # linking a shared library.
14504	    #
14505	    # There doesn't appear to be a way to prevent this compiler from
14506	    # explicitly linking system object files so we need to strip them
14507	    # from the output so that they don't get included in the library
14508	    # dependencies.
14509	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14510
14511	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14512	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14513
14514	    # Archives containing C++ object files must be created using
14515	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14516	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14517	    ;;
14518	  icpc* | ecpc* )
14519	    # Intel C++
14520	    with_gnu_ld=yes
14521	    # version 8.0 and above of icpc choke on multiply defined symbols
14522	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14523	    # earlier do not add the objects themselves.
14524	    case `$CC -V 2>&1` in
14525	      *"Version 7."*)
14526	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14528		;;
14529	      *)  # Version 8.0 or newer
14530	        tmp_idyn=
14531	        case $host_cpu in
14532		  ia64*) tmp_idyn=' -i_dynamic';;
14533		esac
14534	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14536		;;
14537	    esac
14538	    archive_cmds_need_lc_CXX=no
14539	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14540	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14541	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14542	    ;;
14543          pgCC* | pgcpp*)
14544            # Portland Group C++ compiler
14545	    case `$CC -V` in
14546	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14547	      prelink_cmds_CXX='tpldir=Template.dir~
14548		rm -rf $tpldir~
14549		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14550		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14551	      old_archive_cmds_CXX='tpldir=Template.dir~
14552		rm -rf $tpldir~
14553		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14554		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14555		$RANLIB $oldlib'
14556	      archive_cmds_CXX='tpldir=Template.dir~
14557		rm -rf $tpldir~
14558		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14559		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14560	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14561		rm -rf $tpldir~
14562		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14563		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14564	      ;;
14565	    *) # Version 6 will use weak symbols
14566	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14567	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14568	      ;;
14569	    esac
14570
14571	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14572	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14573	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14574            ;;
14575	  cxx*)
14576	    # Compaq C++
14577	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14578	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14579
14580	    runpath_var=LD_RUN_PATH
14581	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14582	    hardcode_libdir_separator_CXX=:
14583
14584	    # Commands to make compiler produce verbose output that lists
14585	    # what "hidden" libraries, object files and flags are used when
14586	    # linking a shared library.
14587	    #
14588	    # There doesn't appear to be a way to prevent this compiler from
14589	    # explicitly linking system object files so we need to strip them
14590	    # from the output so that they don't get included in the library
14591	    # dependencies.
14592	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14593	    ;;
14594	  xl*)
14595	    # IBM XL 8.0 on PPC, with GNU ld
14596	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14597	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14598	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14599	    if test "x$supports_anon_versioning" = xyes; then
14600	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14601		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14602		echo "local: *; };" >> $output_objdir/$libname.ver~
14603		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14604	    fi
14605	    ;;
14606	  *)
14607	    case `$CC -V 2>&1 | sed 5q` in
14608	    *Sun\ C*)
14609	      # Sun C++ 5.9
14610	      no_undefined_flag_CXX=' -zdefs'
14611	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14612	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14613	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14614	      whole_archive_flag_spec_CXX='${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'
14615	      compiler_needs_object_CXX=yes
14616
14617	      # Not sure whether something based on
14618	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14619	      # would be better.
14620	      output_verbose_link_cmd='echo'
14621
14622	      # Archives containing C++ object files must be created using
14623	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14624	      # necessary to make sure instantiated templates are included
14625	      # in the archive.
14626	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14627	      ;;
14628	    esac
14629	    ;;
14630	esac
14631	;;
14632
14633      lynxos*)
14634        # FIXME: insert proper C++ library support
14635	ld_shlibs_CXX=no
14636	;;
14637
14638      m88k*)
14639        # FIXME: insert proper C++ library support
14640        ld_shlibs_CXX=no
14641	;;
14642
14643      mvs*)
14644        case $cc_basename in
14645          cxx*)
14646	    # FIXME: insert proper C++ library support
14647	    ld_shlibs_CXX=no
14648	    ;;
14649	  *)
14650	    # FIXME: insert proper C++ library support
14651	    ld_shlibs_CXX=no
14652	    ;;
14653	esac
14654	;;
14655
14656      netbsd*)
14657        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14658	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14659	  wlarc=
14660	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14661	  hardcode_direct_CXX=yes
14662	  hardcode_shlibpath_var_CXX=no
14663	fi
14664	# Workaround some broken pre-1.5 toolchains
14665	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14666	;;
14667
14668      *nto* | *qnx*)
14669        ld_shlibs_CXX=yes
14670	;;
14671
14672      openbsd2*)
14673        # C++ shared libraries are fairly broken
14674	ld_shlibs_CXX=no
14675	;;
14676
14677      openbsd*)
14678	if test -f /usr/libexec/ld.so; then
14679	  hardcode_direct_CXX=yes
14680	  hardcode_shlibpath_var_CXX=no
14681	  hardcode_direct_absolute_CXX=yes
14682	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14683	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14684	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14685	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14686	    export_dynamic_flag_spec_CXX='${wl}-E'
14687	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14688	  fi
14689	  output_verbose_link_cmd=echo
14690	else
14691	  ld_shlibs_CXX=no
14692	fi
14693	;;
14694
14695      osf3* | osf4* | osf5*)
14696        case $cc_basename in
14697          KCC*)
14698	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14699
14700	    # KCC will only create a shared library if the output file
14701	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14702	    # to its proper name (with version) after linking.
14703	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14704
14705	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14706	    hardcode_libdir_separator_CXX=:
14707
14708	    # Archives containing C++ object files must be created using
14709	    # the KAI C++ compiler.
14710	    case $host in
14711	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14712	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14713	    esac
14714	    ;;
14715          RCC*)
14716	    # Rational C++ 2.4.1
14717	    # FIXME: insert proper C++ library support
14718	    ld_shlibs_CXX=no
14719	    ;;
14720          cxx*)
14721	    case $host in
14722	      osf3*)
14723	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14724	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14725	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14726		;;
14727	      *)
14728	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14729	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14730	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14731	          echo "-hidden">> $lib.exp~
14732	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14733	          $RM $lib.exp'
14734	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14735		;;
14736	    esac
14737
14738	    hardcode_libdir_separator_CXX=:
14739
14740	    # Commands to make compiler produce verbose output that lists
14741	    # what "hidden" libraries, object files and flags are used when
14742	    # linking a shared library.
14743	    #
14744	    # There doesn't appear to be a way to prevent this compiler from
14745	    # explicitly linking system object files so we need to strip them
14746	    # from the output so that they don't get included in the library
14747	    # dependencies.
14748	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14749	    ;;
14750	  *)
14751	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14752	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14753	      case $host in
14754	        osf3*)
14755	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14756		  ;;
14757	        *)
14758	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14759		  ;;
14760	      esac
14761
14762	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14763	      hardcode_libdir_separator_CXX=:
14764
14765	      # Commands to make compiler produce verbose output that lists
14766	      # what "hidden" libraries, object files and flags are used when
14767	      # linking a shared library.
14768	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14769
14770	    else
14771	      # FIXME: insert proper C++ library support
14772	      ld_shlibs_CXX=no
14773	    fi
14774	    ;;
14775        esac
14776        ;;
14777
14778      psos*)
14779        # FIXME: insert proper C++ library support
14780        ld_shlibs_CXX=no
14781        ;;
14782
14783      sunos4*)
14784        case $cc_basename in
14785          CC*)
14786	    # Sun C++ 4.x
14787	    # FIXME: insert proper C++ library support
14788	    ld_shlibs_CXX=no
14789	    ;;
14790          lcc*)
14791	    # Lucid
14792	    # FIXME: insert proper C++ library support
14793	    ld_shlibs_CXX=no
14794	    ;;
14795          *)
14796	    # FIXME: insert proper C++ library support
14797	    ld_shlibs_CXX=no
14798	    ;;
14799        esac
14800        ;;
14801
14802      solaris*)
14803        case $cc_basename in
14804          CC*)
14805	    # Sun C++ 4.2, 5.x and Centerline C++
14806            archive_cmds_need_lc_CXX=yes
14807	    no_undefined_flag_CXX=' -zdefs'
14808	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14809	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14810	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14811
14812	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14813	    hardcode_shlibpath_var_CXX=no
14814	    case $host_os in
14815	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14816	      *)
14817		# The compiler driver will combine and reorder linker options,
14818		# but understands `-z linker_flag'.
14819	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14820		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14821	        ;;
14822	    esac
14823	    link_all_deplibs_CXX=yes
14824
14825	    output_verbose_link_cmd='echo'
14826
14827	    # Archives containing C++ object files must be created using
14828	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14829	    # necessary to make sure instantiated templates are included
14830	    # in the archive.
14831	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14832	    ;;
14833          gcx*)
14834	    # Green Hills C++ Compiler
14835	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14836
14837	    # The C++ compiler must be used to create the archive.
14838	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14839	    ;;
14840          *)
14841	    # GNU C++ compiler with Solaris linker
14842	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14843	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14844	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14845	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14846	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14847		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14848
14849	        # Commands to make compiler produce verbose output that lists
14850	        # what "hidden" libraries, object files and flags are used when
14851	        # linking a shared library.
14852	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14853	      else
14854	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14855	        # platform.
14856	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14857	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14858		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14859
14860	        # Commands to make compiler produce verbose output that lists
14861	        # what "hidden" libraries, object files and flags are used when
14862	        # linking a shared library.
14863	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14864	      fi
14865
14866	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14867	      case $host_os in
14868		solaris2.[0-5] | solaris2.[0-5].*) ;;
14869		*)
14870		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14871		  ;;
14872	      esac
14873	    fi
14874	    ;;
14875        esac
14876        ;;
14877
14878    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14879      no_undefined_flag_CXX='${wl}-z,text'
14880      archive_cmds_need_lc_CXX=no
14881      hardcode_shlibpath_var_CXX=no
14882      runpath_var='LD_RUN_PATH'
14883
14884      case $cc_basename in
14885        CC*)
14886	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14888	  ;;
14889	*)
14890	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14892	  ;;
14893      esac
14894      ;;
14895
14896      sysv5* | sco3.2v5* | sco5v6*)
14897	# Note: We can NOT use -z defs as we might desire, because we do not
14898	# link with -lc, and that would cause any symbols used from libc to
14899	# always be unresolved, which means just about no library would
14900	# ever link correctly.  If we're not using GNU ld we use -z text
14901	# though, which does catch some bad symbols but isn't as heavy-handed
14902	# as -z defs.
14903	no_undefined_flag_CXX='${wl}-z,text'
14904	allow_undefined_flag_CXX='${wl}-z,nodefs'
14905	archive_cmds_need_lc_CXX=no
14906	hardcode_shlibpath_var_CXX=no
14907	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14908	hardcode_libdir_separator_CXX=':'
14909	link_all_deplibs_CXX=yes
14910	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14911	runpath_var='LD_RUN_PATH'
14912
14913	case $cc_basename in
14914          CC*)
14915	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917	    ;;
14918	  *)
14919	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14920	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14921	    ;;
14922	esac
14923      ;;
14924
14925      tandem*)
14926        case $cc_basename in
14927          NCC*)
14928	    # NonStop-UX NCC 3.20
14929	    # FIXME: insert proper C++ library support
14930	    ld_shlibs_CXX=no
14931	    ;;
14932          *)
14933	    # FIXME: insert proper C++ library support
14934	    ld_shlibs_CXX=no
14935	    ;;
14936        esac
14937        ;;
14938
14939      vxworks*)
14940        # FIXME: insert proper C++ library support
14941        ld_shlibs_CXX=no
14942        ;;
14943
14944      *)
14945        # FIXME: insert proper C++ library support
14946        ld_shlibs_CXX=no
14947        ;;
14948    esac
14949
14950    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14951$as_echo "$ld_shlibs_CXX" >&6; }
14952    test "$ld_shlibs_CXX" = no && can_build_shared=no
14953
14954    GCC_CXX="$GXX"
14955    LD_CXX="$LD"
14956
14957    ## CAVEAT EMPTOR:
14958    ## There is no encapsulation within the following macros, do not change
14959    ## the running order or otherwise move them around unless you know exactly
14960    ## what you are doing...
14961    # Dependencies to place before and after the object being linked:
14962predep_objects_CXX=
14963postdep_objects_CXX=
14964predeps_CXX=
14965postdeps_CXX=
14966compiler_lib_search_path_CXX=
14967
14968cat > conftest.$ac_ext <<_LT_EOF
14969class Foo
14970{
14971public:
14972  Foo (void) { a = 0; }
14973private:
14974  int a;
14975};
14976_LT_EOF
14977
14978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979  (eval $ac_compile) 2>&5
14980  ac_status=$?
14981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982  (exit $ac_status); }; then
14983  # Parse the compiler output and extract the necessary
14984  # objects, libraries and library flags.
14985
14986  # Sentinel used to keep track of whether or not we are before
14987  # the conftest object file.
14988  pre_test_object_deps_done=no
14989
14990  for p in `eval "$output_verbose_link_cmd"`; do
14991    case $p in
14992
14993    -L* | -R* | -l*)
14994       # Some compilers place space between "-{L,R}" and the path.
14995       # Remove the space.
14996       if test $p = "-L" ||
14997          test $p = "-R"; then
14998	 prev=$p
14999	 continue
15000       else
15001	 prev=
15002       fi
15003
15004       if test "$pre_test_object_deps_done" = no; then
15005	 case $p in
15006	 -L* | -R*)
15007	   # Internal compiler library paths should come after those
15008	   # provided the user.  The postdeps already come after the
15009	   # user supplied libs so there is no need to process them.
15010	   if test -z "$compiler_lib_search_path_CXX"; then
15011	     compiler_lib_search_path_CXX="${prev}${p}"
15012	   else
15013	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15014	   fi
15015	   ;;
15016	 # The "-l" case would never come before the object being
15017	 # linked, so don't bother handling this case.
15018	 esac
15019       else
15020	 if test -z "$postdeps_CXX"; then
15021	   postdeps_CXX="${prev}${p}"
15022	 else
15023	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15024	 fi
15025       fi
15026       ;;
15027
15028    *.$objext)
15029       # This assumes that the test object file only shows up
15030       # once in the compiler output.
15031       if test "$p" = "conftest.$objext"; then
15032	 pre_test_object_deps_done=yes
15033	 continue
15034       fi
15035
15036       if test "$pre_test_object_deps_done" = no; then
15037	 if test -z "$predep_objects_CXX"; then
15038	   predep_objects_CXX="$p"
15039	 else
15040	   predep_objects_CXX="$predep_objects_CXX $p"
15041	 fi
15042       else
15043	 if test -z "$postdep_objects_CXX"; then
15044	   postdep_objects_CXX="$p"
15045	 else
15046	   postdep_objects_CXX="$postdep_objects_CXX $p"
15047	 fi
15048       fi
15049       ;;
15050
15051    *) ;; # Ignore the rest.
15052
15053    esac
15054  done
15055
15056  # Clean up.
15057  rm -f a.out a.exe
15058else
15059  echo "libtool.m4: error: problem compiling CXX test program"
15060fi
15061
15062$RM -f confest.$objext
15063
15064# PORTME: override above test on systems where it is broken
15065case $host_os in
15066interix[3-9]*)
15067  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15068  # hack all around it, let's just trust "g++" to DTRT.
15069  predep_objects_CXX=
15070  postdep_objects_CXX=
15071  postdeps_CXX=
15072  ;;
15073
15074linux*)
15075  case `$CC -V 2>&1 | sed 5q` in
15076  *Sun\ C*)
15077    # Sun C++ 5.9
15078
15079    # The more standards-conforming stlport4 library is
15080    # incompatible with the Cstd library. Avoid specifying
15081    # it if it's in CXXFLAGS. Ignore libCrun as
15082    # -library=stlport4 depends on it.
15083    case " $CXX $CXXFLAGS " in
15084    *" -library=stlport4 "*)
15085      solaris_use_stlport4=yes
15086      ;;
15087    esac
15088
15089    if test "$solaris_use_stlport4" != yes; then
15090      postdeps_CXX='-library=Cstd -library=Crun'
15091    fi
15092    ;;
15093  esac
15094  ;;
15095
15096solaris*)
15097  case $cc_basename in
15098  CC*)
15099    # The more standards-conforming stlport4 library is
15100    # incompatible with the Cstd library. Avoid specifying
15101    # it if it's in CXXFLAGS. Ignore libCrun as
15102    # -library=stlport4 depends on it.
15103    case " $CXX $CXXFLAGS " in
15104    *" -library=stlport4 "*)
15105      solaris_use_stlport4=yes
15106      ;;
15107    esac
15108
15109    # Adding this requires a known-good setup of shared libraries for
15110    # Sun compiler versions before 5.6, else PIC objects from an old
15111    # archive will be linked into the output, leading to subtle bugs.
15112    if test "$solaris_use_stlport4" != yes; then
15113      postdeps_CXX='-library=Cstd -library=Crun'
15114    fi
15115    ;;
15116  esac
15117  ;;
15118esac
15119
15120
15121case " $postdeps_CXX " in
15122*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15123esac
15124 compiler_lib_search_dirs_CXX=
15125if test -n "${compiler_lib_search_path_CXX}"; then
15126 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15127fi
15128
15129    
15130    
15131    
15132
15133
15134    
15135    
15136    
15137
15138
15139    
15140    
15141    
15142
15143
15144    
15145    
15146    
15147
15148
15149    
15150    
15151    
15152
15153
15154    
15155    
15156    
15157
15158
15159    lt_prog_compiler_wl_CXX=
15160lt_prog_compiler_pic_CXX=
15161lt_prog_compiler_static_CXX=
15162
15163{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15164$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15165
15166  # C++ specific cases for pic, static, wl, etc.
15167  if test "$GXX" = yes; then
15168    lt_prog_compiler_wl_CXX='-Wl,'
15169    lt_prog_compiler_static_CXX='-static'
15170
15171    case $host_os in
15172    aix*)
15173      # All AIX code is PIC.
15174      if test "$host_cpu" = ia64; then
15175	# AIX 5 now supports IA64 processor
15176	lt_prog_compiler_static_CXX='-Bstatic'
15177      fi
15178      ;;
15179
15180    amigaos*)
15181      case $host_cpu in
15182      powerpc)
15183            # see comment about AmigaOS4 .so support
15184            lt_prog_compiler_pic_CXX='-fPIC'
15185        ;;
15186      m68k)
15187            # FIXME: we need at least 68020 code to build shared libraries, but
15188            # adding the `-m68020' flag to GCC prevents building anything better,
15189            # like `-m68040'.
15190            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15191        ;;
15192      esac
15193      ;;
15194
15195    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15196      # PIC is the default for these OSes.
15197      ;;
15198    mingw* | cygwin* | os2* | pw32* | cegcc*)
15199      # This hack is so that the source file can tell whether it is being
15200      # built for inclusion in a dll (and should export symbols for example).
15201      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15202      # (--disable-auto-import) libraries
15203      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15204      ;;
15205    darwin* | rhapsody*)
15206      # PIC is the default on this platform
15207      # Common symbols not allowed in MH_DYLIB files
15208      lt_prog_compiler_pic_CXX='-fno-common'
15209      ;;
15210    *djgpp*)
15211      # DJGPP does not support shared libraries at all
15212      lt_prog_compiler_pic_CXX=
15213      ;;
15214    interix[3-9]*)
15215      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15216      # Instead, we relocate shared libraries at runtime.
15217      ;;
15218    sysv4*MP*)
15219      if test -d /usr/nec; then
15220	lt_prog_compiler_pic_CXX=-Kconform_pic
15221      fi
15222      ;;
15223    hpux*)
15224      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15225      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15226      # sets the default TLS model and affects inlining.
15227      case $host_cpu in
15228      hppa*64*)
15229	;;
15230      *)
15231	lt_prog_compiler_pic_CXX='-fPIC'
15232	;;
15233      esac
15234      ;;
15235    *qnx* | *nto*)
15236      # QNX uses GNU C++, but need to define -shared option too, otherwise
15237      # it will coredump.
15238      lt_prog_compiler_pic_CXX='-fPIC -shared'
15239      ;;
15240    *)
15241      lt_prog_compiler_pic_CXX='-fPIC'
15242      ;;
15243    esac
15244  else
15245    case $host_os in
15246      aix[4-9]*)
15247	# All AIX code is PIC.
15248	if test "$host_cpu" = ia64; then
15249	  # AIX 5 now supports IA64 processor
15250	  lt_prog_compiler_static_CXX='-Bstatic'
15251	else
15252	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15253	fi
15254	;;
15255      chorus*)
15256	case $cc_basename in
15257	cxch68*)
15258	  # Green Hills C++ Compiler
15259	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15260	  ;;
15261	esac
15262	;;
15263      dgux*)
15264	case $cc_basename in
15265	  ec++*)
15266	    lt_prog_compiler_pic_CXX='-KPIC'
15267	    ;;
15268	  ghcx*)
15269	    # Green Hills C++ Compiler
15270	    lt_prog_compiler_pic_CXX='-pic'
15271	    ;;
15272	  *)
15273	    ;;
15274	esac
15275	;;
15276      freebsd* | dragonfly*)
15277	# FreeBSD uses GNU C++
15278	;;
15279      hpux9* | hpux10* | hpux11*)
15280	case $cc_basename in
15281	  CC*)
15282	    lt_prog_compiler_wl_CXX='-Wl,'
15283	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15284	    if test "$host_cpu" != ia64; then
15285	      lt_prog_compiler_pic_CXX='+Z'
15286	    fi
15287	    ;;
15288	  aCC*)
15289	    lt_prog_compiler_wl_CXX='-Wl,'
15290	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15291	    case $host_cpu in
15292	    hppa*64*|ia64*)
15293	      # +Z the default
15294	      ;;
15295	    *)
15296	      lt_prog_compiler_pic_CXX='+Z'
15297	      ;;
15298	    esac
15299	    ;;
15300	  *)
15301	    ;;
15302	esac
15303	;;
15304      interix*)
15305	# This is c89, which is MS Visual C++ (no shared libs)
15306	# Anyone wants to do a port?
15307	;;
15308      irix5* | irix6* | nonstopux*)
15309	case $cc_basename in
15310	  CC*)
15311	    lt_prog_compiler_wl_CXX='-Wl,'
15312	    lt_prog_compiler_static_CXX='-non_shared'
15313	    # CC pic flag -KPIC is the default.
15314	    ;;
15315	  *)
15316	    ;;
15317	esac
15318	;;
15319      linux* | k*bsd*-gnu)
15320	case $cc_basename in
15321	  KCC*)
15322	    # KAI C++ Compiler
15323	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15324	    lt_prog_compiler_pic_CXX='-fPIC'
15325	    ;;
15326	  ecpc* )
15327	    # old Intel C++ for x86_64 which still supported -KPIC.
15328	    lt_prog_compiler_wl_CXX='-Wl,'
15329	    lt_prog_compiler_pic_CXX='-KPIC'
15330	    lt_prog_compiler_static_CXX='-static'
15331	    ;;
15332	  icpc* )
15333	    # Intel C++, used to be incompatible with GCC.
15334	    # ICC 10 doesn't accept -KPIC any more.
15335	    lt_prog_compiler_wl_CXX='-Wl,'
15336	    lt_prog_compiler_pic_CXX='-fPIC'
15337	    lt_prog_compiler_static_CXX='-static'
15338	    ;;
15339	  pgCC* | pgcpp*)
15340	    # Portland Group C++ compiler
15341	    lt_prog_compiler_wl_CXX='-Wl,'
15342	    lt_prog_compiler_pic_CXX='-fpic'
15343	    lt_prog_compiler_static_CXX='-Bstatic'
15344	    ;;
15345	  cxx*)
15346	    # Compaq C++
15347	    # Make sure the PIC flag is empty.  It appears that all Alpha
15348	    # Linux and Compaq Tru64 Unix objects are PIC.
15349	    lt_prog_compiler_pic_CXX=
15350	    lt_prog_compiler_static_CXX='-non_shared'
15351	    ;;
15352	  xlc* | xlC*)
15353	    # IBM XL 8.0 on PPC
15354	    lt_prog_compiler_wl_CXX='-Wl,'
15355	    lt_prog_compiler_pic_CXX='-qpic'
15356	    lt_prog_compiler_static_CXX='-qstaticlink'
15357	    ;;
15358	  *)
15359	    case `$CC -V 2>&1 | sed 5q` in
15360	    *Sun\ C*)
15361	      # Sun C++ 5.9
15362	      lt_prog_compiler_pic_CXX='-KPIC'
15363	      lt_prog_compiler_static_CXX='-Bstatic'
15364	      lt_prog_compiler_wl_CXX='-Qoption ld '
15365	      ;;
15366	    esac
15367	    ;;
15368	esac
15369	;;
15370      lynxos*)
15371	;;
15372      m88k*)
15373	;;
15374      mvs*)
15375	case $cc_basename in
15376	  cxx*)
15377	    lt_prog_compiler_pic_CXX='-W c,exportall'
15378	    ;;
15379	  *)
15380	    ;;
15381	esac
15382	;;
15383      netbsd*)
15384	;;
15385      *qnx* | *nto*)
15386        # QNX uses GNU C++, but need to define -shared option too, otherwise
15387        # it will coredump.
15388        lt_prog_compiler_pic_CXX='-fPIC -shared'
15389        ;;
15390      osf3* | osf4* | osf5*)
15391	case $cc_basename in
15392	  KCC*)
15393	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15394	    ;;
15395	  RCC*)
15396	    # Rational C++ 2.4.1
15397	    lt_prog_compiler_pic_CXX='-pic'
15398	    ;;
15399	  cxx*)
15400	    # Digital/Compaq C++
15401	    lt_prog_compiler_wl_CXX='-Wl,'
15402	    # Make sure the PIC flag is empty.  It appears that all Alpha
15403	    # Linux and Compaq Tru64 Unix objects are PIC.
15404	    lt_prog_compiler_pic_CXX=
15405	    lt_prog_compiler_static_CXX='-non_shared'
15406	    ;;
15407	  *)
15408	    ;;
15409	esac
15410	;;
15411      psos*)
15412	;;
15413      solaris*)
15414	case $cc_basename in
15415	  CC*)
15416	    # Sun C++ 4.2, 5.x and Centerline C++
15417	    lt_prog_compiler_pic_CXX='-KPIC'
15418	    lt_prog_compiler_static_CXX='-Bstatic'
15419	    lt_prog_compiler_wl_CXX='-Qoption ld '
15420	    ;;
15421	  gcx*)
15422	    # Green Hills C++ Compiler
15423	    lt_prog_compiler_pic_CXX='-PIC'
15424	    ;;
15425	  *)
15426	    ;;
15427	esac
15428	;;
15429      sunos4*)
15430	case $cc_basename in
15431	  CC*)
15432	    # Sun C++ 4.x
15433	    lt_prog_compiler_pic_CXX='-pic'
15434	    lt_prog_compiler_static_CXX='-Bstatic'
15435	    ;;
15436	  lcc*)
15437	    # Lucid
15438	    lt_prog_compiler_pic_CXX='-pic'
15439	    ;;
15440	  *)
15441	    ;;
15442	esac
15443	;;
15444      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15445	case $cc_basename in
15446	  CC*)
15447	    lt_prog_compiler_wl_CXX='-Wl,'
15448	    lt_prog_compiler_pic_CXX='-KPIC'
15449	    lt_prog_compiler_static_CXX='-Bstatic'
15450	    ;;
15451	esac
15452	;;
15453      tandem*)
15454	case $cc_basename in
15455	  NCC*)
15456	    # NonStop-UX NCC 3.20
15457	    lt_prog_compiler_pic_CXX='-KPIC'
15458	    ;;
15459	  *)
15460	    ;;
15461	esac
15462	;;
15463      vxworks*)
15464	;;
15465      *)
15466	lt_prog_compiler_can_build_shared_CXX=no
15467	;;
15468    esac
15469  fi
15470
15471case $host_os in
15472  # For platforms which do not support PIC, -DPIC is meaningless:
15473  *djgpp*)
15474    lt_prog_compiler_pic_CXX=
15475    ;;
15476  *)
15477    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15478    ;;
15479esac
15480{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15481$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15482
15483
15484
15485#
15486# Check to make sure the PIC flag actually works.
15487#
15488if test -n "$lt_prog_compiler_pic_CXX"; then
15489  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15490$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15491if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15492  $as_echo_n "(cached) " >&6
15493else
15494  lt_cv_prog_compiler_pic_works_CXX=no
15495   ac_outfile=conftest.$ac_objext
15496   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15497   lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15498   # Insert the option either (1) after the last *FLAGS variable, or
15499   # (2) before a word containing "conftest.", or (3) at the end.
15500   # Note that $ac_compile itself does not contain backslashes and begins
15501   # with a dollar sign (not a hyphen), so the echo should work correctly.
15502   # The option is referenced via a variable to avoid confusing sed.
15503   lt_compile=`echo "$ac_compile" | $SED \
15504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15506   -e 's:$: $lt_compiler_flag:'`
15507   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15508   (eval "$lt_compile" 2>conftest.err)
15509   ac_status=$?
15510   cat conftest.err >&5
15511   echo "$as_me:__oline__: \$? = $ac_status" >&5
15512   if (exit $ac_status) && test -s "$ac_outfile"; then
15513     # The compiler can only warn and ignore the option if not recognized
15514     # So say no if there are warnings other than the usual output.
15515     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15516     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15517     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15518       lt_cv_prog_compiler_pic_works_CXX=yes
15519     fi
15520   fi
15521   $RM conftest*
15522
15523fi
15524{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15525$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15526
15527if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15528    case $lt_prog_compiler_pic_CXX in
15529     "" | " "*) ;;
15530     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15531     esac
15532else
15533    lt_prog_compiler_pic_CXX=
15534     lt_prog_compiler_can_build_shared_CXX=no
15535fi
15536
15537fi
15538
15539
15540
15541#
15542# Check to make sure the static flag actually works.
15543#
15544wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15545{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15547if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15548  $as_echo_n "(cached) " >&6
15549else
15550  lt_cv_prog_compiler_static_works_CXX=no
15551   save_LDFLAGS="$LDFLAGS"
15552   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555     # The linker can only warn and ignore the option if not recognized
15556     # So say no if there are warnings
15557     if test -s conftest.err; then
15558       # Append any errors to the config.log.
15559       cat conftest.err 1>&5
15560       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562       if diff conftest.exp conftest.er2 >/dev/null; then
15563         lt_cv_prog_compiler_static_works_CXX=yes
15564       fi
15565     else
15566       lt_cv_prog_compiler_static_works_CXX=yes
15567     fi
15568   fi
15569   $RM -r conftest*
15570   LDFLAGS="$save_LDFLAGS"
15571
15572fi
15573{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15574$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15575
15576if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15577    :
15578else
15579    lt_prog_compiler_static_CXX=
15580fi
15581
15582
15583
15584
15585    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15587if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15588  $as_echo_n "(cached) " >&6
15589else
15590  lt_cv_prog_compiler_c_o_CXX=no
15591   $RM -r conftest 2>/dev/null
15592   mkdir conftest
15593   cd conftest
15594   mkdir out
15595   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15596
15597   lt_compiler_flag="-o out/conftest2.$ac_objext"
15598   # Insert the option either (1) after the last *FLAGS variable, or
15599   # (2) before a word containing "conftest.", or (3) at the end.
15600   # Note that $ac_compile itself does not contain backslashes and begins
15601   # with a dollar sign (not a hyphen), so the echo should work correctly.
15602   lt_compile=`echo "$ac_compile" | $SED \
15603   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15604   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15605   -e 's:$: $lt_compiler_flag:'`
15606   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15607   (eval "$lt_compile" 2>out/conftest.err)
15608   ac_status=$?
15609   cat out/conftest.err >&5
15610   echo "$as_me:__oline__: \$? = $ac_status" >&5
15611   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15612   then
15613     # The compiler can only warn and ignore the option if not recognized
15614     # So say no if there are warnings
15615     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15616     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15617     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15618       lt_cv_prog_compiler_c_o_CXX=yes
15619     fi
15620   fi
15621   chmod u+w . 2>&5
15622   $RM conftest*
15623   # SGI C++ compiler will create directory out/ii_files/ for
15624   # template instantiation
15625   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15626   $RM out/* && rmdir out
15627   cd ..
15628   $RM -r conftest
15629   $RM conftest*
15630
15631fi
15632{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15633$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15634
15635
15636
15637    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15639if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15640  $as_echo_n "(cached) " >&6
15641else
15642  lt_cv_prog_compiler_c_o_CXX=no
15643   $RM -r conftest 2>/dev/null
15644   mkdir conftest
15645   cd conftest
15646   mkdir out
15647   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15648
15649   lt_compiler_flag="-o out/conftest2.$ac_objext"
15650   # Insert the option either (1) after the last *FLAGS variable, or
15651   # (2) before a word containing "conftest.", or (3) at the end.
15652   # Note that $ac_compile itself does not contain backslashes and begins
15653   # with a dollar sign (not a hyphen), so the echo should work correctly.
15654   lt_compile=`echo "$ac_compile" | $SED \
15655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15657   -e 's:$: $lt_compiler_flag:'`
15658   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15659   (eval "$lt_compile" 2>out/conftest.err)
15660   ac_status=$?
15661   cat out/conftest.err >&5
15662   echo "$as_me:__oline__: \$? = $ac_status" >&5
15663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15664   then
15665     # The compiler can only warn and ignore the option if not recognized
15666     # So say no if there are warnings
15667     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15668     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15669     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15670       lt_cv_prog_compiler_c_o_CXX=yes
15671     fi
15672   fi
15673   chmod u+w . 2>&5
15674   $RM conftest*
15675   # SGI C++ compiler will create directory out/ii_files/ for
15676   # template instantiation
15677   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15678   $RM out/* && rmdir out
15679   cd ..
15680   $RM -r conftest
15681   $RM conftest*
15682
15683fi
15684{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15685$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15686
15687
15688
15689
15690hard_links="nottested"
15691if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15692  # do not overwrite the value of need_locks provided by the user
15693  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15694$as_echo_n "checking if we can lock with hard links... " >&6; }
15695  hard_links=yes
15696  $RM conftest*
15697  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698  touch conftest.a
15699  ln conftest.a conftest.b 2>&5 || hard_links=no
15700  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15701  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15702$as_echo "$hard_links" >&6; }
15703  if test "$hard_links" = no; then
15704    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15705$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15706    need_locks=warn
15707  fi
15708else
15709  need_locks=no
15710fi
15711
15712
15713
15714    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15715$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15716
15717  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15718  case $host_os in
15719  aix[4-9]*)
15720    # If we're using GNU nm, then we don't want the "-C" option.
15721    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15722    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15723      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15724    else
15725      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15726    fi
15727    ;;
15728  pw32*)
15729    export_symbols_cmds_CXX="$ltdll_cmds"
15730  ;;
15731  cygwin* | mingw* | cegcc*)
15732    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15733  ;;
15734  *)
15735    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15736  ;;
15737  esac
15738  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15739
15740{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15741$as_echo "$ld_shlibs_CXX" >&6; }
15742test "$ld_shlibs_CXX" = no && can_build_shared=no
15743
15744with_gnu_ld_CXX=$with_gnu_ld
15745
15746
15747
15748
15749
15750
15751#
15752# Do we need to explicitly link libc?
15753#
15754case "x$archive_cmds_need_lc_CXX" in
15755x|xyes)
15756  # Assume -lc should be added
15757  archive_cmds_need_lc_CXX=yes
15758
15759  if test "$enable_shared" = yes && test "$GCC" = yes; then
15760    case $archive_cmds_CXX in
15761    *'~'*)
15762      # FIXME: we may have to deal with multi-command sequences.
15763      ;;
15764    '$CC '*)
15765      # Test whether the compiler implicitly links with -lc since on some
15766      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15767      # to ld, don't add -lc before -lgcc.
15768      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15769$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15770      $RM conftest*
15771      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772
15773      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774  (eval $ac_compile) 2>&5
15775  ac_status=$?
15776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777  (exit $ac_status); } 2>conftest.err; then
15778        soname=conftest
15779        lib=conftest
15780        libobjs=conftest.$ac_objext
15781        deplibs=
15782        wl=$lt_prog_compiler_wl_CXX
15783	pic_flag=$lt_prog_compiler_pic_CXX
15784        compiler_flags=-v
15785        linker_flags=-v
15786        verstring=
15787        output_objdir=.
15788        libname=conftest
15789        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15790        allow_undefined_flag_CXX=
15791        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15792  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15793  ac_status=$?
15794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795  (exit $ac_status); }
15796        then
15797	  archive_cmds_need_lc_CXX=no
15798        else
15799	  archive_cmds_need_lc_CXX=yes
15800        fi
15801        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15802      else
15803        cat conftest.err 1>&5
15804      fi
15805      $RM conftest*
15806      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15807$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15808      ;;
15809    esac
15810  fi
15811  ;;
15812esac
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15878$as_echo_n "checking dynamic linker characteristics... " >&6; }
15879
15880library_names_spec=
15881libname_spec='lib$name'
15882soname_spec=
15883shrext_cmds=".so"
15884postinstall_cmds=
15885postuninstall_cmds=
15886finish_cmds=
15887finish_eval=
15888shlibpath_var=
15889shlibpath_overrides_runpath=unknown
15890version_type=none
15891dynamic_linker="$host_os ld.so"
15892sys_lib_dlsearch_path_spec="/lib /usr/lib"
15893need_lib_prefix=unknown
15894hardcode_into_libs=no
15895
15896# when you set need_version to no, make sure it does not cause -set_version
15897# flags to be left without arguments
15898need_version=unknown
15899
15900case $host_os in
15901aix3*)
15902  version_type=linux
15903  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15904  shlibpath_var=LIBPATH
15905
15906  # AIX 3 has no versioning support, so we append a major version to the name.
15907  soname_spec='${libname}${release}${shared_ext}$major'
15908  ;;
15909
15910aix[4-9]*)
15911  version_type=linux
15912  need_lib_prefix=no
15913  need_version=no
15914  hardcode_into_libs=yes
15915  if test "$host_cpu" = ia64; then
15916    # AIX 5 supports IA64
15917    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15918    shlibpath_var=LD_LIBRARY_PATH
15919  else
15920    # With GCC up to 2.95.x, collect2 would create an import file
15921    # for dependence libraries.  The import file would start with
15922    # the line `#! .'.  This would cause the generated library to
15923    # depend on `.', always an invalid library.  This was fixed in
15924    # development snapshots of GCC prior to 3.0.
15925    case $host_os in
15926      aix4 | aix4.[01] | aix4.[01].*)
15927      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15928	   echo ' yes '
15929	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15930	:
15931      else
15932	can_build_shared=no
15933      fi
15934      ;;
15935    esac
15936    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15937    # soname into executable. Probably we can add versioning support to
15938    # collect2, so additional links can be useful in future.
15939    if test "$aix_use_runtimelinking" = yes; then
15940      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15941      # instead of lib<name>.a to let people know that these are not
15942      # typical AIX shared libraries.
15943      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15944    else
15945      # We preserve .a as extension for shared libraries through AIX4.2
15946      # and later when we are not doing run time linking.
15947      library_names_spec='${libname}${release}.a $libname.a'
15948      soname_spec='${libname}${release}${shared_ext}$major'
15949    fi
15950    shlibpath_var=LIBPATH
15951  fi
15952  ;;
15953
15954amigaos*)
15955  case $host_cpu in
15956  powerpc)
15957    # Since July 2007 AmigaOS4 officially supports .so libraries.
15958    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960    ;;
15961  m68k)
15962    library_names_spec='$libname.ixlibrary $libname.a'
15963    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15964    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'
15965    ;;
15966  esac
15967  ;;
15968
15969beos*)
15970  library_names_spec='${libname}${shared_ext}'
15971  dynamic_linker="$host_os ld.so"
15972  shlibpath_var=LIBRARY_PATH
15973  ;;
15974
15975bsdi[45]*)
15976  version_type=linux
15977  need_version=no
15978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979  soname_spec='${libname}${release}${shared_ext}$major'
15980  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15981  shlibpath_var=LD_LIBRARY_PATH
15982  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15983  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15984  # the default ld.so.conf also contains /usr/contrib/lib and
15985  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15986  # libtool to hard-code these into programs
15987  ;;
15988
15989cygwin* | mingw* | pw32* | cegcc*)
15990  version_type=windows
15991  shrext_cmds=".dll"
15992  need_version=no
15993  need_lib_prefix=no
15994
15995  case $GCC,$host_os in
15996  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15997    library_names_spec='$libname.dll.a'
15998    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15999    postinstall_cmds='base_file=`basename \${file}`~
16000      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16001      dldir=$destdir/`dirname \$dlpath`~
16002      test -d \$dldir || mkdir -p \$dldir~
16003      $install_prog $dir/$dlname \$dldir/$dlname~
16004      chmod a+x \$dldir/$dlname~
16005      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16006        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16007      fi'
16008    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16009      dlpath=$dir/\$dldll~
16010       $RM \$dlpath'
16011    shlibpath_overrides_runpath=yes
16012
16013    case $host_os in
16014    cygwin*)
16015      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16016      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16017      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16018      ;;
16019    mingw* | cegcc*)
16020      # MinGW DLLs use traditional 'lib' prefix
16021      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16022      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16023      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16024        # It is most probably a Windows format PATH printed by
16025        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16026        # path with ; separators, and with drive letters. We can handle the
16027        # drive letters (cygwin fileutils understands them), so leave them,
16028        # especially as we might pass files found there to a mingw objdump,
16029        # which wouldn't understand a cygwinified path. Ahh.
16030        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16031      else
16032        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16033      fi
16034      ;;
16035    pw32*)
16036      # pw32 DLLs use 'pw' prefix rather than 'lib'
16037      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16038      ;;
16039    esac
16040    ;;
16041
16042  *)
16043    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16044    ;;
16045  esac
16046  dynamic_linker='Win32 ld.exe'
16047  # FIXME: first we should search . and the directory the executable is in
16048  shlibpath_var=PATH
16049  ;;
16050
16051darwin* | rhapsody*)
16052  dynamic_linker="$host_os dyld"
16053  version_type=darwin
16054  need_lib_prefix=no
16055  need_version=no
16056  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16057  soname_spec='${libname}${release}${major}$shared_ext'
16058  shlibpath_overrides_runpath=yes
16059  shlibpath_var=DYLD_LIBRARY_PATH
16060  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16061
16062  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16063  ;;
16064
16065dgux*)
16066  version_type=linux
16067  need_lib_prefix=no
16068  need_version=no
16069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16070  soname_spec='${libname}${release}${shared_ext}$major'
16071  shlibpath_var=LD_LIBRARY_PATH
16072  ;;
16073
16074freebsd1*)
16075  dynamic_linker=no
16076  ;;
16077
16078freebsd* | dragonfly*)
16079  # DragonFly does not have aout.  When/if they implement a new
16080  # versioning mechanism, adjust this.
16081  if test -x /usr/bin/objformat; then
16082    objformat=`/usr/bin/objformat`
16083  else
16084    case $host_os in
16085    freebsd[123]*) objformat=aout ;;
16086    *) objformat=elf ;;
16087    esac
16088  fi
16089  version_type=freebsd-$objformat
16090  case $version_type in
16091    freebsd-elf*)
16092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16093      need_version=no
16094      need_lib_prefix=no
16095      ;;
16096    freebsd-*)
16097      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16098      need_version=yes
16099      ;;
16100  esac
16101  shlibpath_var=LD_LIBRARY_PATH
16102  case $host_os in
16103  freebsd2*)
16104    shlibpath_overrides_runpath=yes
16105    ;;
16106  freebsd3.[01]* | freebsdelf3.[01]*)
16107    shlibpath_overrides_runpath=yes
16108    hardcode_into_libs=yes
16109    ;;
16110  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16111  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16112    shlibpath_overrides_runpath=no
16113    hardcode_into_libs=yes
16114    ;;
16115  *) # from 4.6 on, and DragonFly
16116    shlibpath_overrides_runpath=yes
16117    hardcode_into_libs=yes
16118    ;;
16119  esac
16120  ;;
16121
16122gnu*)
16123  version_type=linux
16124  need_lib_prefix=no
16125  need_version=no
16126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16127  soname_spec='${libname}${release}${shared_ext}$major'
16128  shlibpath_var=LD_LIBRARY_PATH
16129  hardcode_into_libs=yes
16130  ;;
16131
16132hpux9* | hpux10* | hpux11*)
16133  # Give a soname corresponding to the major version so that dld.sl refuses to
16134  # link against other versions.
16135  version_type=sunos
16136  need_lib_prefix=no
16137  need_version=no
16138  case $host_cpu in
16139  ia64*)
16140    shrext_cmds='.so'
16141    hardcode_into_libs=yes
16142    dynamic_linker="$host_os dld.so"
16143    shlibpath_var=LD_LIBRARY_PATH
16144    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146    soname_spec='${libname}${release}${shared_ext}$major'
16147    if test "X$HPUX_IA64_MODE" = X32; then
16148      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16149    else
16150      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16151    fi
16152    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16153    ;;
16154  hppa*64*)
16155    shrext_cmds='.sl'
16156    hardcode_into_libs=yes
16157    dynamic_linker="$host_os dld.sl"
16158    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16159    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161    soname_spec='${libname}${release}${shared_ext}$major'
16162    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16163    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16164    ;;
16165  *)
16166    shrext_cmds='.sl'
16167    dynamic_linker="$host_os dld.sl"
16168    shlibpath_var=SHLIB_PATH
16169    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171    soname_spec='${libname}${release}${shared_ext}$major'
16172    ;;
16173  esac
16174  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16175  postinstall_cmds='chmod 555 $lib'
16176  ;;
16177
16178interix[3-9]*)
16179  version_type=linux
16180  need_lib_prefix=no
16181  need_version=no
16182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16183  soname_spec='${libname}${release}${shared_ext}$major'
16184  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16185  shlibpath_var=LD_LIBRARY_PATH
16186  shlibpath_overrides_runpath=no
16187  hardcode_into_libs=yes
16188  ;;
16189
16190irix5* | irix6* | nonstopux*)
16191  case $host_os in
16192    nonstopux*) version_type=nonstopux ;;
16193    *)
16194	if test "$lt_cv_prog_gnu_ld" = yes; then
16195		version_type=linux
16196	else
16197		version_type=irix
16198	fi ;;
16199  esac
16200  need_lib_prefix=no
16201  need_version=no
16202  soname_spec='${libname}${release}${shared_ext}$major'
16203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16204  case $host_os in
16205  irix5* | nonstopux*)
16206    libsuff= shlibsuff=
16207    ;;
16208  *)
16209    case $LD in # libtool.m4 will add one of these switches to LD
16210    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16211      libsuff= shlibsuff= libmagic=32-bit;;
16212    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16213      libsuff=32 shlibsuff=N32 libmagic=N32;;
16214    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16215      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16216    *) libsuff= shlibsuff= libmagic=never-match;;
16217    esac
16218    ;;
16219  esac
16220  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16221  shlibpath_overrides_runpath=no
16222  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16223  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16224  hardcode_into_libs=yes
16225  ;;
16226
16227# No shared lib support for Linux oldld, aout, or coff.
16228linux*oldld* | linux*aout* | linux*coff*)
16229  dynamic_linker=no
16230  ;;
16231
16232# This must be Linux ELF.
16233linux* | k*bsd*-gnu)
16234  version_type=linux
16235  need_lib_prefix=no
16236  need_version=no
16237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238  soname_spec='${libname}${release}${shared_ext}$major'
16239  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16240  shlibpath_var=LD_LIBRARY_PATH
16241  shlibpath_overrides_runpath=no
16242  # Some binutils ld are patched to set DT_RUNPATH
16243  save_LDFLAGS=$LDFLAGS
16244  save_libdir=$libdir
16245  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16246       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16247  cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h.  */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h.  */
16253
16254int
16255main ()
16256{
16257
16258  ;
16259  return 0;
16260}
16261_ACEOF
16262rm -f conftest.$ac_objext conftest$ac_exeext
16263if { (ac_try="$ac_link"
16264case "(($ac_try" in
16265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266  *) ac_try_echo=$ac_try;;
16267esac
16268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269$as_echo "$ac_try_echo") >&5
16270  (eval "$ac_link") 2>conftest.er1
16271  ac_status=$?
16272  grep -v '^ *+' conftest.er1 >conftest.err
16273  rm -f conftest.er1
16274  cat conftest.err >&5
16275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276  (exit $ac_status); } && {
16277	 test -z "$ac_cxx_werror_flag" ||
16278	 test ! -s conftest.err
16279       } && test -s conftest$ac_exeext && {
16280	 test "$cross_compiling" = yes ||
16281	 $as_test_x conftest$ac_exeext
16282       }; then
16283  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16284  shlibpath_overrides_runpath=yes
16285fi
16286
16287else
16288  $as_echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291	
16292fi
16293
16294rm -rf conftest.dSYM
16295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296      conftest$ac_exeext conftest.$ac_ext
16297  LDFLAGS=$save_LDFLAGS
16298  libdir=$save_libdir
16299
16300  # This implies no fast_install, which is unacceptable.
16301  # Some rework will be needed to allow for fast_install
16302  # before this can be enabled.
16303  hardcode_into_libs=yes
16304
16305  # Add ABI-specific directories to the system library path.
16306  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16307
16308  # Append ld.so.conf contents to the search path
16309  if test -f /etc/ld.so.conf; then
16310    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' ' '`
16311    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16312  fi
16313
16314  # We used to test for /lib/ld.so.1 and disable shared libraries on
16315  # powerpc, because MkLinux only supported shared libraries with the
16316  # GNU dynamic linker.  Since this was broken with cross compilers,
16317  # most powerpc-linux boxes support dynamic linking these days and
16318  # people can always --disable-shared, the test was removed, and we
16319  # assume the GNU/Linux dynamic linker is in use.
16320  dynamic_linker='GNU/Linux ld.so'
16321  ;;
16322
16323netbsd*)
16324  version_type=sunos
16325  need_lib_prefix=no
16326  need_version=no
16327  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16329    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16330    dynamic_linker='NetBSD (a.out) ld.so'
16331  else
16332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16333    soname_spec='${libname}${release}${shared_ext}$major'
16334    dynamic_linker='NetBSD ld.elf_so'
16335  fi
16336  shlibpath_var=LD_LIBRARY_PATH
16337  shlibpath_overrides_runpath=yes
16338  hardcode_into_libs=yes
16339  ;;
16340
16341newsos6)
16342  version_type=linux
16343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344  shlibpath_var=LD_LIBRARY_PATH
16345  shlibpath_overrides_runpath=yes
16346  ;;
16347
16348*nto* | *qnx*)
16349  version_type=qnx
16350  need_lib_prefix=no
16351  need_version=no
16352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353  soname_spec='${libname}${release}${shared_ext}$major'
16354  shlibpath_var=LD_LIBRARY_PATH
16355  shlibpath_overrides_runpath=no
16356  hardcode_into_libs=yes
16357  dynamic_linker='ldqnx.so'
16358  ;;
16359
16360openbsd*)
16361  version_type=sunos
16362  sys_lib_dlsearch_path_spec="/usr/lib"
16363  need_lib_prefix=no
16364  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16365  case $host_os in
16366    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16367    *)				need_version=no  ;;
16368  esac
16369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16370  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16371  shlibpath_var=LD_LIBRARY_PATH
16372  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373    case $host_os in
16374      openbsd2.[89] | openbsd2.[89].*)
16375	shlibpath_overrides_runpath=no
16376	;;
16377      *)
16378	shlibpath_overrides_runpath=yes
16379	;;
16380      esac
16381  else
16382    shlibpath_overrides_runpath=yes
16383  fi
16384  ;;
16385
16386os2*)
16387  libname_spec='$name'
16388  shrext_cmds=".dll"
16389  need_lib_prefix=no
16390  library_names_spec='$libname${shared_ext} $libname.a'
16391  dynamic_linker='OS/2 ld.exe'
16392  shlibpath_var=LIBPATH
16393  ;;
16394
16395osf3* | osf4* | osf5*)
16396  version_type=osf
16397  need_lib_prefix=no
16398  need_version=no
16399  soname_spec='${libname}${release}${shared_ext}$major'
16400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16401  shlibpath_var=LD_LIBRARY_PATH
16402  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16403  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16404  ;;
16405
16406rdos*)
16407  dynamic_linker=no
16408  ;;
16409
16410solaris*)
16411  version_type=linux
16412  need_lib_prefix=no
16413  need_version=no
16414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415  soname_spec='${libname}${release}${shared_ext}$major'
16416  shlibpath_var=LD_LIBRARY_PATH
16417  shlibpath_overrides_runpath=yes
16418  hardcode_into_libs=yes
16419  # ldd complains unless libraries are executable
16420  postinstall_cmds='chmod +x $lib'
16421  ;;
16422
16423sunos4*)
16424  version_type=sunos
16425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16426  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16427  shlibpath_var=LD_LIBRARY_PATH
16428  shlibpath_overrides_runpath=yes
16429  if test "$with_gnu_ld" = yes; then
16430    need_lib_prefix=no
16431  fi
16432  need_version=yes
16433  ;;
16434
16435sysv4 | sysv4.3*)
16436  version_type=linux
16437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438  soname_spec='${libname}${release}${shared_ext}$major'
16439  shlibpath_var=LD_LIBRARY_PATH
16440  case $host_vendor in
16441    sni)
16442      shlibpath_overrides_runpath=no
16443      need_lib_prefix=no
16444      runpath_var=LD_RUN_PATH
16445      ;;
16446    siemens)
16447      need_lib_prefix=no
16448      ;;
16449    motorola)
16450      need_lib_prefix=no
16451      need_version=no
16452      shlibpath_overrides_runpath=no
16453      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16454      ;;
16455  esac
16456  ;;
16457
16458sysv4*MP*)
16459  if test -d /usr/nec ;then
16460    version_type=linux
16461    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16462    soname_spec='$libname${shared_ext}.$major'
16463    shlibpath_var=LD_LIBRARY_PATH
16464  fi
16465  ;;
16466
16467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16468  version_type=freebsd-elf
16469  need_lib_prefix=no
16470  need_version=no
16471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16472  soname_spec='${libname}${release}${shared_ext}$major'
16473  shlibpath_var=LD_LIBRARY_PATH
16474  shlibpath_overrides_runpath=yes
16475  hardcode_into_libs=yes
16476  if test "$with_gnu_ld" = yes; then
16477    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16478  else
16479    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16480    case $host_os in
16481      sco3.2v5*)
16482        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16483	;;
16484    esac
16485  fi
16486  sys_lib_dlsearch_path_spec='/usr/lib'
16487  ;;
16488
16489tpf*)
16490  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16491  version_type=linux
16492  need_lib_prefix=no
16493  need_version=no
16494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495  shlibpath_var=LD_LIBRARY_PATH
16496  shlibpath_overrides_runpath=no
16497  hardcode_into_libs=yes
16498  ;;
16499
16500uts4*)
16501  version_type=linux
16502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503  soname_spec='${libname}${release}${shared_ext}$major'
16504  shlibpath_var=LD_LIBRARY_PATH
16505  ;;
16506
16507*)
16508  dynamic_linker=no
16509  ;;
16510esac
16511{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16512$as_echo "$dynamic_linker" >&6; }
16513test "$dynamic_linker" = no && can_build_shared=no
16514
16515variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16516if test "$GCC" = yes; then
16517  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16518fi
16519
16520if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16521  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16522fi
16523if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16524  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16525fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16563$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16564hardcode_action_CXX=
16565if test -n "$hardcode_libdir_flag_spec_CXX" ||
16566   test -n "$runpath_var_CXX" ||
16567   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16568
16569  # We can hardcode non-existent directories.
16570  if test "$hardcode_direct_CXX" != no &&
16571     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16572     # have to relink, otherwise we might link with an installed library
16573     # when we should be linking with a yet-to-be-installed one
16574     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16575     test "$hardcode_minus_L_CXX" != no; then
16576    # Linking always hardcodes the temporary library directory.
16577    hardcode_action_CXX=relink
16578  else
16579    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16580    hardcode_action_CXX=immediate
16581  fi
16582else
16583  # We cannot hardcode anything, or else we can only hardcode existing
16584  # directories.
16585  hardcode_action_CXX=unsupported
16586fi
16587{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16588$as_echo "$hardcode_action_CXX" >&6; }
16589
16590if test "$hardcode_action_CXX" = relink ||
16591   test "$inherit_rpath_CXX" = yes; then
16592  # Fast installation is not supported
16593  enable_fast_install=no
16594elif test "$shlibpath_overrides_runpath" = yes ||
16595     test "$enable_shared" = no; then
16596  # Fast installation is not necessary
16597  enable_fast_install=needless
16598fi
16599
16600
16601
16602
16603    
16604
16605
16606  fi # test -n "$compiler"
16607
16608  CC=$lt_save_CC
16609  LDCXX=$LD
16610  LD=$lt_save_LD
16611  GCC=$lt_save_GCC
16612  with_gnu_ld=$lt_save_with_gnu_ld
16613  lt_cv_path_LDCXX=$lt_cv_path_LD
16614  lt_cv_path_LD=$lt_save_path_LD
16615  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16616  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16617fi # test "$_lt_caught_CXX_error" != yes
16618
16619ac_ext=c
16620ac_cpp='$CPP $CPPFLAGS'
16621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624
16625
16626
16627
16628
16629
16630
16631
16632       
16633       
16634
16635
16636
16637        ac_config_commands="$ac_config_commands libtool"
16638
16639
16640
16641
16642# Only expand once:
16643
16644
16645
16646{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
16647$as_echo_n "checking whether the C++ compiler works... " >&6; }
16648if test "${avahi_cv_sys_cxx_works+set}" = set; then
16649  $as_echo_n "(cached) " >&6
16650else
16651  
16652    ac_ext=cpp
16653ac_cpp='$CXXCPP $CPPFLAGS'
16654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16657
16658    cat >conftest.$ac_ext <<_ACEOF
16659int main() { return 0; }
16660_ACEOF
16661rm -f conftest.$ac_objext
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665  *) ac_try_echo=$ac_try;;
16666esac
16667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16668$as_echo "$ac_try_echo") >&5
16669  (eval "$ac_compile") 2>conftest.er1
16670  ac_status=$?
16671  grep -v '^ *+' conftest.er1 >conftest.err
16672  rm -f conftest.er1
16673  cat conftest.err >&5
16674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675  (exit $ac_status); } && {
16676	 test -z "$ac_cxx_werror_flag" ||
16677	 test ! -s conftest.err
16678       } && test -s conftest.$ac_objext; then
16679  avahi_cv_sys_cxx_works=yes
16680else
16681  $as_echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684	avahi_cv_sys_cxx_works=no
16685fi
16686
16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688    ac_ext=c
16689ac_cpp='$CPP $CPPFLAGS'
16690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16692ac_compiler_gnu=$ac_cv_c_compiler_gnu
16693
16694    
16695fi
16696{ $as_echo "$as_me:$LINENO: result: $avahi_cv_sys_cxx_works" >&5
16697$as_echo "$avahi_cv_sys_cxx_works" >&6; }
16698 if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then 
16699    { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16701{ { $as_echo "$as_me:$LINENO: error: The C++ compiler does not work
16702See \`config.log' for more details." >&5
16703$as_echo "$as_me: error: The C++ compiler does not work
16704See \`config.log' for more details." >&2;}
16705   { (exit 1); exit 1; }; }; }
16706 fi 
16707
16708
16709
16710
16711ac_ext=c
16712ac_cpp='$CPP $CPPFLAGS'
16713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16715ac_compiler_gnu=$ac_cv_c_compiler_gnu
16716
16717acx_pthread_ok=no
16718
16719# We used to check for pthread.h first, but this fails if pthread.h
16720# requires special compiler flags (e.g. on True64 or Sequent).
16721# It gets checked for in the link test anyway.
16722
16723# First of all, check if the user has set any of the PTHREAD_LIBS,
16724# etcetera environment variables, and if threads linking works using
16725# them:
16726if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16727        save_CFLAGS="$CFLAGS"
16728        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16729        save_LIBS="$LIBS"
16730        LIBS="$PTHREAD_LIBS $LIBS"
16731        { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16732$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16733        cat >conftest.$ac_ext <<_ACEOF
16734/* confdefs.h.  */
16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h.  */
16739
16740/* Override any GCC internal prototype to avoid an error.
16741   Use char because int might match the return type of a GCC
16742   builtin and then its argument prototype would still apply.  */
16743#ifdef __cplusplus
16744extern "C"
16745#endif
16746char pthread_join ();
16747int
16748main ()
16749{
16750return pthread_join ();
16751  ;
16752  return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext conftest$ac_exeext
16756if { (ac_try="$ac_link"
16757case "(($ac_try" in
16758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759  *) ac_try_echo=$ac_try;;
16760esac
16761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762$as_echo "$ac_try_echo") >&5
16763  (eval "$ac_link") 2>conftest.er1
16764  ac_status=$?
16765  grep -v '^ *+' conftest.er1 >conftest.err
16766  rm -f conftest.er1
16767  cat conftest.err >&5
16768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769  (exit $ac_status); } && {
16770	 test -z "$ac_c_werror_flag" ||
16771	 test ! -s conftest.err
16772       } && test -s conftest$ac_exeext && {
16773	 test "$cross_compiling" = yes ||
16774	 $as_test_x conftest$ac_exeext
16775       }; then
16776  acx_pthread_ok=yes
16777else
16778  $as_echo "$as_me: failed program was:" >&5
16779sed 's/^/| /' conftest.$ac_ext >&5
16780
16781	
16782fi
16783
16784rm -rf conftest.dSYM
16785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16786      conftest$ac_exeext conftest.$ac_ext
16787        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16788$as_echo "$acx_pthread_ok" >&6; }
16789        if test x"$acx_pthread_ok" = xno; then
16790                PTHREAD_LIBS=""
16791                PTHREAD_CFLAGS=""
16792        fi
16793        LIBS="$save_LIBS"
16794        CFLAGS="$save_CFLAGS"
16795fi
16796
16797# We must check for the threads library under a number of different
16798# names; the ordering is very important because some systems
16799# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16800# libraries is broken (non-POSIX).
16801
16802# Create a list of thread flags to try.  Items starting with a "-" are
16803# C compiler flags, and other items are library names, except for "none"
16804# which indicates that we try without any flags at all, and "pthread-config"
16805# which is a program returning the flags for the Pth emulation library.
16806
16807acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16808
16809# The ordering *is* (sometimes) important.  Some notes on the
16810# individual items follow:
16811
16812# pthreads: AIX (must check this before -lpthread)
16813# none: in case threads are in libc; should be tried before -Kthread and
16814#       other compiler flags to prevent continual compiler warnings
16815# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16816# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16817# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16818# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16819# -pthreads: Solaris/gcc
16820# -mthreads: Mingw32/gcc, Lynx/gcc
16821# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16822#      doesn't hurt to check since this sometimes defines pthreads too;
16823#      also defines -D_REENTRANT)
16824#      ... -mt is also the pthreads flag for HP/aCC
16825# pthread: Linux, etcetera
16826# --thread-safe: KAI C++
16827# pthread-config: use pthread-config program (for GNU Pth library)
16828
16829case "${host_cpu}-${host_os}" in
16830        *solaris*)
16831
16832        # On Solaris (at least, for some versions), libc contains stubbed
16833        # (non-functional) versions of the pthreads routines, so link-based
16834        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16835        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16836        # a function called by this macro, so we could check for that, but
16837        # who knows whether they'll stub that too in a future libc.)  So,
16838        # we'll just look for -pthreads and -lpthread first:
16839
16840        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16841        ;;
16842esac
16843
16844if test x"$acx_pthread_ok" = xno; then
16845for flag in $acx_pthread_flags; do
16846
16847        case $flag in
16848                none)
16849                { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16850$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16851                ;;
16852
16853                -*)
16854                { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16855$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16856                PTHREAD_CFLAGS="$flag"
16857                ;;
16858
16859		pthread-config)
16860		# Extract the first word of "pthread-config", so it can be a program name with args.
16861set dummy pthread-config; ac_word=$2
16862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16863$as_echo_n "checking for $ac_word... " >&6; }
16864if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16865  $as_echo_n "(cached) " >&6
16866else
16867  if test -n "$acx_pthread_config"; then
16868  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16869else
16870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871for as_dir in $PATH
16872do
16873  IFS=$as_save_IFS
16874  test -z "$as_dir" && as_dir=.
16875  for ac_exec_ext in '' $ac_executable_extensions; do
16876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16877    ac_cv_prog_acx_pthread_config="yes"
16878    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16879    break 2
16880  fi
16881done
16882done
16883IFS=$as_save_IFS
16884
16885  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16886fi
16887fi
16888acx_pthread_config=$ac_cv_prog_acx_pthread_config
16889if test -n "$acx_pthread_config"; then
16890  { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16891$as_echo "$acx_pthread_config" >&6; }
16892else
16893  { $as_echo "$as_me:$LINENO: result: no" >&5
16894$as_echo "no" >&6; }
16895fi
16896
16897
16898		if test x"$acx_pthread_config" = xno; then continue; fi
16899		PTHREAD_CFLAGS="`pthread-config --cflags`"
16900		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16901		;;
16902
16903                *)
16904                { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16905$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16906                PTHREAD_LIBS="-l$flag"
16907                ;;
16908        esac
16909
16910        save_LIBS="$LIBS"
16911        save_CFLAGS="$CFLAGS"
16912        LIBS="$PTHREAD_LIBS $LIBS"
16913        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16914
16915        # Check for various functions.  We must include pthread.h,
16916        # since some functions may be macros.  (On the Sequent, we
16917        # need a special flag -Kthread to make this header compile.)
16918        # We check for pthread_join because it is in -lpthread on IRIX
16919        # while pthread_create is in libc.  We check for pthread_attr_init
16920        # due to DEC craziness with -lpthreads.  We check for
16921        # pthread_cleanup_push because it is one of the few pthread
16922        # functions on Solaris that doesn't have a non-functional libc stub.
16923        # We try pthread_create on general principles.
16924        cat >conftest.$ac_ext <<_ACEOF
16925/* confdefs.h.  */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h.  */
16930#include <pthread.h>
16931int
16932main ()
16933{
16934pthread_t th; pthread_join(th, 0);
16935                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16936                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext conftest$ac_exeext
16942if { (ac_try="$ac_link"
16943case "(($ac_try" in
16944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945  *) ac_try_echo=$ac_try;;
16946esac
16947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948$as_echo "$ac_try_echo") >&5
16949  (eval "$ac_link") 2>conftest.er1
16950  ac_status=$?
16951  grep -v '^ *+' conftest.er1 >conftest.err
16952  rm -f conftest.er1
16953  cat conftest.err >&5
16954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955  (exit $ac_status); } && {
16956	 test -z "$ac_c_werror_flag" ||
16957	 test ! -s conftest.err
16958       } && test -s conftest$ac_exeext && {
16959	 test "$cross_compiling" = yes ||
16960	 $as_test_x conftest$ac_exeext
16961       }; then
16962  acx_pthread_ok=yes
16963else
16964  $as_echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967	
16968fi
16969
16970rm -rf conftest.dSYM
16971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972      conftest$ac_exeext conftest.$ac_ext
16973
16974        LIBS="$save_LIBS"
16975        CFLAGS="$save_CFLAGS"
16976
16977        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16978$as_echo "$acx_pthread_ok" >&6; }
16979        if test "x$acx_pthread_ok" = xyes; then
16980                break;
16981        fi
16982
16983        PTHREAD_LIBS=""
16984        PTHREAD_CFLAGS=""
16985done
16986fi
16987
16988# Various other checks:
16989if test "x$acx_pthread_ok" = xyes; then
16990        save_LIBS="$LIBS"
16991        LIBS="$PTHREAD_LIBS $LIBS"
16992        save_CFLAGS="$CFLAGS"
16993        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16994
16995        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16996	{ $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16997$as_echo_n "checking for joinable pthread attribute... " >&6; }
16998	attr_name=unknown
16999	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17000	    cat >conftest.$ac_ext <<_ACEOF
17001/* confdefs.h.  */
17002_ACEOF
17003cat confdefs.h >>conftest.$ac_ext
17004cat >>conftest.$ac_ext <<_ACEOF
17005/* end confdefs.h.  */
17006#include <pthread.h>
17007int
17008main ()
17009{
17010int attr=$attr; return attr;
17011  ;
17012  return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext conftest$ac_exeext
17016if { (ac_try="$ac_link"
17017case "(($ac_try" in
17018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019  *) ac_try_echo=$ac_try;;
17020esac
17021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022$as_echo "$ac_try_echo") >&5
17023  (eval "$ac_link") 2>conftest.er1
17024  ac_status=$?
17025  grep -v '^ *+' conftest.er1 >conftest.err
17026  rm -f conftest.er1
17027  cat conftest.err >&5
17028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029  (exit $ac_status); } && {
17030	 test -z "$ac_c_werror_flag" ||
17031	 test ! -s conftest.err
17032       } && test -s conftest$ac_exeext && {
17033	 test "$cross_compiling" = yes ||
17034	 $as_test_x conftest$ac_exeext
17035       }; then
17036  attr_name=$attr; break
17037else
17038  $as_echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041	
17042fi
17043
17044rm -rf conftest.dSYM
17045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046      conftest$ac_exeext conftest.$ac_ext
17047	done
17048        { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
17049$as_echo "$attr_name" >&6; }
17050        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17051            
17052cat >>confdefs.h <<_ACEOF
17053@%:@define PTHREAD_CREATE_JOINABLE $attr_name
17054_ACEOF
17055
17056        fi
17057
17058        { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
17059$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17060        flag=no
17061        case "${host_cpu}-${host_os}" in
17062            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17063            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17064        esac
17065        { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
17066$as_echo "${flag}" >&6; }
17067        if test "x$flag" != xno; then
17068            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17069        fi
17070
17071        LIBS="$save_LIBS"
17072        CFLAGS="$save_CFLAGS"
17073        # More AIX lossage: must compile with xlc_r or cc_r
17074	if test x"$GCC" != xyes; then
17075          for ac_prog in xlc_r cc_r
17076do
17077  # Extract the first word of "$ac_prog", so it can be a program name with args.
17078set dummy $ac_prog; ac_word=$2
17079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17080$as_echo_n "checking for $ac_word... " >&6; }
17081if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
17082  $as_echo_n "(cached) " >&6
17083else
17084  if test -n "$PTHREAD_CC"; then
17085  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17086else
17087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088for as_dir in $PATH
17089do
17090  IFS=$as_save_IFS
17091  test -z "$as_dir" && as_dir=.
17092  for ac_exec_ext in '' $ac_executable_extensions; do
17093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17094    ac_cv_prog_PTHREAD_CC="$ac_prog"
17095    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17096    break 2
17097  fi
17098done
17099done
17100IFS=$as_save_IFS
17101
17102fi
17103fi
17104PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17105if test -n "$PTHREAD_CC"; then
17106  { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
17107$as_echo "$PTHREAD_CC" >&6; }
17108else
17109  { $as_echo "$as_me:$LINENO: result: no" >&5
17110$as_echo "no" >&6; }
17111fi
17112
17113
17114  test -n "$PTHREAD_CC" && break
17115done
17116test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17117
17118        else
17119          PTHREAD_CC=$CC
17120	fi
17121
17122   # The next part tries to detect GCC inconsistency with -shared on some
17123   # architectures and systems. The problem is that in certain
17124   # configurations, when -shared is specified, GCC "forgets" to
17125   # internally use various flags which are still necessary.
17126   
17127   { $as_echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
17128$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
17129   check_inconsistencies=yes
17130   case "${host_cpu}-${host_os}" in
17131     *-darwin*) check_inconsistencies=no ;;
17132   esac
17133   if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
17134      { $as_echo "$as_me:$LINENO: result: no" >&5
17135$as_echo "no" >&6; }
17136   else
17137      { $as_echo "$as_me:$LINENO: result: yes" >&5
17138$as_echo "yes" >&6; }
17139
17140      # In order not to create several levels of indentation, we test
17141      # the value of "$ok" until we find out the cure or run out of
17142      # ideas.
17143      ok="no"
17144
17145      #
17146      # Prepare the flags
17147      #
17148      save_CFLAGS="$CFLAGS"
17149      save_LIBS="$LIBS"
17150      save_CC="$CC"
17151      # Try with the flags determined by the earlier checks.
17152      #
17153      # -Wl,-z,defs forces link-time symbol resolution, so that the
17154      # linking checks with -shared actually have any value
17155      #
17156      # FIXME: -fPIC is required for -shared on many architectures,
17157      # so we specify it here, but the right way would probably be to
17158      # properly detect whether it is actually required.
17159      CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
17160      LIBS="$PTHREAD_LIBS $LIBS"
17161      CC="$PTHREAD_CC"
17162
17163      { $as_echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
17164$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
17165      cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h.  */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h.  */
17171#include <pthread.h>
17172int
17173main ()
17174{
17175pthread_t th; pthread_join(th, 0);
17176         pthread_attr_init(0); pthread_cleanup_push(0, 0);
17177         pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
17183if { (ac_try="$ac_link"
17184case "(($ac_try" in
17185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186  *) ac_try_echo=$ac_try;;
17187esac
17188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17189$as_echo "$ac_try_echo") >&5
17190  (eval "$ac_link") 2>conftest.er1
17191  ac_status=$?
17192  grep -v '^ *+' conftest.er1 >conftest.err
17193  rm -f conftest.er1
17194  cat conftest.err >&5
17195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196  (exit $ac_status); } && {
17197	 test -z "$ac_c_werror_flag" ||
17198	 test ! -s conftest.err
17199       } && test -s conftest$ac_exeext && {
17200	 test "$cross_compiling" = yes ||
17201	 $as_test_x conftest$ac_exeext
17202       }; then
17203  ok=yes
17204else
17205  $as_echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208	
17209fi
17210
17211rm -rf conftest.dSYM
17212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213      conftest$ac_exeext conftest.$ac_ext
17214      
17215      if test "x$ok" = xyes; then
17216         { $as_echo "$as_me:$LINENO: result: yes" >&5
17217$as_echo "yes" >&6; }
17218      else
17219         { $as_echo "$as_me:$LINENO: result: no" >&5
17220$as_echo "no" >&6; }
17221      fi
17222   
17223      #
17224      # Linux gcc on some architectures such as mips/mipsel forgets
17225      # about -lpthread
17226      #
17227      if test x"$ok" = xno; then
17228         { $as_echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
17229$as_echo_n "checking whether -lpthread fixes that... " >&6; }
17230         LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
17231         cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h.  */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h.  */
17237#include <pthread.h>
17238int
17239main ()
17240{
17241pthread_t th; pthread_join(th, 0);
17242            pthread_attr_init(0); pthread_cleanup_push(0, 0);
17243            pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
17244  ;
17245  return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext conftest$ac_exeext
17249if { (ac_try="$ac_link"
17250case "(($ac_try" in
17251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252  *) ac_try_echo=$ac_try;;
17253esac
17254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255$as_echo "$ac_try_echo") >&5
17256  (eval "$ac_link") 2>conftest.er1
17257  ac_status=$?
17258  grep -v '^ *+' conftest.er1 >conftest.err
17259  rm -f conftest.er1
17260  cat conftest.err >&5
17261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262  (exit $ac_status); } && {
17263	 test -z "$ac_c_werror_flag" ||
17264	 test ! -s conftest.err
17265       } && test -s conftest$ac_exeext && {
17266	 test "$cross_compiling" = yes ||
17267	 $as_test_x conftest$ac_exeext
17268       }; then
17269  ok=yes
17270else
17271  $as_echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
17273
17274	
17275fi
17276
17277rm -rf conftest.dSYM
17278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17279      conftest$ac_exeext conftest.$ac_ext
17280   
17281         if test "x$ok" = xyes; then
17282            { $as_echo "$as_me:$LINENO: result: yes" >&5
17283$as_echo "yes" >&6; }
17284            PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17285         else
17286            { $as_echo "$as_me:$LINENO: result: no" >&5
17287$as_echo "no" >&6; }
17288         fi
17289      fi
17290      #
17291      # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
17292      #
17293      if test x"$ok" = xno; then
17294         { $as_echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
17295$as_echo_n "checking whether -lc_r fixes that... " >&6; }
17296         LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
17297         cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h.  */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h.  */
17303#include <pthread.h>
17304int
17305main ()
17306{
17307pthread_t th; pthread_join(th, 0);
17308              pthread_attr_init(0); pthread_cleanup_push(0, 0);
17309              pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
17310  ;
17311  return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
17315if { (ac_try="$ac_link"
17316case "(($ac_try" in
17317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318  *) ac_try_echo=$ac_try;;
17319esac
17320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321$as_echo "$ac_try_echo") >&5
17322  (eval "$ac_link") 2>conftest.er1
17323  ac_status=$?
17324  grep -v '^ *+' conftest.er1 >conftest.err
17325  rm -f conftest.er1
17326  cat conftest.err >&5
17327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328  (exit $ac_status); } && {
17329	 test -z "$ac_c_werror_flag" ||
17330	 test ! -s conftest.err
17331       } && test -s conftest$ac_exeext && {
17332	 test "$cross_compiling" = yes ||
17333	 $as_test_x conftest$ac_exeext
17334       }; then
17335  ok=yes
17336else
17337  $as_echo "$as_me: failed program was:" >&5
17338sed 's/^/| /' conftest.$ac_ext >&5
17339
17340	
17341fi
17342
17343rm -rf conftest.dSYM
17344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345      conftest$ac_exeext conftest.$ac_ext
17346   
17347         if test "x$ok" = xyes; then
17348            { $as_echo "$as_me:$LINENO: result: yes" >&5
17349$as_echo "yes" >&6; }
17350            PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
17351         else
17352            { $as_echo "$as_me:$LINENO: result: no" >&5
17353$as_echo "no" >&6; }
17354         fi
17355      fi
17356      if test x"$ok" = xno; then
17357         # OK, we have run out of ideas
17358         { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
17359$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
17360
17361         # so it's not safe to assume that we may use pthreads
17362         acx_pthread_ok=no
17363      fi
17364
17365      CFLAGS="$save_CFLAGS"
17366      LIBS="$save_LIBS"
17367      CC="$save_CC"
17368   fi
17369else
17370        PTHREAD_CC="$CC"
17371fi
17372
17373
17374
17375
17376
17377# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17378if test x"$acx_pthread_ok" = xyes; then
17379        
17380cat >>confdefs.h <<\_ACEOF
17381@%:@define HAVE_PTHREAD 1
17382_ACEOF
17383
17384        :
17385else
17386        acx_pthread_ok=no
17387        { { $as_echo "$as_me:$LINENO: error: Missing POSIX Threads support" >&5
17388$as_echo "$as_me: error: Missing POSIX Threads support" >&2;}
17389   { (exit 1); exit 1; }; }
17390fi
17391ac_ext=c
17392ac_cpp='$CPP $CPPFLAGS'
17393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17395ac_compiler_gnu=$ac_cv_c_compiler_gnu
17396
17397
17398
17399#
17400# Check for netlink.h
17401#
17402{ $as_echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
17403$as_echo_n "checking for linux/netlink.h... " >&6; }
17404if test "${ac_cv_header_linux_netlink_h+set}" = set; then
17405  $as_echo_n "(cached) " >&6
17406else
17407  cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h.  */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h.  */
17413
17414#include <sys/socket.h>
17415#include <asm/types.h>
17416
17417
17418@%:@include <linux/netlink.h>
17419_ACEOF
17420rm -f conftest.$ac_objext
17421if { (ac_try="$ac_compile"
17422case "(($ac_try" in
17423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424  *) ac_try_echo=$ac_try;;
17425esac
17426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17427$as_echo "$ac_try_echo") >&5
17428  (eval "$ac_compile") 2>conftest.er1
17429  ac_status=$?
17430  grep -v '^ *+' conftest.er1 >conftest.err
17431  rm -f conftest.er1
17432  cat conftest.err >&5
17433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434  (exit $ac_status); } && {
17435	 test -z "$ac_c_werror_flag" ||
17436	 test ! -s conftest.err
17437       } && test -s conftest.$ac_objext; then
17438  ac_cv_header_linux_netlink_h=yes
17439else
17440  $as_echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443	ac_cv_header_linux_netlink_h=no
17444fi
17445
17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447fi
17448{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
17449$as_echo "$ac_cv_header_linux_netlink_h" >&6; }
17450if test "x$ac_cv_header_linux_netlink_h" = x""yes; then
17451  HAVE_NETLINK=yes
17452
17453cat >>confdefs.h <<\_ACEOF
17454@%:@define HAVE_NETLINK /**/
17455_ACEOF
17456
17457
17458fi
17459
17460
17461
17462 if  test x"$HAVE_NETLINK" = xyes ; then
17463  HAVE_NETLINK_TRUE=
17464  HAVE_NETLINK_FALSE='#'
17465else
17466  HAVE_NETLINK_TRUE='#'
17467  HAVE_NETLINK_FALSE=
17468fi
17469
17470
17471#
17472# Check for net/route.h
17473#
17474{ $as_echo "$as_me:$LINENO: checking for net/route.h" >&5
17475$as_echo_n "checking for net/route.h... " >&6; }
17476if test "${ac_cv_header_net_route_h+set}" = set; then
17477  $as_echo_n "(cached) " >&6
17478else
17479  cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h.  */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h.  */
17485
17486#include <sys/types.h>
17487#include <sys/socket.h>
17488
17489
17490@%:@include <net/route.h>
17491_ACEOF
17492rm -f conftest.$ac_objext
17493if { (ac_try="$ac_compile"
17494case "(($ac_try" in
17495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496  *) ac_try_echo=$ac_try;;
17497esac
17498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499$as_echo "$ac_try_echo") >&5
17500  (eval "$ac_compile") 2>conftest.er1
17501  ac_status=$?
17502  grep -v '^ *+' conftest.er1 >conftest.err
17503  rm -f conftest.er1
17504  cat conftest.err >&5
17505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506  (exit $ac_status); } && {
17507	 test -z "$ac_c_werror_flag" ||
17508	 test ! -s conftest.err
17509       } && test -s conftest.$ac_objext; then
17510  ac_cv_header_net_route_h=yes
17511else
17512  $as_echo "$as_me: failed program was:" >&5
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
17515	ac_cv_header_net_route_h=no
17516fi
17517
17518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519fi
17520{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_route_h" >&5
17521$as_echo "$ac_cv_header_net_route_h" >&6; }
17522if test "x$ac_cv_header_net_route_h" = x""yes; then
17523  HAVE_PF_ROUTE=yes
17524
17525cat >>confdefs.h <<\_ACEOF
17526@%:@define HAVE_PF_ROUTE /**/
17527_ACEOF
17528
17529
17530fi
17531
17532
17533
17534 if  test x"$HAVE_PF_ROUTE" = xyes ; then
17535  HAVE_PF_ROUTE_TRUE=
17536  HAVE_PF_ROUTE_FALSE='#'
17537else
17538  HAVE_PF_ROUTE_TRUE='#'
17539  HAVE_PF_ROUTE_FALSE=
17540fi
17541
17542
17543#
17544# Check for sys/filio.h; needed for FIONREAD on Solaris
17545#
17546{ $as_echo "$as_me:$LINENO: checking for sys/filio.h" >&5
17547$as_echo_n "checking for sys/filio.h... " >&6; }
17548if test "${ac_cv_header_sys_filio_h+set}" = set; then
17549  $as_echo_n "(cached) " >&6
17550else
17551  cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h.  */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h.  */
17557
17558
17559
17560@%:@include <sys/filio.h>
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (ac_try="$ac_compile"
17564case "(($ac_try" in
17565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566  *) ac_try_echo=$ac_try;;
17567esac
17568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569$as_echo "$ac_try_echo") >&5
17570  (eval "$ac_compile") 2>conftest.er1
17571  ac_status=$?
17572  grep -v '^ *+' conftest.er1 >conftest.err
17573  rm -f conftest.er1
17574  cat conftest.err >&5
17575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576  (exit $ac_status); } && {
17577	 test -z "$ac_c_werror_flag" ||
17578	 test ! -s conftest.err
17579       } && test -s conftest.$ac_objext; then
17580  ac_cv_header_sys_filio_h=yes
17581else
17582  $as_echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585	ac_cv_header_sys_filio_h=no
17586fi
17587
17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589fi
17590{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
17591$as_echo "$ac_cv_header_sys_filio_h" >&6; }
17592if test "x$ac_cv_header_sys_filio_h" = x""yes; then
17593  HAVE_SYS_FILIO_H=yes
17594
17595cat >>confdefs.h <<\_ACEOF
17596@%:@define HAVE_SYS_FILIO_H /**/
17597_ACEOF
17598
17599
17600fi
17601
17602
17603
17604 if  test x"$HAVE_SYS_FILIO_H" = xyes ; then
17605  HAVE_SYS_FILIO_H_TRUE=
17606  HAVE_SYS_FILIO_H_FALSE='#'
17607else
17608  HAVE_SYS_FILIO_H_TRUE='#'
17609  HAVE_SYS_FILIO_H_FALSE=
17610fi
17611
17612
17613#
17614# Check for sys/sysctl.h; not present on Solaris
17615#
17616{ $as_echo "$as_me:$LINENO: checking for sys/sysctl.h" >&5
17617$as_echo_n "checking for sys/sysctl.h... " >&6; }
17618if test "${ac_cv_header_sys_sysctl_h+set}" = set; then
17619  $as_echo_n "(cached) " >&6
17620else
17621  cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h.  */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h.  */
17627
17628#include <sys/types.h>
17629#include <sys/socket.h>
17630#include <sys/param.h>
17631
17632
17633@%:@include <sys/sysctl.h>
17634_ACEOF
17635rm -f conftest.$ac_objext
17636if { (ac_try="$ac_compile"
17637case "(($ac_try" in
17638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639  *) ac_try_echo=$ac_try;;
17640esac
17641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17642$as_echo "$ac_try_echo") >&5
17643  (eval "$ac_compile") 2>conftest.er1
17644  ac_status=$?
17645  grep -v '^ *+' conftest.er1 >conftest.err
17646  rm -f conftest.er1
17647  cat conftest.err >&5
17648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649  (exit $ac_status); } && {
17650	 test -z "$ac_c_werror_flag" ||
17651	 test ! -s conftest.err
17652       } && test -s conftest.$ac_objext; then
17653  ac_cv_header_sys_sysctl_h=yes
17654else
17655  $as_echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658	ac_cv_header_sys_sysctl_h=no
17659fi
17660
17661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662fi
17663{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysctl_h" >&5
17664$as_echo "$ac_cv_header_sys_sysctl_h" >&6; }
17665if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then
17666  HAVE_SYS_SYSCTL=yes
17667
17668cat >>confdefs.h <<\_ACEOF
17669@%:@define HAVE_SYS_SYSCTL_H /**/
17670_ACEOF
17671
17672
17673fi
17674
17675
17676
17677 if  test x"$HAVE_SYS_SYSCTL_H" = xyes ; then
17678  HAVE_SYS_SYSCTL_H_TRUE=
17679  HAVE_SYS_SYSCTL_H_FALSE='#'
17680else
17681  HAVE_SYS_SYSCTL_H_TRUE='#'
17682  HAVE_SYS_SYSCTL_H_FALSE=
17683fi
17684
17685
17686#
17687# Check for lifconf struct; only present on Solaris
17688#
17689{ $as_echo "$as_me:$LINENO: checking for struct lifconf" >&5
17690$as_echo_n "checking for struct lifconf... " >&6; }
17691if test "${avahi_cv_has_struct_lifconf+set}" = set; then
17692  $as_echo_n "(cached) " >&6
17693else
17694  cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h.  */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h.  */
17700#include <sys/socket.h>
17701#include <net/if.h>
17702
17703int
17704main ()
17705{
17706sizeof (struct lifconf);
17707  ;
17708  return 0;
17709}
17710_ACEOF
17711rm -f conftest.$ac_objext
17712if { (ac_try="$ac_compile"
17713case "(($ac_try" in
17714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715  *) ac_try_echo=$ac_try;;
17716esac
17717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718$as_echo "$ac_try_echo") >&5
17719  (eval "$ac_compile") 2>conftest.er1
17720  ac_status=$?
17721  grep -v '^ *+' conftest.er1 >conftest.err
17722  rm -f conftest.er1
17723  cat conftest.err >&5
17724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725  (exit $ac_status); } && {
17726	 test -z "$ac_c_werror_flag" ||
17727	 test ! -s conftest.err
17728       } && test -s conftest.$ac_objext; then
17729  avahi_cv_has_struct_lifconf=yes
17730else
17731  $as_echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734	avahi_cv_has_struct_lifconf=no
17735fi
17736
17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738fi
17739
17740{ $as_echo "$as_me:$LINENO: result: $avahi_cv_has_struct_lifconf" >&5
17741$as_echo "$avahi_cv_has_struct_lifconf" >&6; }
17742if test $avahi_cv_has_struct_lifconf = yes; then
17743    
17744cat >>confdefs.h <<\_ACEOF
17745@%:@define HAVE_STRUCT_LIFCONF 1
17746_ACEOF
17747
17748fi
17749
17750#
17751# Check for struct ip_mreqn
17752#
17753{ $as_echo "$as_me:$LINENO: checking for struct ip_mreqn" >&5
17754$as_echo_n "checking for struct ip_mreqn... " >&6; }
17755cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h.  */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h.  */
17761#include <netinet/in.h>
17762int
17763main ()
17764{
17765
17766	struct ip_mreqn mreq;
17767	mreq.imr_address.s_addr = 0;
17768
17769  ;
17770  return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (ac_try="$ac_compile"
17775case "(($ac_try" in
17776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777  *) ac_try_echo=$ac_try;;
17778esac
17779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17780$as_echo "$ac_try_echo") >&5
17781  (eval "$ac_compile") 2>conftest.er1
17782  ac_status=$?
17783  grep -v '^ *+' conftest.er1 >conftest.err
17784  rm -f conftest.er1
17785  cat conftest.err >&5
17786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); } && {
17788	 test -z "$ac_c_werror_flag" ||
17789	 test ! -s conftest.err
17790       } && test -s conftest.$ac_objext; then
17791  
17792	# Yes, we have it...
17793	{ $as_echo "$as_me:$LINENO: result: yes" >&5
17794$as_echo "yes" >&6; }
17795	
17796cat >>confdefs.h <<\_ACEOF
17797@%:@define HAVE_STRUCT_IP_MREQN /**/
17798_ACEOF
17799
17800
17801else
17802  $as_echo "$as_me: failed program was:" >&5
17803sed 's/^/| /' conftest.$ac_ext >&5
17804
17805	
17806	# We'll just have to try and use struct ip_mreq
17807	{ $as_echo "$as_me:$LINENO: result: no" >&5
17808$as_echo "no" >&6; }
17809	{ $as_echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
17810$as_echo_n "checking for struct ip_mreq... " >&6; }
17811	cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h.  */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h.  */
17817#include <netinet/in.h>
17818int
17819main ()
17820{
17821
17822		struct ip_mreq mreq;
17823		mreq.imr_interface.s_addr = 0;
17824	
17825  ;
17826  return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (ac_try="$ac_compile"
17831case "(($ac_try" in
17832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833  *) ac_try_echo=$ac_try;;
17834esac
17835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836$as_echo "$ac_try_echo") >&5
17837  (eval "$ac_compile") 2>conftest.er1
17838  ac_status=$?
17839  grep -v '^ *+' conftest.er1 >conftest.err
17840  rm -f conftest.er1
17841  cat conftest.err >&5
17842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843  (exit $ac_status); } && {
17844	 test -z "$ac_c_werror_flag" ||
17845	 test ! -s conftest.err
17846       } && test -s conftest.$ac_objext; then
17847  
17848		# Yes, we have it...
17849		{ $as_echo "$as_me:$LINENO: result: yes" >&5
17850$as_echo "yes" >&6; }
17851		
17852cat >>confdefs.h <<\_ACEOF
17853@%:@define HAVE_STRUCT_IP_MREQ /**/
17854_ACEOF
17855
17856	
17857else
17858  $as_echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861	
17862		# No multicast support
17863			{ $as_echo "$as_me:$LINENO: result: no" >&5
17864$as_echo "no" >&6; }
17865	
17866fi
17867
17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869
17870fi
17871
17872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873
17874#
17875# Detecting the linux distribution for specific things like init scripts.
17876#
17877
17878@%:@ Check whether --with-distro was given.
17879if test "${with_distro+set}" = set; then
17880  withval=$with_distro; 
17881fi
17882
17883if test "z$with_distro" = "z"; then
17884    if test "$cross_compiling" = yes; then
17885        { $as_echo "$as_me:$LINENO: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&5
17886$as_echo "$as_me: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&2;}
17887    else
17888        { $as_echo "$as_me:$LINENO: checking for /etc/lfs-release" >&5
17889$as_echo_n "checking for /etc/lfs-release... " >&6; }
17890if test "${ac_cv_file__etc_lfs_release+set}" = set; then
17891  $as_echo_n "(cached) " >&6
17892else
17893  test "$cross_compiling" = yes &&
17894  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17895$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17896   { (exit 1); exit 1; }; }
17897if test -r "/etc/lfs-release"; then
17898  ac_cv_file__etc_lfs_release=yes
17899else
17900  ac_cv_file__etc_lfs_release=no
17901fi
17902fi
17903{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_lfs_release" >&5
17904$as_echo "$ac_cv_file__etc_lfs_release" >&6; }
17905if test "x$ac_cv_file__etc_lfs_release" = x""yes; then
17906  with_distro="lfs"
17907fi
17908
17909        { $as_echo "$as_me:$LINENO: checking for /etc/SuSE-release" >&5
17910$as_echo_n "checking for /etc/SuSE-release... " >&6; }
17911if test "${ac_cv_file__etc_SuSE_release+set}" = set; then
17912  $as_echo_n "(cached) " >&6
17913else
17914  test "$cross_compiling" = yes &&
17915  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17916$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17917   { (exit 1); exit 1; }; }
17918if test -r "/etc/SuSE-release"; then
17919  ac_cv_file__etc_SuSE_release=yes
17920else
17921  ac_cv_file__etc_SuSE_release=no
17922fi
17923fi
17924{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_SuSE_release" >&5
17925$as_echo "$ac_cv_file__etc_SuSE_release" >&6; }
17926if test "x$ac_cv_file__etc_SuSE_release" = x""yes; then
17927  with_distro="suse"
17928fi
17929
17930        { $as_echo "$as_me:$LINENO: checking for /etc/gentoo-release" >&5
17931$as_echo_n "checking for /etc/gentoo-release... " >&6; }
17932if test "${ac_cv_file__etc_gentoo_release+set}" = set; then
17933  $as_echo_n "(cached) " >&6
17934else
17935  test "$cross_compiling" = yes &&
17936  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17937$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17938   { (exit 1); exit 1; }; }
17939if test -r "/etc/gentoo-release"; then
17940  ac_cv_file__etc_gentoo_release=yes
17941else
17942  ac_cv_file__etc_gentoo_release=no
17943fi
17944fi
17945{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_gentoo_release" >&5
17946$as_echo "$ac_cv_file__etc_gentoo_release" >&6; }
17947if test "x$ac_cv_file__etc_gentoo_release" = x""yes; then
17948  with_distro="gentoo"
17949fi
17950
17951        { $as_echo "$as_me:$LINENO: checking for /etc/arch-release" >&5
17952$as_echo_n "checking for /etc/arch-release... " >&6; }
17953if test "${ac_cv_file__etc_arch_release+set}" = set; then
17954  $as_echo_n "(cached) " >&6
17955else
17956  test "$cross_compiling" = yes &&
17957  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17958$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17959   { (exit 1); exit 1; }; }
17960if test -r "/etc/arch-release"; then
17961  ac_cv_file__etc_arch_release=yes
17962else
17963  ac_cv_file__etc_arch_release=no
17964fi
17965fi
17966{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_arch_release" >&5
17967$as_echo "$ac_cv_file__etc_arch_release" >&6; }
17968if test "x$ac_cv_file__etc_arch_release" = x""yes; then
17969  with_distro="archlinux"
17970fi
17971
17972        { $as_echo "$as_me:$LINENO: checking for /etc/debian_version" >&5
17973$as_echo_n "checking for /etc/debian_version... " >&6; }
17974if test "${ac_cv_file__etc_debian_version+set}" = set; then
17975  $as_echo_n "(cached) " >&6
17976else
17977  test "$cross_compiling" = yes &&
17978  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17979$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17980   { (exit 1); exit 1; }; }
17981if test -r "/etc/debian_version"; then
17982  ac_cv_file__etc_debian_version=yes
17983else
17984  ac_cv_file__etc_debian_version=no
17985fi
17986fi
17987{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_debian_version" >&5
17988$as_echo "$ac_cv_file__etc_debian_version" >&6; }
17989if test "x$ac_cv_file__etc_debian_version" = x""yes; then
17990  with_distro="debian"
17991fi
17992
17993        { $as_echo "$as_me:$LINENO: checking for /etc/redhat-release" >&5
17994$as_echo_n "checking for /etc/redhat-release... " >&6; }
17995if test "${ac_cv_file__etc_redhat_release+set}" = set; then
17996  $as_echo_n "(cached) " >&6
17997else
17998  test "$cross_compiling" = yes &&
17999  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18000$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18001   { (exit 1); exit 1; }; }
18002if test -r "/etc/redhat-release"; then
18003  ac_cv_file__etc_redhat_release=yes
18004else
18005  ac_cv_file__etc_redhat_release=no
18006fi
18007fi
18008{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_redhat_release" >&5
18009$as_echo "$ac_cv_file__etc_redhat_release" >&6; }
18010if test "x$ac_cv_file__etc_redhat_release" = x""yes; then
18011  with_distro="fedora"
18012fi
18013
18014        { $as_echo "$as_me:$LINENO: checking for /etc/mandriva-release" >&5
18015$as_echo_n "checking for /etc/mandriva-release... " >&6; }
18016if test "${ac_cv_file__etc_mandriva_release+set}" = set; then
18017  $as_echo_n "(cached) " >&6
18018else
18019  test "$cross_compiling" = yes &&
18020  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18021$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18022   { (exit 1); exit 1; }; }
18023if test -r "/etc/mandriva-release"; then
18024  ac_cv_file__etc_mandriva_release=yes
18025else
18026  ac_cv_file__etc_mandriva_release=no
18027fi
18028fi
18029{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_mandriva_release" >&5
18030$as_echo "$ac_cv_file__etc_mandriva_release" >&6; }
18031if test "x$ac_cv_file__etc_mandriva_release" = x""yes; then
18032  with_distro="mandriva"
18033fi
18034
18035        { $as_echo "$as_me:$LINENO: checking for /etc/slackware-version" >&5
18036$as_echo_n "checking for /etc/slackware-version... " >&6; }
18037if test "${ac_cv_file__etc_slackware_version+set}" = set; then
18038  $as_echo_n "(cached) " >&6
18039else
18040  test "$cross_compiling" = yes &&
18041  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18042$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18043   { (exit 1); exit 1; }; }
18044if test -r "/etc/slackware-version"; then
18045  ac_cv_file__etc_slackware_version=yes
18046else
18047  ac_cv_file__etc_slackware_version=no
18048fi
18049fi
18050{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_slackware_version" >&5
18051$as_echo "$ac_cv_file__etc_slackware_version" >&6; }
18052if test "x$ac_cv_file__etc_slackware_version" = x""yes; then
18053  with_distro="slackware"
18054fi
18055
18056    fi
18057    if test "z$with_distro" = "z"; then
18058        with_distro=`uname -s`
18059    fi
18060fi
18061with_distro=`echo ${with_distro} | tr '[:upper:]' '[:lower:]' `
18062
18063case $with_distro in
18064    lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none)
18065     ;;
18066    netbsd)
18067     { $as_echo "$as_me:$LINENO: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&5
18068$as_echo "$as_me: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&2;}
18069     ;;
18070    linux)
18071     { { $as_echo "$as_me:$LINENO: error: Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported." >&5
18072$as_echo "$as_me: error: Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported." >&2;}
18073   { (exit 1); exit 1; }; }
18074     ;;
18075    *)
18076     { { $as_echo "$as_me:$LINENO: error: Your distribution (${with_distro}) is not yet supported, init scripts and D-Bus configuration will not be installed! (patches welcome), you can specify --with-distro=none to skip this check" >&5
18077$as_echo "$as_me: error: Your distribution (${with_distro}) is not yet supported, init scripts and D-Bus configuration will not be installed! (patches welcome), you can specify --with-distro=none to skip this check" >&2;}
18078   { (exit 1); exit 1; }; }
18079     ;;
18080esac
18081
18082 if test x"$with_distro" = xlfs; then
18083  TARGET_LFS_TRUE=
18084  TARGET_LFS_FALSE='#'
18085else
18086  TARGET_LFS_TRUE='#'
18087  TARGET_LFS_FALSE=
18088fi
18089
18090 if test x"$with_distro" = xsuse; then
18091  TARGET_SUSE_TRUE=
18092  TARGET_SUSE_FALSE='#'
18093else
18094  TARGET_SUSE_TRUE='#'
18095  TARGET_SUSE_FALSE=
18096fi
18097
18098 if test x"$with_distro" = xgentoo; then
18099  TARGET_GENTOO_TRUE=
18100  TARGET_GENTOO_FALSE='#'
18101else
18102  TARGET_GENTOO_TRUE='#'
18103  TARGET_GENTOO_FALSE=
18104fi
18105
18106 if test x"$with_distro" = xdebian; then
18107  TARGET_DEBIAN_TRUE=
18108  TARGET_DEBIAN_FALSE='#'
18109else
18110  TARGET_DEBIAN_TRUE='#'
18111  TARGET_DEBIAN_FALSE=
18112fi
18113
18114 if test x"$with_distro" = xarchlinux; then
18115  TARGET_ARCHLINUX_TRUE=
18116  TARGET_ARCHLINUX_FALSE='#'
18117else
18118  TARGET_ARCHLINUX_TRUE='#'
18119  TARGET_ARCHLINUX_FALSE=
18120fi
18121
18122 if test x"$with_distro" = xfedora; then
18123  TARGET_FEDORA_TRUE=
18124  TARGET_FEDORA_FALSE='#'
18125else
18126  TARGET_FEDORA_TRUE='#'
18127  TARGET_FEDORA_FALSE=
18128fi
18129
18130 if test x"$with_distro" = xmandriva; then
18131  TARGET_MANDRIVA_TRUE=
18132  TARGET_MANDRIVA_FALSE='#'
18133else
18134  TARGET_MANDRIVA_TRUE='#'
18135  TARGET_MANDRIVA_FALSE=
18136fi
18137
18138 if test x"$with_distro" = xdarwin; then
18139  TARGET_DARWIN_TRUE=
18140  TARGET_DARWIN_FALSE='#'
18141else
18142  TARGET_DARWIN_TRUE='#'
18143  TARGET_DARWIN_FALSE=
18144fi
18145
18146 if test x"$with_distro" = xnetbsd; then
18147  TARGET_NETBSD_TRUE=
18148  TARGET_NETBSD_FALSE='#'
18149else
18150  TARGET_NETBSD_TRUE='#'
18151  TARGET_NETBSD_FALSE=
18152fi
18153
18154 if test x"$with_distro" = xfreebsd; then
18155  TARGET_FREEBSD_TRUE=
18156  TARGET_FREEBSD_FALSE='#'
18157else
18158  TARGET_FREEBSD_TRUE='#'
18159  TARGET_FREEBSD_FALSE=
18160fi
18161
18162 if test x"$with_distro" = xslackware; then
18163  TARGET_SLACKWARE_TRUE=
18164  TARGET_SLACKWARE_FALSE='#'
18165else
18166  TARGET_SLACKWARE_TRUE='#'
18167  TARGET_SLACKWARE_FALSE=
18168fi
18169
18170
18171test_gcc_flag() {
18172    cat >conftest.$ac_ext <<_ACEOF
18173int main() {}
18174_ACEOF
18175    $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
18176    ret=$?
18177    rm -f conftest.o
18178    return $ret
18179}
18180
18181# If using GCC specify some additional parameters
18182if test "x$GCC" = "xyes" ; then
18183
18184    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline"
18185
18186    if test "x$HAVE_NETLINK" = "xyes" ; then
18187        # Test whether rtnetlink.h can be included when compiled with -std=c99
18188        # some distributions (e.g. archlinux) have broken headers that dont
18189        # define __u64 with -std=c99
18190        { $as_echo "$as_me:$LINENO: checking checking whether rtnetlink.h can be included with -std=c99" >&5
18191$as_echo_n "checking checking whether rtnetlink.h can be included with -std=c99... " >&6; }
18192        OLDCFLAGS="$CFLAGS"
18193        CFLAGS="-std=c99"
18194        cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h.  */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h.  */
18200#include <linux/rtnetlink.h>
18201int
18202main ()
18203{
18204
18205  ;
18206  return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext
18210if { (ac_try="$ac_compile"
18211case "(($ac_try" in
18212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213  *) ac_try_echo=$ac_try;;
18214esac
18215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18216$as_echo "$ac_try_echo") >&5
18217  (eval "$ac_compile") 2>conftest.er1
18218  ac_status=$?
18219  grep -v '^ *+' conftest.er1 >conftest.err
18220  rm -f conftest.er1
18221  cat conftest.err >&5
18222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223  (exit $ac_status); } && {
18224	 test -z "$ac_c_werror_flag" ||
18225	 test ! -s conftest.err
18226       } && test -s conftest.$ac_objext; then
18227  use_stdc99=yes
18228else
18229  $as_echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232	use_stdc99=no
18233fi
18234
18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236
18237        if test x"$use_stdc99" = xyes; then
18238            DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18239            { $as_echo "$as_me:$LINENO: result: yes" >&5
18240$as_echo "yes" >&6; }
18241        else
18242            { $as_echo "$as_me:$LINENO: result: no" >&5
18243$as_echo "no" >&6; }
18244        fi
18245
18246        CFLAGS="$OLDCFLAGS"
18247    else
18248        DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18249    fi
18250
18251    for flag in $DESIRED_FLAGS ; do
18252        { $as_echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
18253$as_echo_n "checking whether $CC accepts $flag... " >&6; }
18254        if test_gcc_flag $flag ; then
18255           CFLAGS="$CFLAGS $flag"
18256           { $as_echo "$as_me:$LINENO: result: yes" >&5
18257$as_echo "yes" >&6; }
18258        else
18259           { $as_echo "$as_me:$LINENO: result: no" >&5
18260$as_echo "no" >&6; }
18261        fi
18262    done
18263fi
18264
18265# Checks for header files.
18266{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18267$as_echo_n "checking for ANSI C header files... " >&6; }
18268if test "${ac_cv_header_stdc+set}" = set; then
18269  $as_echo_n "(cached) " >&6
18270else
18271  cat >conftest.$ac_ext <<_ACEOF
18272/* confdefs.h.  */
18273_ACEOF
18274cat confdefs.h >>conftest.$ac_ext
18275cat >>conftest.$ac_ext <<_ACEOF
18276/* end confdefs.h.  */
18277#include <stdlib.h>
18278#include <stdarg.h>
18279#include <string.h>
18280#include <float.h>
18281
18282int
18283main ()
18284{
18285
18286  ;
18287  return 0;
18288}
18289_ACEOF
18290rm -f conftest.$ac_objext
18291if { (ac_try="$ac_compile"
18292case "(($ac_try" in
18293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294  *) ac_try_echo=$ac_try;;
18295esac
18296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297$as_echo "$ac_try_echo") >&5
18298  (eval "$ac_compile") 2>conftest.er1
18299  ac_status=$?
18300  grep -v '^ *+' conftest.er1 >conftest.err
18301  rm -f conftest.er1
18302  cat conftest.err >&5
18303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304  (exit $ac_status); } && {
18305	 test -z "$ac_c_werror_flag" ||
18306	 test ! -s conftest.err
18307       } && test -s conftest.$ac_objext; then
18308  ac_cv_header_stdc=yes
18309else
18310  $as_echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313	ac_cv_header_stdc=no
18314fi
18315
18316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317
18318if test $ac_cv_header_stdc = yes; then
18319  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18320  cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h.  */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h.  */
18326#include <string.h>
18327
18328_ACEOF
18329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18330  $EGREP "memchr" >/dev/null 2>&1; then
18331  :
18332else
18333  ac_cv_header_stdc=no
18334fi
18335rm -f conftest*
18336
18337fi
18338
18339if test $ac_cv_header_stdc = yes; then
18340  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18341  cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h.  */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h.  */
18347#include <stdlib.h>
18348
18349_ACEOF
18350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18351  $EGREP "free" >/dev/null 2>&1; then
18352  :
18353else
18354  ac_cv_header_stdc=no
18355fi
18356rm -f conftest*
18357
18358fi
18359
18360if test $ac_cv_header_stdc = yes; then
18361  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18362  if test "$cross_compiling" = yes; then
18363  :
18364else
18365  cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h.  */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h.  */
18371#include <ctype.h>
18372#include <stdlib.h>
18373#if ((' ' & 0x0FF) == 0x020)
18374# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18375# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18376#else
18377# define ISLOWER(c) \
18378		   (('a' <= (c) && (c) <= 'i') \
18379		     || ('j' <= (c) && (c) <= 'r') \
18380		     || ('s' <= (c) && (c) <= 'z'))
18381# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18382#endif
18383
18384#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18385int
18386main ()
18387{
18388  int i;
18389  for (i = 0; i < 256; i++)
18390    if (XOR (islower (i), ISLOWER (i))
18391	|| toupper (i) != TOUPPER (i))
18392      return 2;
18393  return 0;
18394}
18395_ACEOF
18396rm -f conftest$ac_exeext
18397if { (ac_try="$ac_link"
18398case "(($ac_try" in
18399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400  *) ac_try_echo=$ac_try;;
18401esac
18402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18403$as_echo "$ac_try_echo") >&5
18404  (eval "$ac_link") 2>&5
18405  ac_status=$?
18406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18408  { (case "(($ac_try" in
18409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410  *) ac_try_echo=$ac_try;;
18411esac
18412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413$as_echo "$ac_try_echo") >&5
18414  (eval "$ac_try") 2>&5
18415  ac_status=$?
18416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417  (exit $ac_status); }; }; then
18418  :
18419else
18420  $as_echo "$as_me: program exited with status $ac_status" >&5
18421$as_echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424( exit $ac_status )
18425ac_cv_header_stdc=no
18426fi
18427rm -rf conftest.dSYM
18428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18429fi
18430
18431
18432fi
18433fi
18434{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18435$as_echo "$ac_cv_header_stdc" >&6; }
18436if test $ac_cv_header_stdc = yes; then
18437  
18438cat >>confdefs.h <<\_ACEOF
18439@%:@define STDC_HEADERS 1
18440_ACEOF
18441
18442fi
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h
18458do
18459as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18461  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18462$as_echo_n "checking for $ac_header... " >&6; }
18463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18464  $as_echo_n "(cached) " >&6
18465fi
18466ac_res=`eval 'as_val=${'$as_ac_Header'}
18467		 $as_echo "$as_val"'`
18468	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18469$as_echo "$ac_res" >&6; }
18470else
18471  # Is the header compilable?
18472{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18473$as_echo_n "checking $ac_header usability... " >&6; }
18474cat >conftest.$ac_ext <<_ACEOF
18475/* confdefs.h.  */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h.  */
18480$ac_includes_default
18481@%:@include <$ac_header>
18482_ACEOF
18483rm -f conftest.$ac_objext
18484if { (ac_try="$ac_compile"
18485case "(($ac_try" in
18486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487  *) ac_try_echo=$ac_try;;
18488esac
18489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18490$as_echo "$ac_try_echo") >&5
18491  (eval "$ac_compile") 2>conftest.er1
18492  ac_status=$?
18493  grep -v '^ *+' conftest.er1 >conftest.err
18494  rm -f conftest.er1
18495  cat conftest.err >&5
18496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497  (exit $ac_status); } && {
18498	 test -z "$ac_c_werror_flag" ||
18499	 test ! -s conftest.err
18500       } && test -s conftest.$ac_objext; then
18501  ac_header_compiler=yes
18502else
18503  $as_echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
18506	ac_header_compiler=no
18507fi
18508
18509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18510{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511$as_echo "$ac_header_compiler" >&6; }
18512
18513# Is the header present?
18514{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18515$as_echo_n "checking $ac_header presence... " >&6; }
18516cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h.  */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h.  */
18522@%:@include <$ac_header>
18523_ACEOF
18524if { (ac_try="$ac_cpp conftest.$ac_ext"
18525case "(($ac_try" in
18526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527  *) ac_try_echo=$ac_try;;
18528esac
18529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18530$as_echo "$ac_try_echo") >&5
18531  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18532  ac_status=$?
18533  grep -v '^ *+' conftest.er1 >conftest.err
18534  rm -f conftest.er1
18535  cat conftest.err >&5
18536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537  (exit $ac_status); } >/dev/null && {
18538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18539	 test ! -s conftest.err
18540       }; then
18541  ac_header_preproc=yes
18542else
18543  $as_echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546  ac_header_preproc=no
18547fi
18548
18549rm -f conftest.err conftest.$ac_ext
18550{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18551$as_echo "$ac_header_preproc" >&6; }
18552
18553# So?  What about this header?
18554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18555  yes:no: )
18556    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18557$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18558    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18559$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18560    ac_header_preproc=yes
18561    ;;
18562  no:yes:* )
18563    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18564$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18565    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18566$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18567    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18568$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18569    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18570$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18571    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18572$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18573    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18574$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18575    ( cat <<\_ASBOX
18576@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
18577@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
18578@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
18579_ASBOX
18580     ) | sed "s/^/$as_me: WARNING:     /" >&2
18581    ;;
18582esac
18583{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18584$as_echo_n "checking for $ac_header... " >&6; }
18585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18586  $as_echo_n "(cached) " >&6
18587else
18588  eval "$as_ac_Header=\$ac_header_preproc"
18589fi
18590ac_res=`eval 'as_val=${'$as_ac_Header'}
18591		 $as_echo "$as_val"'`
18592	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18593$as_echo "$ac_res" >&6; }
18594
18595fi
18596as_val=`eval 'as_val=${'$as_ac_Header'}
18597		 $as_echo "$as_val"'`
18598   if test "x$as_val" = x""yes; then
18599  cat >>confdefs.h <<_ACEOF
18600@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18601_ACEOF
18602 
18603fi
18604
18605done
18606
18607{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
18608$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18609if test "${ac_cv_header_stdbool_h+set}" = set; then
18610  $as_echo_n "(cached) " >&6
18611else
18612  cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h.  */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h.  */
18618
18619#include <stdbool.h>
18620#ifndef bool
18621 "error: bool is not defined"
18622#endif
18623#ifndef false
18624 "error: false is not defined"
18625#endif
18626#if false
18627 "error: false is not 0"
18628#endif
18629#ifndef true
18630 "error: true is not defined"
18631#endif
18632#if true != 1
18633 "error: true is not 1"
18634#endif
18635#ifndef __bool_true_false_are_defined
18636 "error: __bool_true_false_are_defined is not defined"
18637#endif
18638
18639	struct s { _Bool s: 1; _Bool t; } s;
18640
18641	char a[true == 1 ? 1 : -1];
18642	char b[false == 0 ? 1 : -1];
18643	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18644	char d[(bool) 0.5 == true ? 1 : -1];
18645	bool e = &s;
18646	char f[(_Bool) 0.0 == false ? 1 : -1];
18647	char g[true];
18648	char h[sizeof (_Bool)];
18649	char i[sizeof s.t];
18650	enum { j = false, k = true, l = false * true, m = true * 256 };
18651	/* The following fails for
18652	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18653	_Bool n[m];
18654	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18655	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18656#	if defined __xlc__ || defined __GNUC__
18657	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
18658	    reported by James Lemley on 2005-10-05; see
18659	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
18660	    This test is not quite right, since xlc is allowed to
18661	    reject this program, as the initializer for xlcbug is
18662	    not one of the forms that C requires support for.
18663	    However, doing the test right would require a runtime
18664	    test, and that would make cross-compilation harder.
18665	    Let us hope that IBM fixes the xlc bug, and also adds
18666	    support for this kind of constant expression.  In the
18667	    meantime, this test will reject xlc, which is OK, since
18668	    our stdbool.h substitute should suffice.  We also test
18669	    this with GCC, where it should work, to detect more
18670	    quickly whether someone messes up the test in the
18671	    future.  */
18672	 char digs[] = "0123456789";
18673	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
18674#	endif
18675	/* Catch a bug in an HP-UX C compiler.  See
18676	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18677	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18678	 */
18679	_Bool q = true;
18680	_Bool *pq = &q;
18681      
18682int
18683main ()
18684{
18685
18686	*pq |= q;
18687	*pq |= ! q;
18688	/* Refer to every declared value, to avoid compiler optimizations.  */
18689	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18690		+ !m + !n + !o + !p + !q + !pq);
18691      
18692  ;
18693  return 0;
18694}
18695_ACEOF
18696rm -f conftest.$ac_objext
18697if { (ac_try="$ac_compile"
18698case "(($ac_try" in
18699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700  *) ac_try_echo=$ac_try;;
18701esac
18702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18703$as_echo "$ac_try_echo") >&5
18704  (eval "$ac_compile") 2>conftest.er1
18705  ac_status=$?
18706  grep -v '^ *+' conftest.er1 >conftest.err
18707  rm -f conftest.er1
18708  cat conftest.err >&5
18709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710  (exit $ac_status); } && {
18711	 test -z "$ac_c_werror_flag" ||
18712	 test ! -s conftest.err
18713       } && test -s conftest.$ac_objext; then
18714  ac_cv_header_stdbool_h=yes
18715else
18716  $as_echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719	ac_cv_header_stdbool_h=no
18720fi
18721
18722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723fi
18724{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
18725$as_echo "$ac_cv_header_stdbool_h" >&6; }
18726{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
18727$as_echo_n "checking for _Bool... " >&6; }
18728if test "${ac_cv_type__Bool+set}" = set; then
18729  $as_echo_n "(cached) " >&6
18730else
18731  ac_cv_type__Bool=no
18732cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h.  */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h.  */
18738$ac_includes_default
18739int
18740main ()
18741{
18742if (sizeof (_Bool))
18743       return 0;
18744  ;
18745  return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (ac_try="$ac_compile"
18750case "(($ac_try" in
18751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752  *) ac_try_echo=$ac_try;;
18753esac
18754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18755$as_echo "$ac_try_echo") >&5
18756  (eval "$ac_compile") 2>conftest.er1
18757  ac_status=$?
18758  grep -v '^ *+' conftest.er1 >conftest.err
18759  rm -f conftest.er1
18760  cat conftest.err >&5
18761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762  (exit $ac_status); } && {
18763	 test -z "$ac_c_werror_flag" ||
18764	 test ! -s conftest.err
18765       } && test -s conftest.$ac_objext; then
18766  cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h.  */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h.  */
18772$ac_includes_default
18773int
18774main ()
18775{
18776if (sizeof ((_Bool)))
18777	  return 0;
18778  ;
18779  return 0;
18780}
18781_ACEOF
18782rm -f conftest.$ac_objext
18783if { (ac_try="$ac_compile"
18784case "(($ac_try" in
18785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786  *) ac_try_echo=$ac_try;;
18787esac
18788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18789$as_echo "$ac_try_echo") >&5
18790  (eval "$ac_compile") 2>conftest.er1
18791  ac_status=$?
18792  grep -v '^ *+' conftest.er1 >conftest.err
18793  rm -f conftest.er1
18794  cat conftest.err >&5
18795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796  (exit $ac_status); } && {
18797	 test -z "$ac_c_werror_flag" ||
18798	 test ! -s conftest.err
18799       } && test -s conftest.$ac_objext; then
18800  :
18801else
18802  $as_echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805	ac_cv_type__Bool=yes
18806fi
18807
18808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18809else
18810  $as_echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
18813	
18814fi
18815
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817fi
18818{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
18819$as_echo "$ac_cv_type__Bool" >&6; }
18820if test "x$ac_cv_type__Bool" = x""yes; then
18821  
18822cat >>confdefs.h <<_ACEOF
18823@%:@define HAVE__BOOL 1
18824_ACEOF
18825
18826
18827fi
18828
18829if test $ac_cv_header_stdbool_h = yes; then
18830  
18831cat >>confdefs.h <<\_ACEOF
18832@%:@define HAVE_STDBOOL_H 1
18833_ACEOF
18834
18835fi
18836
18837
18838# Checks for typedefs, structures, and compiler characteristics.
18839{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18840$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18841if test "${ac_cv_c_const+set}" = set; then
18842  $as_echo_n "(cached) " >&6
18843else
18844  cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h.  */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h.  */
18850
18851int
18852main ()
18853{
18854/* FIXME: Include the comments suggested by Paul. */
18855#ifndef __cplusplus
18856  /* Ultrix mips cc rejects this.  */
18857  typedef int charset[2];
18858  const charset cs;
18859  /* SunOS 4.1.1 cc rejects this.  */
18860  char const *const *pcpcc;
18861  char **ppc;
18862  /* NEC SVR4.0.2 mips cc rejects this.  */
18863  struct point {int x, y;};
18864  static struct point const zero = {0,0};
18865  /* AIX XL C 1.02.0.0 rejects this.
18866     It does not let you subtract one const X* pointer from another in
18867     an arm of an if-expression whose if-part is not a constant
18868     expression */
18869  const char *g = "string";
18870  pcpcc = &g + (g ? g-g : 0);
18871  /* HPUX 7.0 cc rejects these. */
18872  ++pcpcc;
18873  ppc = (char**) pcpcc;
18874  pcpcc = (char const *const *) ppc;
18875  { /* SCO 3.2v4 cc rejects this.  */
18876    char *t;
18877    char const *s = 0 ? (char *) 0 : (char const *) 0;
18878
18879    *t++ = 0;
18880    if (s) return 0;
18881  }
18882  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18883    int x[] = {25, 17};
18884    const int *foo = &x[0];
18885    ++foo;
18886  }
18887  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18888    typedef const int *iptr;
18889    iptr p = 0;
18890    ++p;
18891  }
18892  { /* AIX XL C 1.02.0.0 rejects this saying
18893       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18894    struct s { int j; const int *ap[3]; };
18895    struct s *b; b->j = 5;
18896  }
18897  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18898    const int foo = 10;
18899    if (!foo) return 0;
18900  }
18901  return !cs[0] && !zero.x;
18902#endif
18903
18904  ;
18905  return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext
18909if { (ac_try="$ac_compile"
18910case "(($ac_try" in
18911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912  *) ac_try_echo=$ac_try;;
18913esac
18914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915$as_echo "$ac_try_echo") >&5
18916  (eval "$ac_compile") 2>conftest.er1
18917  ac_status=$?
18918  grep -v '^ *+' conftest.er1 >conftest.err
18919  rm -f conftest.er1
18920  cat conftest.err >&5
18921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922  (exit $ac_status); } && {
18923	 test -z "$ac_c_werror_flag" ||
18924	 test ! -s conftest.err
18925       } && test -s conftest.$ac_objext; then
18926  ac_cv_c_const=yes
18927else
18928  $as_echo "$as_me: failed program was:" >&5
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
18931	ac_cv_c_const=no
18932fi
18933
18934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935fi
18936{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18937$as_echo "$ac_cv_c_const" >&6; }
18938if test $ac_cv_c_const = no; then
18939  
18940cat >>confdefs.h <<\_ACEOF
18941@%:@define const /**/
18942_ACEOF
18943
18944fi
18945
18946{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
18947$as_echo_n "checking for size_t... " >&6; }
18948if test "${ac_cv_type_size_t+set}" = set; then
18949  $as_echo_n "(cached) " >&6
18950else
18951  ac_cv_type_size_t=no
18952cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h.  */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h.  */
18958$ac_includes_default
18959int
18960main ()
18961{
18962if (sizeof (size_t))
18963       return 0;
18964  ;
18965  return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext
18969if { (ac_try="$ac_compile"
18970case "(($ac_try" in
18971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972  *) ac_try_echo=$ac_try;;
18973esac
18974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18975$as_echo "$ac_try_echo") >&5
18976  (eval "$ac_compile") 2>conftest.er1
18977  ac_status=$?
18978  grep -v '^ *+' conftest.er1 >conftest.err
18979  rm -f conftest.er1
18980  cat conftest.err >&5
18981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982  (exit $ac_status); } && {
18983	 test -z "$ac_c_werror_flag" ||
18984	 test ! -s conftest.err
18985       } && test -s conftest.$ac_objext; then
18986  cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h.  */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h.  */
18992$ac_includes_default
18993int
18994main ()
18995{
18996if (sizeof ((size_t)))
18997	  return 0;
18998  ;
18999  return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext
19003if { (ac_try="$ac_compile"
19004case "(($ac_try" in
19005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006  *) ac_try_echo=$ac_try;;
19007esac
19008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19009$as_echo "$ac_try_echo") >&5
19010  (eval "$ac_compile") 2>conftest.er1
19011  ac_status=$?
19012  grep -v '^ *+' conftest.er1 >conftest.err
19013  rm -f conftest.er1
19014  cat conftest.err >&5
19015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016  (exit $ac_status); } && {
19017	 test -z "$ac_c_werror_flag" ||
19018	 test ! -s conftest.err
19019       } && test -s conftest.$ac_objext; then
19020  :
19021else
19022  $as_echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
19025	ac_cv_type_size_t=yes
19026fi
19027
19028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029else
19030  $as_echo "$as_me: failed program was:" >&5
19031sed 's/^/| /' conftest.$ac_ext >&5
19032
19033	
19034fi
19035
19036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037fi
19038{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19039$as_echo "$ac_cv_type_size_t" >&6; }
19040if test "x$ac_cv_type_size_t" = x""yes; then
19041  :
19042else
19043  
19044cat >>confdefs.h <<_ACEOF
19045@%:@define size_t unsigned int
19046_ACEOF
19047
19048fi
19049
19050{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19051$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19052if test "${ac_cv_header_time+set}" = set; then
19053  $as_echo_n "(cached) " >&6
19054else
19055  cat >conftest.$ac_ext <<_ACEOF
19056/* confdefs.h.  */
19057_ACEOF
19058cat confdefs.h >>conftest.$ac_ext
19059cat >>conftest.$ac_ext <<_ACEOF
19060/* end confdefs.h.  */
19061#include <sys/types.h>
19062#include <sys/time.h>
19063#include <time.h>
19064
19065int
19066main ()
19067{
19068if ((struct tm *) 0)
19069return 0;
19070  ;
19071  return 0;
19072}
19073_ACEOF
19074rm -f conftest.$ac_objext
19075if { (ac_try="$ac_compile"
19076case "(($ac_try" in
19077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078  *) ac_try_echo=$ac_try;;
19079esac
19080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19081$as_echo "$ac_try_echo") >&5
19082  (eval "$ac_compile") 2>conftest.er1
19083  ac_status=$?
19084  grep -v '^ *+' conftest.er1 >conftest.err
19085  rm -f conftest.er1
19086  cat conftest.err >&5
19087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088  (exit $ac_status); } && {
19089	 test -z "$ac_c_werror_flag" ||
19090	 test ! -s conftest.err
19091       } && test -s conftest.$ac_objext; then
19092  ac_cv_header_time=yes
19093else
19094  $as_echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097	ac_cv_header_time=no
19098fi
19099
19100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101fi
19102{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19103$as_echo "$ac_cv_header_time" >&6; }
19104if test $ac_cv_header_time = yes; then
19105  
19106cat >>confdefs.h <<\_ACEOF
19107@%:@define TIME_WITH_SYS_TIME 1
19108_ACEOF
19109
19110fi
19111
19112{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19113$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19114if test "${ac_cv_header_sys_wait_h+set}" = set; then
19115  $as_echo_n "(cached) " >&6
19116else
19117  cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h.  */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h.  */
19123#include <sys/types.h>
19124#include <sys/wait.h>
19125#ifndef WEXITSTATUS
19126# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19127#endif
19128#ifndef WIFEXITED
19129# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19130#endif
19131
19132int
19133main ()
19134{
19135  int s;
19136  wait (&s);
19137  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19138  ;
19139  return 0;
19140}
19141_ACEOF
19142rm -f conftest.$ac_objext
19143if { (ac_try="$ac_compile"
19144case "(($ac_try" in
19145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146  *) ac_try_echo=$ac_try;;
19147esac
19148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19149$as_echo "$ac_try_echo") >&5
19150  (eval "$ac_compile") 2>conftest.er1
19151  ac_status=$?
19152  grep -v '^ *+' conftest.er1 >conftest.err
19153  rm -f conftest.er1
19154  cat conftest.err >&5
19155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156  (exit $ac_status); } && {
19157	 test -z "$ac_c_werror_flag" ||
19158	 test ! -s conftest.err
19159       } && test -s conftest.$ac_objext; then
19160  ac_cv_header_sys_wait_h=yes
19161else
19162  $as_echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165	ac_cv_header_sys_wait_h=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169fi
19170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19171$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19172if test $ac_cv_header_sys_wait_h = yes; then
19173  
19174cat >>confdefs.h <<\_ACEOF
19175@%:@define HAVE_SYS_WAIT_H 1
19176_ACEOF
19177
19178fi
19179
19180
19181 # Solaris stuff
19182 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
19183$as_echo_n "checking for library containing inet_ntop... " >&6; }
19184if test "${ac_cv_search_inet_ntop+set}" = set; then
19185  $as_echo_n "(cached) " >&6
19186else
19187  ac_func_search_save_LIBS=$LIBS
19188cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h.  */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h.  */
19194
19195/* Override any GCC internal prototype to avoid an error.
19196   Use char because int might match the return type of a GCC
19197   builtin and then its argument prototype would still apply.  */
19198#ifdef __cplusplus
19199extern "C"
19200#endif
19201char inet_ntop ();
19202int
19203main ()
19204{
19205return inet_ntop ();
19206  ;
19207  return 0;
19208}
19209_ACEOF
19210for ac_lib in '' nsl; do
19211  if test -z "$ac_lib"; then
19212    ac_res="none required"
19213  else
19214    ac_res=-l$ac_lib
19215    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19216  fi
19217  rm -f conftest.$ac_objext conftest$ac_exeext
19218if { (ac_try="$ac_link"
19219case "(($ac_try" in
19220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221  *) ac_try_echo=$ac_try;;
19222esac
19223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19224$as_echo "$ac_try_echo") >&5
19225  (eval "$ac_link") 2>conftest.er1
19226  ac_status=$?
19227  grep -v '^ *+' conftest.er1 >conftest.err
19228  rm -f conftest.er1
19229  cat conftest.err >&5
19230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231  (exit $ac_status); } && {
19232	 test -z "$ac_c_werror_flag" ||
19233	 test ! -s conftest.err
19234       } && test -s conftest$ac_exeext && {
19235	 test "$cross_compiling" = yes ||
19236	 $as_test_x conftest$ac_exeext
19237       }; then
19238  ac_cv_search_inet_ntop=$ac_res
19239else
19240  $as_echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243	
19244fi
19245
19246rm -rf conftest.dSYM
19247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248      conftest$ac_exeext 
19249  if test "${ac_cv_search_inet_ntop+set}" = set; then
19250  break
19251fi
19252done
19253if test "${ac_cv_search_inet_ntop+set}" = set; then
19254  :
19255else
19256  ac_cv_search_inet_ntop=no
19257fi
19258rm conftest.$ac_ext
19259LIBS=$ac_func_search_save_LIBS
19260fi
19261{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
19262$as_echo "$ac_cv_search_inet_ntop" >&6; }
19263ac_res=$ac_cv_search_inet_ntop
19264if test "$ac_res" != no; then
19265  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19266  
19267fi
19268
19269 { $as_echo "$as_me:$LINENO: checking for library containing recv" >&5
19270$as_echo_n "checking for library containing recv... " >&6; }
19271if test "${ac_cv_search_recv+set}" = set; then
19272  $as_echo_n "(cached) " >&6
19273else
19274  ac_func_search_save_LIBS=$LIBS
19275cat >conftest.$ac_ext <<_ACEOF
19276/* confdefs.h.  */
19277_ACEOF
19278cat confdefs.h >>conftest.$ac_ext
19279cat >>conftest.$ac_ext <<_ACEOF
19280/* end confdefs.h.  */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283   Use char because int might match the return type of a GCC
19284   builtin and then its argument prototype would still apply.  */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char recv ();
19289int
19290main ()
19291{
19292return recv ();
19293  ;
19294  return 0;
19295}
19296_ACEOF
19297for ac_lib in '' socket; do
19298  if test -z "$ac_lib"; then
19299    ac_res="none required"
19300  else
19301    ac_res=-l$ac_lib
19302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19303  fi
19304  rm -f conftest.$ac_objext conftest$ac_exeext
19305if { (ac_try="$ac_link"
19306case "(($ac_try" in
19307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308  *) ac_try_echo=$ac_try;;
19309esac
19310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19311$as_echo "$ac_try_echo") >&5
19312  (eval "$ac_link") 2>conftest.er1
19313  ac_status=$?
19314  grep -v '^ *+' conftest.er1 >conftest.err
19315  rm -f conftest.er1
19316  cat conftest.err >&5
19317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318  (exit $ac_status); } && {
19319	 test -z "$ac_c_werror_flag" ||
19320	 test ! -s conftest.err
19321       } && test -s conftest$ac_exeext && {
19322	 test "$cross_compiling" = yes ||
19323	 $as_test_x conftest$ac_exeext
19324       }; then
19325  ac_cv_search_recv=$ac_res
19326else
19327  $as_echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
19329
19330	
19331fi
19332
19333rm -rf conftest.dSYM
19334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19335      conftest$ac_exeext 
19336  if test "${ac_cv_search_recv+set}" = set; then
19337  break
19338fi
19339done
19340if test "${ac_cv_search_recv+set}" = set; then
19341  :
19342else
19343  ac_cv_search_recv=no
19344fi
19345rm conftest.$ac_ext
19346LIBS=$ac_func_search_save_LIBS
19347fi
19348{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_recv" >&5
19349$as_echo "$ac_cv_search_recv" >&6; }
19350ac_res=$ac_cv_search_recv
19351if test "$ac_res" != no; then
19352  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19353  
19354fi
19355
19356 { $as_echo "$as_me:$LINENO: checking whether CMSG_SPACE is declared" >&5
19357$as_echo_n "checking whether CMSG_SPACE is declared... " >&6; }
19358if test "${ac_cv_have_decl_CMSG_SPACE+set}" = set; then
19359  $as_echo_n "(cached) " >&6
19360else
19361  cat >conftest.$ac_ext <<_ACEOF
19362/* confdefs.h.  */
19363_ACEOF
19364cat confdefs.h >>conftest.$ac_ext
19365cat >>conftest.$ac_ext <<_ACEOF
19366/* end confdefs.h.  */
19367$ac_includes_default
19368int
19369main ()
19370{
19371#ifndef CMSG_SPACE
19372  (void) CMSG_SPACE;
19373#endif
19374
19375  ;
19376  return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (ac_try="$ac_compile"
19381case "(($ac_try" in
19382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383  *) ac_try_echo=$ac_try;;
19384esac
19385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386$as_echo "$ac_try_echo") >&5
19387  (eval "$ac_compile") 2>conftest.er1
19388  ac_status=$?
19389  grep -v '^ *+' conftest.er1 >conftest.err
19390  rm -f conftest.er1
19391  cat conftest.err >&5
19392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393  (exit $ac_status); } && {
19394	 test -z "$ac_c_werror_flag" ||
19395	 test ! -s conftest.err
19396       } && test -s conftest.$ac_objext; then
19397  ac_cv_have_decl_CMSG_SPACE=yes
19398else
19399  $as_echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402	ac_cv_have_decl_CMSG_SPACE=no
19403fi
19404
19405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19406fi
19407{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CMSG_SPACE" >&5
19408$as_echo "$ac_cv_have_decl_CMSG_SPACE" >&6; }
19409if test "x$ac_cv_have_decl_CMSG_SPACE" = x""yes; then
19410  :
19411else
19412  CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
19413fi
19414
19415
19416# Checks for library functions.
19417{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
19418$as_echo_n "checking for working memcmp... " >&6; }
19419if test "${ac_cv_func_memcmp_working+set}" = set; then
19420  $as_echo_n "(cached) " >&6
19421else
19422  if test "$cross_compiling" = yes; then
19423  ac_cv_func_memcmp_working=no
19424else
19425  cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h.  */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h.  */
19431$ac_includes_default
19432int
19433main ()
19434{
19435
19436  /* Some versions of memcmp are not 8-bit clean.  */
19437  char c0 = '\100', c1 = '\200', c2 = '\201';
19438  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19439    return 1;
19440
19441  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19442     or more and with at least one buffer not starting on a 4-byte boundary.
19443     William Lewis provided this test program.   */
19444  {
19445    char foo[21];
19446    char bar[21];
19447    int i;
19448    for (i = 0; i < 4; i++)
19449      {
19450	char *a = foo + i;
19451	char *b = bar + i;
19452	strcpy (a, "--------01111111");
19453	strcpy (b, "--------10000000");
19454	if (memcmp (a, b, 16) >= 0)
19455	  return 1;
19456      }
19457    return 0;
19458  }
19459
19460  ;
19461  return 0;
19462}
19463_ACEOF
19464rm -f conftest$ac_exeext
19465if { (ac_try="$ac_link"
19466case "(($ac_try" in
19467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468  *) ac_try_echo=$ac_try;;
19469esac
19470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471$as_echo "$ac_try_echo") >&5
19472  (eval "$ac_link") 2>&5
19473  ac_status=$?
19474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19476  { (case "(($ac_try" in
19477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478  *) ac_try_echo=$ac_try;;
19479esac
19480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481$as_echo "$ac_try_echo") >&5
19482  (eval "$ac_try") 2>&5
19483  ac_status=$?
19484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485  (exit $ac_status); }; }; then
19486  ac_cv_func_memcmp_working=yes
19487else
19488  $as_echo "$as_me: program exited with status $ac_status" >&5
19489$as_echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492( exit $ac_status )
19493ac_cv_func_memcmp_working=no
19494fi
19495rm -rf conftest.dSYM
19496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19497fi
19498
19499
19500fi
19501{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19502$as_echo "$ac_cv_func_memcmp_working" >&6; }
19503test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
19504  *" memcmp.$ac_objext "* ) ;;
19505  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
19506 ;;
19507esac
19508
19509
19510
19511
19512for ac_header in sys/select.h sys/socket.h
19513do
19514as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19516  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19517$as_echo_n "checking for $ac_header... " >&6; }
19518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19519  $as_echo_n "(cached) " >&6
19520fi
19521ac_res=`eval 'as_val=${'$as_ac_Header'}
19522		 $as_echo "$as_val"'`
19523	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19524$as_echo "$ac_res" >&6; }
19525else
19526  # Is the header compilable?
19527{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528$as_echo_n "checking $ac_header usability... " >&6; }
19529cat >conftest.$ac_ext <<_ACEOF
19530/* confdefs.h.  */
19531_ACEOF
19532cat confdefs.h >>conftest.$ac_ext
19533cat >>conftest.$ac_ext <<_ACEOF
19534/* end confdefs.h.  */
19535$ac_includes_default
19536@%:@include <$ac_header>
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (ac_try="$ac_compile"
19540case "(($ac_try" in
19541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542  *) ac_try_echo=$ac_try;;
19543esac
19544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19545$as_echo "$ac_try_echo") >&5
19546  (eval "$ac_compile") 2>conftest.er1
19547  ac_status=$?
19548  grep -v '^ *+' conftest.er1 >conftest.err
19549  rm -f conftest.er1
19550  cat conftest.err >&5
19551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552  (exit $ac_status); } && {
19553	 test -z "$ac_c_werror_flag" ||
19554	 test ! -s conftest.err
19555       } && test -s conftest.$ac_objext; then
19556  ac_header_compiler=yes
19557else
19558  $as_echo "$as_me: failed program was:" >&5
19559sed 's/^/| /' conftest.$ac_ext >&5
19560
19561	ac_header_compiler=no
19562fi
19563
19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19566$as_echo "$ac_header_compiler" >&6; }
19567
19568# Is the header present?
19569{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19570$as_echo_n "checking $ac_header presence... " >&6; }
19571cat >conftest.$ac_ext <<_ACEOF
19572/* confdefs.h.  */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h.  */
19577@%:@include <$ac_header>
19578_ACEOF
19579if { (ac_try="$ac_cpp conftest.$ac_ext"
19580case "(($ac_try" in
19581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582  *) ac_try_echo=$ac_try;;
19583esac
19584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19585$as_echo "$ac_try_echo") >&5
19586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19587  ac_status=$?
19588  grep -v '^ *+' conftest.er1 >conftest.err
19589  rm -f conftest.er1
19590  cat conftest.err >&5
19591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592  (exit $ac_status); } >/dev/null && {
19593	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19594	 test ! -s conftest.err
19595       }; then
19596  ac_header_preproc=yes
19597else
19598  $as_echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601  ac_header_preproc=no
19602fi
19603
19604rm -f conftest.err conftest.$ac_ext
19605{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19606$as_echo "$ac_header_preproc" >&6; }
19607
19608# So?  What about this header?
19609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19610  yes:no: )
19611    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19612$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19613    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19614$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19615    ac_header_preproc=yes
19616    ;;
19617  no:yes:* )
19618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19619$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19620    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19621$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19622    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19623$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19624    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19625$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19626    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19627$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19628    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19629$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19630    ( cat <<\_ASBOX
19631@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
19632@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
19633@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
19634_ASBOX
19635     ) | sed "s/^/$as_me: WARNING:     /" >&2
19636    ;;
19637esac
19638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19639$as_echo_n "checking for $ac_header... " >&6; }
19640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641  $as_echo_n "(cached) " >&6
19642else
19643  eval "$as_ac_Header=\$ac_header_preproc"
19644fi
19645ac_res=`eval 'as_val=${'$as_ac_Header'}
19646		 $as_echo "$as_val"'`
19647	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19648$as_echo "$ac_res" >&6; }
19649
19650fi
19651as_val=`eval 'as_val=${'$as_ac_Header'}
19652		 $as_echo "$as_val"'`
19653   if test "x$as_val" = x""yes; then
19654  cat >>confdefs.h <<_ACEOF
19655@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19656_ACEOF
19657 
19658fi
19659
19660done
19661
19662{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
19663$as_echo_n "checking types of arguments for select... " >&6; }
19664if test "${ac_cv_func_select_args+set}" = set; then
19665  $as_echo_n "(cached) " >&6
19666else
19667  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19668 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19669  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19670   cat >conftest.$ac_ext <<_ACEOF
19671/* confdefs.h.  */
19672_ACEOF
19673cat confdefs.h >>conftest.$ac_ext
19674cat >>conftest.$ac_ext <<_ACEOF
19675/* end confdefs.h.  */
19676$ac_includes_default
19677#ifdef HAVE_SYS_SELECT_H
19678# include <sys/select.h>
19679#endif
19680#ifdef HAVE_SYS_SOCKET_H
19681# include <sys/socket.h>
19682#endif
19683
19684int
19685main ()
19686{
19687extern int select ($ac_arg1,
19688					    $ac_arg234, $ac_arg234, $ac_arg234,
19689					    $ac_arg5);
19690  ;
19691  return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext
19695if { (ac_try="$ac_compile"
19696case "(($ac_try" in
19697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698  *) ac_try_echo=$ac_try;;
19699esac
19700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19701$as_echo "$ac_try_echo") >&5
19702  (eval "$ac_compile") 2>conftest.er1
19703  ac_status=$?
19704  grep -v '^ *+' conftest.er1 >conftest.err
19705  rm -f conftest.er1
19706  cat conftest.err >&5
19707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708  (exit $ac_status); } && {
19709	 test -z "$ac_c_werror_flag" ||
19710	 test ! -s conftest.err
19711       } && test -s conftest.$ac_objext; then
19712  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19713else
19714  $as_echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717	
19718fi
19719
19720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721  done
19722 done
19723done
19724# Provide a safe default value.
19725: ${ac_cv_func_select_args='int,int *,struct timeval *'}
19726
19727fi
19728{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
19729$as_echo "$ac_cv_func_select_args" >&6; }
19730ac_save_IFS=$IFS; IFS=','
19731set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19732IFS=$ac_save_IFS
19733shift
19734
19735cat >>confdefs.h <<_ACEOF
19736@%:@define SELECT_TYPE_ARG1 $1
19737_ACEOF
19738
19739
19740cat >>confdefs.h <<_ACEOF
19741@%:@define SELECT_TYPE_ARG234 ($2)
19742_ACEOF
19743
19744
19745cat >>confdefs.h <<_ACEOF
19746@%:@define SELECT_TYPE_ARG5 ($3)
19747_ACEOF
19748
19749rm -f conftest*
19750
19751# avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter
19752# whether libc's malloc does too. (Same for realloc.)
19753#AC_FUNC_MALLOC
19754#AC_FUNC_REALLOC
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784for ac_func in gethostname memchr memmove memset mkdir select socket strchr strcspn strdup strerror strrchr strspn strstr uname setresuid setreuid setresgid setregid strcasecmp gettimeofday putenv strncasecmp strlcpy gethostbyname seteuid setegid setproctitle getprogname
19785do
19786as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19787{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19788$as_echo_n "checking for $ac_func... " >&6; }
19789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19790  $as_echo_n "(cached) " >&6
19791else
19792  cat >conftest.$ac_ext <<_ACEOF
19793/* confdefs.h.  */
19794_ACEOF
19795cat confdefs.h >>conftest.$ac_ext
19796cat >>conftest.$ac_ext <<_ACEOF
19797/* end confdefs.h.  */
19798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19799   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19800#define $ac_func innocuous_$ac_func
19801
19802/* System header to define __stub macros and hopefully few prototypes,
19803    which can conflict with char $ac_func (); below.
19804    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805    <limits.h> exists even on freestanding compilers.  */
19806
19807#ifdef __STDC__
19808# include <limits.h>
19809#else
19810# include <assert.h>
19811#endif
19812
19813#undef $ac_func
19814
19815/* Override any GCC internal prototype to avoid an error.
19816   Use char because int might match the return type of a GCC
19817   builtin and then its argument prototype would still apply.  */
19818#ifdef __cplusplus
19819extern "C"
19820#endif
19821char $ac_func ();
19822/* The GNU C library defines this for functions which it implements
19823    to always fail with ENOSYS.  Some functions are actually named
19824    something starting with __ and the normal name is an alias.  */
19825#if defined __stub_$ac_func || defined __stub___$ac_func
19826choke me
19827#endif
19828
19829int
19830main ()
19831{
19832return $ac_func ();
19833  ;
19834  return 0;
19835}
19836_ACEOF
19837rm -f conftest.$ac_objext conftest$ac_exeext
19838if { (ac_try="$ac_link"
19839case "(($ac_try" in
19840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841  *) ac_try_echo=$ac_try;;
19842esac
19843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19844$as_echo "$ac_try_echo") >&5
19845  (eval "$ac_link") 2>conftest.er1
19846  ac_status=$?
19847  grep -v '^ *+' conftest.er1 >conftest.err
19848  rm -f conftest.er1
19849  cat conftest.err >&5
19850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851  (exit $ac_status); } && {
19852	 test -z "$ac_c_werror_flag" ||
19853	 test ! -s conftest.err
19854       } && test -s conftest$ac_exeext && {
19855	 test "$cross_compiling" = yes ||
19856	 $as_test_x conftest$ac_exeext
19857       }; then
19858  eval "$as_ac_var=yes"
19859else
19860  $as_echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863	eval "$as_ac_var=no"
19864fi
19865
19866rm -rf conftest.dSYM
19867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19868      conftest$ac_exeext conftest.$ac_ext
19869fi
19870ac_res=`eval 'as_val=${'$as_ac_var'}
19871		 $as_echo "$as_val"'`
19872	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19873$as_echo "$ac_res" >&6; }
19874as_val=`eval 'as_val=${'$as_ac_var'}
19875		 $as_echo "$as_val"'`
19876   if test "x$as_val" = x""yes; then
19877  cat >>confdefs.h <<_ACEOF
19878@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19879_ACEOF
19880 
19881fi
19882done
19883
19884
19885{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19886$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19887if test "${ac_cv_type_uid_t+set}" = set; then
19888  $as_echo_n "(cached) " >&6
19889else
19890  cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h.  */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h.  */
19896#include <sys/types.h>
19897
19898_ACEOF
19899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19900  $EGREP "uid_t" >/dev/null 2>&1; then
19901  ac_cv_type_uid_t=yes
19902else
19903  ac_cv_type_uid_t=no
19904fi
19905rm -f conftest*
19906
19907fi
19908{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19909$as_echo "$ac_cv_type_uid_t" >&6; }
19910if test $ac_cv_type_uid_t = no; then
19911  
19912cat >>confdefs.h <<\_ACEOF
19913@%:@define uid_t int
19914_ACEOF
19915
19916  
19917cat >>confdefs.h <<\_ACEOF
19918@%:@define gid_t int
19919_ACEOF
19920
19921fi
19922
19923
19924for ac_header in unistd.h
19925do
19926as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19929$as_echo_n "checking for $ac_header... " >&6; }
19930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19931  $as_echo_n "(cached) " >&6
19932fi
19933ac_res=`eval 'as_val=${'$as_ac_Header'}
19934		 $as_echo "$as_val"'`
19935	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19936$as_echo "$ac_res" >&6; }
19937else
19938  # Is the header compilable?
19939{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19940$as_echo_n "checking $ac_header usability... " >&6; }
19941cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h.  */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h.  */
19947$ac_includes_default
19948@%:@include <$ac_header>
19949_ACEOF
19950rm -f conftest.$ac_objext
19951if { (ac_try="$ac_compile"
19952case "(($ac_try" in
19953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954  *) ac_try_echo=$ac_try;;
19955esac
19956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19957$as_echo "$ac_try_echo") >&5
19958  (eval "$ac_compile") 2>conftest.er1
19959  ac_status=$?
19960  grep -v '^ *+' conftest.er1 >conftest.err
19961  rm -f conftest.er1
19962  cat conftest.err >&5
19963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964  (exit $ac_status); } && {
19965	 test -z "$ac_c_werror_flag" ||
19966	 test ! -s conftest.err
19967       } && test -s conftest.$ac_objext; then
19968  ac_header_compiler=yes
19969else
19970  $as_echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973	ac_header_compiler=no
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978$as_echo "$ac_header_compiler" >&6; }
19979
19980# Is the header present?
19981{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982$as_echo_n "checking $ac_header presence... " >&6; }
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h.  */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h.  */
19989@%:@include <$ac_header>
19990_ACEOF
19991if { (ac_try="$ac_cpp conftest.$ac_ext"
19992case "(($ac_try" in
19993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994  *) ac_try_echo=$ac_try;;
19995esac
19996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19997$as_echo "$ac_try_echo") >&5
19998  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19999  ac_status=$?
20000  grep -v '^ *+' conftest.er1 >conftest.err
20001  rm -f conftest.er1
20002  cat conftest.err >&5
20003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004  (exit $ac_status); } >/dev/null && {
20005	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20006	 test ! -s conftest.err
20007       }; then
20008  ac_header_preproc=yes
20009else
20010  $as_echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
20013  ac_header_preproc=no
20014fi
20015
20016rm -f conftest.err conftest.$ac_ext
20017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20018$as_echo "$ac_header_preproc" >&6; }
20019
20020# So?  What about this header?
20021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20022  yes:no: )
20023    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20024$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20025    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20026$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20027    ac_header_preproc=yes
20028    ;;
20029  no:yes:* )
20030    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20031$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20033$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20035$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20036    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20037$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20038    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20039$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20040    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20041$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20042    ( cat <<\_ASBOX
20043@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20044@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
20045@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20046_ASBOX
20047     ) | sed "s/^/$as_me: WARNING:     /" >&2
20048    ;;
20049esac
20050{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20051$as_echo_n "checking for $ac_header... " >&6; }
20052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20053  $as_echo_n "(cached) " >&6
20054else
20055  eval "$as_ac_Header=\$ac_header_preproc"
20056fi
20057ac_res=`eval 'as_val=${'$as_ac_Header'}
20058		 $as_echo "$as_val"'`
20059	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20060$as_echo "$ac_res" >&6; }
20061
20062fi
20063as_val=`eval 'as_val=${'$as_ac_Header'}
20064		 $as_echo "$as_val"'`
20065   if test "x$as_val" = x""yes; then
20066  cat >>confdefs.h <<_ACEOF
20067@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068_ACEOF
20069 
20070fi
20071
20072done
20073
20074{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
20075$as_echo_n "checking for working chown... " >&6; }
20076if test "${ac_cv_func_chown_works+set}" = set; then
20077  $as_echo_n "(cached) " >&6
20078else
20079  if test "$cross_compiling" = yes; then
20080  ac_cv_func_chown_works=no
20081else
20082  cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h.  */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h.  */
20088$ac_includes_default
20089#include <fcntl.h>
20090
20091int
20092main ()
20093{
20094  char *f = "conftest.chown";
20095  struct stat before, after;
20096
20097  if (creat (f, 0600) < 0)
20098    return 1;
20099  if (stat (f, &before) < 0)
20100    return 1;
20101  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20102    return 1;
20103  if (stat (f, &after) < 0)
20104    return 1;
20105  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20106
20107  ;
20108  return 0;
20109}
20110_ACEOF
20111rm -f conftest$ac_exeext
20112if { (ac_try="$ac_link"
20113case "(($ac_try" in
20114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115  *) ac_try_echo=$ac_try;;
20116esac
20117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20118$as_echo "$ac_try_echo") >&5
20119  (eval "$ac_link") 2>&5
20120  ac_status=$?
20121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20123  { (case "(($ac_try" in
20124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125  *) ac_try_echo=$ac_try;;
20126esac
20127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128$as_echo "$ac_try_echo") >&5
20129  (eval "$ac_try") 2>&5
20130  ac_status=$?
20131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132  (exit $ac_status); }; }; then
20133  ac_cv_func_chown_works=yes
20134else
20135  $as_echo "$as_me: program exited with status $ac_status" >&5
20136$as_echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139( exit $ac_status )
20140ac_cv_func_chown_works=no
20141fi
20142rm -rf conftest.dSYM
20143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20144fi
20145
20146
20147rm -f conftest.chown
20148
20149fi
20150{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
20151$as_echo "$ac_cv_func_chown_works" >&6; }
20152if test $ac_cv_func_chown_works = yes; then
20153  
20154cat >>confdefs.h <<\_ACEOF
20155@%:@define HAVE_CHOWN 1
20156_ACEOF
20157
20158fi
20159
20160{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20161$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
20162if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20163  $as_echo_n "(cached) " >&6
20164else
20165  rm -f conftest.sym conftest.file
20166echo >conftest.file
20167if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20168  if test "$cross_compiling" = yes; then
20169  ac_cv_func_lstat_dereferences_slashed_symlink=no
20170else
20171  cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h.  */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h.  */
20177$ac_includes_default
20178int
20179main ()
20180{
20181struct stat sbuf;
20182     /* Linux will dereference the symlink and fail.
20183	That is better in the sense that it means we will not
20184	have to compile and use the lstat wrapper.  */
20185     return lstat ("conftest.sym/", &sbuf) == 0;
20186  ;
20187  return 0;
20188}
20189_ACEOF
20190rm -f conftest$ac_exeext
20191if { (ac_try="$ac_link"
20192case "(($ac_try" in
20193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194  *) ac_try_echo=$ac_try;;
20195esac
20196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197$as_echo "$ac_try_echo") >&5
20198  (eval "$ac_link") 2>&5
20199  ac_status=$?
20200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202  { (case "(($ac_try" in
20203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204  *) ac_try_echo=$ac_try;;
20205esac
20206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20207$as_echo "$ac_try_echo") >&5
20208  (eval "$ac_try") 2>&5
20209  ac_status=$?
20210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211  (exit $ac_status); }; }; then
20212  ac_cv_func_lstat_dereferences_slashed_symlink=yes
20213else
20214  $as_echo "$as_me: program exited with status $ac_status" >&5
20215$as_echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218( exit $ac_status )
20219ac_cv_func_lstat_dereferences_slashed_symlink=no
20220fi
20221rm -rf conftest.dSYM
20222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20223fi
20224
20225
20226else
20227  # If the `ln -s' command failed, then we probably don't even
20228  # have an lstat function.
20229  ac_cv_func_lstat_dereferences_slashed_symlink=no
20230fi
20231rm -f conftest.sym conftest.file
20232
20233fi
20234{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20235$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20236
20237test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20238  
20239cat >>confdefs.h <<_ACEOF
20240@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20241_ACEOF
20242
20243
20244if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20245  case " $LIB@&t@OBJS " in
20246  *" lstat.$ac_objext "* ) ;;
20247  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
20248 ;;
20249esac
20250
20251fi
20252
20253{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20254$as_echo_n "checking whether stat accepts an empty string... " >&6; }
20255if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
20256  $as_echo_n "(cached) " >&6
20257else
20258  if test "$cross_compiling" = yes; then
20259  ac_cv_func_stat_empty_string_bug=yes
20260else
20261  cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h.  */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h.  */
20267$ac_includes_default
20268int
20269main ()
20270{
20271struct stat sbuf;
20272  return stat ("", &sbuf) == 0;
20273  ;
20274  return 0;
20275}
20276_ACEOF
20277rm -f conftest$ac_exeext
20278if { (ac_try="$ac_link"
20279case "(($ac_try" in
20280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281  *) ac_try_echo=$ac_try;;
20282esac
20283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284$as_echo "$ac_try_echo") >&5
20285  (eval "$ac_link") 2>&5
20286  ac_status=$?
20287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20289  { (case "(($ac_try" in
20290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291  *) ac_try_echo=$ac_try;;
20292esac
20293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20294$as_echo "$ac_try_echo") >&5
20295  (eval "$ac_try") 2>&5
20296  ac_status=$?
20297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298  (exit $ac_status); }; }; then
20299  ac_cv_func_stat_empty_string_bug=no
20300else
20301  $as_echo "$as_me: program exited with status $ac_status" >&5
20302$as_echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305( exit $ac_status )
20306ac_cv_func_stat_empty_string_bug=yes
20307fi
20308rm -rf conftest.dSYM
20309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20310fi
20311
20312
20313fi
20314{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20315$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20316if test $ac_cv_func_stat_empty_string_bug = yes; then
20317  case " $LIB@&t@OBJS " in
20318  *" stat.$ac_objext "* ) ;;
20319  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
20320 ;;
20321esac
20322
20323  
20324cat >>confdefs.h <<_ACEOF
20325@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
20326_ACEOF
20327
20328fi
20329
20330{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
20331$as_echo_n "checking for mode_t... " >&6; }
20332if test "${ac_cv_type_mode_t+set}" = set; then
20333  $as_echo_n "(cached) " >&6
20334else
20335  ac_cv_type_mode_t=no
20336cat >conftest.$ac_ext <<_ACEOF
20337/* confdefs.h.  */
20338_ACEOF
20339cat confdefs.h >>conftest.$ac_ext
20340cat >>conftest.$ac_ext <<_ACEOF
20341/* end confdefs.h.  */
20342$ac_includes_default
20343int
20344main ()
20345{
20346if (sizeof (mode_t))
20347       return 0;
20348  ;
20349  return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (ac_try="$ac_compile"
20354case "(($ac_try" in
20355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356  *) ac_try_echo=$ac_try;;
20357esac
20358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20359$as_echo "$ac_try_echo") >&5
20360  (eval "$ac_compile") 2>conftest.er1
20361  ac_status=$?
20362  grep -v '^ *+' conftest.er1 >conftest.err
20363  rm -f conftest.er1
20364  cat conftest.err >&5
20365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366  (exit $ac_status); } && {
20367	 test -z "$ac_c_werror_flag" ||
20368	 test ! -s conftest.err
20369       } && test -s conftest.$ac_objext; then
20370  cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h.  */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h.  */
20376$ac_includes_default
20377int
20378main ()
20379{
20380if (sizeof ((mode_t)))
20381	  return 0;
20382  ;
20383  return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext
20387if { (ac_try="$ac_compile"
20388case "(($ac_try" in
20389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390  *) ac_try_echo=$ac_try;;
20391esac
20392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393$as_echo "$ac_try_echo") >&5
20394  (eval "$ac_compile") 2>conftest.er1
20395  ac_status=$?
20396  grep -v '^ *+' conftest.er1 >conftest.err
20397  rm -f conftest.er1
20398  cat conftest.err >&5
20399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); } && {
20401	 test -z "$ac_c_werror_flag" ||
20402	 test ! -s conftest.err
20403       } && test -s conftest.$ac_objext; then
20404  :
20405else
20406  $as_echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409	ac_cv_type_mode_t=yes
20410fi
20411
20412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413else
20414  $as_echo "$as_me: failed program was:" >&5
20415sed 's/^/| /' conftest.$ac_ext >&5
20416
20417	
20418fi
20419
20420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421fi
20422{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20423$as_echo "$ac_cv_type_mode_t" >&6; }
20424if test "x$ac_cv_type_mode_t" = x""yes; then
20425  :
20426else
20427  
20428cat >>confdefs.h <<_ACEOF
20429@%:@define mode_t int
20430_ACEOF
20431
20432fi
20433
20434{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20435$as_echo_n "checking for pid_t... " >&6; }
20436if test "${ac_cv_type_pid_t+set}" = set; then
20437  $as_echo_n "(cached) " >&6
20438else
20439  ac_cv_type_pid_t=no
20440cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h.  */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h.  */
20446$ac_includes_default
20447int
20448main ()
20449{
20450if (sizeof (pid_t))
20451       return 0;
20452  ;
20453  return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext
20457if { (ac_try="$ac_compile"
20458case "(($ac_try" in
20459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460  *) ac_try_echo=$ac_try;;
20461esac
20462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20463$as_echo "$ac_try_echo") >&5
20464  (eval "$ac_compile") 2>conftest.er1
20465  ac_status=$?
20466  grep -v '^ *+' conftest.er1 >conftest.err
20467  rm -f conftest.er1
20468  cat conftest.err >&5
20469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470  (exit $ac_status); } && {
20471	 test -z "$ac_c_werror_flag" ||
20472	 test ! -s conftest.err
20473       } && test -s conftest.$ac_objext; then
20474  cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h.  */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h.  */
20480$ac_includes_default
20481int
20482main ()
20483{
20484if (sizeof ((pid_t)))
20485	  return 0;
20486  ;
20487  return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext
20491if { (ac_try="$ac_compile"
20492case "(($ac_try" in
20493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494  *) ac_try_echo=$ac_try;;
20495esac
20496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497$as_echo "$ac_try_echo") >&5
20498  (eval "$ac_compile") 2>conftest.er1
20499  ac_status=$?
20500  grep -v '^ *+' conftest.er1 >conftest.err
20501  rm -f conftest.er1
20502  cat conftest.err >&5
20503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504  (exit $ac_status); } && {
20505	 test -z "$ac_c_werror_flag" ||
20506	 test ! -s conftest.err
20507       } && test -s conftest.$ac_objext; then
20508  :
20509else
20510  $as_echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513	ac_cv_type_pid_t=yes
20514fi
20515
20516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517else
20518  $as_echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521	
20522fi
20523
20524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525fi
20526{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20527$as_echo "$ac_cv_type_pid_t" >&6; }
20528if test "x$ac_cv_type_pid_t" = x""yes; then
20529  :
20530else
20531  
20532cat >>confdefs.h <<_ACEOF
20533@%:@define pid_t int
20534_ACEOF
20535
20536fi
20537
20538
20539{ $as_echo "$as_me:$LINENO: checking whether environ is declared" >&5
20540$as_echo_n "checking whether environ is declared... " >&6; }
20541if test "${ac_cv_have_decl_environ+set}" = set; then
20542  $as_echo_n "(cached) " >&6
20543else
20544  cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h.  */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h.  */
20550$ac_includes_default
20551int
20552main ()
20553{
20554#ifndef environ
20555  (void) environ;
20556#endif
20557
20558  ;
20559  return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext
20563if { (ac_try="$ac_compile"
20564case "(($ac_try" in
20565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566  *) ac_try_echo=$ac_try;;
20567esac
20568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20569$as_echo "$ac_try_echo") >&5
20570  (eval "$ac_compile") 2>conftest.er1
20571  ac_status=$?
20572  grep -v '^ *+' conftest.er1 >conftest.err
20573  rm -f conftest.er1
20574  cat conftest.err >&5
20575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576  (exit $ac_status); } && {
20577	 test -z "$ac_c_werror_flag" ||
20578	 test ! -s conftest.err
20579       } && test -s conftest.$ac_objext; then
20580  ac_cv_have_decl_environ=yes
20581else
20582  $as_echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585	ac_cv_have_decl_environ=no
20586fi
20587
20588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589fi
20590{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
20591$as_echo "$ac_cv_have_decl_environ" >&6; }
20592if test "x$ac_cv_have_decl_environ" = x""yes; then
20593  
20594cat >>confdefs.h <<_ACEOF
20595@%:@define HAVE_DECL_ENVIRON 1
20596_ACEOF
20597
20598
20599else
20600  cat >>confdefs.h <<_ACEOF
20601@%:@define HAVE_DECL_ENVIRON 0
20602_ACEOF
20603
20604
20605fi
20606
20607
20608
20609# check if gcc's -fvisibility is supported
20610
20611  save_CFLAGS="$CFLAGS"
20612  VISIBILITY_HIDDEN_CFLAGS=""
20613  OPTION=-fvisibility=hidden
20614
20615  { $as_echo "$as_me:$LINENO: checking for gcc $OPTION support" >&5
20616$as_echo_n "checking for gcc $OPTION support... " >&6; }
20617
20618  CFLAGS="$CFLAGS $OPTION"
20619
20620  cat >conftest.$ac_ext <<_ACEOF
20621/* confdefs.h.  */
20622_ACEOF
20623cat confdefs.h >>conftest.$ac_ext
20624cat >>conftest.$ac_ext <<_ACEOF
20625/* end confdefs.h.  */
20626
20627      int default_vis __attribute__ ((visibility("default")));
20628      int hidden_vis __attribute__ ((visibility("hidden")));
20629    
20630int
20631main ()
20632{
20633
20634  ;
20635  return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (ac_try="$ac_compile"
20640case "(($ac_try" in
20641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642  *) ac_try_echo=$ac_try;;
20643esac
20644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20645$as_echo "$ac_try_echo") >&5
20646  (eval "$ac_compile") 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } && {
20653	 test -z "$ac_c_werror_flag" ||
20654	 test ! -s conftest.err
20655       } && test -s conftest.$ac_objext; then
20656  ac_visibility_supported=yes
20657else
20658  $as_echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661	ac_visibility_supported=no
20662fi
20663
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665  { $as_echo "$as_me:$LINENO: result: $ac_visibility_supported" >&5
20666$as_echo "$ac_visibility_supported" >&6; }
20667
20668  if test x"$ac_visibility_supported" = xyes; then
20669    
20670cat >>confdefs.h <<\_ACEOF
20671@%:@define HAVE_GCC_VISIBILITY 1
20672_ACEOF
20673
20674    VISIBILITY_HIDDEN_CFLAGS="$OPTION -DHAVE_VISIBILITY_HIDDEN"
20675    
20676cat >>confdefs.h <<\_ACEOF
20677@%:@define HAVE_VISIBILITY_HIDDEN /**/
20678_ACEOF
20679
20680  else
20681    
20682    :
20683  fi
20684
20685  
20686
20687  CFLAGS="$save_CFLAGS"
20688
20689
20690enable_chroot=yes
20691
20692for ac_header in sys/capability.h
20693do
20694as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20697$as_echo_n "checking for $ac_header... " >&6; }
20698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699  $as_echo_n "(cached) " >&6
20700fi
20701ac_res=`eval 'as_val=${'$as_ac_Header'}
20702		 $as_echo "$as_val"'`
20703	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20704$as_echo "$ac_res" >&6; }
20705else
20706  # Is the header compilable?
20707{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20708$as_echo_n "checking $ac_header usability... " >&6; }
20709cat >conftest.$ac_ext <<_ACEOF
20710/* confdefs.h.  */
20711_ACEOF
20712cat confdefs.h >>conftest.$ac_ext
20713cat >>conftest.$ac_ext <<_ACEOF
20714/* end confdefs.h.  */
20715$ac_includes_default
20716@%:@include <$ac_header>
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (ac_try="$ac_compile"
20720case "(($ac_try" in
20721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722  *) ac_try_echo=$ac_try;;
20723esac
20724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725$as_echo "$ac_try_echo") >&5
20726  (eval "$ac_compile") 2>conftest.er1
20727  ac_status=$?
20728  grep -v '^ *+' conftest.er1 >conftest.err
20729  rm -f conftest.er1
20730  cat conftest.err >&5
20731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732  (exit $ac_status); } && {
20733	 test -z "$ac_c_werror_flag" ||
20734	 test ! -s conftest.err
20735       } && test -s conftest.$ac_objext; then
20736  ac_header_compiler=yes
20737else
20738  $as_echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
20741	ac_header_compiler=no
20742fi
20743
20744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20746$as_echo "$ac_header_compiler" >&6; }
20747
20748# Is the header present?
20749{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20750$as_echo_n "checking $ac_header presence... " >&6; }
20751cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h.  */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h.  */
20757@%:@include <$ac_header>
20758_ACEOF
20759if { (ac_try="$ac_cpp conftest.$ac_ext"
20760case "(($ac_try" in
20761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762  *) ac_try_echo=$ac_try;;
20763esac
20764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20765$as_echo "$ac_try_echo") >&5
20766  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20767  ac_status=$?
20768  grep -v '^ *+' conftest.er1 >conftest.err
20769  rm -f conftest.er1
20770  cat conftest.err >&5
20771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772  (exit $ac_status); } >/dev/null && {
20773	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20774	 test ! -s conftest.err
20775       }; then
20776  ac_header_preproc=yes
20777else
20778  $as_echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
20781  ac_header_preproc=no
20782fi
20783
20784rm -f conftest.err conftest.$ac_ext
20785{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786$as_echo "$ac_header_preproc" >&6; }
20787
20788# So?  What about this header?
20789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20790  yes:no: )
20791    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795    ac_header_preproc=yes
20796    ;;
20797  no:yes:* )
20798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20801$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20802    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20805$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20806    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20810    ( cat <<\_ASBOX
20811@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20812@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
20813@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20814_ASBOX
20815     ) | sed "s/^/$as_me: WARNING:     /" >&2
20816    ;;
20817esac
20818{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20819$as_echo_n "checking for $ac_header... " >&6; }
20820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821  $as_echo_n "(cached) " >&6
20822else
20823  eval "$as_ac_Header=\$ac_header_preproc"
20824fi
20825ac_res=`eval 'as_val=${'$as_ac_Header'}
20826		 $as_echo "$as_val"'`
20827	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20828$as_echo "$ac_res" >&6; }
20829
20830fi
20831as_val=`eval 'as_val=${'$as_ac_Header'}
20832		 $as_echo "$as_val"'`
20833   if test "x$as_val" = x""yes; then
20834  cat >>confdefs.h <<_ACEOF
20835@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836_ACEOF
20837 
20838else
20839  enable_chroot=no
20840fi
20841
20842done
20843
20844
20845for ac_header in sys/prctl.h
20846do
20847as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20849  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20850$as_echo_n "checking for $ac_header... " >&6; }
20851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20852  $as_echo_n "(cached) " >&6
20853fi
20854ac_res=`eval 'as_val=${'$as_ac_Header'}
20855		 $as_echo "$as_val"'`
20856	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20857$as_echo "$ac_res" >&6; }
20858else
20859  # Is the header compilable?
20860{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20861$as_echo_n "checking $ac_header usability... " >&6; }
20862cat >conftest.$ac_ext <<_ACEOF
20863/* confdefs.h.  */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h.  */
20868$ac_includes_default
20869@%:@include <$ac_header>
20870_ACEOF
20871rm -f conftest.$ac_objext
20872if { (ac_try="$ac_compile"
20873case "(($ac_try" in
20874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875  *) ac_try_echo=$ac_try;;
20876esac
20877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20878$as_echo "$ac_try_echo") >&5
20879  (eval "$ac_compile") 2>conftest.er1
20880  ac_status=$?
20881  grep -v '^ *+' conftest.er1 >conftest.err
20882  rm -f conftest.er1
20883  cat conftest.err >&5
20884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885  (exit $ac_status); } && {
20886	 test -z "$ac_c_werror_flag" ||
20887	 test ! -s conftest.err
20888       } && test -s conftest.$ac_objext; then
20889  ac_header_compiler=yes
20890else
20891  $as_echo "$as_me: failed program was:" >&5
20892sed 's/^/| /' conftest.$ac_ext >&5
20893
20894	ac_header_compiler=no
20895fi
20896
20897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20898{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20899$as_echo "$ac_header_compiler" >&6; }
20900
20901# Is the header present?
20902{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20903$as_echo_n "checking $ac_header presence... " >&6; }
20904cat >conftest.$ac_ext <<_ACEOF
20905/* confdefs.h.  */
20906_ACEOF
20907cat confdefs.h >>conftest.$ac_ext
20908cat >>conftest.$ac_ext <<_ACEOF
20909/* end confdefs.h.  */
20910@%:@include <$ac_header>
20911_ACEOF
20912if { (ac_try="$ac_cpp conftest.$ac_ext"
20913case "(($ac_try" in
20914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915  *) ac_try_echo=$ac_try;;
20916esac
20917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20918$as_echo "$ac_try_echo") >&5
20919  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20920  ac_status=$?
20921  grep -v '^ *+' conftest.er1 >conftest.err
20922  rm -f conftest.er1
20923  cat conftest.err >&5
20924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925  (exit $ac_status); } >/dev/null && {
20926	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20927	 test ! -s conftest.err
20928       }; then
20929  ac_header_preproc=yes
20930else
20931  $as_echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934  ac_header_preproc=no
20935fi
20936
20937rm -f conftest.err conftest.$ac_ext
20938{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20939$as_echo "$ac_header_preproc" >&6; }
20940
20941# So?  What about this header?
20942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20943  yes:no: )
20944    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20945$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20946    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20947$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20948    ac_header_preproc=yes
20949    ;;
20950  no:yes:* )
20951    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20952$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20953    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20954$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20955    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20956$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20957    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20958$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20959    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20960$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20961    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20962$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20963    ( cat <<\_ASBOX
20964@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20965@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
20966@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
20967_ASBOX
20968     ) | sed "s/^/$as_me: WARNING:     /" >&2
20969    ;;
20970esac
20971{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20972$as_echo_n "checking for $ac_header... " >&6; }
20973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20974  $as_echo_n "(cached) " >&6
20975else
20976  eval "$as_ac_Header=\$ac_header_preproc"
20977fi
20978ac_res=`eval 'as_val=${'$as_ac_Header'}
20979		 $as_echo "$as_val"'`
20980	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20981$as_echo "$ac_res" >&6; }
20982
20983fi
20984as_val=`eval 'as_val=${'$as_ac_Header'}
20985		 $as_echo "$as_val"'`
20986   if test "x$as_val" = x""yes; then
20987  cat >>confdefs.h <<_ACEOF
20988@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989_ACEOF
20990 
20991else
20992  enable_chroot=no
20993fi
20994
20995done
20996
20997
20998for ac_func in chroot
20999do
21000as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21001{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21002$as_echo_n "checking for $ac_func... " >&6; }
21003if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21004  $as_echo_n "(cached) " >&6
21005else
21006  cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h.  */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h.  */
21012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21013   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21014#define $ac_func innocuous_$ac_func
21015
21016/* System header to define __stub macros and hopefully few prototypes,
21017    which can conflict with char $ac_func (); below.
21018    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21019    <limits.h> exists even on freestanding compilers.  */
21020
21021#ifdef __STDC__
21022# include <limits.h>
21023#else
21024# include <assert.h>
21025#endif
21026
21027#undef $ac_func
21028
21029/* Override any GCC internal prototype to avoid an error.
21030   Use char because int might match the return type of a GCC
21031   builtin and then its argument prototype would still apply.  */
21032#ifdef __cplusplus
21033extern "C"
21034#endif
21035char $ac_func ();
21036/* The GNU C library defines this for functions which it implements
21037    to always fail with ENOSYS.  Some functions are actually named
21038    something starting with __ and the normal name is an alias.  */
21039#if defined __stub_$ac_func || defined __stub___$ac_func
21040choke me
21041#endif
21042
21043int
21044main ()
21045{
21046return $ac_func ();
21047  ;
21048  return 0;
21049}
21050_ACEOF
21051rm -f conftest.$ac_objext conftest$ac_exeext
21052if { (ac_try="$ac_link"
21053case "(($ac_try" in
21054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055  *) ac_try_echo=$ac_try;;
21056esac
21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21058$as_echo "$ac_try_echo") >&5
21059  (eval "$ac_link") 2>conftest.er1
21060  ac_status=$?
21061  grep -v '^ *+' conftest.er1 >conftest.err
21062  rm -f conftest.er1
21063  cat conftest.err >&5
21064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065  (exit $ac_status); } && {
21066	 test -z "$ac_c_werror_flag" ||
21067	 test ! -s conftest.err
21068       } && test -s conftest$ac_exeext && {
21069	 test "$cross_compiling" = yes ||
21070	 $as_test_x conftest$ac_exeext
21071       }; then
21072  eval "$as_ac_var=yes"
21073else
21074  $as_echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
21076
21077	eval "$as_ac_var=no"
21078fi
21079
21080rm -rf conftest.dSYM
21081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21082      conftest$ac_exeext conftest.$ac_ext
21083fi
21084ac_res=`eval 'as_val=${'$as_ac_var'}
21085		 $as_echo "$as_val"'`
21086	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21087$as_echo "$ac_res" >&6; }
21088as_val=`eval 'as_val=${'$as_ac_var'}
21089		 $as_echo "$as_val"'`
21090   if test "x$as_val" = x""yes; then
21091  cat >>confdefs.h <<_ACEOF
21092@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21093_ACEOF
21094 
21095else
21096  enable_chroot=no
21097fi
21098done
21099
21100
21101 if test "x$enable_chroot" = "xyes"; then
21102  ENABLE_CHROOT_TRUE=
21103  ENABLE_CHROOT_FALSE='#'
21104else
21105  ENABLE_CHROOT_TRUE='#'
21106  ENABLE_CHROOT_FALSE=
21107fi
21108
21109
21110if test "x$enable_chroot" = "xyes" ; then
21111   
21112cat >>confdefs.h <<\_ACEOF
21113@%:@define ENABLE_CHROOT 1
21114_ACEOF
21115
21116fi
21117
21118{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21119$as_echo_n "checking for dlopen in -ldl... " >&6; }
21120if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21121  $as_echo_n "(cached) " >&6
21122else
21123  ac_check_lib_save_LIBS=$LIBS
21124LIBS="-ldl  $LIBS"
21125cat >conftest.$ac_ext <<_ACEOF
21126/* confdefs.h.  */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h.  */
21131
21132/* Override any GCC internal prototype to avoid an error.
21133   Use char because int might match the return type of a GCC
21134   builtin and then its argument prototype would still apply.  */
21135#ifdef __cplusplus
21136extern "C"
21137#endif
21138char dlopen ();
21139int
21140main ()
21141{
21142return dlopen ();
21143  ;
21144  return 0;
21145}
21146_ACEOF
21147rm -f conftest.$ac_objext conftest$ac_exeext
21148if { (ac_try="$ac_link"
21149case "(($ac_try" in
21150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151  *) ac_try_echo=$ac_try;;
21152esac
21153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154$as_echo "$ac_try_echo") >&5
21155  (eval "$ac_link") 2>conftest.er1
21156  ac_status=$?
21157  grep -v '^ *+' conftest.er1 >conftest.err
21158  rm -f conftest.er1
21159  cat conftest.err >&5
21160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161  (exit $ac_status); } && {
21162	 test -z "$ac_c_werror_flag" ||
21163	 test ! -s conftest.err
21164       } && test -s conftest$ac_exeext && {
21165	 test "$cross_compiling" = yes ||
21166	 $as_test_x conftest$ac_exeext
21167       }; then
21168  ac_cv_lib_dl_dlopen=yes
21169else
21170  $as_echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173	ac_cv_lib_dl_dlopen=no
21174fi
21175
21176rm -rf conftest.dSYM
21177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21178      conftest$ac_exeext conftest.$ac_ext
21179LIBS=$ac_check_lib_save_LIBS
21180fi
21181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21182$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21183if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
21184   
21185for ac_header in dlfcn.h
21186do
21187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21189  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21190$as_echo_n "checking for $ac_header... " >&6; }
21191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21192  $as_echo_n "(cached) " >&6
21193fi
21194ac_res=`eval 'as_val=${'$as_ac_Header'}
21195		 $as_echo "$as_val"'`
21196	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21197$as_echo "$ac_res" >&6; }
21198else
21199  # Is the header compilable?
21200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21201$as_echo_n "checking $ac_header usability... " >&6; }
21202cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h.  */
21204_ACEOF
21205cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h.  */
21208$ac_includes_default
21209@%:@include <$ac_header>
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (ac_try="$ac_compile"
21213case "(($ac_try" in
21214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215  *) ac_try_echo=$ac_try;;
21216esac
21217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21218$as_echo "$ac_try_echo") >&5
21219  (eval "$ac_compile") 2>conftest.er1
21220  ac_status=$?
21221  grep -v '^ *+' conftest.er1 >conftest.err
21222  rm -f conftest.er1
21223  cat conftest.err >&5
21224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225  (exit $ac_status); } && {
21226	 test -z "$ac_c_werror_flag" ||
21227	 test ! -s conftest.err
21228       } && test -s conftest.$ac_objext; then
21229  ac_header_compiler=yes
21230else
21231  $as_echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234	ac_header_compiler=no
21235fi
21236
21237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21239$as_echo "$ac_header_compiler" >&6; }
21240
21241# Is the header present?
21242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21243$as_echo_n "checking $ac_header presence... " >&6; }
21244cat >conftest.$ac_ext <<_ACEOF
21245/* confdefs.h.  */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h.  */
21250@%:@include <$ac_header>
21251_ACEOF
21252if { (ac_try="$ac_cpp conftest.$ac_ext"
21253case "(($ac_try" in
21254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255  *) ac_try_echo=$ac_try;;
21256esac
21257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258$as_echo "$ac_try_echo") >&5
21259  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21260  ac_status=$?
21261  grep -v '^ *+' conftest.er1 >conftest.err
21262  rm -f conftest.er1
21263  cat conftest.err >&5
21264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265  (exit $ac_status); } >/dev/null && {
21266	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21267	 test ! -s conftest.err
21268       }; then
21269  ac_header_preproc=yes
21270else
21271  $as_echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274  ac_header_preproc=no
21275fi
21276
21277rm -f conftest.err conftest.$ac_ext
21278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21279$as_echo "$ac_header_preproc" >&6; }
21280
21281# So?  What about this header?
21282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21283  yes:no: )
21284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21288    ac_header_preproc=yes
21289    ;;
21290  no:yes:* )
21291    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21294$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21298$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21303    ( cat <<\_ASBOX
21304@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
21305@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
21306@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
21307_ASBOX
21308     ) | sed "s/^/$as_me: WARNING:     /" >&2
21309    ;;
21310esac
21311{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21312$as_echo_n "checking for $ac_header... " >&6; }
21313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314  $as_echo_n "(cached) " >&6
21315else
21316  eval "$as_ac_Header=\$ac_header_preproc"
21317fi
21318ac_res=`eval 'as_val=${'$as_ac_Header'}
21319		 $as_echo "$as_val"'`
21320	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21321$as_echo "$ac_res" >&6; }
21322
21323fi
21324as_val=`eval 'as_val=${'$as_ac_Header'}
21325		 $as_echo "$as_val"'`
21326   if test "x$as_val" = x""yes; then
21327  cat >>confdefs.h <<_ACEOF
21328@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21329_ACEOF
21330 HAVE_DLOPEN=yes
21331else
21332  HAVE_DLOPEN=no
21333fi
21334
21335done
21336 
21337else
21338  HAVE_DLOPEN=no
21339fi
21340
21341if test "x$HAVE_DLOPEN" = "xyes" ; then
21342    
21343cat >>confdefs.h <<\_ACEOF
21344@%:@define HAVE_DLOPEN 1
21345_ACEOF
21346
21347fi
21348 if test "x$HAVE_DLOPEN" = "xyes"; then
21349  HAVE_DLOPEN_TRUE=
21350  HAVE_DLOPEN_FALSE='#'
21351else
21352  HAVE_DLOPEN_TRUE='#'
21353  HAVE_DLOPEN_FALSE=
21354fi
21355
21356
21357have_inotify=no
21358
21359for ac_header in sys/inotify.h
21360do
21361as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21363  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21364$as_echo_n "checking for $ac_header... " >&6; }
21365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366  $as_echo_n "(cached) " >&6
21367fi
21368ac_res=`eval 'as_val=${'$as_ac_Header'}
21369		 $as_echo "$as_val"'`
21370	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21371$as_echo "$ac_res" >&6; }
21372else
21373  # Is the header compilable?
21374{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21375$as_echo_n "checking $ac_header usability... " >&6; }
21376cat >conftest.$ac_ext <<_ACEOF
21377/* confdefs.h.  */
21378_ACEOF
21379cat confdefs.h >>conftest.$ac_ext
21380cat >>conftest.$ac_ext <<_ACEOF
21381/* end confdefs.h.  */
21382$ac_includes_default
21383@%:@include <$ac_header>
21384_ACEOF
21385rm -f conftest.$ac_objext
21386if { (ac_try="$ac_compile"
21387case "(($ac_try" in
21388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389  *) ac_try_echo=$ac_try;;
21390esac
21391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21392$as_echo "$ac_try_echo") >&5
21393  (eval "$ac_compile") 2>conftest.er1
21394  ac_status=$?
21395  grep -v '^ *+' conftest.er1 >conftest.err
21396  rm -f conftest.er1
21397  cat conftest.err >&5
21398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399  (exit $ac_status); } && {
21400	 test -z "$ac_c_werror_flag" ||
21401	 test ! -s conftest.err
21402       } && test -s conftest.$ac_objext; then
21403  ac_header_compiler=yes
21404else
21405  $as_echo "$as_me: failed program was:" >&5
21406sed 's/^/| /' conftest.$ac_ext >&5
21407
21408	ac_header_compiler=no
21409fi
21410
21411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21413$as_echo "$ac_header_compiler" >&6; }
21414
21415# Is the header present?
21416{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21417$as_echo_n "checking $ac_header presence... " >&6; }
21418cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h.  */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h.  */
21424@%:@include <$ac_header>
21425_ACEOF
21426if { (ac_try="$ac_cpp conftest.$ac_ext"
21427case "(($ac_try" in
21428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429  *) ac_try_echo=$ac_try;;
21430esac
21431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21432$as_echo "$ac_try_echo") >&5
21433  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21434  ac_status=$?
21435  grep -v '^ *+' conftest.er1 >conftest.err
21436  rm -f conftest.er1
21437  cat conftest.err >&5
21438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439  (exit $ac_status); } >/dev/null && {
21440	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21441	 test ! -s conftest.err
21442       }; then
21443  ac_header_preproc=yes
21444else
21445  $as_echo "$as_me: failed program was:" >&5
21446sed 's/^/| /' conftest.$ac_ext >&5
21447
21448  ac_header_preproc=no
21449fi
21450
21451rm -f conftest.err conftest.$ac_ext
21452{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21453$as_echo "$ac_header_preproc" >&6; }
21454
21455# So?  What about this header?
21456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21457  yes:no: )
21458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21459$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21460    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21461$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21462    ac_header_preproc=yes
21463    ;;
21464  no:yes:* )
21465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21466$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21467    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21468$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21469    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21470$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21471    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21472$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21473    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21474$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21475    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21476$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21477    ( cat <<\_ASBOX
21478@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
21479@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
21480@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
21481_ASBOX
21482     ) | sed "s/^/$as_me: WARNING:     /" >&2
21483    ;;
21484esac
21485{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21486$as_echo_n "checking for $ac_header... " >&6; }
21487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21488  $as_echo_n "(cached) " >&6
21489else
21490  eval "$as_ac_Header=\$ac_header_preproc"
21491fi
21492ac_res=`eval 'as_val=${'$as_ac_Header'}
21493		 $as_echo "$as_val"'`
21494	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21495$as_echo "$ac_res" >&6; }
21496
21497fi
21498as_val=`eval 'as_val=${'$as_ac_Header'}
21499		 $as_echo "$as_val"'`
21500   if test "x$as_val" = x""yes; then
21501  cat >>confdefs.h <<_ACEOF
21502@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21503_ACEOF
21504 have_inotify=yes
21505fi
21506
21507done
21508
21509
21510 if test "x$have_inotify" = "xyes"; then
21511  HAVE_INOTIFY_TRUE=
21512  HAVE_INOTIFY_FALSE='#'
21513else
21514  HAVE_INOTIFY_TRUE='#'
21515  HAVE_INOTIFY_FALSE=
21516fi
21517
21518
21519if test "x$have_inotify" = "xyes" ; then
21520   
21521cat >>confdefs.h <<\_ACEOF
21522@%:@define HAVE_INOTIFY 1
21523_ACEOF
21524
21525fi
21526
21527have_kqueue=yes
21528
21529for ac_func in kqueue
21530do
21531as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21532{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21533$as_echo_n "checking for $ac_func... " >&6; }
21534if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21535  $as_echo_n "(cached) " >&6
21536else
21537  cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h.  */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h.  */
21543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21544   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21545#define $ac_func innocuous_$ac_func
21546
21547/* System header to define __stub macros and hopefully few prototypes,
21548    which can conflict with char $ac_func (); below.
21549    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21550    <limits.h> exists even on freestanding compilers.  */
21551
21552#ifdef __STDC__
21553# include <limits.h>
21554#else
21555# include <assert.h>
21556#endif
21557
21558#undef $ac_func
21559
21560/* Override any GCC internal prototype to avoid an error.
21561   Use char because int might match the return type of a GCC
21562   builtin and then its argument prototype would still apply.  */
21563#ifdef __cplusplus
21564extern "C"
21565#endif
21566char $ac_func ();
21567/* The GNU C library defines this for functions which it implements
21568    to always fail with ENOSYS.  Some functions are actually named
21569    something starting with __ and the normal name is an alias.  */
21570#if defined __stub_$ac_func || defined __stub___$ac_func
21571choke me
21572#endif
21573
21574int
21575main ()
21576{
21577return $ac_func ();
21578  ;
21579  return 0;
21580}
21581_ACEOF
21582rm -f conftest.$ac_objext conftest$ac_exeext
21583if { (ac_try="$ac_link"
21584case "(($ac_try" in
21585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586  *) ac_try_echo=$ac_try;;
21587esac
21588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21589$as_echo "$ac_try_echo") >&5
21590  (eval "$ac_link") 2>conftest.er1
21591  ac_status=$?
21592  grep -v '^ *+' conftest.er1 >conftest.err
21593  rm -f conftest.er1
21594  cat conftest.err >&5
21595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596  (exit $ac_status); } && {
21597	 test -z "$ac_c_werror_flag" ||
21598	 test ! -s conftest.err
21599       } && test -s conftest$ac_exeext && {
21600	 test "$cross_compiling" = yes ||
21601	 $as_test_x conftest$ac_exeext
21602       }; then
21603  eval "$as_ac_var=yes"
21604else
21605  $as_echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608	eval "$as_ac_var=no"
21609fi
21610
21611rm -rf conftest.dSYM
21612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21613      conftest$ac_exeext conftest.$ac_ext
21614fi
21615ac_res=`eval 'as_val=${'$as_ac_var'}
21616		 $as_echo "$as_val"'`
21617	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21618$as_echo "$ac_res" >&6; }
21619as_val=`eval 'as_val=${'$as_ac_var'}
21620		 $as_echo "$as_val"'`
21621   if test "x$as_val" = x""yes; then
21622  cat >>confdefs.h <<_ACEOF
21623@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21624_ACEOF
21625 
21626else
21627  have_kqueue=no
21628fi
21629done
21630
21631
21632 if test "x$have_kqueue" = "xyes"; then
21633  HAVE_KQUEUE_TRUE=
21634  HAVE_KQUEUE_FALSE='#'
21635else
21636  HAVE_KQUEUE_TRUE='#'
21637  HAVE_KQUEUE_FALSE=
21638fi
21639
21640
21641if test "x$have_kqueue" = "xyes" ; then
21642    
21643cat >>confdefs.h <<\_ACEOF
21644@%:@define HAVE_KQUEUE 1
21645_ACEOF
21646
21647fi
21648
21649
21650  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21651$as_echo_n "checking whether NLS is requested... " >&6; }
21652    @%:@ Check whether --enable-nls was given.
21653if test "${enable_nls+set}" = set; then
21654  enableval=$enable_nls; USE_NLS=$enableval
21655else
21656  USE_NLS=yes
21657fi
21658
21659  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
21660$as_echo "$USE_NLS" >&6; }
21661  
21662
21663
21664
21665case "$am__api_version" in
21666    1.01234)
21667	{ { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21668$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
21669   { (exit 1); exit 1; }; }
21670    ;;
21671    *)
21672    ;;
21673esac
21674
21675if test -n "0.35.0"; then
21676    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
21677$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
21678
21679    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
21680    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
21681    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
21682    
21683    { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21684$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
21685    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
21686	{ { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
21687$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
21688   { (exit 1); exit 1; }; }
21689fi
21690
21691# Extract the first word of "intltool-update", so it can be a program name with args.
21692set dummy intltool-update; ac_word=$2
21693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21694$as_echo_n "checking for $ac_word... " >&6; }
21695if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
21696  $as_echo_n "(cached) " >&6
21697else
21698  case $INTLTOOL_UPDATE in
21699  [\\/]* | ?:[\\/]*)
21700  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
21701  ;;
21702  *)
21703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21704for as_dir in $PATH
21705do
21706  IFS=$as_save_IFS
21707  test -z "$as_dir" && as_dir=.
21708  for ac_exec_ext in '' $ac_executable_extensions; do
21709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21710    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
21711    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21712    break 2
21713  fi
21714done
21715done
21716IFS=$as_save_IFS
21717
21718  ;;
21719esac
21720fi
21721INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
21722if test -n "$INTLTOOL_UPDATE"; then
21723  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
21724$as_echo "$INTLTOOL_UPDATE" >&6; }
21725else
21726  { $as_echo "$as_me:$LINENO: result: no" >&5
21727$as_echo "no" >&6; }
21728fi
21729
21730
21731# Extract the first word of "intltool-merge", so it can be a program name with args.
21732set dummy intltool-merge; ac_word=$2
21733{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21734$as_echo_n "checking for $ac_word... " >&6; }
21735if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
21736  $as_echo_n "(cached) " >&6
21737else
21738  case $INTLTOOL_MERGE in
21739  [\\/]* | ?:[\\/]*)
21740  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
21741  ;;
21742  *)
21743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21744for as_dir in $PATH
21745do
21746  IFS=$as_save_IFS
21747  test -z "$as_dir" && as_dir=.
21748  for ac_exec_ext in '' $ac_executable_extensions; do
21749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21750    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
21751    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21752    break 2
21753  fi
21754done
21755done
21756IFS=$as_save_IFS
21757
21758  ;;
21759esac
21760fi
21761INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
21762if test -n "$INTLTOOL_MERGE"; then
21763  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
21764$as_echo "$INTLTOOL_MERGE" >&6; }
21765else
21766  { $as_echo "$as_me:$LINENO: result: no" >&5
21767$as_echo "no" >&6; }
21768fi
21769
21770
21771# Extract the first word of "intltool-extract", so it can be a program name with args.
21772set dummy intltool-extract; ac_word=$2
21773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21774$as_echo_n "checking for $ac_word... " >&6; }
21775if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
21776  $as_echo_n "(cached) " >&6
21777else
21778  case $INTLTOOL_EXTRACT in
21779  [\\/]* | ?:[\\/]*)
21780  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
21781  ;;
21782  *)
21783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21784for as_dir in $PATH
21785do
21786  IFS=$as_save_IFS
21787  test -z "$as_dir" && as_dir=.
21788  for ac_exec_ext in '' $ac_executable_extensions; do
21789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21790    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
21791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21792    break 2
21793  fi
21794done
21795done
21796IFS=$as_save_IFS
21797
21798  ;;
21799esac
21800fi
21801INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
21802if test -n "$INTLTOOL_EXTRACT"; then
21803  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
21804$as_echo "$INTLTOOL_EXTRACT" >&6; }
21805else
21806  { $as_echo "$as_me:$LINENO: result: no" >&5
21807$as_echo "no" >&6; }
21808fi
21809
21810
21811if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
21812    { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
21813$as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
21814   { (exit 1); exit 1; }; }
21815fi
21816
21817  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21818INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21819     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21820     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21821      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21822     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21823   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21824    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21825INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21826       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21827      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21828      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 
21829      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21830      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21831    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21832  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21833    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21834    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21835   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857# Check the gettext tools to make sure they are GNU
21858# Extract the first word of "xgettext", so it can be a program name with args.
21859set dummy xgettext; ac_word=$2
21860{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21861$as_echo_n "checking for $ac_word... " >&6; }
21862if test "${ac_cv_path_XGETTEXT+set}" = set; then
21863  $as_echo_n "(cached) " >&6
21864else
21865  case $XGETTEXT in
21866  [\\/]* | ?:[\\/]*)
21867  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21868  ;;
21869  *)
21870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21871for as_dir in $PATH
21872do
21873  IFS=$as_save_IFS
21874  test -z "$as_dir" && as_dir=.
21875  for ac_exec_ext in '' $ac_executable_extensions; do
21876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21877    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21878    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21879    break 2
21880  fi
21881done
21882done
21883IFS=$as_save_IFS
21884
21885  ;;
21886esac
21887fi
21888XGETTEXT=$ac_cv_path_XGETTEXT
21889if test -n "$XGETTEXT"; then
21890  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21891$as_echo "$XGETTEXT" >&6; }
21892else
21893  { $as_echo "$as_me:$LINENO: result: no" >&5
21894$as_echo "no" >&6; }
21895fi
21896
21897
21898# Extract the first word of "msgmerge", so it can be a program name with args.
21899set dummy msgmerge; ac_word=$2
21900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21901$as_echo_n "checking for $ac_word... " >&6; }
21902if test "${ac_cv_path_MSGMERGE+set}" = set; then
21903  $as_echo_n "(cached) " >&6
21904else
21905  case $MSGMERGE in
21906  [\\/]* | ?:[\\/]*)
21907  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21908  ;;
21909  *)
21910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21911for as_dir in $PATH
21912do
21913  IFS=$as_save_IFS
21914  test -z "$as_dir" && as_dir=.
21915  for ac_exec_ext in '' $ac_executable_extensions; do
21916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21917    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21918    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21919    break 2
21920  fi
21921done
21922done
21923IFS=$as_save_IFS
21924
21925  ;;
21926esac
21927fi
21928MSGMERGE=$ac_cv_path_MSGMERGE
21929if test -n "$MSGMERGE"; then
21930  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21931$as_echo "$MSGMERGE" >&6; }
21932else
21933  { $as_echo "$as_me:$LINENO: result: no" >&5
21934$as_echo "no" >&6; }
21935fi
21936
21937
21938# Extract the first word of "msgfmt", so it can be a program name with args.
21939set dummy msgfmt; ac_word=$2
21940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21941$as_echo_n "checking for $ac_word... " >&6; }
21942if test "${ac_cv_path_MSGFMT+set}" = set; then
21943  $as_echo_n "(cached) " >&6
21944else
21945  case $MSGFMT in
21946  [\\/]* | ?:[\\/]*)
21947  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21948  ;;
21949  *)
21950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951for as_dir in $PATH
21952do
21953  IFS=$as_save_IFS
21954  test -z "$as_dir" && as_dir=.
21955  for ac_exec_ext in '' $ac_executable_extensions; do
21956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21957    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21958    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21959    break 2
21960  fi
21961done
21962done
21963IFS=$as_save_IFS
21964
21965  ;;
21966esac
21967fi
21968MSGFMT=$ac_cv_path_MSGFMT
21969if test -n "$MSGFMT"; then
21970  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
21971$as_echo "$MSGFMT" >&6; }
21972else
21973  { $as_echo "$as_me:$LINENO: result: no" >&5
21974$as_echo "no" >&6; }
21975fi
21976
21977
21978# Extract the first word of "gmsgfmt", so it can be a program name with args.
21979set dummy gmsgfmt; ac_word=$2
21980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21981$as_echo_n "checking for $ac_word... " >&6; }
21982if test "${ac_cv_path_GMSGFMT+set}" = set; then
21983  $as_echo_n "(cached) " >&6
21984else
21985  case $GMSGFMT in
21986  [\\/]* | ?:[\\/]*)
21987  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21988  ;;
21989  *)
21990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991for as_dir in $PATH
21992do
21993  IFS=$as_save_IFS
21994  test -z "$as_dir" && as_dir=.
21995  for ac_exec_ext in '' $ac_executable_extensions; do
21996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21997    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21998    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21999    break 2
22000  fi
22001done
22002done
22003IFS=$as_save_IFS
22004
22005  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22006  ;;
22007esac
22008fi
22009GMSGFMT=$ac_cv_path_GMSGFMT
22010if test -n "$GMSGFMT"; then
22011  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22012$as_echo "$GMSGFMT" >&6; }
22013else
22014  { $as_echo "$as_me:$LINENO: result: no" >&5
22015$as_echo "no" >&6; }
22016fi
22017
22018
22019if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
22020    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
22021$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
22022   { (exit 1); exit 1; }; }
22023fi
22024xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
22025mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
22026mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
22027if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
22028    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
22029$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
22030   { (exit 1); exit 1; }; }
22031fi
22032
22033# Extract the first word of "perl", so it can be a program name with args.
22034set dummy perl; ac_word=$2
22035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22036$as_echo_n "checking for $ac_word... " >&6; }
22037if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
22038  $as_echo_n "(cached) " >&6
22039else
22040  case $INTLTOOL_PERL in
22041  [\\/]* | ?:[\\/]*)
22042  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
22043  ;;
22044  *)
22045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22046for as_dir in $PATH
22047do
22048  IFS=$as_save_IFS
22049  test -z "$as_dir" && as_dir=.
22050  for ac_exec_ext in '' $ac_executable_extensions; do
22051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22052    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
22053    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22054    break 2
22055  fi
22056done
22057done
22058IFS=$as_save_IFS
22059
22060  ;;
22061esac
22062fi
22063INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
22064if test -n "$INTLTOOL_PERL"; then
22065  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
22066$as_echo "$INTLTOOL_PERL" >&6; }
22067else
22068  { $as_echo "$as_me:$LINENO: result: no" >&5
22069$as_echo "no" >&6; }
22070fi
22071
22072
22073if test -z "$INTLTOOL_PERL"; then
22074   { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
22075$as_echo "$as_me: error: perl not found; required for intltool" >&2;}
22076   { (exit 1); exit 1; }; }
22077fi
22078if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
22079   { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
22080$as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
22081   { (exit 1); exit 1; }; }
22082fi
22083if test "x" != "xno-xml"; then
22084   { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
22085$as_echo_n "checking for XML::Parser... " >&6; }
22086   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
22087       { $as_echo "$as_me:$LINENO: result: ok" >&5
22088$as_echo "ok" >&6; }
22089   else
22090       { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
22091$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
22092   { (exit 1); exit 1; }; }
22093   fi
22094fi
22095
22096# Substitute ALL_LINGUAS so we can use it in po/Makefile
22097
22098
22099# Set DATADIRNAME correctly if it is not set yet
22100# (copied from glib-gettext.m4)
22101if test -z "$DATADIRNAME"; then
22102  cat >conftest.$ac_ext <<_ACEOF
22103/* confdefs.h.  */
22104_ACEOF
22105cat confdefs.h >>conftest.$ac_ext
22106cat >>conftest.$ac_ext <<_ACEOF
22107/* end confdefs.h.  */
22108
22109int
22110main ()
22111{
22112extern int _nl_msg_cat_cntr;
22113                       return _nl_msg_cat_cntr
22114  ;
22115  return 0;
22116}
22117_ACEOF
22118rm -f conftest.$ac_objext conftest$ac_exeext
22119if { (ac_try="$ac_link"
22120case "(($ac_try" in
22121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122  *) ac_try_echo=$ac_try;;
22123esac
22124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22125$as_echo "$ac_try_echo") >&5
22126  (eval "$ac_link") 2>conftest.er1
22127  ac_status=$?
22128  grep -v '^ *+' conftest.er1 >conftest.err
22129  rm -f conftest.er1
22130  cat conftest.err >&5
22131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132  (exit $ac_status); } && {
22133	 test -z "$ac_c_werror_flag" ||
22134	 test ! -s conftest.err
22135       } && test -s conftest$ac_exeext && {
22136	 test "$cross_compiling" = yes ||
22137	 $as_test_x conftest$ac_exeext
22138       }; then
22139  DATADIRNAME=share
22140else
22141  $as_echo "$as_me: failed program was:" >&5
22142sed 's/^/| /' conftest.$ac_ext >&5
22143
22144	case $host in
22145    *-*-solaris*)
22146                        { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22147$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
22148if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22149  $as_echo_n "(cached) " >&6
22150else
22151  cat >conftest.$ac_ext <<_ACEOF
22152/* confdefs.h.  */
22153_ACEOF
22154cat confdefs.h >>conftest.$ac_ext
22155cat >>conftest.$ac_ext <<_ACEOF
22156/* end confdefs.h.  */
22157/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22158   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22159#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22160
22161/* System header to define __stub macros and hopefully few prototypes,
22162    which can conflict with char bind_textdomain_codeset (); below.
22163    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22164    <limits.h> exists even on freestanding compilers.  */
22165
22166#ifdef __STDC__
22167# include <limits.h>
22168#else
22169# include <assert.h>
22170#endif
22171
22172#undef bind_textdomain_codeset
22173
22174/* Override any GCC internal prototype to avoid an error.
22175   Use char because int might match the return type of a GCC
22176   builtin and then its argument prototype would still apply.  */
22177#ifdef __cplusplus
22178extern "C"
22179#endif
22180char bind_textdomain_codeset ();
22181/* The GNU C library defines this for functions which it implements
22182    to always fail with ENOSYS.  Some functions are actually named
22183    something starting with __ and the normal name is an alias.  */
22184#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22185choke me
22186#endif
22187
22188int
22189main ()
22190{
22191return bind_textdomain_codeset ();
22192  ;
22193  return 0;
22194}
22195_ACEOF
22196rm -f conftest.$ac_objext conftest$ac_exeext
22197if { (ac_try="$ac_link"
22198case "(($ac_try" in
22199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200  *) ac_try_echo=$ac_try;;
22201esac
22202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22203$as_echo "$ac_try_echo") >&5
22204  (eval "$ac_link") 2>conftest.er1
22205  ac_status=$?
22206  grep -v '^ *+' conftest.er1 >conftest.err
22207  rm -f conftest.er1
22208  cat conftest.err >&5
22209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210  (exit $ac_status); } && {
22211	 test -z "$ac_c_werror_flag" ||
22212	 test ! -s conftest.err
22213       } && test -s conftest$ac_exeext && {
22214	 test "$cross_compiling" = yes ||
22215	 $as_test_x conftest$ac_exeext
22216       }; then
22217  ac_cv_func_bind_textdomain_codeset=yes
22218else
22219  $as_echo "$as_me: failed program was:" >&5
22220sed 's/^/| /' conftest.$ac_ext >&5
22221
22222	ac_cv_func_bind_textdomain_codeset=no
22223fi
22224
22225rm -rf conftest.dSYM
22226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227      conftest$ac_exeext conftest.$ac_ext
22228fi
22229{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22230$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
22231if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
22232  DATADIRNAME=share
22233else
22234  DATADIRNAME=lib
22235fi
22236
22237    ;;
22238    *)
22239    DATADIRNAME=lib
22240    ;;
22241    esac
22242fi
22243
22244rm -rf conftest.dSYM
22245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246      conftest$ac_exeext conftest.$ac_ext
22247fi
22248
22249
22250
22251
22252
22253GETTEXT_PACKAGE=avahi
22254
22255
22256cat >>confdefs.h <<_ACEOF
22257@%:@define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
22258_ACEOF
22259
22260      
22261   
22262for ac_header in locale.h
22263do
22264as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22266  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22267$as_echo_n "checking for $ac_header... " >&6; }
22268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22269  $as_echo_n "(cached) " >&6
22270fi
22271ac_res=`eval 'as_val=${'$as_ac_Header'}
22272		 $as_echo "$as_val"'`
22273	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22274$as_echo "$ac_res" >&6; }
22275else
22276  # Is the header compilable?
22277{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22278$as_echo_n "checking $ac_header usability... " >&6; }
22279cat >conftest.$ac_ext <<_ACEOF
22280/* confdefs.h.  */
22281_ACEOF
22282cat confdefs.h >>conftest.$ac_ext
22283cat >>conftest.$ac_ext <<_ACEOF
22284/* end confdefs.h.  */
22285$ac_includes_default
22286@%:@include <$ac_header>
22287_ACEOF
22288rm -f conftest.$ac_objext
22289if { (ac_try="$ac_compile"
22290case "(($ac_try" in
22291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292  *) ac_try_echo=$ac_try;;
22293esac
22294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295$as_echo "$ac_try_echo") >&5
22296  (eval "$ac_compile") 2>conftest.er1
22297  ac_status=$?
22298  grep -v '^ *+' conftest.er1 >conftest.err
22299  rm -f conftest.er1
22300  cat conftest.err >&5
22301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302  (exit $ac_status); } && {
22303	 test -z "$ac_c_werror_flag" ||
22304	 test ! -s conftest.err
22305       } && test -s conftest.$ac_objext; then
22306  ac_header_compiler=yes
22307else
22308  $as_echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311	ac_header_compiler=no
22312fi
22313
22314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22316$as_echo "$ac_header_compiler" >&6; }
22317
22318# Is the header present?
22319{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22320$as_echo_n "checking $ac_header presence... " >&6; }
22321cat >conftest.$ac_ext <<_ACEOF
22322/* confdefs.h.  */
22323_ACEOF
22324cat confdefs.h >>conftest.$ac_ext
22325cat >>conftest.$ac_ext <<_ACEOF
22326/* end confdefs.h.  */
22327@%:@include <$ac_header>
22328_ACEOF
22329if { (ac_try="$ac_cpp conftest.$ac_ext"
22330case "(($ac_try" in
22331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332  *) ac_try_echo=$ac_try;;
22333esac
22334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22335$as_echo "$ac_try_echo") >&5
22336  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22337  ac_status=$?
22338  grep -v '^ *+' conftest.er1 >conftest.err
22339  rm -f conftest.er1
22340  cat conftest.err >&5
22341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342  (exit $ac_status); } >/dev/null && {
22343	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22344	 test ! -s conftest.err
22345       }; then
22346  ac_header_preproc=yes
22347else
22348  $as_echo "$as_me: failed program was:" >&5
22349sed 's/^/| /' conftest.$ac_ext >&5
22350
22351  ac_header_preproc=no
22352fi
22353
22354rm -f conftest.err conftest.$ac_ext
22355{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22356$as_echo "$ac_header_preproc" >&6; }
22357
22358# So?  What about this header?
22359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22360  yes:no: )
22361    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22362$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22363    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22364$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22365    ac_header_preproc=yes
22366    ;;
22367  no:yes:* )
22368    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22369$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22371$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22372    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22373$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22374    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22375$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22376    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22377$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22378    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22379$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22380    ( cat <<\_ASBOX
22381@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
22382@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
22383@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
22384_ASBOX
22385     ) | sed "s/^/$as_me: WARNING:     /" >&2
22386    ;;
22387esac
22388{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22389$as_echo_n "checking for $ac_header... " >&6; }
22390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22391  $as_echo_n "(cached) " >&6
22392else
22393  eval "$as_ac_Header=\$ac_header_preproc"
22394fi
22395ac_res=`eval 'as_val=${'$as_ac_Header'}
22396		 $as_echo "$as_val"'`
22397	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22398$as_echo "$ac_res" >&6; }
22399
22400fi
22401as_val=`eval 'as_val=${'$as_ac_Header'}
22402		 $as_echo "$as_val"'`
22403   if test "x$as_val" = x""yes; then
22404  cat >>confdefs.h <<_ACEOF
22405@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22406_ACEOF
22407 
22408fi
22409
22410done
22411
22412    if test $ac_cv_header_locale_h = yes; then
22413    { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22414$as_echo_n "checking for LC_MESSAGES... " >&6; }
22415if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22416  $as_echo_n "(cached) " >&6
22417else
22418  cat >conftest.$ac_ext <<_ACEOF
22419/* confdefs.h.  */
22420_ACEOF
22421cat confdefs.h >>conftest.$ac_ext
22422cat >>conftest.$ac_ext <<_ACEOF
22423/* end confdefs.h.  */
22424#include <locale.h>
22425int
22426main ()
22427{
22428return LC_MESSAGES
22429  ;
22430  return 0;
22431}
22432_ACEOF
22433rm -f conftest.$ac_objext conftest$ac_exeext
22434if { (ac_try="$ac_link"
22435case "(($ac_try" in
22436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437  *) ac_try_echo=$ac_try;;
22438esac
22439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440$as_echo "$ac_try_echo") >&5
22441  (eval "$ac_link") 2>conftest.er1
22442  ac_status=$?
22443  grep -v '^ *+' conftest.er1 >conftest.err
22444  rm -f conftest.er1
22445  cat conftest.err >&5
22446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447  (exit $ac_status); } && {
22448	 test -z "$ac_c_werror_flag" ||
22449	 test ! -s conftest.err
22450       } && test -s conftest$ac_exeext && {
22451	 test "$cross_compiling" = yes ||
22452	 $as_test_x conftest$ac_exeext
22453       }; then
22454  am_cv_val_LC_MESSAGES=yes
22455else
22456  $as_echo "$as_me: failed program was:" >&5
22457sed 's/^/| /' conftest.$ac_ext >&5
22458
22459	am_cv_val_LC_MESSAGES=no
22460fi
22461
22462rm -rf conftest.dSYM
22463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464      conftest$ac_exeext conftest.$ac_ext
22465fi
22466{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22467$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
22468    if test $am_cv_val_LC_MESSAGES = yes; then
22469      
22470cat >>confdefs.h <<\_ACEOF
22471@%:@define HAVE_LC_MESSAGES 1
22472_ACEOF
22473
22474    fi
22475  fi
22476     USE_NLS=yes
22477    
22478
22479    gt_cv_have_gettext=no
22480
22481    CATOBJEXT=NONE
22482    XGETTEXT=:
22483    INTLLIBS=
22484
22485    if test "${ac_cv_header_libintl_h+set}" = set; then
22486  { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
22487$as_echo_n "checking for libintl.h... " >&6; }
22488if test "${ac_cv_header_libintl_h+set}" = set; then
22489  $as_echo_n "(cached) " >&6
22490fi
22491{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22492$as_echo "$ac_cv_header_libintl_h" >&6; }
22493else
22494  # Is the header compilable?
22495{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
22496$as_echo_n "checking libintl.h usability... " >&6; }
22497cat >conftest.$ac_ext <<_ACEOF
22498/* confdefs.h.  */
22499_ACEOF
22500cat confdefs.h >>conftest.$ac_ext
22501cat >>conftest.$ac_ext <<_ACEOF
22502/* end confdefs.h.  */
22503$ac_includes_default
22504@%:@include <libintl.h>
22505_ACEOF
22506rm -f conftest.$ac_objext
22507if { (ac_try="$ac_compile"
22508case "(($ac_try" in
22509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510  *) ac_try_echo=$ac_try;;
22511esac
22512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22513$as_echo "$ac_try_echo") >&5
22514  (eval "$ac_compile") 2>conftest.er1
22515  ac_status=$?
22516  grep -v '^ *+' conftest.er1 >conftest.err
22517  rm -f conftest.er1
22518  cat conftest.err >&5
22519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520  (exit $ac_status); } && {
22521	 test -z "$ac_c_werror_flag" ||
22522	 test ! -s conftest.err
22523       } && test -s conftest.$ac_objext; then
22524  ac_header_compiler=yes
22525else
22526  $as_echo "$as_me: failed program was:" >&5
22527sed 's/^/| /' conftest.$ac_ext >&5
22528
22529	ac_header_compiler=no
22530fi
22531
22532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22534$as_echo "$ac_header_compiler" >&6; }
22535
22536# Is the header present?
22537{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
22538$as_echo_n "checking libintl.h presence... " >&6; }
22539cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h.  */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h.  */
22545@%:@include <libintl.h>
22546_ACEOF
22547if { (ac_try="$ac_cpp conftest.$ac_ext"
22548case "(($ac_try" in
22549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550  *) ac_try_echo=$ac_try;;
22551esac
22552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22553$as_echo "$ac_try_echo") >&5
22554  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22555  ac_status=$?
22556  grep -v '^ *+' conftest.er1 >conftest.err
22557  rm -f conftest.er1
22558  cat conftest.err >&5
22559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560  (exit $ac_status); } >/dev/null && {
22561	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22562	 test ! -s conftest.err
22563       }; then
22564  ac_header_preproc=yes
22565else
22566  $as_echo "$as_me: failed program was:" >&5
22567sed 's/^/| /' conftest.$ac_ext >&5
22568
22569  ac_header_preproc=no
22570fi
22571
22572rm -f conftest.err conftest.$ac_ext
22573{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22574$as_echo "$ac_header_preproc" >&6; }
22575
22576# So?  What about this header?
22577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22578  yes:no: )
22579    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22580$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22581    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22582$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22583    ac_header_preproc=yes
22584    ;;
22585  no:yes:* )
22586    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22587$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22588    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
22589$as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
22590    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22591$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22592    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
22593$as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22594    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22595$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22596    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22597$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22598    ( cat <<\_ASBOX
22599@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
22600@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
22601@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
22602_ASBOX
22603     ) | sed "s/^/$as_me: WARNING:     /" >&2
22604    ;;
22605esac
22606{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
22607$as_echo_n "checking for libintl.h... " >&6; }
22608if test "${ac_cv_header_libintl_h+set}" = set; then
22609  $as_echo_n "(cached) " >&6
22610else
22611  ac_cv_header_libintl_h=$ac_header_preproc
22612fi
22613{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22614$as_echo "$ac_cv_header_libintl_h" >&6; }
22615
22616fi
22617if test "x$ac_cv_header_libintl_h" = x""yes; then
22618  gt_cv_func_dgettext_libintl="no"
22619      libintl_extra_libs=""
22620
22621      #
22622      # First check in libc
22623      #
22624      { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22625$as_echo_n "checking for ngettext in libc... " >&6; }
22626if test "${gt_cv_func_ngettext_libc+set}" = set; then
22627  $as_echo_n "(cached) " >&6
22628else
22629  cat >conftest.$ac_ext <<_ACEOF
22630/* confdefs.h.  */
22631_ACEOF
22632cat confdefs.h >>conftest.$ac_ext
22633cat >>conftest.$ac_ext <<_ACEOF
22634/* end confdefs.h.  */
22635
22636#include <libintl.h>
22637
22638int
22639main ()
22640{
22641return !ngettext ("","", 1)
22642  ;
22643  return 0;
22644}
22645_ACEOF
22646rm -f conftest.$ac_objext conftest$ac_exeext
22647if { (ac_try="$ac_link"
22648case "(($ac_try" in
22649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650  *) ac_try_echo=$ac_try;;
22651esac
22652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653$as_echo "$ac_try_echo") >&5
22654  (eval "$ac_link") 2>conftest.er1
22655  ac_status=$?
22656  grep -v '^ *+' conftest.er1 >conftest.err
22657  rm -f conftest.er1
22658  cat conftest.err >&5
22659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660  (exit $ac_status); } && {
22661	 test -z "$ac_c_werror_flag" ||
22662	 test ! -s conftest.err
22663       } && test -s conftest$ac_exeext && {
22664	 test "$cross_compiling" = yes ||
22665	 $as_test_x conftest$ac_exeext
22666       }; then
22667  gt_cv_func_ngettext_libc=yes
22668else
22669  $as_echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672	gt_cv_func_ngettext_libc=no
22673fi
22674
22675rm -rf conftest.dSYM
22676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677      conftest$ac_exeext conftest.$ac_ext
22678        
22679fi
22680{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22681$as_echo "$gt_cv_func_ngettext_libc" >&6; }
22682  
22683      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22684	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22685$as_echo_n "checking for dgettext in libc... " >&6; }
22686if test "${gt_cv_func_dgettext_libc+set}" = set; then
22687  $as_echo_n "(cached) " >&6
22688else
22689  cat >conftest.$ac_ext <<_ACEOF
22690/* confdefs.h.  */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h.  */
22695
22696#include <libintl.h>
22697
22698int
22699main ()
22700{
22701return !dgettext ("","")
22702  ;
22703  return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext conftest$ac_exeext
22707if { (ac_try="$ac_link"
22708case "(($ac_try" in
22709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710  *) ac_try_echo=$ac_try;;
22711esac
22712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22713$as_echo "$ac_try_echo") >&5
22714  (eval "$ac_link") 2>conftest.er1
22715  ac_status=$?
22716  grep -v '^ *+' conftest.er1 >conftest.err
22717  rm -f conftest.er1
22718  cat conftest.err >&5
22719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720  (exit $ac_status); } && {
22721	 test -z "$ac_c_werror_flag" ||
22722	 test ! -s conftest.err
22723       } && test -s conftest$ac_exeext && {
22724	 test "$cross_compiling" = yes ||
22725	 $as_test_x conftest$ac_exeext
22726       }; then
22727  gt_cv_func_dgettext_libc=yes
22728else
22729  $as_echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732	gt_cv_func_dgettext_libc=no
22733fi
22734
22735rm -rf conftest.dSYM
22736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737      conftest$ac_exeext conftest.$ac_ext
22738        	
22739fi
22740{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
22741$as_echo "$gt_cv_func_dgettext_libc" >&6; }
22742      fi
22743  
22744      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22745        
22746for ac_func in bind_textdomain_codeset
22747do
22748as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22749{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22750$as_echo_n "checking for $ac_func... " >&6; }
22751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22752  $as_echo_n "(cached) " >&6
22753else
22754  cat >conftest.$ac_ext <<_ACEOF
22755/* confdefs.h.  */
22756_ACEOF
22757cat confdefs.h >>conftest.$ac_ext
22758cat >>conftest.$ac_ext <<_ACEOF
22759/* end confdefs.h.  */
22760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22761   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22762#define $ac_func innocuous_$ac_func
22763
22764/* System header to define __stub macros and hopefully few prototypes,
22765    which can conflict with char $ac_func (); below.
22766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22767    <limits.h> exists even on freestanding compilers.  */
22768
22769#ifdef __STDC__
22770# include <limits.h>
22771#else
22772# include <assert.h>
22773#endif
22774
22775#undef $ac_func
22776
22777/* Override any GCC internal prototype to avoid an error.
22778   Use char because int might match the return type of a GCC
22779   builtin and then its argument prototype would still apply.  */
22780#ifdef __cplusplus
22781extern "C"
22782#endif
22783char $ac_func ();
22784/* The GNU C library defines this for functions which it implements
22785    to always fail with ENOSYS.  Some functions are actually named
22786    something starting with __ and the normal name is an alias.  */
22787#if defined __stub_$ac_func || defined __stub___$ac_func
22788choke me
22789#endif
22790
22791int
22792main ()
22793{
22794return $ac_func ();
22795  ;
22796  return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext conftest$ac_exeext
22800if { (ac_try="$ac_link"
22801case "(($ac_try" in
22802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803  *) ac_try_echo=$ac_try;;
22804esac
22805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22806$as_echo "$ac_try_echo") >&5
22807  (eval "$ac_link") 2>conftest.er1
22808  ac_status=$?
22809  grep -v '^ *+' conftest.er1 >conftest.err
22810  rm -f conftest.er1
22811  cat conftest.err >&5
22812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813  (exit $ac_status); } && {
22814	 test -z "$ac_c_werror_flag" ||
22815	 test ! -s conftest.err
22816       } && test -s conftest$ac_exeext && {
22817	 test "$cross_compiling" = yes ||
22818	 $as_test_x conftest$ac_exeext
22819       }; then
22820  eval "$as_ac_var=yes"
22821else
22822  $as_echo "$as_me: failed program was:" >&5
22823sed 's/^/| /' conftest.$ac_ext >&5
22824
22825	eval "$as_ac_var=no"
22826fi
22827
22828rm -rf conftest.dSYM
22829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22830      conftest$ac_exeext conftest.$ac_ext
22831fi
22832ac_res=`eval 'as_val=${'$as_ac_var'}
22833		 $as_echo "$as_val"'`
22834	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22835$as_echo "$ac_res" >&6; }
22836as_val=`eval 'as_val=${'$as_ac_var'}
22837		 $as_echo "$as_val"'`
22838   if test "x$as_val" = x""yes; then
22839  cat >>confdefs.h <<_ACEOF
22840@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22841_ACEOF
22842 
22843fi
22844done
22845
22846      fi
22847
22848      #
22849      # If we don't have everything we want, check in libintl
22850      #
22851      if test "$gt_cv_func_dgettext_libc" != "yes" \
22852	 || test "$gt_cv_func_ngettext_libc" != "yes" \
22853         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
22854        
22855        { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
22856$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
22857if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
22858  $as_echo_n "(cached) " >&6
22859else
22860  ac_check_lib_save_LIBS=$LIBS
22861LIBS="-lintl  $LIBS"
22862cat >conftest.$ac_ext <<_ACEOF
22863/* confdefs.h.  */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h.  */
22868
22869/* Override any GCC internal prototype to avoid an error.
22870   Use char because int might match the return type of a GCC
22871   builtin and then its argument prototype would still apply.  */
22872#ifdef __cplusplus
22873extern "C"
22874#endif
22875char bindtextdomain ();
22876int
22877main ()
22878{
22879return bindtextdomain ();
22880  ;
22881  return 0;
22882}
22883_ACEOF
22884rm -f conftest.$ac_objext conftest$ac_exeext
22885if { (ac_try="$ac_link"
22886case "(($ac_try" in
22887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888  *) ac_try_echo=$ac_try;;
22889esac
22890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22891$as_echo "$ac_try_echo") >&5
22892  (eval "$ac_link") 2>conftest.er1
22893  ac_status=$?
22894  grep -v '^ *+' conftest.er1 >conftest.err
22895  rm -f conftest.er1
22896  cat conftest.err >&5
22897  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898  (exit $ac_status); } && {
22899	 test -z "$ac_c_werror_flag" ||
22900	 test ! -s conftest.err
22901       } && test -s conftest$ac_exeext && {
22902	 test "$cross_compiling" = yes ||
22903	 $as_test_x conftest$ac_exeext
22904       }; then
22905  ac_cv_lib_intl_bindtextdomain=yes
22906else
22907  $as_echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910	ac_cv_lib_intl_bindtextdomain=no
22911fi
22912
22913rm -rf conftest.dSYM
22914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22915      conftest$ac_exeext conftest.$ac_ext
22916LIBS=$ac_check_lib_save_LIBS
22917fi
22918{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
22919$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
22920if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
22921  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
22922$as_echo_n "checking for ngettext in -lintl... " >&6; }
22923if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22924  $as_echo_n "(cached) " >&6
22925else
22926  ac_check_lib_save_LIBS=$LIBS
22927LIBS="-lintl  $LIBS"
22928cat >conftest.$ac_ext <<_ACEOF
22929/* confdefs.h.  */
22930_ACEOF
22931cat confdefs.h >>conftest.$ac_ext
22932cat >>conftest.$ac_ext <<_ACEOF
22933/* end confdefs.h.  */
22934
22935/* Override any GCC internal prototype to avoid an error.
22936   Use char because int might match the return type of a GCC
22937   builtin and then its argument prototype would still apply.  */
22938#ifdef __cplusplus
22939extern "C"
22940#endif
22941char ngettext ();
22942int
22943main ()
22944{
22945return ngettext ();
22946  ;
22947  return 0;
22948}
22949_ACEOF
22950rm -f conftest.$ac_objext conftest$ac_exeext
22951if { (ac_try="$ac_link"
22952case "(($ac_try" in
22953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954  *) ac_try_echo=$ac_try;;
22955esac
22956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22957$as_echo "$ac_try_echo") >&5
22958  (eval "$ac_link") 2>conftest.er1
22959  ac_status=$?
22960  grep -v '^ *+' conftest.er1 >conftest.err
22961  rm -f conftest.er1
22962  cat conftest.err >&5
22963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964  (exit $ac_status); } && {
22965	 test -z "$ac_c_werror_flag" ||
22966	 test ! -s conftest.err
22967       } && test -s conftest$ac_exeext && {
22968	 test "$cross_compiling" = yes ||
22969	 $as_test_x conftest$ac_exeext
22970       }; then
22971  ac_cv_lib_intl_ngettext=yes
22972else
22973  $as_echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976	ac_cv_lib_intl_ngettext=no
22977fi
22978
22979rm -rf conftest.dSYM
22980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981      conftest$ac_exeext conftest.$ac_ext
22982LIBS=$ac_check_lib_save_LIBS
22983fi
22984{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22985$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
22986if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
22987  { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22988$as_echo_n "checking for dgettext in -lintl... " >&6; }
22989if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22990  $as_echo_n "(cached) " >&6
22991else
22992  ac_check_lib_save_LIBS=$LIBS
22993LIBS="-lintl  $LIBS"
22994cat >conftest.$ac_ext <<_ACEOF
22995/* confdefs.h.  */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h.  */
23000
23001/* Override any GCC internal prototype to avoid an error.
23002   Use char because int might match the return type of a GCC
23003   builtin and then its argument prototype would still apply.  */
23004#ifdef __cplusplus
23005extern "C"
23006#endif
23007char dgettext ();
23008int
23009main ()
23010{
23011return dgettext ();
23012  ;
23013  return 0;
23014}
23015_ACEOF
23016rm -f conftest.$ac_objext conftest$ac_exeext
23017if { (ac_try="$ac_link"
23018case "(($ac_try" in
23019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020  *) ac_try_echo=$ac_try;;
23021esac
23022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23023$as_echo "$ac_try_echo") >&5
23024  (eval "$ac_link") 2>conftest.er1
23025  ac_status=$?
23026  grep -v '^ *+' conftest.er1 >conftest.err
23027  rm -f conftest.er1
23028  cat conftest.err >&5
23029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030  (exit $ac_status); } && {
23031	 test -z "$ac_c_werror_flag" ||
23032	 test ! -s conftest.err
23033       } && test -s conftest$ac_exeext && {
23034	 test "$cross_compiling" = yes ||
23035	 $as_test_x conftest$ac_exeext
23036       }; then
23037  ac_cv_lib_intl_dgettext=yes
23038else
23039  $as_echo "$as_me: failed program was:" >&5
23040sed 's/^/| /' conftest.$ac_ext >&5
23041
23042	ac_cv_lib_intl_dgettext=no
23043fi
23044
23045rm -rf conftest.dSYM
23046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23047      conftest$ac_exeext conftest.$ac_ext
23048LIBS=$ac_check_lib_save_LIBS
23049fi
23050{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23051$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23052if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
23053  gt_cv_func_dgettext_libintl=yes
23054fi
23055
23056fi
23057
23058fi
23059
23060
23061	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23062	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23063$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
23064	  { $as_echo "$as_me:$LINENO: result: " >&5
23065$as_echo "" >&6; }
23066  	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23067$as_echo_n "checking for ngettext in -lintl... " >&6; }
23068if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23069  $as_echo_n "(cached) " >&6
23070else
23071  ac_check_lib_save_LIBS=$LIBS
23072LIBS="-lintl -liconv $LIBS"
23073cat >conftest.$ac_ext <<_ACEOF
23074/* confdefs.h.  */
23075_ACEOF
23076cat confdefs.h >>conftest.$ac_ext
23077cat >>conftest.$ac_ext <<_ACEOF
23078/* end confdefs.h.  */
23079
23080/* Override any GCC internal prototype to avoid an error.
23081   Use char because int might match the return type of a GCC
23082   builtin and then its argument prototype would still apply.  */
23083#ifdef __cplusplus
23084extern "C"
23085#endif
23086char ngettext ();
23087int
23088main ()
23089{
23090return ngettext ();
23091  ;
23092  return 0;
23093}
23094_ACEOF
23095rm -f conftest.$ac_objext conftest$ac_exeext
23096if { (ac_try="$ac_link"
23097case "(($ac_try" in
23098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099  *) ac_try_echo=$ac_try;;
23100esac
23101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23102$as_echo "$ac_try_echo") >&5
23103  (eval "$ac_link") 2>conftest.er1
23104  ac_status=$?
23105  grep -v '^ *+' conftest.er1 >conftest.err
23106  rm -f conftest.er1
23107  cat conftest.err >&5
23108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109  (exit $ac_status); } && {
23110	 test -z "$ac_c_werror_flag" ||
23111	 test ! -s conftest.err
23112       } && test -s conftest$ac_exeext && {
23113	 test "$cross_compiling" = yes ||
23114	 $as_test_x conftest$ac_exeext
23115       }; then
23116  ac_cv_lib_intl_ngettext=yes
23117else
23118  $as_echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121	ac_cv_lib_intl_ngettext=no
23122fi
23123
23124rm -rf conftest.dSYM
23125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23126      conftest$ac_exeext conftest.$ac_ext
23127LIBS=$ac_check_lib_save_LIBS
23128fi
23129{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23130$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
23131if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
23132  { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23133$as_echo_n "checking for dcgettext in -lintl... " >&6; }
23134if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23135  $as_echo_n "(cached) " >&6
23136else
23137  ac_check_lib_save_LIBS=$LIBS
23138LIBS="-lintl -liconv $LIBS"
23139cat >conftest.$ac_ext <<_ACEOF
23140/* confdefs.h.  */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h.  */
23145
23146/* Override any GCC internal prototype to avoid an error.
23147   Use char because int might match the return type of a GCC
23148   builtin and then its argument prototype would still apply.  */
23149#ifdef __cplusplus
23150extern "C"
23151#endif
23152char dcgettext ();
23153int
23154main ()
23155{
23156return dcgettext ();
23157  ;
23158  return 0;
23159}
23160_ACEOF
23161rm -f conftest.$ac_objext conftest$ac_exeext
23162if { (ac_try="$ac_link"
23163case "(($ac_try" in
23164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165  *) ac_try_echo=$ac_try;;
23166esac
23167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23168$as_echo "$ac_try_echo") >&5
23169  (eval "$ac_link") 2>conftest.er1
23170  ac_status=$?
23171  grep -v '^ *+' conftest.er1 >conftest.err
23172  rm -f conftest.er1
23173  cat conftest.err >&5
23174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175  (exit $ac_status); } && {
23176	 test -z "$ac_c_werror_flag" ||
23177	 test ! -s conftest.err
23178       } && test -s conftest$ac_exeext && {
23179	 test "$cross_compiling" = yes ||
23180	 $as_test_x conftest$ac_exeext
23181       }; then
23182  ac_cv_lib_intl_dcgettext=yes
23183else
23184  $as_echo "$as_me: failed program was:" >&5
23185sed 's/^/| /' conftest.$ac_ext >&5
23186
23187	ac_cv_lib_intl_dcgettext=no
23188fi
23189
23190rm -rf conftest.dSYM
23191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23192      conftest$ac_exeext conftest.$ac_ext
23193LIBS=$ac_check_lib_save_LIBS
23194fi
23195{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23196$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
23197if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
23198  gt_cv_func_dgettext_libintl=yes
23199			libintl_extra_libs=-liconv
23200else
23201  :
23202fi
23203
23204else
23205  :
23206fi
23207
23208        fi
23209
23210        #
23211        # If we found libintl, then check in it for bind_textdomain_codeset();
23212        # we'll prefer libc if neither have bind_textdomain_codeset(),
23213        # and both have dgettext and ngettext
23214        #
23215        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23216          glib_save_LIBS="$LIBS"
23217          LIBS="$LIBS -lintl $libintl_extra_libs"
23218          unset ac_cv_func_bind_textdomain_codeset
23219          
23220for ac_func in bind_textdomain_codeset
23221do
23222as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23223{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23224$as_echo_n "checking for $ac_func... " >&6; }
23225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23226  $as_echo_n "(cached) " >&6
23227else
23228  cat >conftest.$ac_ext <<_ACEOF
23229/* confdefs.h.  */
23230_ACEOF
23231cat confdefs.h >>conftest.$ac_ext
23232cat >>conftest.$ac_ext <<_ACEOF
23233/* end confdefs.h.  */
23234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23236#define $ac_func innocuous_$ac_func
23237
23238/* System header to define __stub macros and hopefully few prototypes,
23239    which can conflict with char $ac_func (); below.
23240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23241    <limits.h> exists even on freestanding compilers.  */
23242
23243#ifdef __STDC__
23244# include <limits.h>
23245#else
23246# include <assert.h>
23247#endif
23248
23249#undef $ac_func
23250
23251/* Override any GCC internal prototype to avoid an error.
23252   Use char because int might match the return type of a GCC
23253   builtin and then its argument prototype would still apply.  */
23254#ifdef __cplusplus
23255extern "C"
23256#endif
23257char $ac_func ();
23258/* The GNU C library defines this for functions which it implements
23259    to always fail with ENOSYS.  Some functions are actually named
23260    something starting with __ and the normal name is an alias.  */
23261#if defined __stub_$ac_func || defined __stub___$ac_func
23262choke me
23263#endif
23264
23265int
23266main ()
23267{
23268return $ac_func ();
23269  ;
23270  return 0;
23271}
23272_ACEOF
23273rm -f conftest.$ac_objext conftest$ac_exeext
23274if { (ac_try="$ac_link"
23275case "(($ac_try" in
23276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277  *) ac_try_echo=$ac_try;;
23278esac
23279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23280$as_echo "$ac_try_echo") >&5
23281  (eval "$ac_link") 2>conftest.er1
23282  ac_status=$?
23283  grep -v '^ *+' conftest.er1 >conftest.err
23284  rm -f conftest.er1
23285  cat conftest.err >&5
23286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287  (exit $ac_status); } && {
23288	 test -z "$ac_c_werror_flag" ||
23289	 test ! -s conftest.err
23290       } && test -s conftest$ac_exeext && {
23291	 test "$cross_compiling" = yes ||
23292	 $as_test_x conftest$ac_exeext
23293       }; then
23294  eval "$as_ac_var=yes"
23295else
23296  $as_echo "$as_me: failed program was:" >&5
23297sed 's/^/| /' conftest.$ac_ext >&5
23298
23299	eval "$as_ac_var=no"
23300fi
23301
23302rm -rf conftest.dSYM
23303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23304      conftest$ac_exeext conftest.$ac_ext
23305fi
23306ac_res=`eval 'as_val=${'$as_ac_var'}
23307		 $as_echo "$as_val"'`
23308	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23309$as_echo "$ac_res" >&6; }
23310as_val=`eval 'as_val=${'$as_ac_var'}
23311		 $as_echo "$as_val"'`
23312   if test "x$as_val" = x""yes; then
23313  cat >>confdefs.h <<_ACEOF
23314@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23315_ACEOF
23316 
23317fi
23318done
23319
23320          LIBS="$glib_save_LIBS"
23321
23322          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23323            gt_cv_func_dgettext_libc=no
23324          else
23325            if test "$gt_cv_func_dgettext_libc" = "yes" \
23326		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
23327              gt_cv_func_dgettext_libintl=no
23328            fi
23329          fi
23330        fi
23331      fi
23332
23333      if test "$gt_cv_func_dgettext_libc" = "yes" \
23334	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
23335        gt_cv_have_gettext=yes
23336      fi
23337  
23338      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23339        INTLLIBS="-lintl $libintl_extra_libs"
23340      fi
23341  
23342      if test "$gt_cv_have_gettext" = "yes"; then
23343	
23344cat >>confdefs.h <<\_ACEOF
23345@%:@define HAVE_GETTEXT 1
23346_ACEOF
23347
23348	# Extract the first word of "msgfmt", so it can be a program name with args.
23349set dummy msgfmt; ac_word=$2
23350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23351$as_echo_n "checking for $ac_word... " >&6; }
23352if test "${ac_cv_path_MSGFMT+set}" = set; then
23353  $as_echo_n "(cached) " >&6
23354else
23355  case "$MSGFMT" in
23356  /*)
23357  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23358  ;;
23359  *)
23360  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23361  for ac_dir in $PATH; do
23362    test -z "$ac_dir" && ac_dir=.
23363    if test -f $ac_dir/$ac_word; then
23364      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23365	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23366	break
23367      fi
23368    fi
23369  done
23370  IFS="$ac_save_ifs"
23371  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23372  ;;
23373esac
23374fi
23375MSGFMT="$ac_cv_path_MSGFMT"
23376if test "$MSGFMT" != "no"; then
23377  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
23378$as_echo "$MSGFMT" >&6; }
23379else
23380  { $as_echo "$as_me:$LINENO: result: no" >&5
23381$as_echo "no" >&6; }
23382fi
23383	if test "$MSGFMT" != "no"; then
23384          glib_save_LIBS="$LIBS"
23385          LIBS="$LIBS $INTLLIBS"
23386	  
23387for ac_func in dcgettext
23388do
23389as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23390{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23391$as_echo_n "checking for $ac_func... " >&6; }
23392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23393  $as_echo_n "(cached) " >&6
23394else
23395  cat >conftest.$ac_ext <<_ACEOF
23396/* confdefs.h.  */
23397_ACEOF
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h.  */
23401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23402   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23403#define $ac_func innocuous_$ac_func
23404
23405/* System header to define __stub macros and hopefully few prototypes,
23406    which can conflict with char $ac_func (); below.
23407    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23408    <limits.h> exists even on freestanding compilers.  */
23409
23410#ifdef __STDC__
23411# include <limits.h>
23412#else
23413# include <assert.h>
23414#endif
23415
23416#undef $ac_func
23417
23418/* Override any GCC internal prototype to avoid an error.
23419   Use char because int might match the return type of a GCC
23420   builtin and then its argument prototype would still apply.  */
23421#ifdef __cplusplus
23422extern "C"
23423#endif
23424char $ac_func ();
23425/* The GNU C library defines this for functions which it implements
23426    to always fail with ENOSYS.  Some functions are actually named
23427    something starting with __ and the normal name is an alias.  */
23428#if defined __stub_$ac_func || defined __stub___$ac_func
23429choke me
23430#endif
23431
23432int
23433main ()
23434{
23435return $ac_func ();
23436  ;
23437  return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext conftest$ac_exeext
23441if { (ac_try="$ac_link"
23442case "(($ac_try" in
23443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444  *) ac_try_echo=$ac_try;;
23445esac
23446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23447$as_echo "$ac_try_echo") >&5
23448  (eval "$ac_link") 2>conftest.er1
23449  ac_status=$?
23450  grep -v '^ *+' conftest.er1 >conftest.err
23451  rm -f conftest.er1
23452  cat conftest.err >&5
23453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454  (exit $ac_status); } && {
23455	 test -z "$ac_c_werror_flag" ||
23456	 test ! -s conftest.err
23457       } && test -s conftest$ac_exeext && {
23458	 test "$cross_compiling" = yes ||
23459	 $as_test_x conftest$ac_exeext
23460       }; then
23461  eval "$as_ac_var=yes"
23462else
23463  $as_echo "$as_me: failed program was:" >&5
23464sed 's/^/| /' conftest.$ac_ext >&5
23465
23466	eval "$as_ac_var=no"
23467fi
23468
23469rm -rf conftest.dSYM
23470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23471      conftest$ac_exeext conftest.$ac_ext
23472fi
23473ac_res=`eval 'as_val=${'$as_ac_var'}
23474		 $as_echo "$as_val"'`
23475	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23476$as_echo "$ac_res" >&6; }
23477as_val=`eval 'as_val=${'$as_ac_var'}
23478		 $as_echo "$as_val"'`
23479   if test "x$as_val" = x""yes; then
23480  cat >>confdefs.h <<_ACEOF
23481@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23482_ACEOF
23483 
23484fi
23485done
23486
23487	  MSGFMT_OPTS=
23488	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23489$as_echo_n "checking if msgfmt accepts -c... " >&6; }
23490	  cat >conftest.foo <<_ACEOF
23491
23492msgid ""
23493msgstr ""
23494"Content-Type: text/plain; charset=UTF-8\n"
23495"Project-Id-Version: test 1.0\n"
23496"PO-Revision-Date: 2007-02-15 12:01+0100\n"
23497"Last-Translator: test <foo@bar.xx>\n"
23498"Language-Team: C <LL@li.org>\n"
23499"MIME-Version: 1.0\n"
23500"Content-Transfer-Encoding: 8bit\n"
23501
23502_ACEOF
23503if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
23504  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
23505  ac_status=$?
23506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507  (exit $ac_status); }; then
23508  MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
23509$as_echo "yes" >&6; }
23510else { $as_echo "$as_me:$LINENO: result: no" >&5
23511$as_echo "no" >&6; }
23512echo "$as_me: failed input was:" >&5
23513sed 's/^/| /' conftest.foo >&5
23514fi
23515	  
23516	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
23517set dummy gmsgfmt; ac_word=$2
23518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23519$as_echo_n "checking for $ac_word... " >&6; }
23520if test "${ac_cv_path_GMSGFMT+set}" = set; then
23521  $as_echo_n "(cached) " >&6
23522else
23523  case $GMSGFMT in
23524  [\\/]* | ?:[\\/]*)
23525  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23526  ;;
23527  *)
23528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23529for as_dir in $PATH
23530do
23531  IFS=$as_save_IFS
23532  test -z "$as_dir" && as_dir=.
23533  for ac_exec_ext in '' $ac_executable_extensions; do
23534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23535    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23536    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23537    break 2
23538  fi
23539done
23540done
23541IFS=$as_save_IFS
23542
23543  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23544  ;;
23545esac
23546fi
23547GMSGFMT=$ac_cv_path_GMSGFMT
23548if test -n "$GMSGFMT"; then
23549  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23550$as_echo "$GMSGFMT" >&6; }
23551else
23552  { $as_echo "$as_me:$LINENO: result: no" >&5
23553$as_echo "no" >&6; }
23554fi
23555
23556
23557	  # Extract the first word of "xgettext", so it can be a program name with args.
23558set dummy xgettext; ac_word=$2
23559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23560$as_echo_n "checking for $ac_word... " >&6; }
23561if test "${ac_cv_path_XGETTEXT+set}" = set; then
23562  $as_echo_n "(cached) " >&6
23563else
23564  case "$XGETTEXT" in
23565  /*)
23566  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23567  ;;
23568  *)
23569  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23570  for ac_dir in $PATH; do
23571    test -z "$ac_dir" && ac_dir=.
23572    if test -f $ac_dir/$ac_word; then
23573      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23574	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23575	break
23576      fi
23577    fi
23578  done
23579  IFS="$ac_save_ifs"
23580  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23581  ;;
23582esac
23583fi
23584XGETTEXT="$ac_cv_path_XGETTEXT"
23585if test "$XGETTEXT" != ":"; then
23586  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23587$as_echo "$XGETTEXT" >&6; }
23588else
23589  { $as_echo "$as_me:$LINENO: result: no" >&5
23590$as_echo "no" >&6; }
23591fi
23592
23593	  cat >conftest.$ac_ext <<_ACEOF
23594/* confdefs.h.  */
23595_ACEOF
23596cat confdefs.h >>conftest.$ac_ext
23597cat >>conftest.$ac_ext <<_ACEOF
23598/* end confdefs.h.  */
23599
23600int
23601main ()
23602{
23603extern int _nl_msg_cat_cntr;
23604			 return _nl_msg_cat_cntr
23605  ;
23606  return 0;
23607}
23608_ACEOF
23609rm -f conftest.$ac_objext conftest$ac_exeext
23610if { (ac_try="$ac_link"
23611case "(($ac_try" in
23612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613  *) ac_try_echo=$ac_try;;
23614esac
23615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616$as_echo "$ac_try_echo") >&5
23617  (eval "$ac_link") 2>conftest.er1
23618  ac_status=$?
23619  grep -v '^ *+' conftest.er1 >conftest.err
23620  rm -f conftest.er1
23621  cat conftest.err >&5
23622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623  (exit $ac_status); } && {
23624	 test -z "$ac_c_werror_flag" ||
23625	 test ! -s conftest.err
23626       } && test -s conftest$ac_exeext && {
23627	 test "$cross_compiling" = yes ||
23628	 $as_test_x conftest$ac_exeext
23629       }; then
23630  CATOBJEXT=.gmo 
23631             DATADIRNAME=share
23632else
23633  $as_echo "$as_me: failed program was:" >&5
23634sed 's/^/| /' conftest.$ac_ext >&5
23635
23636	case $host in
23637	    *-*-solaris*)
23638	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
23639$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
23640if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
23641  $as_echo_n "(cached) " >&6
23642else
23643  cat >conftest.$ac_ext <<_ACEOF
23644/* confdefs.h.  */
23645_ACEOF
23646cat confdefs.h >>conftest.$ac_ext
23647cat >>conftest.$ac_ext <<_ACEOF
23648/* end confdefs.h.  */
23649/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
23650   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23651#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
23652
23653/* System header to define __stub macros and hopefully few prototypes,
23654    which can conflict with char bind_textdomain_codeset (); below.
23655    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23656    <limits.h> exists even on freestanding compilers.  */
23657
23658#ifdef __STDC__
23659# include <limits.h>
23660#else
23661# include <assert.h>
23662#endif
23663
23664#undef bind_textdomain_codeset
23665
23666/* Override any GCC internal prototype to avoid an error.
23667   Use char because int might match the return type of a GCC
23668   builtin and then its argument prototype would still apply.  */
23669#ifdef __cplusplus
23670extern "C"
23671#endif
23672char bind_textdomain_codeset ();
23673/* The GNU C library defines this for functions which it implements
23674    to always fail with ENOSYS.  Some functions are actually named
23675    something starting with __ and the normal name is an alias.  */
23676#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
23677choke me
23678#endif
23679
23680int
23681main ()
23682{
23683return bind_textdomain_codeset ();
23684  ;
23685  return 0;
23686}
23687_ACEOF
23688rm -f conftest.$ac_objext conftest$ac_exeext
23689if { (ac_try="$ac_link"
23690case "(($ac_try" in
23691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692  *) ac_try_echo=$ac_try;;
23693esac
23694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23695$as_echo "$ac_try_echo") >&5
23696  (eval "$ac_link") 2>conftest.er1
23697  ac_status=$?
23698  grep -v '^ *+' conftest.er1 >conftest.err
23699  rm -f conftest.er1
23700  cat conftest.err >&5
23701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702  (exit $ac_status); } && {
23703	 test -z "$ac_c_werror_flag" ||
23704	 test ! -s conftest.err
23705       } && test -s conftest$ac_exeext && {
23706	 test "$cross_compiling" = yes ||
23707	 $as_test_x conftest$ac_exeext
23708       }; then
23709  ac_cv_func_bind_textdomain_codeset=yes
23710else
23711  $as_echo "$as_me: failed program was:" >&5
23712sed 's/^/| /' conftest.$ac_ext >&5
23713
23714	ac_cv_func_bind_textdomain_codeset=no
23715fi
23716
23717rm -rf conftest.dSYM
23718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23719      conftest$ac_exeext conftest.$ac_ext
23720fi
23721{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
23722$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
23723if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
23724  CATOBJEXT=.gmo 
23725               DATADIRNAME=share
23726else
23727  CATOBJEXT=.mo
23728               DATADIRNAME=lib
23729fi
23730
23731	    ;;
23732	    *)
23733	    CATOBJEXT=.mo
23734            DATADIRNAME=lib
23735	    ;;
23736	    esac
23737fi
23738
23739rm -rf conftest.dSYM
23740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23741      conftest$ac_exeext conftest.$ac_ext
23742          LIBS="$glib_save_LIBS"
23743	  INSTOBJEXT=.mo
23744	else
23745	  gt_cv_have_gettext=no
23746	fi
23747      fi
23748    
23749fi
23750
23751
23752
23753    if test "$gt_cv_have_gettext" = "yes" ; then
23754      
23755cat >>confdefs.h <<\_ACEOF
23756@%:@define ENABLE_NLS 1
23757_ACEOF
23758
23759    fi
23760
23761        if test "$XGETTEXT" != ":"; then
23762                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23763        : ;
23764      else
23765        { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23766$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23767        XGETTEXT=":"
23768      fi
23769    fi
23770
23771    # We need to process the po/ directory.
23772    POSUB=po
23773
23774    ac_config_commands="$ac_config_commands default-1"
23775
23776
23777                for lang in $ALL_LINGUAS; do
23778      GMOFILES="$GMOFILES $lang.gmo"
23779      POFILES="$POFILES $lang.po"
23780    done
23781
23782        
23783    
23784    
23785    
23786    
23787    
23788    
23789    
23790    
23791    
23792  
23793
23794   if test "$gt_cv_have_gettext" = "yes"; then
23795     if test "x$ALL_LINGUAS" = "x"; then
23796       LINGUAS=
23797     else
23798       { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
23799$as_echo_n "checking for catalogs to be installed... " >&6; }
23800       NEW_LINGUAS=
23801       for presentlang in $ALL_LINGUAS; do
23802         useit=no
23803         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
23804           desiredlanguages="$LINGUAS"
23805         else
23806           desiredlanguages="$ALL_LINGUAS"
23807         fi
23808         for desiredlang in $desiredlanguages; do
23809 	   # Use the presentlang catalog if desiredlang is
23810           #   a. equal to presentlang, or
23811           #   b. a variant of presentlang (because in this case,
23812           #      presentlang can be used as a fallback for messages
23813           #      which are not translated in the desiredlang catalog).
23814           case "$desiredlang" in
23815             "$presentlang"*) useit=yes;;
23816           esac
23817         done
23818         if test $useit = yes; then
23819           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
23820         fi
23821       done
23822       LINGUAS=$NEW_LINGUAS
23823       { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
23824$as_echo "$LINGUAS" >&6; }
23825     fi
23826
23827          if test -n "$LINGUAS"; then
23828       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
23829     fi
23830   fi
23831
23832            MKINSTALLDIRS=
23833   if test -n "$ac_aux_dir"; then
23834     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
23835   fi
23836   if test -z "$MKINSTALLDIRS"; then
23837     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23838   fi
23839   
23840
23841         test -d po || mkdir po
23842   if test "x$srcdir" != "x."; then
23843     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
23844       posrcprefix="$srcdir/"
23845     else
23846       posrcprefix="../$srcdir/"
23847     fi
23848   else
23849     posrcprefix="../"
23850   fi
23851   rm -f po/POTFILES
23852   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
23853	< $srcdir/po/POTFILES.in > po/POTFILES
23854  
23855
23856avahilocaledir='${prefix}/${DATADIRNAME}/locale'
23857
23858
23859
23860# Check for pkg-config manually first, as if its not installed the
23861# PKG_PROG_PKG_CONFIG macro won't be defined.
23862# Extract the first word of "pkg-config", so it can be a program name with args.
23863set dummy pkg-config; ac_word=$2
23864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23865$as_echo_n "checking for $ac_word... " >&6; }
23866if test "${ac_cv_prog_have_pkg_config+set}" = set; then
23867  $as_echo_n "(cached) " >&6
23868else
23869  if test -n "$have_pkg_config"; then
23870  ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test.
23871else
23872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873for as_dir in $PATH
23874do
23875  IFS=$as_save_IFS
23876  test -z "$as_dir" && as_dir=.
23877  for ac_exec_ext in '' $ac_executable_extensions; do
23878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23879    ac_cv_prog_have_pkg_config="yes"
23880    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23881    break 2
23882  fi
23883done
23884done
23885IFS=$as_save_IFS
23886
23887  test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no"
23888fi
23889fi
23890have_pkg_config=$ac_cv_prog_have_pkg_config
23891if test -n "$have_pkg_config"; then
23892  { $as_echo "$as_me:$LINENO: result: $have_pkg_config" >&5
23893$as_echo "$have_pkg_config" >&6; }
23894else
23895  { $as_echo "$as_me:$LINENO: result: no" >&5
23896$as_echo "no" >&6; }
23897fi
23898
23899
23900
23901if test x"$have_pkg_config" = "xno"; then
23902    { { $as_echo "$as_me:$LINENO: error: pkg-config is required to install this program" >&5
23903$as_echo "$as_me: error: pkg-config is required to install this program" >&2;}
23904   { (exit 1); exit 1; }; }
23905fi
23906
23907
23908
23909if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23910	if test -n "$ac_tool_prefix"; then
23911  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23912set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23914$as_echo_n "checking for $ac_word... " >&6; }
23915if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23916  $as_echo_n "(cached) " >&6
23917else
23918  case $PKG_CONFIG in
23919  [\\/]* | ?:[\\/]*)
23920  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23921  ;;
23922  *)
23923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23924for as_dir in $PATH
23925do
23926  IFS=$as_save_IFS
23927  test -z "$as_dir" && as_dir=.
23928  for ac_exec_ext in '' $ac_executable_extensions; do
23929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23930    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23931    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23932    break 2
23933  fi
23934done
23935done
23936IFS=$as_save_IFS
23937
23938  ;;
23939esac
23940fi
23941PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23942if test -n "$PKG_CONFIG"; then
23943  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23944$as_echo "$PKG_CONFIG" >&6; }
23945else
23946  { $as_echo "$as_me:$LINENO: result: no" >&5
23947$as_echo "no" >&6; }
23948fi
23949
23950
23951fi
23952if test -z "$ac_cv_path_PKG_CONFIG"; then
23953  ac_pt_PKG_CONFIG=$PKG_CONFIG
23954  # Extract the first word of "pkg-config", so it can be a program name with args.
23955set dummy pkg-config; ac_word=$2
23956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23957$as_echo_n "checking for $ac_word... " >&6; }
23958if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23959  $as_echo_n "(cached) " >&6
23960else
23961  case $ac_pt_PKG_CONFIG in
23962  [\\/]* | ?:[\\/]*)
23963  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23964  ;;
23965  *)
23966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23967for as_dir in $PATH
23968do
23969  IFS=$as_save_IFS
23970  test -z "$as_dir" && as_dir=.
23971  for ac_exec_ext in '' $ac_executable_extensions; do
23972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23973    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23974    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23975    break 2
23976  fi
23977done
23978done
23979IFS=$as_save_IFS
23980
23981  ;;
23982esac
23983fi
23984ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23985if test -n "$ac_pt_PKG_CONFIG"; then
23986  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23987$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23988else
23989  { $as_echo "$as_me:$LINENO: result: no" >&5
23990$as_echo "no" >&6; }
23991fi
23992
23993  if test "x$ac_pt_PKG_CONFIG" = x; then
23994    PKG_CONFIG=""
23995  else
23996    case $cross_compiling:$ac_tool_warned in
23997yes:)
23998{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24000ac_tool_warned=yes ;;
24001esac
24002    PKG_CONFIG=$ac_pt_PKG_CONFIG
24003  fi
24004else
24005  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24006fi
24007
24008fi
24009if test -n "$PKG_CONFIG"; then
24010	_pkg_min_version=0.9.0
24011	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24012$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24013	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24014		{ $as_echo "$as_me:$LINENO: result: yes" >&5
24015$as_echo "yes" >&6; }
24016	else
24017		{ $as_echo "$as_me:$LINENO: result: no" >&5
24018$as_echo "no" >&6; }
24019		PKG_CONFIG=""
24020	fi
24021		
24022fi
24023
24024#
24025# Check for GLIB 2.0
24026#
24027@%:@ Check whether --enable-glib was given.
24028if test "${enable_glib+set}" = set; then
24029  enableval=$enable_glib; case "${enableval}" in
24030                yes) HAVE_GLIB=yes ;;
24031                no)  HAVE_GLIB=no ;;
24032                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-glib" >&5
24033$as_echo "$as_me: error: bad value ${enableval} for --enable-glib" >&2;}
24034   { (exit 1); exit 1; }; } ;;
24035        esac
24036else
24037  HAVE_GLIB=yes
24038fi
24039
24040
24041if test "x$HAVE_GLIB" = "xyes" ; then
24042        
24043pkg_failed=no
24044{ $as_echo "$as_me:$LINENO: checking for GLIB20" >&5
24045$as_echo_n "checking for GLIB20... " >&6; }
24046
24047if test -n "$GLIB20_CFLAGS"; then
24048    pkg_cv_GLIB20_CFLAGS="$GLIB20_CFLAGS"
24049 elif test -n "$PKG_CONFIG"; then
24050    if test -n "$PKG_CONFIG" && \
24051    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \"") >&5
24052  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
24053  ac_status=$?
24054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055  (exit $ac_status); }; then
24056  pkg_cv_GLIB20_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 " 2>/dev/null`
24057else
24058  pkg_failed=yes
24059fi
24060 else
24061    pkg_failed=untried
24062fi
24063if test -n "$GLIB20_LIBS"; then
24064    pkg_cv_GLIB20_LIBS="$GLIB20_LIBS"
24065 elif test -n "$PKG_CONFIG"; then
24066    if test -n "$PKG_CONFIG" && \
24067    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \"") >&5
24068  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
24069  ac_status=$?
24070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071  (exit $ac_status); }; then
24072  pkg_cv_GLIB20_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 " 2>/dev/null`
24073else
24074  pkg_failed=yes
24075fi
24076 else
24077    pkg_failed=untried
24078fi
24079
24080
24081
24082if test $pkg_failed = yes; then
24083        
24084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24085        _pkg_short_errors_supported=yes
24086else
24087        _pkg_short_errors_supported=no
24088fi
24089        if test $_pkg_short_errors_supported = yes; then
24090	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " glib-2.0 >= 2.4.0 " 2>&1`
24091        else 
24092	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --print-errors " glib-2.0 >= 2.4.0 " 2>&1`
24093        fi
24094	# Put the nasty error message in config.log where it belongs
24095	echo "$GLIB20_PKG_ERRORS" >&5
24096
24097	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.4.0 ) were not met:
24098
24099$GLIB20_PKG_ERRORS
24100
24101Consider adjusting the PKG_CONFIG_PATH environment variable if you
24102installed software in a non-standard prefix.
24103
24104Alternatively, you may set the environment variables GLIB20_CFLAGS
24105and GLIB20_LIBS to avoid the need to call pkg-config.
24106See the pkg-config man page for more details.
24107" >&5
24108$as_echo "$as_me: error: Package requirements ( glib-2.0 >= 2.4.0 ) were not met:
24109
24110$GLIB20_PKG_ERRORS
24111
24112Consider adjusting the PKG_CONFIG_PATH environment variable if you
24113installed software in a non-standard prefix.
24114
24115Alternatively, you may set the environment variables GLIB20_CFLAGS
24116and GLIB20_LIBS to avoid the need to call pkg-config.
24117See the pkg-config man page for more details.
24118" >&2;}
24119   { (exit 1); exit 1; }; }
24120elif test $pkg_failed = untried; then
24121	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24123{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24124is in your PATH or set the PKG_CONFIG environment variable to the full
24125path to pkg-config.
24126
24127Alternatively, you may set the environment variables GLIB20_CFLAGS
24128and GLIB20_LIBS to avoid the need to call pkg-config.
24129See the pkg-config man page for more details.
24130
24131To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24132See \`config.log' for more details." >&5
24133$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24134is in your PATH or set the PKG_CONFIG environment variable to the full
24135path to pkg-config.
24136
24137Alternatively, you may set the environment variables GLIB20_CFLAGS
24138and GLIB20_LIBS to avoid the need to call pkg-config.
24139See the pkg-config man page for more details.
24140
24141To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24142See \`config.log' for more details." >&2;}
24143   { (exit 1); exit 1; }; }; }
24144else
24145	GLIB20_CFLAGS=$pkg_cv_GLIB20_CFLAGS
24146	GLIB20_LIBS=$pkg_cv_GLIB20_LIBS
24147        { $as_echo "$as_me:$LINENO: result: yes" >&5
24148$as_echo "yes" >&6; }
24149	:
24150fi
24151        
24152        
24153fi
24154 if test "x$HAVE_GLIB" = "xyes"; then
24155  HAVE_GLIB_TRUE=
24156  HAVE_GLIB_FALSE='#'
24157else
24158  HAVE_GLIB_TRUE='#'
24159  HAVE_GLIB_FALSE=
24160fi
24161
24162
24163#
24164# Check for GLIB's gobject 2.0
24165#
24166@%:@ Check whether --enable-gobject was given.
24167if test "${enable_gobject+set}" = set; then
24168  enableval=$enable_gobject; case "${enableval}" in
24169                yes) HAVE_GOBJECT=yes ;;
24170                no)  HAVE_GOBJECT=no ;;
24171                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gobject" >&5
24172$as_echo "$as_me: error: bad value ${enableval} for --enable-gobject" >&2;}
24173   { (exit 1); exit 1; }; } ;;
24174        esac
24175else
24176  HAVE_GOBJECT=yes
24177fi
24178
24179
24180if test "x$HAVE_GOBJECT" = "xyes" ; then
24181        
24182pkg_failed=no
24183{ $as_echo "$as_me:$LINENO: checking for GOBJECT" >&5
24184$as_echo_n "checking for GOBJECT... " >&6; }
24185
24186if test -n "$GOBJECT_CFLAGS"; then
24187    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
24188 elif test -n "$PKG_CONFIG"; then
24189    if test -n "$PKG_CONFIG" && \
24190    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \"") >&5
24191  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
24192  ac_status=$?
24193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194  (exit $ac_status); }; then
24195  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
24196else
24197  pkg_failed=yes
24198fi
24199 else
24200    pkg_failed=untried
24201fi
24202if test -n "$GOBJECT_LIBS"; then
24203    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
24204 elif test -n "$PKG_CONFIG"; then
24205    if test -n "$PKG_CONFIG" && \
24206    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \"") >&5
24207  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
24208  ac_status=$?
24209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210  (exit $ac_status); }; then
24211  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
24212else
24213  pkg_failed=yes
24214fi
24215 else
24216    pkg_failed=untried
24217fi
24218
24219
24220
24221if test $pkg_failed = yes; then
24222        
24223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24224        _pkg_short_errors_supported=yes
24225else
24226        _pkg_short_errors_supported=no
24227fi
24228        if test $_pkg_short_errors_supported = yes; then
24229	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
24230        else 
24231	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
24232        fi
24233	# Put the nasty error message in config.log where it belongs
24234	echo "$GOBJECT_PKG_ERRORS" >&5
24235
24236	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met:
24237
24238$GOBJECT_PKG_ERRORS
24239
24240Consider adjusting the PKG_CONFIG_PATH environment variable if you
24241installed software in a non-standard prefix.
24242
24243Alternatively, you may set the environment variables GOBJECT_CFLAGS
24244and GOBJECT_LIBS to avoid the need to call pkg-config.
24245See the pkg-config man page for more details.
24246" >&5
24247$as_echo "$as_me: error: Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met:
24248
24249$GOBJECT_PKG_ERRORS
24250
24251Consider adjusting the PKG_CONFIG_PATH environment variable if you
24252installed software in a non-standard prefix.
24253
24254Alternatively, you may set the environment variables GOBJECT_CFLAGS
24255and GOBJECT_LIBS to avoid the need to call pkg-config.
24256See the pkg-config man page for more details.
24257" >&2;}
24258   { (exit 1); exit 1; }; }
24259elif test $pkg_failed = untried; then
24260	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24262{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24263is in your PATH or set the PKG_CONFIG environment variable to the full
24264path to pkg-config.
24265
24266Alternatively, you may set the environment variables GOBJECT_CFLAGS
24267and GOBJECT_LIBS to avoid the need to call pkg-config.
24268See the pkg-config man page for more details.
24269
24270To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24271See \`config.log' for more details." >&5
24272$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24273is in your PATH or set the PKG_CONFIG environment variable to the full
24274path to pkg-config.
24275
24276Alternatively, you may set the environment variables GOBJECT_CFLAGS
24277and GOBJECT_LIBS to avoid the need to call pkg-config.
24278See the pkg-config man page for more details.
24279
24280To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24281See \`config.log' for more details." >&2;}
24282   { (exit 1); exit 1; }; }; }
24283else
24284	GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
24285	GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
24286        { $as_echo "$as_me:$LINENO: result: yes" >&5
24287$as_echo "yes" >&6; }
24288	:
24289fi
24290        
24291        
24292fi
24293 if test "x$HAVE_GOBJECT" = "xyes"; then
24294  HAVE_GOBJECT_TRUE=
24295  HAVE_GOBJECT_FALSE='#'
24296else
24297  HAVE_GOBJECT_TRUE='#'
24298  HAVE_GOBJECT_FALSE=
24299fi
24300
24301
24302#
24303# Check for Qt 3
24304#
24305@%:@ Check whether --enable-qt3 was given.
24306if test "${enable_qt3+set}" = set; then
24307  enableval=$enable_qt3; case "${enableval}" in
24308                yes) HAVE_QT3=yes ;;
24309                no)  HAVE_QT3=no ;;
24310                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-qt3" >&5
24311$as_echo "$as_me: error: bad value ${enableval} for --enable-qt3" >&2;}
24312   { (exit 1); exit 1; }; } ;;
24313        esac
24314else
24315  HAVE_QT3=yes
24316fi
24317
24318
24319if test "x$HAVE_QT3" = "xyes" ; then
24320        
24321pkg_failed=no
24322{ $as_echo "$as_me:$LINENO: checking for QT3" >&5
24323$as_echo_n "checking for QT3... " >&6; }
24324
24325if test -n "$QT3_CFLAGS"; then
24326    pkg_cv_QT3_CFLAGS="$QT3_CFLAGS"
24327 elif test -n "$PKG_CONFIG"; then
24328    if test -n "$PKG_CONFIG" && \
24329    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \"") >&5
24330  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
24331  ac_status=$?
24332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333  (exit $ac_status); }; then
24334  pkg_cv_QT3_CFLAGS=`$PKG_CONFIG --cflags " qt-mt >= 3.0.0 " 2>/dev/null`
24335else
24336  pkg_failed=yes
24337fi
24338 else
24339    pkg_failed=untried
24340fi
24341if test -n "$QT3_LIBS"; then
24342    pkg_cv_QT3_LIBS="$QT3_LIBS"
24343 elif test -n "$PKG_CONFIG"; then
24344    if test -n "$PKG_CONFIG" && \
24345    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \"") >&5
24346  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
24347  ac_status=$?
24348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349  (exit $ac_status); }; then
24350  pkg_cv_QT3_LIBS=`$PKG_CONFIG --libs " qt-mt >= 3.0.0 " 2>/dev/null`
24351else
24352  pkg_failed=yes
24353fi
24354 else
24355    pkg_failed=untried
24356fi
24357
24358
24359
24360if test $pkg_failed = yes; then
24361        
24362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24363        _pkg_short_errors_supported=yes
24364else
24365        _pkg_short_errors_supported=no
24366fi
24367        if test $_pkg_short_errors_supported = yes; then
24368	        QT3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " qt-mt >= 3.0.0 " 2>&1`
24369        else 
24370	        QT3_PKG_ERRORS=`$PKG_CONFIG --print-errors " qt-mt >= 3.0.0 " 2>&1`
24371        fi
24372	# Put the nasty error message in config.log where it belongs
24373	echo "$QT3_PKG_ERRORS" >&5
24374
24375	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( qt-mt >= 3.0.0 ) were not met:
24376
24377$QT3_PKG_ERRORS
24378
24379Consider adjusting the PKG_CONFIG_PATH environment variable if you
24380installed software in a non-standard prefix.
24381
24382Alternatively, you may set the environment variables QT3_CFLAGS
24383and QT3_LIBS to avoid the need to call pkg-config.
24384See the pkg-config man page for more details.
24385" >&5
24386$as_echo "$as_me: error: Package requirements ( qt-mt >= 3.0.0 ) were not met:
24387
24388$QT3_PKG_ERRORS
24389
24390Consider adjusting the PKG_CONFIG_PATH environment variable if you
24391installed software in a non-standard prefix.
24392
24393Alternatively, you may set the environment variables QT3_CFLAGS
24394and QT3_LIBS to avoid the need to call pkg-config.
24395See the pkg-config man page for more details.
24396" >&2;}
24397   { (exit 1); exit 1; }; }
24398elif test $pkg_failed = untried; then
24399	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24401{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24402is in your PATH or set the PKG_CONFIG environment variable to the full
24403path to pkg-config.
24404
24405Alternatively, you may set the environment variables QT3_CFLAGS
24406and QT3_LIBS to avoid the need to call pkg-config.
24407See the pkg-config man page for more details.
24408
24409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24410See \`config.log' for more details." >&5
24411$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24412is in your PATH or set the PKG_CONFIG environment variable to the full
24413path to pkg-config.
24414
24415Alternatively, you may set the environment variables QT3_CFLAGS
24416and QT3_LIBS to avoid the need to call pkg-config.
24417See the pkg-config man page for more details.
24418
24419To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24420See \`config.log' for more details." >&2;}
24421   { (exit 1); exit 1; }; }; }
24422else
24423	QT3_CFLAGS=$pkg_cv_QT3_CFLAGS
24424	QT3_LIBS=$pkg_cv_QT3_LIBS
24425        { $as_echo "$as_me:$LINENO: result: yes" >&5
24426$as_echo "yes" >&6; }
24427	:
24428fi
24429        
24430        
24431	    QT3_PREFIX="`$PKG_CONFIG --variable=prefix qt-mt`/bin"
24432        for ac_prog in moc-qt3 moc
24433do
24434  # Extract the first word of "$ac_prog", so it can be a program name with args.
24435set dummy $ac_prog; ac_word=$2
24436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24437$as_echo_n "checking for $ac_word... " >&6; }
24438if test "${ac_cv_path_MOC_QT3+set}" = set; then
24439  $as_echo_n "(cached) " >&6
24440else
24441  case $MOC_QT3 in
24442  [\\/]* | ?:[\\/]*)
24443  ac_cv_path_MOC_QT3="$MOC_QT3" # Let the user override the test with a path.
24444  ;;
24445  *)
24446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24447for as_dir in $QT3_PREFIX
24448do
24449  IFS=$as_save_IFS
24450  test -z "$as_dir" && as_dir=.
24451  for ac_exec_ext in '' $ac_executable_extensions; do
24452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24453    ac_cv_path_MOC_QT3="$as_dir/$ac_word$ac_exec_ext"
24454    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24455    break 2
24456  fi
24457done
24458done
24459IFS=$as_save_IFS
24460
24461  ;;
24462esac
24463fi
24464MOC_QT3=$ac_cv_path_MOC_QT3
24465if test -n "$MOC_QT3"; then
24466  { $as_echo "$as_me:$LINENO: result: $MOC_QT3" >&5
24467$as_echo "$MOC_QT3" >&6; }
24468else
24469  { $as_echo "$as_me:$LINENO: result: no" >&5
24470$as_echo "no" >&6; }
24471fi
24472
24473
24474  test -n "$MOC_QT3" && break
24475done
24476test -n "$MOC_QT3" || MOC_QT3="no"
24477
24478        if test "$MOC_QT3" = no; then
24479            { { $as_echo "$as_me:$LINENO: error: Could not find QT3 moc" >&5
24480$as_echo "$as_me: error: Could not find QT3 moc" >&2;}
24481   { (exit 1); exit 1; }; }
24482        fi
24483        
24484fi
24485 if test "x$HAVE_QT3" = "xyes"; then
24486  HAVE_QT3_TRUE=
24487  HAVE_QT3_FALSE='#'
24488else
24489  HAVE_QT3_TRUE='#'
24490  HAVE_QT3_FALSE=
24491fi
24492
24493
24494#
24495# Check for Qt 4
24496#
24497@%:@ Check whether --enable-qt4 was given.
24498if test "${enable_qt4+set}" = set; then
24499  enableval=$enable_qt4; case "${enableval}" in
24500                yes) HAVE_QT4=yes ;;
24501                no)  HAVE_QT4=no ;;
24502                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-qt4" >&5
24503$as_echo "$as_me: error: bad value ${enableval} for --enable-qt4" >&2;}
24504   { (exit 1); exit 1; }; } ;;
24505        esac
24506else
24507  HAVE_QT4=yes
24508fi
24509
24510
24511if test "x$HAVE_QT4" = "xyes" ; then
24512        
24513pkg_failed=no
24514{ $as_echo "$as_me:$LINENO: checking for QT4" >&5
24515$as_echo_n "checking for QT4... " >&6; }
24516
24517if test -n "$QT4_CFLAGS"; then
24518    pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
24519 elif test -n "$PKG_CONFIG"; then
24520    if test -n "$PKG_CONFIG" && \
24521    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \"") >&5
24522  ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5
24523  ac_status=$?
24524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525  (exit $ac_status); }; then
24526  pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore >= 4.0.0 " 2>/dev/null`
24527else
24528  pkg_failed=yes
24529fi
24530 else
24531    pkg_failed=untried
24532fi
24533if test -n "$QT4_LIBS"; then
24534    pkg_cv_QT4_LIBS="$QT4_LIBS"
24535 elif test -n "$PKG_CONFIG"; then
24536    if test -n "$PKG_CONFIG" && \
24537    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \"") >&5
24538  ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5
24539  ac_status=$?
24540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541  (exit $ac_status); }; then
24542  pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore >= 4.0.0 " 2>/dev/null`
24543else
24544  pkg_failed=yes
24545fi
24546 else
24547    pkg_failed=untried
24548fi
24549
24550
24551
24552if test $pkg_failed = yes; then
24553        
24554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24555        _pkg_short_errors_supported=yes
24556else
24557        _pkg_short_errors_supported=no
24558fi
24559        if test $_pkg_short_errors_supported = yes; then
24560	        QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " QtCore >= 4.0.0 " 2>&1`
24561        else 
24562	        QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors " QtCore >= 4.0.0 " 2>&1`
24563        fi
24564	# Put the nasty error message in config.log where it belongs
24565	echo "$QT4_PKG_ERRORS" >&5
24566
24567	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( QtCore >= 4.0.0 ) were not met:
24568
24569$QT4_PKG_ERRORS
24570
24571Consider adjusting the PKG_CONFIG_PATH environment variable if you
24572installed software in a non-standard prefix.
24573
24574Alternatively, you may set the environment variables QT4_CFLAGS
24575and QT4_LIBS to avoid the need to call pkg-config.
24576See the pkg-config man page for more details.
24577" >&5
24578$as_echo "$as_me: error: Package requirements ( QtCore >= 4.0.0 ) were not met:
24579
24580$QT4_PKG_ERRORS
24581
24582Consider adjusting the PKG_CONFIG_PATH environment variable if you
24583installed software in a non-standard prefix.
24584
24585Alternatively, you may set the environment variables QT4_CFLAGS
24586and QT4_LIBS to avoid the need to call pkg-config.
24587See the pkg-config man page for more details.
24588" >&2;}
24589   { (exit 1); exit 1; }; }
24590elif test $pkg_failed = untried; then
24591	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24593{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24594is in your PATH or set the PKG_CONFIG environment variable to the full
24595path to pkg-config.
24596
24597Alternatively, you may set the environment variables QT4_CFLAGS
24598and QT4_LIBS to avoid the need to call pkg-config.
24599See the pkg-config man page for more details.
24600
24601To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24602See \`config.log' for more details." >&5
24603$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24604is in your PATH or set the PKG_CONFIG environment variable to the full
24605path to pkg-config.
24606
24607Alternatively, you may set the environment variables QT4_CFLAGS
24608and QT4_LIBS to avoid the need to call pkg-config.
24609See the pkg-config man page for more details.
24610
24611To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24612See \`config.log' for more details." >&2;}
24613   { (exit 1); exit 1; }; }; }
24614else
24615	QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
24616	QT4_LIBS=$pkg_cv_QT4_LIBS
24617        { $as_echo "$as_me:$LINENO: result: yes" >&5
24618$as_echo "yes" >&6; }
24619	:
24620fi
24621        
24622        
24623	    QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin"
24624        for ac_prog in moc-qt4 moc
24625do
24626  # Extract the first word of "$ac_prog", so it can be a program name with args.
24627set dummy $ac_prog; ac_word=$2
24628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24629$as_echo_n "checking for $ac_word... " >&6; }
24630if test "${ac_cv_path_MOC_QT4+set}" = set; then
24631  $as_echo_n "(cached) " >&6
24632else
24633  case $MOC_QT4 in
24634  [\\/]* | ?:[\\/]*)
24635  ac_cv_path_MOC_QT4="$MOC_QT4" # Let the user override the test with a path.
24636  ;;
24637  *)
24638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24639for as_dir in $QT4_PREFIX
24640do
24641  IFS=$as_save_IFS
24642  test -z "$as_dir" && as_dir=.
24643  for ac_exec_ext in '' $ac_executable_extensions; do
24644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24645    ac_cv_path_MOC_QT4="$as_dir/$ac_word$ac_exec_ext"
24646    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24647    break 2
24648  fi
24649done
24650done
24651IFS=$as_save_IFS
24652
24653  ;;
24654esac
24655fi
24656MOC_QT4=$ac_cv_path_MOC_QT4
24657if test -n "$MOC_QT4"; then
24658  { $as_echo "$as_me:$LINENO: result: $MOC_QT4" >&5
24659$as_echo "$MOC_QT4" >&6; }
24660else
24661  { $as_echo "$as_me:$LINENO: result: no" >&5
24662$as_echo "no" >&6; }
24663fi
24664
24665
24666  test -n "$MOC_QT4" && break
24667done
24668test -n "$MOC_QT4" || MOC_QT4="no"
24669
24670        if test "$MOC_QT4" = no; then
24671            { { $as_echo "$as_me:$LINENO: error: Could not find QT4 moc" >&5
24672$as_echo "$as_me: error: Could not find QT4 moc" >&2;}
24673   { (exit 1); exit 1; }; }
24674        fi
24675        
24676fi
24677 if test "x$HAVE_QT4" = "xyes"; then
24678  HAVE_QT4_TRUE=
24679  HAVE_QT4_FALSE='#'
24680else
24681  HAVE_QT4_TRUE='#'
24682  HAVE_QT4_FALSE=
24683fi
24684
24685
24686#
24687# Check for GTK+
24688#
24689@%:@ Check whether --enable-gtk was given.
24690if test "${enable_gtk+set}" = set; then
24691  enableval=$enable_gtk; case "${enableval}" in
24692                yes) HAVE_GTK=yes ;;
24693                no)  HAVE_GTK=no ;;
24694                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gtk" >&5
24695$as_echo "$as_me: error: bad value ${enableval} for --enable-gtk" >&2;}
24696   { (exit 1); exit 1; }; } ;;
24697        esac
24698else
24699  HAVE_GTK=yes
24700fi
24701
24702
24703if test "x$HAVE_GTK" = "xyes" ; then
24704        # Check for GTK 2.0
24705        
24706pkg_failed=no
24707{ $as_echo "$as_me:$LINENO: checking for GTK20" >&5
24708$as_echo_n "checking for GTK20... " >&6; }
24709
24710if test -n "$GTK20_CFLAGS"; then
24711    pkg_cv_GTK20_CFLAGS="$GTK20_CFLAGS"
24712 elif test -n "$PKG_CONFIG"; then
24713    if test -n "$PKG_CONFIG" && \
24714    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.4.0 \"") >&5
24715  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.4.0 ") 2>&5
24716  ac_status=$?
24717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718  (exit $ac_status); }; then
24719  pkg_cv_GTK20_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.4.0 " 2>/dev/null`
24720else
24721  pkg_failed=yes
24722fi
24723 else
24724    pkg_failed=untried
24725fi
24726if test -n "$GTK20_LIBS"; then
24727    pkg_cv_GTK20_LIBS="$GTK20_LIBS"
24728 elif test -n "$PKG_CONFIG"; then
24729    if test -n "$PKG_CONFIG" && \
24730    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.4.0 \"") >&5
24731  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.4.0 ") 2>&5
24732  ac_status=$?
24733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734  (exit $ac_status); }; then
24735  pkg_cv_GTK20_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.4.0 " 2>/dev/null`
24736else
24737  pkg_failed=yes
24738fi
24739 else
24740    pkg_failed=untried
24741fi
24742
24743
24744
24745if test $pkg_failed = yes; then
24746        
24747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24748        _pkg_short_errors_supported=yes
24749else
24750        _pkg_short_errors_supported=no
24751fi
24752        if test $_pkg_short_errors_supported = yes; then
24753	        GTK20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " gtk+-2.0 >= 2.4.0 " 2>&1`
24754        else 
24755	        GTK20_PKG_ERRORS=`$PKG_CONFIG --print-errors " gtk+-2.0 >= 2.4.0 " 2>&1`
24756        fi
24757	# Put the nasty error message in config.log where it belongs
24758	echo "$GTK20_PKG_ERRORS" >&5
24759
24760	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 >= 2.4.0 ) were not met:
24761
24762$GTK20_PKG_ERRORS
24763
24764Consider adjusting the PKG_CONFIG_PATH environment variable if you
24765installed software in a non-standard prefix.
24766
24767Alternatively, you may set the environment variables GTK20_CFLAGS
24768and GTK20_LIBS to avoid the need to call pkg-config.
24769See the pkg-config man page for more details.
24770" >&5
24771$as_echo "$as_me: error: Package requirements ( gtk+-2.0 >= 2.4.0 ) were not met:
24772
24773$GTK20_PKG_ERRORS
24774
24775Consider adjusting the PKG_CONFIG_PATH environment variable if you
24776installed software in a non-standard prefix.
24777
24778Alternatively, you may set the environment variables GTK20_CFLAGS
24779and GTK20_LIBS to avoid the need to call pkg-config.
24780See the pkg-config man page for more details.
24781" >&2;}
24782   { (exit 1); exit 1; }; }
24783elif test $pkg_failed = untried; then
24784	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24786{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24787is in your PATH or set the PKG_CONFIG environment variable to the full
24788path to pkg-config.
24789
24790Alternatively, you may set the environment variables GTK20_CFLAGS
24791and GTK20_LIBS to avoid the need to call pkg-config.
24792See the pkg-config man page for more details.
24793
24794To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24795See \`config.log' for more details." >&5
24796$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24797is in your PATH or set the PKG_CONFIG environment variable to the full
24798path to pkg-config.
24799
24800Alternatively, you may set the environment variables GTK20_CFLAGS
24801and GTK20_LIBS to avoid the need to call pkg-config.
24802See the pkg-config man page for more details.
24803
24804To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24805See \`config.log' for more details." >&2;}
24806   { (exit 1); exit 1; }; }; }
24807else
24808	GTK20_CFLAGS=$pkg_cv_GTK20_CFLAGS
24809	GTK20_LIBS=$pkg_cv_GTK20_LIBS
24810        { $as_echo "$as_me:$LINENO: result: yes" >&5
24811$as_echo "yes" >&6; }
24812	:
24813fi
24814        
24815        
24816
24817        # Check for GLADE 2.0
24818        
24819pkg_failed=no
24820{ $as_echo "$as_me:$LINENO: checking for GLADE20" >&5
24821$as_echo_n "checking for GLADE20... " >&6; }
24822
24823if test -n "$GLADE20_CFLAGS"; then
24824    pkg_cv_GLADE20_CFLAGS="$GLADE20_CFLAGS"
24825 elif test -n "$PKG_CONFIG"; then
24826    if test -n "$PKG_CONFIG" && \
24827    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libglade-2.0 >= 2.4.0 \"") >&5
24828  ($PKG_CONFIG --exists --print-errors " libglade-2.0 >= 2.4.0 ") 2>&5
24829  ac_status=$?
24830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831  (exit $ac_status); }; then
24832  pkg_cv_GLADE20_CFLAGS=`$PKG_CONFIG --cflags " libglade-2.0 >= 2.4.0 " 2>/dev/null`
24833else
24834  pkg_failed=yes
24835fi
24836 else
24837    pkg_failed=untried
24838fi
24839if test -n "$GLADE20_LIBS"; then
24840    pkg_cv_GLADE20_LIBS="$GLADE20_LIBS"
24841 elif test -n "$PKG_CONFIG"; then
24842    if test -n "$PKG_CONFIG" && \
24843    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libglade-2.0 >= 2.4.0 \"") >&5
24844  ($PKG_CONFIG --exists --print-errors " libglade-2.0 >= 2.4.0 ") 2>&5
24845  ac_status=$?
24846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847  (exit $ac_status); }; then
24848  pkg_cv_GLADE20_LIBS=`$PKG_CONFIG --libs " libglade-2.0 >= 2.4.0 " 2>/dev/null`
24849else
24850  pkg_failed=yes
24851fi
24852 else
24853    pkg_failed=untried
24854fi
24855
24856
24857
24858if test $pkg_failed = yes; then
24859        
24860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24861        _pkg_short_errors_supported=yes
24862else
24863        _pkg_short_errors_supported=no
24864fi
24865        if test $_pkg_short_errors_supported = yes; then
24866	        GLADE20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " libglade-2.0 >= 2.4.0 " 2>&1`
24867        else 
24868	        GLADE20_PKG_ERRORS=`$PKG_CONFIG --print-errors " libglade-2.0 >= 2.4.0 " 2>&1`
24869        fi
24870	# Put the nasty error message in config.log where it belongs
24871	echo "$GLADE20_PKG_ERRORS" >&5
24872
24873	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( libglade-2.0 >= 2.4.0 ) were not met:
24874
24875$GLADE20_PKG_ERRORS
24876
24877Consider adjusting the PKG_CONFIG_PATH environment variable if you
24878installed software in a non-standard prefix.
24879
24880Alternatively, you may set the environment variables GLADE20_CFLAGS
24881and GLADE20_LIBS to avoid the need to call pkg-config.
24882See the pkg-config man page for more details.
24883" >&5
24884$as_echo "$as_me: error: Package requirements ( libglade-2.0 >= 2.4.0 ) were not met:
24885
24886$GLADE20_PKG_ERRORS
24887
24888Consider adjusting the PKG_CONFIG_PATH environment variable if you
24889installed software in a non-standard prefix.
24890
24891Alternatively, you may set the environment variables GLADE20_CFLAGS
24892and GLADE20_LIBS to avoid the need to call pkg-config.
24893See the pkg-config man page for more details.
24894" >&2;}
24895   { (exit 1); exit 1; }; }
24896elif test $pkg_failed = untried; then
24897	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24899{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24900is in your PATH or set the PKG_CONFIG environment variable to the full
24901path to pkg-config.
24902
24903Alternatively, you may set the environment variables GLADE20_CFLAGS
24904and GLADE20_LIBS to avoid the need to call pkg-config.
24905See the pkg-config man page for more details.
24906
24907To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24908See \`config.log' for more details." >&5
24909$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24910is in your PATH or set the PKG_CONFIG environment variable to the full
24911path to pkg-config.
24912
24913Alternatively, you may set the environment variables GLADE20_CFLAGS
24914and GLADE20_LIBS to avoid the need to call pkg-config.
24915See the pkg-config man page for more details.
24916
24917To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24918See \`config.log' for more details." >&2;}
24919   { (exit 1); exit 1; }; }; }
24920else
24921	GLADE20_CFLAGS=$pkg_cv_GLADE20_CFLAGS
24922	GLADE20_LIBS=$pkg_cv_GLADE20_LIBS
24923        { $as_echo "$as_me:$LINENO: result: yes" >&5
24924$as_echo "yes" >&6; }
24925	:
24926fi
24927        
24928        
24929fi
24930 if test "x$HAVE_GTK" = "xyes"; then
24931  HAVE_GTK_TRUE=
24932  HAVE_GTK_FALSE='#'
24933else
24934  HAVE_GTK_TRUE='#'
24935  HAVE_GTK_FALSE=
24936fi
24937
24938
24939#
24940# D-Bus
24941#
24942@%:@ Check whether --enable-dbus was given.
24943if test "${enable_dbus+set}" = set; then
24944  enableval=$enable_dbus; case "${enableval}" in
24945                yes) HAVE_DBUS=yes ;;
24946                no)  HAVE_DBUS=no ;;
24947                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dbus" >&5
24948$as_echo "$as_me: error: bad value ${enableval} for --enable-dbus" >&2;}
24949   { (exit 1); exit 1; }; } ;;
24950        esac
24951else
24952  HAVE_DBUS=yes
24953fi
24954
24955
24956
24957@%:@ Check whether --with-dbus-sys was given.
24958if test "${with_dbus_sys+set}" = set; then
24959  withval=$with_dbus_sys; 
24960fi
24961
24962
24963@%:@ Check whether --with-dbus-system-socket was given.
24964if test "${with_dbus_system_socket+set}" = set; then
24965  withval=$with_dbus_system_socket; 
24966fi
24967
24968
24969DBUS_VERSION="Disabled"
24970DBUS_SYS_DIR="Disabled"
24971DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="Disabled"
24972if test "x$HAVE_DBUS" = "xyes" ; then
24973    
24974pkg_failed=no
24975{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
24976$as_echo_n "checking for DBUS... " >&6; }
24977
24978if test -n "$DBUS_CFLAGS"; then
24979    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
24980 elif test -n "$PKG_CONFIG"; then
24981    if test -n "$PKG_CONFIG" && \
24982    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \"") >&5
24983  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
24984  ac_status=$?
24985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986  (exit $ac_status); }; then
24987  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags " dbus-1 >= 0.34 " 2>/dev/null`
24988else
24989  pkg_failed=yes
24990fi
24991 else
24992    pkg_failed=untried
24993fi
24994if test -n "$DBUS_LIBS"; then
24995    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
24996 elif test -n "$PKG_CONFIG"; then
24997    if test -n "$PKG_CONFIG" && \
24998    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \"") >&5
24999  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
25000  ac_status=$?
25001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002  (exit $ac_status); }; then
25003  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs " dbus-1 >= 0.34 " 2>/dev/null`
25004else
25005  pkg_failed=yes
25006fi
25007 else
25008    pkg_failed=untried
25009fi
25010
25011
25012
25013if test $pkg_failed = yes; then
25014        
25015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25016        _pkg_short_errors_supported=yes
25017else
25018        _pkg_short_errors_supported=no
25019fi
25020        if test $_pkg_short_errors_supported = yes; then
25021	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " dbus-1 >= 0.34 " 2>&1`
25022        else 
25023	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors " dbus-1 >= 0.34 " 2>&1`
25024        fi
25025	# Put the nasty error message in config.log where it belongs
25026	echo "$DBUS_PKG_ERRORS" >&5
25027
25028	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( dbus-1 >= 0.34 ) were not met:
25029
25030$DBUS_PKG_ERRORS
25031
25032Consider adjusting the PKG_CONFIG_PATH environment variable if you
25033installed software in a non-standard prefix.
25034
25035Alternatively, you may set the environment variables DBUS_CFLAGS
25036and DBUS_LIBS to avoid the need to call pkg-config.
25037See the pkg-config man page for more details.
25038" >&5
25039$as_echo "$as_me: error: Package requirements ( dbus-1 >= 0.34 ) were not met:
25040
25041$DBUS_PKG_ERRORS
25042
25043Consider adjusting the PKG_CONFIG_PATH environment variable if you
25044installed software in a non-standard prefix.
25045
25046Alternatively, you may set the environment variables DBUS_CFLAGS
25047and DBUS_LIBS to avoid the need to call pkg-config.
25048See the pkg-config man page for more details.
25049" >&2;}
25050   { (exit 1); exit 1; }; }
25051elif test $pkg_failed = untried; then
25052	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25054{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
25055is in your PATH or set the PKG_CONFIG environment variable to the full
25056path to pkg-config.
25057
25058Alternatively, you may set the environment variables DBUS_CFLAGS
25059and DBUS_LIBS to avoid the need to call pkg-config.
25060See the pkg-config man page for more details.
25061
25062To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25063See \`config.log' for more details." >&5
25064$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
25065is in your PATH or set the PKG_CONFIG environment variable to the full
25066path to pkg-config.
25067
25068Alternatively, you may set the environment variables DBUS_CFLAGS
25069and DBUS_LIBS to avoid the need to call pkg-config.
25070See the pkg-config man page for more details.
25071
25072To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25073See \`config.log' for more details." >&2;}
25074   { (exit 1); exit 1; }; }; }
25075else
25076	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
25077	DBUS_LIBS=$pkg_cv_DBUS_LIBS
25078        { $as_echo "$as_me:$LINENO: result: yes" >&5
25079$as_echo "yes" >&6; }
25080	:
25081fi
25082
25083    
25084cat >>confdefs.h <<\_ACEOF
25085@%:@define HAVE_DBUS 1
25086_ACEOF
25087
25088
25089    DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
25090    DBUS_VERSION_MAJOR=`echo $DBUS_VERSION | awk -F. '{print $1}'`
25091    DBUS_VERSION_MINOR=`echo $DBUS_VERSION | awk -F. '{print $2}'`
25092    DBUS_VERSION_MICRO=`echo $DBUS_VERSION | awk -F. '{print $3}'`
25093    if test "z$DBUS_VERSION_MAJOR" = "z"; then
25094        DBUS_VERSION_MAJOR="0"
25095    fi
25096    if test "z$DBUS_VERSION_MINOR" = "z"; then
25097        DBUS_VERSION_MINOR="0"
25098    fi
25099    if test "z$DBUS_VERSION_MICRO" = "z"; then
25100        DBUS_VERSION_MICRO="0"
25101    fi
25102
25103    if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
25104        echo "Error: Couldn't determine the version of your D-Bus package."
25105        echo "  This is probably an error in this script, please report it"
25106        echo "  along with the following information:"
25107        echo "      Base D-Buss version ='$DBUS_VERSION'"
25108        echo "      DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
25109        echo "      DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
25110        echo "      DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
25111        exit 1
25112    else
25113        echo "Your D-Bus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
25114        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
25115        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
25116        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
25117    fi
25118
25119    DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
25120    
25121    
25122
25123    if ! test -z "$with_dbus_sys" ; then
25124        DBUS_SYS_DIR="$with_dbus_sys"
25125    else
25126        DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
25127    fi
25128    
25129
25130    if ! test -z "$with_dbus_system_address" ; then
25131        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$with_dbus_system_address"
25132    else
25133        # This is ugly, but D-Bus doesn't export this address for us
25134        # so we have to guess, pretty much all setups i've seen have
25135        # it in /var/lib/dbus or /var/run/dbus, and its defaulted to
25136        # /var/run upstream so we will try guess first then default
25137        # to /var/run/dbus.
25138
25139        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"
25140        TRY_SOCKETS="/var/lib/dbus/system_bus_socket /var/run/dbus/system_bus_socket ${localstatedir}/run/dbus/system_bus_socket ${prefix}/var/run/dbus/system_bus_socket"
25141        for sock in $TRY_SOCKETS; do
25142            if test -S $sock; then
25143                DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$sock"
25144            fi
25145        done
25146    fi
25147    
25148
25149    SAVED_LIBS="$LIBS"
25150    LIBS="$LIBS $DBUS_LIBS"
25151    
25152
25153for ac_func in dbus_connection_close dbus_bus_get_private
25154do
25155as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25156{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25157$as_echo_n "checking for $ac_func... " >&6; }
25158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25159  $as_echo_n "(cached) " >&6
25160else
25161  cat >conftest.$ac_ext <<_ACEOF
25162/* confdefs.h.  */
25163_ACEOF
25164cat confdefs.h >>conftest.$ac_ext
25165cat >>conftest.$ac_ext <<_ACEOF
25166/* end confdefs.h.  */
25167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25169#define $ac_func innocuous_$ac_func
25170
25171/* System header to define __stub macros and hopefully few prototypes,
25172    which can conflict with char $ac_func (); below.
25173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25174    <limits.h> exists even on freestanding compilers.  */
25175
25176#ifdef __STDC__
25177# include <limits.h>
25178#else
25179# include <assert.h>
25180#endif
25181
25182#undef $ac_func
25183
25184/* Override any GCC internal prototype to avoid an error.
25185   Use char because int might match the return type of a GCC
25186   builtin and then its argument prototype would still apply.  */
25187#ifdef __cplusplus
25188extern "C"
25189#endif
25190char $ac_func ();
25191/* The GNU C library defines this for functions which it implements
25192    to always fail with ENOSYS.  Some functions are actually named
25193    something starting with __ and the normal name is an alias.  */
25194#if defined __stub_$ac_func || defined __stub___$ac_func
25195choke me
25196#endif
25197
25198int
25199main ()
25200{
25201return $ac_func ();
25202  ;
25203  return 0;
25204}
25205_ACEOF
25206rm -f conftest.$ac_objext conftest$ac_exeext
25207if { (ac_try="$ac_link"
25208case "(($ac_try" in
25209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210  *) ac_try_echo=$ac_try;;
25211esac
25212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25213$as_echo "$ac_try_echo") >&5
25214  (eval "$ac_link") 2>conftest.er1
25215  ac_status=$?
25216  grep -v '^ *+' conftest.er1 >conftest.err
25217  rm -f conftest.er1
25218  cat conftest.err >&5
25219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220  (exit $ac_status); } && {
25221	 test -z "$ac_c_werror_flag" ||
25222	 test ! -s conftest.err
25223       } && test -s conftest$ac_exeext && {
25224	 test "$cross_compiling" = yes ||
25225	 $as_test_x conftest$ac_exeext
25226       }; then
25227  eval "$as_ac_var=yes"
25228else
25229  $as_echo "$as_me: failed program was:" >&5
25230sed 's/^/| /' conftest.$ac_ext >&5
25231
25232	eval "$as_ac_var=no"
25233fi
25234
25235rm -rf conftest.dSYM
25236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25237      conftest$ac_exeext conftest.$ac_ext
25238fi
25239ac_res=`eval 'as_val=${'$as_ac_var'}
25240		 $as_echo "$as_val"'`
25241	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25242$as_echo "$ac_res" >&6; }
25243as_val=`eval 'as_val=${'$as_ac_var'}
25244		 $as_echo "$as_val"'`
25245   if test "x$as_val" = x""yes; then
25246  cat >>confdefs.h <<_ACEOF
25247@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25248_ACEOF
25249 
25250fi
25251done
25252
25253    LIBS="$SAVED_LIBS"
25254fi
25255 if test "x$HAVE_DBUS" = "xyes"; then
25256  HAVE_DBUS_TRUE=
25257  HAVE_DBUS_FALSE='#'
25258else
25259  HAVE_DBUS_TRUE='#'
25260  HAVE_DBUS_FALSE=
25261fi
25262
25263
25264#
25265# Expat
25266#
25267
25268@%:@ Check whether --with-xml was given.
25269if test "${with_xml+set}" = set; then
25270  withval=$with_xml; 
25271fi
25272
25273use_expat=false
25274use_bsdxml=false
25275
25276# See what we have
25277{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25278$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
25279if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25280  $as_echo_n "(cached) " >&6
25281else
25282  ac_check_lib_save_LIBS=$LIBS
25283LIBS="-lexpat  $LIBS"
25284cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h.  */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h.  */
25290
25291/* Override any GCC internal prototype to avoid an error.
25292   Use char because int might match the return type of a GCC
25293   builtin and then its argument prototype would still apply.  */
25294#ifdef __cplusplus
25295extern "C"
25296#endif
25297char XML_ParserCreate ();
25298int
25299main ()
25300{
25301return XML_ParserCreate ();
25302  ;
25303  return 0;
25304}
25305_ACEOF
25306rm -f conftest.$ac_objext conftest$ac_exeext
25307if { (ac_try="$ac_link"
25308case "(($ac_try" in
25309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310  *) ac_try_echo=$ac_try;;
25311esac
25312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25313$as_echo "$ac_try_echo") >&5
25314  (eval "$ac_link") 2>conftest.er1
25315  ac_status=$?
25316  grep -v '^ *+' conftest.er1 >conftest.err
25317  rm -f conftest.er1
25318  cat conftest.err >&5
25319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320  (exit $ac_status); } && {
25321	 test -z "$ac_c_werror_flag" ||
25322	 test ! -s conftest.err
25323       } && test -s conftest$ac_exeext && {
25324	 test "$cross_compiling" = yes ||
25325	 $as_test_x conftest$ac_exeext
25326       }; then
25327  ac_cv_lib_expat_XML_ParserCreate=yes
25328else
25329  $as_echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332	ac_cv_lib_expat_XML_ParserCreate=no
25333fi
25334
25335rm -rf conftest.dSYM
25336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25337      conftest$ac_exeext conftest.$ac_ext
25338LIBS=$ac_check_lib_save_LIBS
25339fi
25340{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25341$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
25342if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
25343   
25344for ac_header in expat.h
25345do
25346as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25348  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25349$as_echo_n "checking for $ac_header... " >&6; }
25350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25351  $as_echo_n "(cached) " >&6
25352fi
25353ac_res=`eval 'as_val=${'$as_ac_Header'}
25354		 $as_echo "$as_val"'`
25355	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25356$as_echo "$ac_res" >&6; }
25357else
25358  # Is the header compilable?
25359{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25360$as_echo_n "checking $ac_header usability... " >&6; }
25361cat >conftest.$ac_ext <<_ACEOF
25362/* confdefs.h.  */
25363_ACEOF
25364cat confdefs.h >>conftest.$ac_ext
25365cat >>conftest.$ac_ext <<_ACEOF
25366/* end confdefs.h.  */
25367$ac_includes_default
25368@%:@include <$ac_header>
25369_ACEOF
25370rm -f conftest.$ac_objext
25371if { (ac_try="$ac_compile"
25372case "(($ac_try" in
25373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374  *) ac_try_echo=$ac_try;;
25375esac
25376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25377$as_echo "$ac_try_echo") >&5
25378  (eval "$ac_compile") 2>conftest.er1
25379  ac_status=$?
25380  grep -v '^ *+' conftest.er1 >conftest.err
25381  rm -f conftest.er1
25382  cat conftest.err >&5
25383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384  (exit $ac_status); } && {
25385	 test -z "$ac_c_werror_flag" ||
25386	 test ! -s conftest.err
25387       } && test -s conftest.$ac_objext; then
25388  ac_header_compiler=yes
25389else
25390  $as_echo "$as_me: failed program was:" >&5
25391sed 's/^/| /' conftest.$ac_ext >&5
25392
25393	ac_header_compiler=no
25394fi
25395
25396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25398$as_echo "$ac_header_compiler" >&6; }
25399
25400# Is the header present?
25401{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25402$as_echo_n "checking $ac_header presence... " >&6; }
25403cat >conftest.$ac_ext <<_ACEOF
25404/* confdefs.h.  */
25405_ACEOF
25406cat confdefs.h >>conftest.$ac_ext
25407cat >>conftest.$ac_ext <<_ACEOF
25408/* end confdefs.h.  */
25409@%:@include <$ac_header>
25410_ACEOF
25411if { (ac_try="$ac_cpp conftest.$ac_ext"
25412case "(($ac_try" in
25413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414  *) ac_try_echo=$ac_try;;
25415esac
25416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25417$as_echo "$ac_try_echo") >&5
25418  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25419  ac_status=$?
25420  grep -v '^ *+' conftest.er1 >conftest.err
25421  rm -f conftest.er1
25422  cat conftest.err >&5
25423  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424  (exit $ac_status); } >/dev/null && {
25425	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25426	 test ! -s conftest.err
25427       }; then
25428  ac_header_preproc=yes
25429else
25430  $as_echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433  ac_header_preproc=no
25434fi
25435
25436rm -f conftest.err conftest.$ac_ext
25437{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25438$as_echo "$ac_header_preproc" >&6; }
25439
25440# So?  What about this header?
25441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25442  yes:no: )
25443    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25444$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25445    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25446$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25447    ac_header_preproc=yes
25448    ;;
25449  no:yes:* )
25450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25451$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25453$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25455$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25457$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25459$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25460    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25461$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25462    ( cat <<\_ASBOX
25463@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
25464@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
25465@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
25466_ASBOX
25467     ) | sed "s/^/$as_me: WARNING:     /" >&2
25468    ;;
25469esac
25470{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25471$as_echo_n "checking for $ac_header... " >&6; }
25472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25473  $as_echo_n "(cached) " >&6
25474else
25475  eval "$as_ac_Header=\$ac_header_preproc"
25476fi
25477ac_res=`eval 'as_val=${'$as_ac_Header'}
25478		 $as_echo "$as_val"'`
25479	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25480$as_echo "$ac_res" >&6; }
25481
25482fi
25483as_val=`eval 'as_val=${'$as_ac_Header'}
25484		 $as_echo "$as_val"'`
25485   if test "x$as_val" = x""yes; then
25486  cat >>confdefs.h <<_ACEOF
25487@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25488_ACEOF
25489 have_expat=true
25490else
25491  have_expat=false
25492fi
25493
25494done
25495 
25496else
25497  have_expat=false
25498fi
25499
25500{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lbsdxml" >&5
25501$as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; }
25502if test "${ac_cv_lib_bsdxml_XML_ParserCreate+set}" = set; then
25503  $as_echo_n "(cached) " >&6
25504else
25505  ac_check_lib_save_LIBS=$LIBS
25506LIBS="-lbsdxml  $LIBS"
25507cat >conftest.$ac_ext <<_ACEOF
25508/* confdefs.h.  */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h.  */
25513
25514/* Override any GCC internal prototype to avoid an error.
25515   Use char because int might match the return type of a GCC
25516   builtin and then its argument prototype would still apply.  */
25517#ifdef __cplusplus
25518extern "C"
25519#endif
25520char XML_ParserCreate ();
25521int
25522main ()
25523{
25524return XML_ParserCreate ();
25525  ;
25526  return 0;
25527}
25528_ACEOF
25529rm -f conftest.$ac_objext conftest$ac_exeext
25530if { (ac_try="$ac_link"
25531case "(($ac_try" in
25532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533  *) ac_try_echo=$ac_try;;
25534esac
25535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25536$as_echo "$ac_try_echo") >&5
25537  (eval "$ac_link") 2>conftest.er1
25538  ac_status=$?
25539  grep -v '^ *+' conftest.er1 >conftest.err
25540  rm -f conftest.er1
25541  cat conftest.err >&5
25542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543  (exit $ac_status); } && {
25544	 test -z "$ac_c_werror_flag" ||
25545	 test ! -s conftest.err
25546       } && test -s conftest$ac_exeext && {
25547	 test "$cross_compiling" = yes ||
25548	 $as_test_x conftest$ac_exeext
25549       }; then
25550  ac_cv_lib_bsdxml_XML_ParserCreate=yes
25551else
25552  $as_echo "$as_me: failed program was:" >&5
25553sed 's/^/| /' conftest.$ac_ext >&5
25554
25555	ac_cv_lib_bsdxml_XML_ParserCreate=no
25556fi
25557
25558rm -rf conftest.dSYM
25559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25560      conftest$ac_exeext conftest.$ac_ext
25561LIBS=$ac_check_lib_save_LIBS
25562fi
25563{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5
25564$as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; }
25565if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = x""yes; then
25566   
25567for ac_header in bsdxml.h
25568do
25569as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25571  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25572$as_echo_n "checking for $ac_header... " >&6; }
25573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25574  $as_echo_n "(cached) " >&6
25575fi
25576ac_res=`eval 'as_val=${'$as_ac_Header'}
25577		 $as_echo "$as_val"'`
25578	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25579$as_echo "$ac_res" >&6; }
25580else
25581  # Is the header compilable?
25582{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25583$as_echo_n "checking $ac_header usability... " >&6; }
25584cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h.  */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h.  */
25590$ac_includes_default
25591@%:@include <$ac_header>
25592_ACEOF
25593rm -f conftest.$ac_objext
25594if { (ac_try="$ac_compile"
25595case "(($ac_try" in
25596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597  *) ac_try_echo=$ac_try;;
25598esac
25599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600$as_echo "$ac_try_echo") >&5
25601  (eval "$ac_compile") 2>conftest.er1
25602  ac_status=$?
25603  grep -v '^ *+' conftest.er1 >conftest.err
25604  rm -f conftest.er1
25605  cat conftest.err >&5
25606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607  (exit $ac_status); } && {
25608	 test -z "$ac_c_werror_flag" ||
25609	 test ! -s conftest.err
25610       } && test -s conftest.$ac_objext; then
25611  ac_header_compiler=yes
25612else
25613  $as_echo "$as_me: failed program was:" >&5
25614sed 's/^/| /' conftest.$ac_ext >&5
25615
25616	ac_header_compiler=no
25617fi
25618
25619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25621$as_echo "$ac_header_compiler" >&6; }
25622
25623# Is the header present?
25624{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25625$as_echo_n "checking $ac_header presence... " >&6; }
25626cat >conftest.$ac_ext <<_ACEOF
25627/* confdefs.h.  */
25628_ACEOF
25629cat confdefs.h >>conftest.$ac_ext
25630cat >>conftest.$ac_ext <<_ACEOF
25631/* end confdefs.h.  */
25632@%:@include <$ac_header>
25633_ACEOF
25634if { (ac_try="$ac_cpp conftest.$ac_ext"
25635case "(($ac_try" in
25636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637  *) ac_try_echo=$ac_try;;
25638esac
25639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25640$as_echo "$ac_try_echo") >&5
25641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25642  ac_status=$?
25643  grep -v '^ *+' conftest.er1 >conftest.err
25644  rm -f conftest.er1
25645  cat conftest.err >&5
25646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647  (exit $ac_status); } >/dev/null && {
25648	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25649	 test ! -s conftest.err
25650       }; then
25651  ac_header_preproc=yes
25652else
25653  $as_echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656  ac_header_preproc=no
25657fi
25658
25659rm -f conftest.err conftest.$ac_ext
25660{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25661$as_echo "$ac_header_preproc" >&6; }
25662
25663# So?  What about this header?
25664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25665  yes:no: )
25666    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25667$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25668    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25669$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25670    ac_header_preproc=yes
25671    ;;
25672  no:yes:* )
25673    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25674$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25675    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25676$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25677    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25678$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25679    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25680$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25681    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25682$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25683    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25684$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25685    ( cat <<\_ASBOX
25686@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
25687@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
25688@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
25689_ASBOX
25690     ) | sed "s/^/$as_me: WARNING:     /" >&2
25691    ;;
25692esac
25693{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25694$as_echo_n "checking for $ac_header... " >&6; }
25695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25696  $as_echo_n "(cached) " >&6
25697else
25698  eval "$as_ac_Header=\$ac_header_preproc"
25699fi
25700ac_res=`eval 'as_val=${'$as_ac_Header'}
25701		 $as_echo "$as_val"'`
25702	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25703$as_echo "$ac_res" >&6; }
25704
25705fi
25706as_val=`eval 'as_val=${'$as_ac_Header'}
25707		 $as_echo "$as_val"'`
25708   if test "x$as_val" = x""yes; then
25709  cat >>confdefs.h <<_ACEOF
25710@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25711_ACEOF
25712 have_bsdxml=true
25713else
25714  have_bsdxml=false
25715fi
25716
25717done
25718 
25719else
25720  have_bsdxml=false
25721fi
25722
25723
25724if test "x$with_xml" = "xnone"; then
25725        :
25726elif test "x$with_xml" = "xexpat"; then
25727	use_expat=true
25728	if ! $have_expat ; then
25729		{ { $as_echo "$as_me:$LINENO: error: *** libexpat requested, but not found ***" >&5
25730$as_echo "$as_me: error: *** libexpat requested, but not found ***" >&2;}
25731   { (exit 1); exit 1; }; }
25732	fi
25733elif test "x$with_xml" = "xbsdxml"; then
25734	use_bsdxml=true
25735	if ! $have_bsdxml ; then
25736		{ { $as_echo "$as_me:$LINENO: error: *** libbsdxml requested, but not found ***" >&5
25737$as_echo "$as_me: error: *** libbsdxml requested, but not found ***" >&2;}
25738   { (exit 1); exit 1; }; }
25739	fi
25740elif test "x$with_xml" != "x"; then
25741	{ { $as_echo "$as_me:$LINENO: error: *** unknown with-xml option ***" >&5
25742$as_echo "$as_me: error: *** unknown with-xml option ***" >&2;}
25743   { (exit 1); exit 1; }; }
25744else
25745	if $have_expat ; then
25746		use_expat=true
25747	elif $have_bsdxml ; then
25748		use_bsdxml=true
25749	else
25750		{ { $as_echo "$as_me:$LINENO: error: *** neither libexpat not libbsdxml could be found ***" >&5
25751$as_echo "$as_me: error: *** neither libexpat not libbsdxml could be found ***" >&2;}
25752   { (exit 1); exit 1; }; }
25753	fi
25754fi
25755
25756if $use_expat; then
25757	with_xml=expat
25758	XML_CFLAGS=-DUSE_EXPAT_H
25759	XML_LIBS=-lexpat
25760fi
25761if $use_bsdxml; then
25762	with_xml=bsdxml
25763	XML_CFLAGS=-DUSE_BSDXML_H
25764	XML_LIBS=-lbsdxml
25765fi
25766
25767
25768
25769if $use_expat || $use_bsdxml; then
25770	HAVE_XML=yes
25771fi
25772
25773 if test "x$HAVE_XML" = "xyes"; then
25774  HAVE_XML_TRUE=
25775  HAVE_XML_FALSE='#'
25776else
25777  HAVE_XML_TRUE='#'
25778  HAVE_XML_FALSE=
25779fi
25780
25781
25782#
25783# GDBM
25784#
25785#
25786# Check for dbm
25787#
25788@%:@ Check whether --enable-dbm was given.
25789if test "${enable_dbm+set}" = set; then
25790  enableval=$enable_dbm; case "${enableval}" in
25791                yes) HAVE_DBM=yes ;;
25792                no)  HAVE_DBM=no ;;
25793                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dbm" >&5
25794$as_echo "$as_me: error: bad value ${enableval} for --enable-dbm" >&2;}
25795   { (exit 1); exit 1; }; } ;;
25796        esac
25797else
25798  HAVE_DBM=no
25799fi
25800
25801
25802@%:@ Check whether --enable-gdbm was given.
25803if test "${enable_gdbm+set}" = set; then
25804  enableval=$enable_gdbm; case "${enableval}" in
25805                yes) HAVE_GDBM=yes ;;
25806                no)  HAVE_GDBM=no ;;
25807                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gdbm" >&5
25808$as_echo "$as_me: error: bad value ${enableval} for --disable-gdbm" >&2;}
25809   { (exit 1); exit 1; }; } ;;
25810        esac
25811else
25812  HAVE_GDBM=yes
25813fi
25814
25815
25816if test "x$HAVE_GDBM" = "xyes" ; then
25817    if test "x$HAVE_DBM" = "xyes" ; then
25818        { { $as_echo "$as_me:$LINENO: error: *** --enable-gdbm and --enable-dbm both specified ***" >&5
25819$as_echo "$as_me: error: *** --enable-gdbm and --enable-dbm both specified ***" >&2;}
25820   { (exit 1); exit 1; }; }
25821    fi
25822    { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
25823$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
25824if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
25825  $as_echo_n "(cached) " >&6
25826else
25827  ac_check_lib_save_LIBS=$LIBS
25828LIBS="-lgdbm  $LIBS"
25829cat >conftest.$ac_ext <<_ACEOF
25830/* confdefs.h.  */
25831_ACEOF
25832cat confdefs.h >>conftest.$ac_ext
25833cat >>conftest.$ac_ext <<_ACEOF
25834/* end confdefs.h.  */
25835
25836/* Override any GCC internal prototype to avoid an error.
25837   Use char because int might match the return type of a GCC
25838   builtin and then its argument prototype would still apply.  */
25839#ifdef __cplusplus
25840extern "C"
25841#endif
25842char gdbm_open ();
25843int
25844main ()
25845{
25846return gdbm_open ();
25847  ;
25848  return 0;
25849}
25850_ACEOF
25851rm -f conftest.$ac_objext conftest$ac_exeext
25852if { (ac_try="$ac_link"
25853case "(($ac_try" in
25854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855  *) ac_try_echo=$ac_try;;
25856esac
25857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25858$as_echo "$ac_try_echo") >&5
25859  (eval "$ac_link") 2>conftest.er1
25860  ac_status=$?
25861  grep -v '^ *+' conftest.er1 >conftest.err
25862  rm -f conftest.er1
25863  cat conftest.err >&5
25864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865  (exit $ac_status); } && {
25866	 test -z "$ac_c_werror_flag" ||
25867	 test ! -s conftest.err
25868       } && test -s conftest$ac_exeext && {
25869	 test "$cross_compiling" = yes ||
25870	 $as_test_x conftest$ac_exeext
25871       }; then
25872  ac_cv_lib_gdbm_gdbm_open=yes
25873else
25874  $as_echo "$as_me: failed program was:" >&5
25875sed 's/^/| /' conftest.$ac_ext >&5
25876
25877	ac_cv_lib_gdbm_gdbm_open=no
25878fi
25879
25880rm -rf conftest.dSYM
25881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25882      conftest$ac_exeext conftest.$ac_ext
25883LIBS=$ac_check_lib_save_LIBS
25884fi
25885{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
25886$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
25887if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
25888   
25889for ac_header in gdbm.h
25890do
25891as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25893  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25894$as_echo_n "checking for $ac_header... " >&6; }
25895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25896  $as_echo_n "(cached) " >&6
25897fi
25898ac_res=`eval 'as_val=${'$as_ac_Header'}
25899		 $as_echo "$as_val"'`
25900	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25901$as_echo "$ac_res" >&6; }
25902else
25903  # Is the header compilable?
25904{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25905$as_echo_n "checking $ac_header usability... " >&6; }
25906cat >conftest.$ac_ext <<_ACEOF
25907/* confdefs.h.  */
25908_ACEOF
25909cat confdefs.h >>conftest.$ac_ext
25910cat >>conftest.$ac_ext <<_ACEOF
25911/* end confdefs.h.  */
25912$ac_includes_default
25913@%:@include <$ac_header>
25914_ACEOF
25915rm -f conftest.$ac_objext
25916if { (ac_try="$ac_compile"
25917case "(($ac_try" in
25918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919  *) ac_try_echo=$ac_try;;
25920esac
25921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25922$as_echo "$ac_try_echo") >&5
25923  (eval "$ac_compile") 2>conftest.er1
25924  ac_status=$?
25925  grep -v '^ *+' conftest.er1 >conftest.err
25926  rm -f conftest.er1
25927  cat conftest.err >&5
25928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929  (exit $ac_status); } && {
25930	 test -z "$ac_c_werror_flag" ||
25931	 test ! -s conftest.err
25932       } && test -s conftest.$ac_objext; then
25933  ac_header_compiler=yes
25934else
25935  $as_echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938	ac_header_compiler=no
25939fi
25940
25941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25943$as_echo "$ac_header_compiler" >&6; }
25944
25945# Is the header present?
25946{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25947$as_echo_n "checking $ac_header presence... " >&6; }
25948cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h.  */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h.  */
25954@%:@include <$ac_header>
25955_ACEOF
25956if { (ac_try="$ac_cpp conftest.$ac_ext"
25957case "(($ac_try" in
25958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959  *) ac_try_echo=$ac_try;;
25960esac
25961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25962$as_echo "$ac_try_echo") >&5
25963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25964  ac_status=$?
25965  grep -v '^ *+' conftest.er1 >conftest.err
25966  rm -f conftest.er1
25967  cat conftest.err >&5
25968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969  (exit $ac_status); } >/dev/null && {
25970	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25971	 test ! -s conftest.err
25972       }; then
25973  ac_header_preproc=yes
25974else
25975  $as_echo "$as_me: failed program was:" >&5
25976sed 's/^/| /' conftest.$ac_ext >&5
25977
25978  ac_header_preproc=no
25979fi
25980
25981rm -f conftest.err conftest.$ac_ext
25982{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25983$as_echo "$ac_header_preproc" >&6; }
25984
25985# So?  What about this header?
25986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25987  yes:no: )
25988    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25989$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25990    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25991$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25992    ac_header_preproc=yes
25993    ;;
25994  no:yes:* )
25995    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25996$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25997    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25998$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25999    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26000$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26001    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26002$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26003    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26004$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26005    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26006$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26007    ( cat <<\_ASBOX
26008@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
26009@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
26010@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
26011_ASBOX
26012     ) | sed "s/^/$as_me: WARNING:     /" >&2
26013    ;;
26014esac
26015{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26016$as_echo_n "checking for $ac_header... " >&6; }
26017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26018  $as_echo_n "(cached) " >&6
26019else
26020  eval "$as_ac_Header=\$ac_header_preproc"
26021fi
26022ac_res=`eval 'as_val=${'$as_ac_Header'}
26023		 $as_echo "$as_val"'`
26024	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26025$as_echo "$ac_res" >&6; }
26026
26027fi
26028as_val=`eval 'as_val=${'$as_ac_Header'}
26029		 $as_echo "$as_val"'`
26030   if test "x$as_val" = x""yes; then
26031  cat >>confdefs.h <<_ACEOF
26032@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26033_ACEOF
26034 have_gdbm=true
26035else
26036  have_gdbm=false
26037fi
26038
26039done
26040 
26041else
26042  have_gdbm=false
26043fi
26044
26045
26046    if ! $have_gdbm ; then
26047        { { $as_echo "$as_me:$LINENO: error: *** libgdbm not found ***" >&5
26048$as_echo "$as_me: error: *** libgdbm not found ***" >&2;}
26049   { (exit 1); exit 1; }; }
26050    fi
26051    
26052cat >>confdefs.h <<\_ACEOF
26053@%:@define HAVE_GDBM /**/
26054_ACEOF
26055
26056else
26057    if test "x$HAVE_DBM" = "xyes" ; then
26058        
26059for ac_header in ndbm.h
26060do
26061as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26063  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26064$as_echo_n "checking for $ac_header... " >&6; }
26065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26066  $as_echo_n "(cached) " >&6
26067fi
26068ac_res=`eval 'as_val=${'$as_ac_Header'}
26069		 $as_echo "$as_val"'`
26070	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26071$as_echo "$ac_res" >&6; }
26072else
26073  # Is the header compilable?
26074{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26075$as_echo_n "checking $ac_header usability... " >&6; }
26076cat >conftest.$ac_ext <<_ACEOF
26077/* confdefs.h.  */
26078_ACEOF
26079cat confdefs.h >>conftest.$ac_ext
26080cat >>conftest.$ac_ext <<_ACEOF
26081/* end confdefs.h.  */
26082$ac_includes_default
26083@%:@include <$ac_header>
26084_ACEOF
26085rm -f conftest.$ac_objext
26086if { (ac_try="$ac_compile"
26087case "(($ac_try" in
26088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089  *) ac_try_echo=$ac_try;;
26090esac
26091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26092$as_echo "$ac_try_echo") >&5
26093  (eval "$ac_compile") 2>conftest.er1
26094  ac_status=$?
26095  grep -v '^ *+' conftest.er1 >conftest.err
26096  rm -f conftest.er1
26097  cat conftest.err >&5
26098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099  (exit $ac_status); } && {
26100	 test -z "$ac_c_werror_flag" ||
26101	 test ! -s conftest.err
26102       } && test -s conftest.$ac_objext; then
26103  ac_header_compiler=yes
26104else
26105  $as_echo "$as_me: failed program was:" >&5
26106sed 's/^/| /' conftest.$ac_ext >&5
26107
26108	ac_header_compiler=no
26109fi
26110
26111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26113$as_echo "$ac_header_compiler" >&6; }
26114
26115# Is the header present?
26116{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26117$as_echo_n "checking $ac_header presence... " >&6; }
26118cat >conftest.$ac_ext <<_ACEOF
26119/* confdefs.h.  */
26120_ACEOF
26121cat confdefs.h >>conftest.$ac_ext
26122cat >>conftest.$ac_ext <<_ACEOF
26123/* end confdefs.h.  */
26124@%:@include <$ac_header>
26125_ACEOF
26126if { (ac_try="$ac_cpp conftest.$ac_ext"
26127case "(($ac_try" in
26128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129  *) ac_try_echo=$ac_try;;
26130esac
26131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26132$as_echo "$ac_try_echo") >&5
26133  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26134  ac_status=$?
26135  grep -v '^ *+' conftest.er1 >conftest.err
26136  rm -f conftest.er1
26137  cat conftest.err >&5
26138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139  (exit $ac_status); } >/dev/null && {
26140	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26141	 test ! -s conftest.err
26142       }; then
26143  ac_header_preproc=yes
26144else
26145  $as_echo "$as_me: failed program was:" >&5
26146sed 's/^/| /' conftest.$ac_ext >&5
26147
26148  ac_header_preproc=no
26149fi
26150
26151rm -f conftest.err conftest.$ac_ext
26152{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26153$as_echo "$ac_header_preproc" >&6; }
26154
26155# So?  What about this header?
26156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26157  yes:no: )
26158    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26159$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26160    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26161$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26162    ac_header_preproc=yes
26163    ;;
26164  no:yes:* )
26165    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26166$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26167    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26168$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26169    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26170$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26171    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26172$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26173    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26174$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26175    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26176$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26177    ( cat <<\_ASBOX
26178@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
26179@%:@@%:@ Report this to avahi (at) lists (dot) freedesktop (dot) org @%:@@%:@
26180@%:@@%:@ ----------------------------------------------------------- @%:@@%:@
26181_ASBOX
26182     ) | sed "s/^/$as_me: WARNING:     /" >&2
26183    ;;
26184esac
26185{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26186$as_echo_n "checking for $ac_header... " >&6; }
26187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26188  $as_echo_n "(cached) " >&6
26189else
26190  eval "$as_ac_Header=\$ac_header_preproc"
26191fi
26192ac_res=`eval 'as_val=${'$as_ac_Header'}
26193		 $as_echo "$as_val"'`
26194	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26195$as_echo "$ac_res" >&6; }
26196
26197fi
26198as_val=`eval 'as_val=${'$as_ac_Header'}
26199		 $as_echo "$as_val"'`
26200   if test "x$as_val" = x""yes; then
26201  cat >>confdefs.h <<_ACEOF
26202@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26203_ACEOF
26204 have_dbm=true
26205else
26206  have_dbm=false
26207fi
26208
26209done
26210
26211
26212        if ! $have_dbm ; then
26213            { { $as_echo "$as_me:$LINENO: error: *** dbm not found ***" >&5
26214$as_echo "$as_me: error: *** dbm not found ***" >&2;}
26215   { (exit 1); exit 1; }; }
26216        fi
26217        
26218cat >>confdefs.h <<\_ACEOF
26219@%:@define HAVE_DBM /**/
26220_ACEOF
26221
26222    fi
26223fi
26224 if test "x$HAVE_GDBM" = "xyes"; then
26225  HAVE_GDBM_TRUE=
26226  HAVE_GDBM_FALSE='#'
26227else
26228  HAVE_GDBM_TRUE='#'
26229  HAVE_GDBM_FALSE=
26230fi
26231
26232 if test "x$HAVE_DBM" = "xyes"; then
26233  HAVE_DBM_TRUE=
26234  HAVE_DBM_FALSE='#'
26235else
26236  HAVE_DBM_TRUE='#'
26237  HAVE_DBM_FALSE=
26238fi
26239
26240
26241#
26242# libdaemon
26243#
26244@%:@ Check whether --enable-libdaemon was given.
26245if test "${enable_libdaemon+set}" = set; then
26246  enableval=$enable_libdaemon; case "${enableval}" in
26247                yes) HAVE_LIBDAEMON=yes ;;
26248                no)  HAVE_LIBDAEMON=no ;;
26249                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libdaemon" >&5
26250$as_echo "$as_me: error: bad value ${enableval} for --enable-libdaemon" >&2;}
26251   { (exit 1); exit 1; }; } ;;
26252        esac
26253else
26254  HAVE_LIBDAEMON=yes
26255fi
26256
26257
26258if test "x$HAVE_LIBDAEMON" = "xyes" ; then
26259    
26260pkg_failed=no
26261{ $as_echo "$as_me:$LINENO: checking for LIBDAEMON" >&5
26262$as_echo_n "checking for LIBDAEMON... " >&6; }
26263
26264if test -n "$LIBDAEMON_CFLAGS"; then
26265    pkg_cv_LIBDAEMON_CFLAGS="$LIBDAEMON_CFLAGS"
26266 elif test -n "$PKG_CONFIG"; then
26267    if test -n "$PKG_CONFIG" && \
26268    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.11 \"") >&5
26269  ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.11 ") 2>&5
26270  ac_status=$?
26271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272  (exit $ac_status); }; then
26273  pkg_cv_LIBDAEMON_CFLAGS=`$PKG_CONFIG --cflags " libdaemon >= 0.11 " 2>/dev/null`
26274else
26275  pkg_failed=yes
26276fi
26277 else
26278    pkg_failed=untried
26279fi
26280if test -n "$LIBDAEMON_LIBS"; then
26281    pkg_cv_LIBDAEMON_LIBS="$LIBDAEMON_LIBS"
26282 elif test -n "$PKG_CONFIG"; then
26283    if test -n "$PKG_CONFIG" && \
26284    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.11 \"") >&5
26285  ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.11 ") 2>&5
26286  ac_status=$?
26287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288  (exit $ac_status); }; then
26289  pkg_cv_LIBDAEMON_LIBS=`$PKG_CONFIG --libs " libdaemon >= 0.11 " 2>/dev/null`
26290else
26291  pkg_failed=yes
26292fi
26293 else
26294    pkg_failed=untried
26295fi
26296
26297
26298
26299if test $pkg_failed = yes; then
26300        
26301if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26302        _pkg_short_errors_supported=yes
26303else
26304        _pkg_short_errors_supported=no
26305fi
26306        if test $_pkg_short_errors_supported = yes; then
26307	        LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " libdaemon >= 0.11 " 2>&1`
26308        else 
26309	        LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors " libdaemon >= 0.11 " 2>&1`
26310        fi
26311	# Put the nasty error message in config.log where it belongs
26312	echo "$LIBDAEMON_PKG_ERRORS" >&5
26313
26314	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( libdaemon >= 0.11 ) were not met:
26315
26316$LIBDAEMON_PKG_ERRORS
26317
26318Consider adjusting the PKG_CONFIG_PATH environment variable if you
26319installed software in a non-standard prefix.
26320
26321Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
26322and LIBDAEMON_LIBS to avoid the need to call pkg-config.
26323See the pkg-config man page for more details.
26324" >&5
26325$as_echo "$as_me: error: Package requirements ( libdaemon >= 0.11 ) were not met:
26326
26327$LIBDAEMON_PKG_ERRORS
26328
26329Consider adjusting the PKG_CONFIG_PATH environment variable if you
26330installed software in a non-standard prefix.
26331
26332Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
26333and LIBDAEMON_LIBS to avoid the need to call pkg-config.
26334See the pkg-config man page for more details.
26335" >&2;}
26336   { (exit 1); exit 1; }; }
26337elif test $pkg_failed = untried; then
26338	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26340{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
26341is in your PATH or set the PKG_CONFIG environment variable to the full
26342path to pkg-config.
26343
26344Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
26345and LIBDAEMON_LIBS to avoid the need to call pkg-config.
26346See the pkg-config man page for more details.
26347
26348To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26349See \`config.log' for more details." >&5
26350$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
26351is in your PATH or set the PKG_CONFIG environment variable to the full
26352path to pkg-config.
26353
26354Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
26355and LIBDAEMON_LIBS to avoid the need to call pkg-config.
26356See the pkg-config man page for more details.
26357
26358To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26359See \`config.log' for more details." >&2;}
26360   { (exit 1); exit 1; }; }; }
26361else
26362	LIBDAEMON_CFLAGS=$pkg_cv_LIBDAEMON_CFLAGS
26363	LIBDAEMON_LIBS=$pkg_cv_LIBDAEMON_LIBS
26364        { $as_echo "$as_me:$LINENO: result: yes" >&5
26365$as_echo "yes" >&6; }
26366	:
26367fi
26368    
26369    
26370fi
26371 if test "x$HAVE_LIBDAEMON" = "xyes"; then
26372  HAVE_LIBDAEMON_TRUE=
26373  HAVE_LIBDAEMON_FALSE='#'
26374else
26375  HAVE_LIBDAEMON_TRUE='#'
26376  HAVE_LIBDAEMON_FALSE=
26377fi
26378
26379
26380#
26381# Python stuff
26382#
26383@%:@ Check whether --enable-python was given.
26384if test "${enable_python+set}" = set; then
26385  enableval=$enable_python; case "${enableval}" in
26386          yes) HAVE_PYTHON=yes ;;
26387          no)  HAVE_PYTHON=no ;;
26388          *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-python" >&5
26389$as_echo "$as_me: error: bad value ${enableval} for --enable-python" >&2;}
26390   { (exit 1); exit 1; }; } ;;
26391    esac
26392else
26393  HAVE_PYTHON=yes
26394fi
26395
26396
26397HAVE_PYTHON_DBUS=no
26398HAVE_PYGTK=no
26399
26400if test "x$HAVE_PYTHON" = "xyes" ; then
26401    
26402          
26403
26404  
26405        if test -n "$PYTHON"; then
26406      # If the user set $PYTHON, use it and don't search something else.
26407      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.4" >&5
26408$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
26409      prog="import sys, string
26410# split strings by '.' and convert to numeric.  Append some zeros
26411# because we need at least 4 digits for the hex conversion.
26412minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
26413minverhex = 0
26414for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
26415sys.exit(sys.hexversion < minverhex)"
26416  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
26417   ($PYTHON -c "$prog") >&5 2>&5
26418   ac_status=$?
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); }; then
26421  { $as_echo "$as_me:$LINENO: result: yes" >&5
26422$as_echo "yes" >&6; }
26423else
26424  { { $as_echo "$as_me:$LINENO: error: too old" >&5
26425$as_echo "$as_me: error: too old" >&2;}
26426   { (exit 1); exit 1; }; }
26427fi
26428
26429      am_display_PYTHON=$PYTHON
26430    else
26431      # Otherwise, try each interpreter until we find one that satisfies
26432      # VERSION.
26433      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.4" >&5
26434$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
26435if test "${am_cv_pathless_PYTHON+set}" = set; then
26436  $as_echo_n "(cached) " >&6
26437else
26438  
26439	for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
26440	  test "$am_cv_pathless_PYTHON" = none && break
26441	  prog="import sys, string
26442# split strings by '.' and convert to numeric.  Append some zeros
26443# because we need at least 4 digits for the hex conversion.
26444minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
26445minverhex = 0
26446for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
26447sys.exit(sys.hexversion < minverhex)"
26448  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
26449   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; then
26453  break
26454fi
26455
26456	done
26457fi
26458{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
26459$as_echo "$am_cv_pathless_PYTHON" >&6; }
26460      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
26461      if test "$am_cv_pathless_PYTHON" = none; then
26462	PYTHON=:
26463      else
26464        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
26465set dummy $am_cv_pathless_PYTHON; ac_word=$2
26466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26467$as_echo_n "checking for $ac_word... " >&6; }
26468if test "${ac_cv_path_PYTHON+set}" = set; then
26469  $as_echo_n "(cached) " >&6
26470else
26471  case $PYTHON in
26472  [\\/]* | ?:[\\/]*)
26473  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
26474  ;;
26475  *)
26476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26477for as_dir in $PATH
26478do
26479  IFS=$as_save_IFS
26480  test -z "$as_dir" && as_dir=.
26481  for ac_exec_ext in '' $ac_executable_extensions; do
26482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26483    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
26484    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26485    break 2
26486  fi
26487done
26488done
26489IFS=$as_save_IFS
26490
26491  ;;
26492esac
26493fi
26494PYTHON=$ac_cv_path_PYTHON
26495if test -n "$PYTHON"; then
26496  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
26497$as_echo "$PYTHON" >&6; }
26498else
26499  { $as_echo "$as_me:$LINENO: result: no" >&5
26500$as_echo "no" >&6; }
26501fi
26502
26503
26504      fi
26505      am_display_PYTHON=$am_cv_pathless_PYTHON
26506    fi
26507  
26508
26509  if test "$PYTHON" = :; then
26510      { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
26511$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
26512   { (exit 1); exit 1; }; }
26513  else
26514
26515      
26516  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
26517$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
26518if test "${am_cv_python_version+set}" = set; then
26519  $as_echo_n "(cached) " >&6
26520else
26521  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
26522fi
26523{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
26524$as_echo "$am_cv_python_version" >&6; }
26525  PYTHON_VERSION=$am_cv_python_version
26526
26527
26528        
26529  PYTHON_PREFIX='${prefix}'
26530
26531  PYTHON_EXEC_PREFIX='${exec_prefix}'
26532
26533
26534    
26535  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
26536$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
26537if test "${am_cv_python_platform+set}" = set; then
26538  $as_echo_n "(cached) " >&6
26539else
26540  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
26541fi
26542{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
26543$as_echo "$am_cv_python_platform" >&6; }
26544  PYTHON_PLATFORM=$am_cv_python_platform
26545
26546
26547
26548  
26549                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
26550$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
26551if test "${am_cv_python_pythondir+set}" = set; then
26552  $as_echo_n "(cached) " >&6
26553else
26554  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
26555     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
26556fi
26557{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
26558$as_echo "$am_cv_python_pythondir" >&6; }
26559  pythondir=$am_cv_python_pythondir
26560
26561
26562      
26563  pkgpythondir=\${pythondir}/$PACKAGE
26564
26565
26566            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
26567$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
26568if test "${am_cv_python_pyexecdir+set}" = set; then
26569  $as_echo_n "(cached) " >&6
26570else
26571  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
26572     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
26573fi
26574{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
26575$as_echo "$am_cv_python_pyexecdir" >&6; }
26576  pyexecdir=$am_cv_python_pyexecdir
26577
26578
26579  
26580  pkgpyexecdir=\${pyexecdir}/$PACKAGE
26581
26582
26583    
26584  fi
26585
26586
26587
26588    @%:@ Check whether --enable-pygtk was given.
26589if test "${enable_pygtk+set}" = set; then
26590  enableval=$enable_pygtk; case "${enableval}" in
26591                yes) HAVE_PYGTK=yes ;;
26592                no)  HAVE_PYGTK=no ;;
26593                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pygtk" >&5
26594$as_echo "$as_me: error: bad value ${enableval} for --enable-pygtk" >&2;}
26595   { (exit 1); exit 1; }; } ;;
26596        esac
26597else
26598  HAVE_PYGTK=yes
26599fi
26600
26601
26602    if test "x$HAVE_PYGTK" = "xyes" ; then
26603        
26604py_mod_var=`echo gtk'_' | sed 'y%./+-%__p_%'`
26605{ $as_echo "$as_me:$LINENO: checking for python module gtk" >&5
26606$as_echo_n "checking for python module gtk... " >&6; }
26607if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
26608  $as_echo_n "(cached) " >&6
26609else
26610  
26611prog="
26612import sys
26613try:
26614        import gtk
26615except ImportError:
26616        sys.exit(1)
26617except:
26618        sys.exit(0)
26619sys.exit(0)"
26620if $PYTHON -c "$prog" 1>&5 2>&5
26621  then
26622    eval "py_cv_mod_$py_mod_var=yes"
26623  else
26624    eval "py_cv_mod_$py_mod_var=no"
26625  fi
26626
26627fi
26628
26629py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
26630if test "x$py_val" != xno; then
26631  { $as_echo "$as_me:$LINENO: result: yes" >&5
26632$as_echo "yes" >&6; }
26633  else
26634  { $as_echo "$as_me:$LINENO: result: no" >&5
26635$as_echo "no" >&6; }
26636  { { $as_echo "$as_me:$LINENO: error: Could not find Python module gtk" >&5
26637$as_echo "$as_me: error: Could not find Python module gtk" >&2;}
26638   { (exit 1); exit 1; }; }
26639fi
26640
26641    fi
26642
26643
26644    if test "x$HAVE_DBUS" = "xyes" ; then
26645        @%:@ Check whether --enable-python-dbus was given.
26646if test "${enable_python_dbus+set}" = set; then
26647  enableval=$enable_python_dbus; case "${enableval}" in
26648                   yes) HAVE_PYTHON_DBUS=yes ;;
26649                   no)  HAVE_PYTHON_DBUS=no ;;
26650                   *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-python-dbus" >&5
26651$as_echo "$as_me: error: bad value ${enableval} for --enable-python-dbus" >&2;}
26652   { (exit 1); exit 1; }; } ;;
26653            esac
26654else
26655  HAVE_PYTHON_DBUS=yes
26656fi
26657
26658
26659        if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
26660            
26661py_mod_var=`echo dbus'_' | sed 'y%./+-%__p_%'`
26662{ $as_echo "$as_me:$LINENO: checking for python module dbus" >&5
26663$as_echo_n "checking for python module dbus... " >&6; }
26664if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
26665  $as_echo_n "(cached) " >&6
26666else
26667  
26668prog="
26669import sys
26670try:
26671        import dbus
26672except ImportError:
26673        sys.exit(1)
26674except:
26675        sys.exit(0)
26676sys.exit(0)"
26677if $PYTHON -c "$prog" 1>&5 2>&5
26678  then
26679    eval "py_cv_mod_$py_mod_var=yes"
26680  else
26681    eval "py_cv_mod_$py_mod_var=no"
26682  fi
26683
26684fi
26685
26686py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
26687if test "x$py_val" != xno; then
26688  { $as_echo "$as_me:$LINENO: result: yes" >&5
26689$as_echo "yes" >&6; }
26690  else
26691  { $as_echo "$as_me:$LINENO: result: no" >&5
26692$as_echo "no" >&6; }
26693  { { $as_echo "$as_me:$LINENO: error: Could not find Python module dbus" >&5
26694$as_echo "$as_me: error: Could not find Python module dbus" >&2;}
26695   { (exit 1); exit 1; }; }
26696fi
26697
26698        fi
26699
26700        
26701py_mod_var=`echo socket'_' | sed 'y%./+-%__p_%'`
26702{ $as_echo "$as_me:$LINENO: checking for python module socket" >&5
26703$as_echo_n "checking for python module socket... " >&6; }
26704if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
26705  $as_echo_n "(cached) " >&6
26706else
26707  
26708prog="
26709import sys
26710try:
26711        import socket
26712except ImportError:
26713        sys.exit(1)
26714except:
26715        sys.exit(0)
26716sys.exit(0)"
26717if $PYTHON -c "$prog" 1>&5 2>&5
26718  then
26719    eval "py_cv_mod_$py_mod_var=yes"
26720  else
26721    eval "py_cv_mod_$py_mod_var=no"
26722  fi
26723
26724fi
26725
26726py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
26727if test "x$py_val" != xno; then
26728  { $as_echo "$as_me:$LINENO: result: yes" >&5
26729$as_echo "yes" >&6; }
26730  else
26731  { $as_echo "$as_me:$LINENO: result: no" >&5
26732$as_echo "no" >&6; }
26733  { { $as_echo "$as_me:$LINENO: error: Could not find Python module socket" >&5
26734$as_echo "$as_me: error: Could not find Python module socket" >&2;}
26735   { (exit 1); exit 1; }; }
26736fi
26737
26738        if test "x$HAVE_GDBM" = "xyes"; then
26739            
26740py_mod_var=`echo gdbm'_' | sed 'y%./+-%__p_%'`
26741{ $as_echo "$as_me:$LINENO: checking for python module gdbm" >&5
26742$as_echo_n "checking for python module gdbm... " >&6; }
26743if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
26744  $as_echo_n "(cached) " >&6
26745else
26746  
26747prog="
26748import sys
26749try:
26750        import gdbm
26751except ImportError:
26752        sys.exit(1)
26753except:
26754        sys.exit(0)
26755sys.exit(0)"
26756if $PYTHON -c "$prog" 1>&5 2>&5
26757  then
26758    eval "py_cv_mod_$py_mod_var=yes"
26759  else
26760    eval "py_cv_mod_$py_mod_var=no"
26761  fi
26762
26763fi
26764
26765py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
26766if test "x$py_val" != xno; then
26767  { $as_echo "$as_me:$LINENO: result: yes" >&5
26768$as_echo "yes" >&6; }
26769  else
26770  { $as_echo "$as_me:$LINENO: result: no" >&5
26771$as_echo "no" >&6; }
26772  { { $as_echo "$as_me:$LINENO: error: Could not find Python module gdbm" >&5
26773$as_echo "$as_me: error: Could not find Python module gdbm" >&2;}
26774   { (exit 1); exit 1; }; }
26775fi
26776
26777        fi
26778        if test "x$HAVE_DBM" = "xyes"; then
26779            
26780py_mod_var=`echo dbm'_' | sed 'y%./+-%__p_%'`
26781{ $as_echo "$as_me:$LINENO: checking for python module dbm" >&5
26782$as_echo_n "checking for python module dbm... " >&6; }
26783if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
26784  $as_echo_n "(cached) " >&6
26785else
26786  
26787prog="
26788import sys
26789try:
26790        import dbm
26791except ImportError:
26792        sys.exit(1)
26793except:
26794        sys.exit(0)
26795sys.exit(0)"
26796if $PYTHON -c "$prog" 1>&5 2>&5
26797  then
26798    eval "py_cv_mod_$py_mod_var=yes"
26799  else
26800    eval "py_cv_mod_$py_mod_var=no"
26801  fi
26802
26803fi
26804
26805py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
26806if test "x$py_val" != xno; then
26807  { $as_echo "$as_me:$LINENO: result: yes" >&5
26808$as_echo "yes" >&6; }
26809  else
26810  { $as_echo "$as_me:$LINENO: result: no" >&5
26811$as_echo "no" >&6; }
26812  { { $as_echo "$as_me:$LINENO: error: Could not find Python module dbm" >&5
26813$as_echo "$as_me: error: Could not find Python module dbm" >&2;}
26814   { (exit 1); exit 1; }; }
26815fi
26816
26817        fi
26818    fi
26819fi
26820 if test "x$HAVE_PYTHON" = "xyes" ; then
26821  HAVE_PYTHON_TRUE=
26822  HAVE_PYTHON_FALSE='#'
26823else
26824  HAVE_PYTHON_TRUE='#'
26825  HAVE_PYTHON_FALSE=
26826fi
26827
26828 if test "x$HAVE_PYGTK" = "xyes"; then
26829  HAVE_PYGTK_TRUE=
26830  HAVE_PYGTK_FALSE='#'
26831else
26832  HAVE_PYGTK_TRUE='#'
26833  HAVE_PYGTK_FALSE=
26834fi
26835
26836 if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
26837  HAVE_PYTHON_DBUS_TRUE=
26838  HAVE_PYTHON_DBUS_FALSE='#'
26839else
26840  HAVE_PYTHON_DBUS_TRUE='#'
26841  HAVE_PYTHON_DBUS_FALSE=
26842fi
26843
26844
26845#
26846# Check for mono stuff
26847#
26848HAVE_MONO=no
26849if test "x$HAVE_DBUS" = "xyes" ; then
26850    @%:@ Check whether --enable-mono was given.
26851if test "${enable_mono+set}" = set; then
26852  enableval=$enable_mono; case "${enableval}" in
26853                    yes) HAVE_MONO=yes ;;
26854                    no)  HAVE_MONO=no ;;
26855                    *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-mono" >&5
26856$as_echo "$as_me: error: bad value ${enableval} for --enable-mono" >&2;}
26857   { (exit 1); exit 1; }; } ;;
26858            esac
26859else
26860  HAVE_MONO=yes
26861fi
26862
26863
26864    if test "x$HAVE_MONO" = "xyes" ; then
26865        # Extract the first word of "mcs", so it can be a program name with args.
26866set dummy mcs; ac_word=$2
26867{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26868$as_echo_n "checking for $ac_word... " >&6; }
26869if test "${ac_cv_path_MCS+set}" = set; then
26870  $as_echo_n "(cached) " >&6
26871else
26872  case $MCS in
26873  [\\/]* | ?:[\\/]*)
26874  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26875  ;;
26876  *)
26877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26878for as_dir in $PATH
26879do
26880  IFS=$as_save_IFS
26881  test -z "$as_dir" && as_dir=.
26882  for ac_exec_ext in '' $ac_executable_extensions; do
26883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26884    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26885    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26886    break 2
26887  fi
26888done
26889done
26890IFS=$as_save_IFS
26891
26892  ;;
26893esac
26894fi
26895MCS=$ac_cv_path_MCS
26896if test -n "$MCS"; then
26897  { $as_echo "$as_me:$LINENO: result: $MCS" >&5
26898$as_echo "$MCS" >&6; }
26899else
26900  { $as_echo "$as_me:$LINENO: result: no" >&5
26901$as_echo "no" >&6; }
26902fi
26903
26904
26905        if test "x$MCS" = "x" ; then
26906            { { $as_echo "$as_me:$LINENO: error: Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" >&5
26907$as_echo "$as_me: error: Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" >&2;}
26908   { (exit 1); exit 1; }; }
26909        fi
26910
26911        # Extract the first word of "gacutil", so it can be a program name with args.
26912set dummy gacutil; ac_word=$2
26913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26914$as_echo_n "checking for $ac_word... " >&6; }
26915if test "${ac_cv_path_GACUTIL+set}" = set; then
26916  $as_echo_n "(cached) " >&6
26917else
26918  case $GACUTIL in
26919  [\\/]* | ?:[\\/]*)
26920  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
26921  ;;
26922  *)
26923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26924for as_dir in $PATH
26925do
26926  IFS=$as_save_IFS
26927  test -z "$as_dir" && as_dir=.
26928  for ac_exec_ext in '' $ac_executable_extensions; do
26929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26930    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
26931    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26932    break 2
26933  fi
26934done
26935done
26936IFS=$as_save_IFS
26937
26938  ;;
26939esac
26940fi
26941GACUTIL=$ac_cv_path_GACUTIL
26942if test -n "$GACUTIL"; then
26943  { $as_echo "$as_me:$LINENO: result: $GACUTIL" >&5
26944$as_echo "$GACUTIL" >&6; }
26945else
26946  { $as_echo "$as_me:$LINENO: result: no" >&5
26947$as_echo "no" >&6; }
26948fi
26949
26950
26951        if test "x$GACUTIL" = "x" ; then
26952            { { $as_echo "$as_me:$LINENO: error: Can not find \"gacutil\" in your PATH" >&5
26953$as_echo "$as_me: error: Can not find \"gacutil\" in your PATH" >&2;}
26954   { (exit 1); exit 1; }; }
26955        fi
26956
26957        
26958        
26959    fi
26960fi
26961 if test "x$HAVE_MONO" = "xyes"; then
26962  HAVE_MONO_TRUE=
26963  HAVE_MONO_FALSE='#'
26964else
26965  HAVE_MONO_TRUE='#'
26966  HAVE_MONO_FALSE=
26967fi
26968
26969
26970#
26971# Check for monodoc stuff
26972#
26973HAVE_MONODOC=no
26974@%:@ Check whether --enable-monodoc was given.
26975if test "${enable_monodoc+set}" = set; then
26976  enableval=$enable_monodoc; case "${enableval}" in
26977                yes) HAVE_MONODOC=yes ;;
26978                no)  HAVE_MONODOC=no ;;
26979                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-monodoc" >&5
26980$as_echo "$as_me: error: bad value ${enableval} for --enable-monodoc" >&2;}
26981   { (exit 1); exit 1; }; } ;;
26982        esac
26983else
26984  HAVE_MONODOC=yes
26985fi
26986
26987
26988if test "x$HAVE_MONO" = "xyes" && test "x$HAVE_MONODOC" = "xyes" ; then
26989        
26990pkg_failed=no
26991{ $as_echo "$as_me:$LINENO: checking for MONODOC" >&5
26992$as_echo_n "checking for MONODOC... " >&6; }
26993
26994if test -n "$MONODOC_CFLAGS"; then
26995    pkg_cv_MONODOC_CFLAGS="$MONODOC_CFLAGS"
26996 elif test -n "$PKG_CONFIG"; then
26997    if test -n "$PKG_CONFIG" && \
26998    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\"") >&5
26999  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
27000  ac_status=$?
27001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002  (exit $ac_status); }; then
27003  pkg_cv_MONODOC_CFLAGS=`$PKG_CONFIG --cflags "monodoc >= 1.1.8" 2>/dev/null`
27004else
27005  pkg_failed=yes
27006fi
27007 else
27008    pkg_failed=untried
27009fi
27010if test -n "$MONODOC_LIBS"; then
27011    pkg_cv_MONODOC_LIBS="$MONODOC_LIBS"
27012 elif test -n "$PKG_CONFIG"; then
27013    if test -n "$PKG_CONFIG" && \
27014    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\"") >&5
27015  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
27016  ac_status=$?
27017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018  (exit $ac_status); }; then
27019  pkg_cv_MONODOC_LIBS=`$PKG_CONFIG --libs "monodoc >= 1.1.8" 2>/dev/null`
27020else
27021  pkg_failed=yes
27022fi
27023 else
27024    pkg_failed=untried
27025fi
27026
27027
27028
27029if test $pkg_failed = yes; then
27030        
27031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27032        _pkg_short_errors_supported=yes
27033else
27034        _pkg_short_errors_supported=no
27035fi
27036        if test $_pkg_short_errors_supported = yes; then
27037	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "monodoc >= 1.1.8" 2>&1`
27038        else 
27039	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --print-errors "monodoc >= 1.1.8" 2>&1`
27040        fi
27041	# Put the nasty error message in config.log where it belongs
27042	echo "$MONODOC_PKG_ERRORS" >&5
27043
27044	{ { $as_echo "$as_me:$LINENO: error: Package requirements (monodoc >= 1.1.8) were not met:
27045
27046$MONODOC_PKG_ERRORS
27047
27048Consider adjusting the PKG_CONFIG_PATH environment variable if you
27049installed software in a non-standard prefix.
27050
27051Alternatively, you may set the environment variables MONODOC_CFLAGS
27052and MONODOC_LIBS to avoid the need to call pkg-config.
27053See the pkg-config man page for more details.
27054" >&5
27055$as_echo "$as_me: error: Package requirements (monodoc >= 1.1.8) were not met:
27056
27057$MONODOC_PKG_ERRORS
27058
27059Consider adjusting the PKG_CONFIG_PATH environment variable if you
27060installed software in a non-standard prefix.
27061
27062Alternatively, you may set the environment variables MONODOC_CFLAGS
27063and MONODOC_LIBS to avoid the need to call pkg-config.
27064See the pkg-config man page for more details.
27065" >&2;}
27066   { (exit 1); exit 1; }; }
27067elif test $pkg_failed = untried; then
27068	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27070{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27071is in your PATH or set the PKG_CONFIG environment variable to the full
27072path to pkg-config.
27073
27074Alternatively, you may set the environment variables MONODOC_CFLAGS
27075and MONODOC_LIBS to avoid the need to call pkg-config.
27076See the pkg-config man page for more details.
27077
27078To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27079See \`config.log' for more details." >&5
27080$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27081is in your PATH or set the PKG_CONFIG environment variable to the full
27082path to pkg-config.
27083
27084Alternatively, you may set the environment variables MONODOC_CFLAGS
27085and MONODOC_LIBS to avoid the need to call pkg-config.
27086See the pkg-config man page for more details.
27087
27088To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27089See \`config.log' for more details." >&2;}
27090   { (exit 1); exit 1; }; }; }
27091else
27092	MONODOC_CFLAGS=$pkg_cv_MONODOC_CFLAGS
27093	MONODOC_LIBS=$pkg_cv_MONODOC_LIBS
27094        { $as_echo "$as_me:$LINENO: result: yes" >&5
27095$as_echo "yes" >&6; }
27096	:
27097fi
27098        MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc`
27099
27100        # Extract the first word of "monodocer", so it can be a program name with args.
27101set dummy monodocer; ac_word=$2
27102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27103$as_echo_n "checking for $ac_word... " >&6; }
27104if test "${ac_cv_path_MONODOCER+set}" = set; then
27105  $as_echo_n "(cached) " >&6
27106else
27107  case $MONODOCER in
27108  [\\/]* | ?:[\\/]*)
27109  ac_cv_path_MONODOCER="$MONODOCER" # Let the user override the test with a path.
27110  ;;
27111  *)
27112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27113for as_dir in $PATH
27114do
27115  IFS=$as_save_IFS
27116  test -z "$as_dir" && as_dir=.
27117  for ac_exec_ext in '' $ac_executable_extensions; do
27118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27119    ac_cv_path_MONODOCER="$as_dir/$ac_word$ac_exec_ext"
27120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27121    break 2
27122  fi
27123done
27124done
27125IFS=$as_save_IFS
27126
27127  ;;
27128esac
27129fi
27130MONODOCER=$ac_cv_path_MONODOCER
27131if test -n "$MONODOCER"; then
27132  { $as_echo "$as_me:$LINENO: result: $MONODOCER" >&5
27133$as_echo "$MONODOCER" >&6; }
27134else
27135  { $as_echo "$as_me:$LINENO: result: no" >&5
27136$as_echo "no" >&6; }
27137fi
27138
27139
27140        # Extract the first word of "mdassembler", so it can be a program name with args.
27141set dummy mdassembler; ac_word=$2
27142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27143$as_echo_n "checking for $ac_word... " >&6; }
27144if test "${ac_cv_path_MDASSEMBLER+set}" = set; then
27145  $as_echo_n "(cached) " >&6
27146else
27147  case $MDASSEMBLER in
27148  [\\/]* | ?:[\\/]*)
27149  ac_cv_path_MDASSEMBLER="$MDASSEMBLER" # Let the user override the test with a path.
27150  ;;
27151  *)
27152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27153for as_dir in $PATH
27154do
27155  IFS=$as_save_IFS
27156  test -z "$as_dir" && as_dir=.
27157  for ac_exec_ext in '' $ac_executable_extensions; do
27158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27159    ac_cv_path_MDASSEMBLER="$as_dir/$ac_word$ac_exec_ext"
27160    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27161    break 2
27162  fi
27163done
27164done
27165IFS=$as_save_IFS
27166
27167  ;;
27168esac
27169fi
27170MDASSEMBLER=$ac_cv_path_MDASSEMBLER
27171if test -n "$MDASSEMBLER"; then
27172  { $as_echo "$as_me:$LINENO: result: $MDASSEMBLER" >&5
27173$as_echo "$MDASSEMBLER" >&6; }
27174else
27175  { $as_echo "$as_me:$LINENO: result: no" >&5
27176$as_echo "no" >&6; }
27177fi
27178
27179
27180
27181        
27182        
27183        
27184fi
27185 if test "x$HAVE_MONODOC" = "xyes"; then
27186  HAVE_MONODOC_TRUE=
27187  HAVE_MONODOC_FALSE='#'
27188else
27189  HAVE_MONODOC_TRUE='#'
27190  HAVE_MONODOC_FALSE=
27191fi
27192
27193
27194#
27195# Build autoipd?
27196#
27197@%:@ Check whether --enable-autoipd was given.
27198if test "${enable_autoipd+set}" = set; then
27199  enableval=$enable_autoipd; case "${enableval}" in
27200                yes) ENABLE_AUTOIPD=yes ;;
27201                no)  ENABLE_AUTOIPD=no ;;
27202                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-autoipd" >&5
27203$as_echo "$as_me: error: bad value ${enableval} for --disable-autoipd" >&2;}
27204   { (exit 1); exit 1; }; } ;;
27205        esac
27206else
27207  ENABLE_AUTOIPD=yes
27208fi
27209
27210
27211 if test "x$ENABLE_AUTOIPD" = "xyes"; then
27212  ENABLE_AUTOIPD_TRUE=
27213  ENABLE_AUTOIPD_FALSE='#'
27214else
27215  ENABLE_AUTOIPD_TRUE='#'
27216  ENABLE_AUTOIPD_FALSE=
27217fi
27218
27219
27220#
27221# Defining users and groups
27222#
27223
27224@%:@ Check whether --with-avahi_user was given.
27225if test "${with_avahi_user+set}" = set; then
27226  withval=$with_avahi_user; 
27227fi
27228
27229if test -z "$with_avahi_user" ; then
27230    AVAHI_USER=avahi
27231else
27232    AVAHI_USER=$with_avahi_user
27233fi
27234
27235
27236cat >>confdefs.h <<_ACEOF
27237@%:@define AVAHI_USER "$AVAHI_USER"
27238_ACEOF
27239
27240
27241
27242@%:@ Check whether --with-avahi_group was given.
27243if test "${with_avahi_group+set}" = set; then
27244  withval=$with_avahi_group; 
27245fi
27246
27247if test -z "$with_avahi_group" ; then
27248    AVAHI_GROUP=avahi
27249else
27250    AVAHI_GROUP=$with_avahi_group
27251fi
27252
27253
27254cat >>confdefs.h <<_ACEOF
27255@%:@define AVAHI_GROUP "$AVAHI_GROUP"
27256_ACEOF
27257
27258
27259
27260@%:@ Check whether --with-avahi_priv_access_group was given.
27261if test "${with_avahi_priv_access_group+set}" = set; then
27262  withval=$with_avahi_priv_access_group; 
27263fi
27264
27265if test -z "$with_avahi_priv_access_group" ; then
27266    AVAHI_PRIV_ACCESS_GROUP=netdev
27267else
27268    AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group
27269fi
27270
27271
27272cat >>confdefs.h <<_ACEOF
27273@%:@define AVAHI_PRIV_ACCESS_GROUP "$AVAHI_PRIV_ACCESS_GROUP"
27274_ACEOF
27275
27276
27277
27278@%:@ Check whether --with-autoipd_user was given.
27279if test "${with_autoipd_user+set}" = set; then
27280  withval=$with_autoipd_user; 
27281fi
27282
27283if test -z "$with_autoipd_user" ; then
27284    AVAHI_AUTOIPD_USER=avahi-autoipd
27285else
27286    AVAHI_AUTOIPD_USER=$with_autoipd_user
27287fi
27288
27289
27290cat >>confdefs.h <<_ACEOF
27291@%:@define AVAHI_AUTOIPD_USER "$AVAHI_AUTOIPD_USER"
27292_ACEOF
27293
27294
27295
27296@%:@ Check whether --with-autoipd_group was given.
27297if test "${with_autoipd_group+set}" = set; then
27298  withval=$with_autoipd_group; 
27299fi
27300
27301if test -z "$with_autoipd_group" ; then
27302    AVAHI_AUTOIPD_GROUP=avahi-autoipd
27303else
27304    AVAHI_AUTOIPD_GROUP=$with_autoipd_group
27305fi
27306
27307
27308cat >>confdefs.h <<_ACEOF
27309@%:@define AVAHI_AUTOIPD_GROUP "$AVAHI_AUTOIPD_GROUP"
27310_ACEOF
27311
27312
27313#
27314# Avahi runtime dir
27315#
27316avahi_runtime_dir="${localstatedir}/run"
27317avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket"
27318
27319
27320
27321#
27322# Avahi interfaces dir
27323#
27324if test "x$HAVE_PYTHON_DBUS" = "xyes" -o "x$HAVE_GTK" = "xyes"; then
27325	interfacesdir="${datadir}/${PACKAGE}/interfaces/"
27326	
27327fi
27328
27329#
27330# Doxygen
27331#
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342# Files:
27343DX_PROJECT=avahi
27344
27345DX_CONFIG=doxygen.cfg
27346
27347DX_DOCDIR=doxygen
27348
27349
27350# Environment variables used inside doxygen.cfg:
27351DX_ENV="$DX_ENV SRCDIR='$srcdir'"
27352
27353DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
27354
27355DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
27356
27357DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
27358
27359
27360# Doxygen itself:
27361
27362    
27363    
27364    @%:@ Check whether --enable-doxygen-doc was given.
27365if test "${enable_doxygen_doc+set}" = set; then
27366  enableval=$enable_doxygen_doc; 
27367case "$enableval" in
27368#(
27369y|Y|yes|Yes|YES)
27370    DX_FLAG_doc=1
27371
27372    
27373;; #(
27374n|N|no|No|NO)
27375    DX_FLAG_doc=0
27376
27377;; #(
27378*)
27379    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
27380$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
27381   { (exit 1); exit 1; }; }
27382;;
27383esac
27384
27385else
27386  
27387DX_FLAG_doc=1
27388
27389
27390
27391fi
27392
27393if test "$DX_FLAG_doc" = 1; then
27394    
27395if test -n "$ac_tool_prefix"; then
27396  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
27397set dummy ${ac_tool_prefix}doxygen; ac_word=$2
27398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27399$as_echo_n "checking for $ac_word... " >&6; }
27400if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
27401  $as_echo_n "(cached) " >&6
27402else
27403  case $DX_DOXYGEN in
27404  [\\/]* | ?:[\\/]*)
27405  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
27406  ;;
27407  *)
27408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27409for as_dir in $PATH
27410do
27411  IFS=$as_save_IFS
27412  test -z "$as_dir" && as_dir=.
27413  for ac_exec_ext in '' $ac_executable_extensions; do
27414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27415    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27416    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27417    break 2
27418  fi
27419done
27420done
27421IFS=$as_save_IFS
27422
27423  ;;
27424esac
27425fi
27426DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
27427if test -n "$DX_DOXYGEN"; then
27428  { $as_echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
27429$as_echo "$DX_DOXYGEN" >&6; }
27430else
27431  { $as_echo "$as_me:$LINENO: result: no" >&5
27432$as_echo "no" >&6; }
27433fi
27434
27435
27436fi
27437if test -z "$ac_cv_path_DX_DOXYGEN"; then
27438  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
27439  # Extract the first word of "doxygen", so it can be a program name with args.
27440set dummy doxygen; ac_word=$2
27441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27442$as_echo_n "checking for $ac_word... " >&6; }
27443if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
27444  $as_echo_n "(cached) " >&6
27445else
27446  case $ac_pt_DX_DOXYGEN in
27447  [\\/]* | ?:[\\/]*)
27448  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
27449  ;;
27450  *)
27451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27452for as_dir in $PATH
27453do
27454  IFS=$as_save_IFS
27455  test -z "$as_dir" && as_dir=.
27456  for ac_exec_ext in '' $ac_executable_extensions; do
27457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27458    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27459    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27460    break 2
27461  fi
27462done
27463done
27464IFS=$as_save_IFS
27465
27466  ;;
27467esac
27468fi
27469ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
27470if test -n "$ac_pt_DX_DOXYGEN"; then
27471  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
27472$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
27473else
27474  { $as_echo "$as_me:$LINENO: result: no" >&5
27475$as_echo "no" >&6; }
27476fi
27477
27478  if test "x$ac_pt_DX_DOXYGEN" = x; then
27479    DX_DOXYGEN=""
27480  else
27481    case $cross_compiling:$ac_tool_warned in
27482yes:)
27483{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27485ac_tool_warned=yes ;;
27486esac
27487    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
27488  fi
27489else
27490  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
27491fi
27492
27493if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
27494    { $as_echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
27495$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
27496    DX_FLAG_doc=0
27497
27498fi
27499
27500             
27501if test -n "$ac_tool_prefix"; then
27502  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
27503set dummy ${ac_tool_prefix}perl; ac_word=$2
27504{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27505$as_echo_n "checking for $ac_word... " >&6; }
27506if test "${ac_cv_path_DX_PERL+set}" = set; then
27507  $as_echo_n "(cached) " >&6
27508else
27509  case $DX_PERL in
27510  [\\/]* | ?:[\\/]*)
27511  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
27512  ;;
27513  *)
27514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27515for as_dir in $PATH
27516do
27517  IFS=$as_save_IFS
27518  test -z "$as_dir" && as_dir=.
27519  for ac_exec_ext in '' $ac_executable_extensions; do
27520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27521    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
27522    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27523    break 2
27524  fi
27525done
27526done
27527IFS=$as_save_IFS
27528
27529  ;;
27530esac
27531fi
27532DX_PERL=$ac_cv_path_DX_PERL
27533if test -n "$DX_PERL"; then
27534  { $as_echo "$as_me:$LINENO: result: $DX_PERL" >&5
27535$as_echo "$DX_PERL" >&6; }
27536else
27537  { $as_echo "$as_me:$LINENO: result: no" >&5
27538$as_echo "no" >&6; }
27539fi
27540
27541
27542fi
27543if test -z "$ac_cv_path_DX_PERL"; then
27544  ac_pt_DX_PERL=$DX_PERL
27545  # Extract the first word of "perl", so it can be a program name with args.
27546set dummy perl; ac_word=$2
27547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27548$as_echo_n "checking for $ac_word... " >&6; }
27549if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
27550  $as_echo_n "(cached) " >&6
27551else
27552  case $ac_pt_DX_PERL in
27553  [\\/]* | ?:[\\/]*)
27554  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
27555  ;;
27556  *)
27557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27558for as_dir in $PATH
27559do
27560  IFS=$as_save_IFS
27561  test -z "$as_dir" && as_dir=.
27562  for ac_exec_ext in '' $ac_executable_extensions; do
27563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27564    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
27565    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27566    break 2
27567  fi
27568done
27569done
27570IFS=$as_save_IFS
27571
27572  ;;
27573esac
27574fi
27575ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
27576if test -n "$ac_pt_DX_PERL"; then
27577  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
27578$as_echo "$ac_pt_DX_PERL" >&6; }
27579else
27580  { $as_echo "$as_me:$LINENO: result: no" >&5
27581$as_echo "no" >&6; }
27582fi
27583
27584  if test "x$ac_pt_DX_PERL" = x; then
27585    DX_PERL=""
27586  else
27587    case $cross_compiling:$ac_tool_warned in
27588yes:)
27589{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27591ac_tool_warned=yes ;;
27592esac
27593    DX_PERL=$ac_pt_DX_PERL
27594  fi
27595else
27596  DX_PERL="$ac_cv_path_DX_PERL"
27597fi
27598
27599if test "$DX_FLAG_doc$DX_PERL" = 1; then
27600    { $as_echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
27601$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
27602    DX_FLAG_doc=0
27603
27604fi
27605
27606    :
27607fi
27608if test "$DX_FLAG_doc" = 1; then
27609     if :; then
27610  DX_COND_doc_TRUE=
27611  DX_COND_doc_FALSE='#'
27612else
27613  DX_COND_doc_TRUE='#'
27614  DX_COND_doc_FALSE=
27615fi
27616
27617    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
27618
27619    :
27620else
27621     if false; then
27622  DX_COND_doc_TRUE=
27623  DX_COND_doc_FALSE='#'
27624else
27625  DX_COND_doc_TRUE='#'
27626  DX_COND_doc_FALSE=
27627fi
27628
27629    
27630    :
27631fi
27632
27633
27634# Dot for graphics:
27635
27636    
27637    
27638    @%:@ Check whether --enable-doxygen-dot was given.
27639if test "${enable_doxygen_dot+set}" = set; then
27640  enableval=$enable_doxygen_dot; 
27641case "$enableval" in
27642#(
27643y|Y|yes|Yes|YES)
27644    DX_FLAG_dot=1
27645
27646    
27647test "$DX_FLAG_doc" = "1" \
27648|| { { $as_echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
27649$as_echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
27650   { (exit 1); exit 1; }; }
27651
27652;; #(
27653n|N|no|No|NO)
27654    DX_FLAG_dot=0
27655
27656;; #(
27657*)
27658    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
27659$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
27660   { (exit 1); exit 1; }; }
27661;;
27662esac
27663
27664else
27665  
27666DX_FLAG_dot=1
27667
27668
27669test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
27670
27671
27672
27673fi
27674
27675if test "$DX_FLAG_dot" = 1; then
27676    
27677if test -n "$ac_tool_prefix"; then
27678  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
27679set dummy ${ac_tool_prefix}dot; ac_word=$2
27680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27681$as_echo_n "checking for $ac_word... " >&6; }
27682if test "${ac_cv_path_DX_DOT+set}" = set; then
27683  $as_echo_n "(cached) " >&6
27684else
27685  case $DX_DOT in
27686  [\\/]* | ?:[\\/]*)
27687  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
27688  ;;
27689  *)
27690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27691for as_dir in $PATH
27692do
27693  IFS=$as_save_IFS
27694  test -z "$as_dir" && as_dir=.
27695  for ac_exec_ext in '' $ac_executable_extensions; do
27696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27697    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
27698    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27699    break 2
27700  fi
27701done
27702done
27703IFS=$as_save_IFS
27704
27705  ;;
27706esac
27707fi
27708DX_DOT=$ac_cv_path_DX_DOT
27709if test -n "$DX_DOT"; then
27710  { $as_echo "$as_me:$LINENO: result: $DX_DOT" >&5
27711$as_echo "$DX_DOT" >&6; }
27712else
27713  { $as_echo "$as_me:$LINENO: result: no" >&5
27714$as_echo "no" >&6; }
27715fi
27716
27717
27718fi
27719if test -z "$ac_cv_path_DX_DOT"; then
27720  ac_pt_DX_DOT=$DX_DOT
27721  # Extract the first word of "dot", so it can be a program name with args.
27722set dummy dot; ac_word=$2
27723{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27724$as_echo_n "checking for $ac_word... " >&6; }
27725if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
27726  $as_echo_n "(cached) " >&6
27727else
27728  case $ac_pt_DX_DOT in
27729  [\\/]* | ?:[\\/]*)
27730  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
27731  ;;
27732  *)
27733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27734for as_dir in $PATH
27735do
27736  IFS=$as_save_IFS
27737  test -z "$as_dir" && as_dir=.
27738  for ac_exec_ext in '' $ac_executable_extensions; do
27739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27740    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
27741    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27742    break 2
27743  fi
27744done
27745done
27746IFS=$as_save_IFS
27747
27748  ;;
27749esac
27750fi
27751ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
27752if test -n "$ac_pt_DX_DOT"; then
27753  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
27754$as_echo "$ac_pt_DX_DOT" >&6; }
27755else
27756  { $as_echo "$as_me:$LINENO: result: no" >&5
27757$as_echo "no" >&6; }
27758fi
27759
27760  if test "x$ac_pt_DX_DOT" = x; then
27761    DX_DOT=""
27762  else
27763    case $cross_compiling:$ac_tool_warned in
27764yes:)
27765{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27767ac_tool_warned=yes ;;
27768esac
27769    DX_DOT=$ac_pt_DX_DOT
27770  fi
27771else
27772  DX_DOT="$ac_cv_path_DX_DOT"
27773fi
27774
27775if test "$DX_FLAG_dot$DX_DOT" = 1; then
27776    { $as_echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
27777$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
27778    DX_FLAG_dot=0
27779
27780fi
27781
27782    :
27783fi
27784if test "$DX_FLAG_dot" = 1; then
27785     if :; then
27786  DX_COND_dot_TRUE=
27787  DX_COND_dot_FALSE='#'
27788else
27789  DX_COND_dot_TRUE='#'
27790  DX_COND_dot_FALSE=
27791fi
27792
27793    DX_ENV="$DX_ENV HAVE_DOT='YES'"
27794
27795             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
27796
27797    :
27798else
27799     if false; then
27800  DX_COND_dot_TRUE=
27801  DX_COND_dot_FALSE='#'
27802else
27803  DX_COND_dot_TRUE='#'
27804  DX_COND_dot_FALSE=
27805fi
27806
27807    DX_ENV="$DX_ENV HAVE_DOT='NO'"
27808
27809    :
27810fi
27811
27812
27813# Man pages generation:
27814
27815    
27816    
27817    @%:@ Check whether --enable-doxygen-man was given.
27818if test "${enable_doxygen_man+set}" = set; then
27819  enableval=$enable_doxygen_man; 
27820case "$enableval" in
27821#(
27822y|Y|yes|Yes|YES)
27823    DX_FLAG_man=1
27824
27825    
27826test "$DX_FLAG_doc" = "1" \
27827|| { { $as_echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
27828$as_echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
27829   { (exit 1); exit 1; }; }
27830
27831;; #(
27832n|N|no|No|NO)
27833    DX_FLAG_man=0
27834
27835;; #(
27836*)
27837    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
27838$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
27839   { (exit 1); exit 1; }; }
27840;;
27841esac
27842
27843else
27844  
27845DX_FLAG_man=0
27846
27847
27848test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
27849
27850
27851
27852fi
27853
27854if test "$DX_FLAG_man" = 1; then
27855    
27856    :
27857fi
27858if test "$DX_FLAG_man" = 1; then
27859     if :; then
27860  DX_COND_man_TRUE=
27861  DX_COND_man_FALSE='#'
27862else
27863  DX_COND_man_TRUE='#'
27864  DX_COND_man_FALSE=
27865fi
27866
27867    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
27868
27869    :
27870else
27871     if false; then
27872  DX_COND_man_TRUE=
27873  DX_COND_man_FALSE='#'
27874else
27875  DX_COND_man_TRUE='#'
27876  DX_COND_man_FALSE=
27877fi
27878
27879    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
27880
27881    :
27882fi
27883
27884
27885# RTF file generation:
27886
27887    
27888    
27889    @%:@ Check whether --enable-doxygen-rtf was given.
27890if test "${enable_doxygen_rtf+set}" = set; then
27891  enableval=$enable_doxygen_rtf; 
27892case "$enableval" in
27893#(
27894y|Y|yes|Yes|YES)
27895    DX_FLAG_rtf=1
27896
27897    
27898test "$DX_FLAG_doc" = "1" \
27899|| { { $as_echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
27900$as_echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
27901   { (exit 1); exit 1; }; }
27902
27903;; #(
27904n|N|no|No|NO)
27905    DX_FLAG_rtf=0
27906
27907;; #(
27908*)
27909    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
27910$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
27911   { (exit 1); exit 1; }; }
27912;;
27913esac
27914
27915else
27916  
27917DX_FLAG_rtf=0
27918
27919
27920test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
27921
27922
27923
27924fi
27925
27926if test "$DX_FLAG_rtf" = 1; then
27927    
27928    :
27929fi
27930if test "$DX_FLAG_rtf" = 1; then
27931     if :; then
27932  DX_COND_rtf_TRUE=
27933  DX_COND_rtf_FALSE='#'
27934else
27935  DX_COND_rtf_TRUE='#'
27936  DX_COND_rtf_FALSE=
27937fi
27938
27939    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
27940
27941    :
27942else
27943     if false; then
27944  DX_COND_rtf_TRUE=
27945  DX_COND_rtf_FALSE='#'
27946else
27947  DX_COND_rtf_TRUE='#'
27948  DX_COND_rtf_FALSE=
27949fi
27950
27951    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
27952
27953    :
27954fi
27955
27956
27957# XML file generation:
27958
27959    
27960    
27961    @%:@ Check whether --enable-doxygen-xml was given.
27962if test "${enable_doxygen_xml+set}" = set; then
27963  enableval=$enable_doxygen_xml; 
27964case "$enableval" in
27965#(
27966y|Y|yes|Yes|YES)
27967    DX_FLAG_xml=1
27968
27969    
27970test "$DX_FLAG_doc" = "1" \
27971|| { { $as_echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
27972$as_echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
27973   { (exit 1); exit 1; }; }
27974
27975;; #(
27976n|N|no|No|NO)
27977    DX_FLAG_xml=0
27978
27979;; #(
27980*)
27981    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
27982$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
27983   { (exit 1); exit 1; }; }
27984;;
27985esac
27986
27987else
27988  
27989DX_FLAG_xml=1
27990
27991
27992test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
27993
27994
27995
27996fi
27997
27998if test "$DX_FLAG_xml" = 1; then
27999    
28000    :
28001fi
28002if test "$DX_FLAG_xml" = 1; then
28003     if :; then
28004  DX_COND_xml_TRUE=
28005  DX_COND_xml_FALSE='#'
28006else
28007  DX_COND_xml_TRUE='#'
28008  DX_COND_xml_FALSE=
28009fi
28010
28011    DX_ENV="$DX_ENV GENERATE_XML='YES'"
28012
28013    :
28014else
28015     if false; then
28016  DX_COND_xml_TRUE=
28017  DX_COND_xml_FALSE='#'
28018else
28019  DX_COND_xml_TRUE='#'
28020  DX_COND_xml_FALSE=
28021fi
28022
28023    DX_ENV="$DX_ENV GENERATE_XML='NO'"
28024
28025    :
28026fi
28027
28028
28029# (Compressed) HTML help generation:
28030
28031    
28032    
28033    @%:@ Check whether --enable-doxygen-chm was given.
28034if test "${enable_doxygen_chm+set}" = set; then
28035  enableval=$enable_doxygen_chm; 
28036case "$enableval" in
28037#(
28038y|Y|yes|Yes|YES)
28039    DX_FLAG_chm=1
28040
28041    
28042test "$DX_FLAG_doc" = "1" \
28043|| { { $as_echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
28044$as_echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
28045   { (exit 1); exit 1; }; }
28046
28047;; #(
28048n|N|no|No|NO)
28049    DX_FLAG_chm=0
28050
28051;; #(
28052*)
28053    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
28054$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
28055   { (exit 1); exit 1; }; }
28056;;
28057esac
28058
28059else
28060  
28061DX_FLAG_chm=0
28062
28063
28064test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
28065
28066
28067
28068fi
28069
28070if test "$DX_FLAG_chm" = 1; then
28071    
28072if test -n "$ac_tool_prefix"; then
28073  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
28074set dummy ${ac_tool_prefix}hhc; ac_word=$2
28075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28076$as_echo_n "checking for $ac_word... " >&6; }
28077if test "${ac_cv_path_DX_HHC+set}" = set; then
28078  $as_echo_n "(cached) " >&6
28079else
28080  case $DX_HHC in
28081  [\\/]* | ?:[\\/]*)
28082  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
28083  ;;
28084  *)
28085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28086for as_dir in $PATH
28087do
28088  IFS=$as_save_IFS
28089  test -z "$as_dir" && as_dir=.
28090  for ac_exec_ext in '' $ac_executable_extensions; do
28091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28092    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
28093    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28094    break 2
28095  fi
28096done
28097done
28098IFS=$as_save_IFS
28099
28100  ;;
28101esac
28102fi
28103DX_HHC=$ac_cv_path_DX_HHC
28104if test -n "$DX_HHC"; then
28105  { $as_echo "$as_me:$LINENO: result: $DX_HHC" >&5
28106$as_echo "$DX_HHC" >&6; }
28107else
28108  { $as_echo "$as_me:$LINENO: result: no" >&5
28109$as_echo "no" >&6; }
28110fi
28111
28112
28113fi
28114if test -z "$ac_cv_path_DX_HHC"; then
28115  ac_pt_DX_HHC=$DX_HHC
28116  # Extract the first word of "hhc", so it can be a program name with args.
28117set dummy hhc; ac_word=$2
28118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28119$as_echo_n "checking for $ac_word... " >&6; }
28120if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
28121  $as_echo_n "(cached) " >&6
28122else
28123  case $ac_pt_DX_HHC in
28124  [\\/]* | ?:[\\/]*)
28125  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
28126  ;;
28127  *)
28128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28129for as_dir in $PATH
28130do
28131  IFS=$as_save_IFS
28132  test -z "$as_dir" && as_dir=.
28133  for ac_exec_ext in '' $ac_executable_extensions; do
28134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28135    ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
28136    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28137    break 2
28138  fi
28139done
28140done
28141IFS=$as_save_IFS
28142
28143  ;;
28144esac
28145fi
28146ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
28147if test -n "$ac_pt_DX_HHC"; then
28148  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
28149$as_echo "$ac_pt_DX_HHC" >&6; }
28150else
28151  { $as_echo "$as_me:$LINENO: result: no" >&5
28152$as_echo "no" >&6; }
28153fi
28154
28155  if test "x$ac_pt_DX_HHC" = x; then
28156    DX_HHC=""
28157  else
28158    case $cross_compiling:$ac_tool_warned in
28159yes:)
28160{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28162ac_tool_warned=yes ;;
28163esac
28164    DX_HHC=$ac_pt_DX_HHC
28165  fi
28166else
28167  DX_HHC="$ac_cv_path_DX_HHC"
28168fi
28169
28170if test "$DX_FLAG_chm$DX_HHC" = 1; then
28171    { $as_echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
28172$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
28173    DX_FLAG_chm=0
28174
28175fi
28176
28177    :
28178fi
28179if test "$DX_FLAG_chm" = 1; then
28180     if :; then
28181  DX_COND_chm_TRUE=
28182  DX_COND_chm_FALSE='#'
28183else
28184  DX_COND_chm_TRUE='#'
28185  DX_COND_chm_FALSE=
28186fi
28187
28188    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
28189
28190             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
28191
28192             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
28193
28194    :
28195else
28196     if false; then
28197  DX_COND_chm_TRUE=
28198  DX_COND_chm_FALSE='#'
28199else
28200  DX_COND_chm_TRUE='#'
28201  DX_COND_chm_FALSE=
28202fi
28203
28204    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
28205
28206    :
28207fi
28208
28209
28210# Seperate CHI file generation.
28211
28212    
28213    
28214    @%:@ Check whether --enable-doxygen-chi was given.
28215if test "${enable_doxygen_chi+set}" = set; then
28216  enableval=$enable_doxygen_chi; 
28217case "$enableval" in
28218#(
28219y|Y|yes|Yes|YES)
28220    DX_FLAG_chi=1
28221
28222    
28223test "$DX_FLAG_chm" = "1" \
28224|| { { $as_echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
28225$as_echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
28226   { (exit 1); exit 1; }; }
28227
28228;; #(
28229n|N|no|No|NO)
28230    DX_FLAG_chi=0
28231
28232;; #(
28233*)
28234    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
28235$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
28236   { (exit 1); exit 1; }; }
28237;;
28238esac
28239
28240else
28241  
28242DX_FLAG_chi=0
28243
28244
28245test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
28246
28247
28248
28249fi
28250
28251if test "$DX_FLAG_chi" = 1; then
28252    
28253    :
28254fi
28255if test "$DX_FLAG_chi" = 1; then
28256     if :; then
28257  DX_COND_chi_TRUE=
28258  DX_COND_chi_FALSE='#'
28259else
28260  DX_COND_chi_TRUE='#'
28261  DX_COND_chi_FALSE=
28262fi
28263
28264    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
28265
28266    :
28267else
28268     if false; then
28269  DX_COND_chi_TRUE=
28270  DX_COND_chi_FALSE='#'
28271else
28272  DX_COND_chi_TRUE='#'
28273  DX_COND_chi_FALSE=
28274fi
28275
28276    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
28277
28278    :
28279fi
28280
28281
28282# Plain HTML pages generation:
28283
28284    
28285    
28286    @%:@ Check whether --enable-doxygen-html was given.
28287if test "${enable_doxygen_html+set}" = set; then
28288  enableval=$enable_doxygen_html; 
28289case "$enableval" in
28290#(
28291y|Y|yes|Yes|YES)
28292    DX_FLAG_html=1
28293
28294    
28295test "$DX_FLAG_doc" = "1" \
28296|| { { $as_echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
28297$as_echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
28298   { (exit 1); exit 1; }; }
28299 
28300test "$DX_FLAG_chm" = "0" \
28301|| { { $as_echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
28302$as_echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
28303   { (exit 1); exit 1; }; }
28304
28305;; #(
28306n|N|no|No|NO)
28307    DX_FLAG_html=0
28308
28309;; #(
28310*)
28311    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
28312$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
28313   { (exit 1); exit 1; }; }
28314;;
28315esac
28316
28317else
28318  
28319DX_FLAG_html=1
28320
28321
28322test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
28323
28324 
28325test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
28326
28327
28328
28329fi
28330
28331if test "$DX_FLAG_html" = 1; then
28332    
28333    :
28334fi
28335if test "$DX_FLAG_html" = 1; then
28336     if :; then
28337  DX_COND_html_TRUE=
28338  DX_COND_html_FALSE='#'
28339else
28340  DX_COND_html_TRUE='#'
28341  DX_COND_html_FALSE=
28342fi
28343
28344    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
28345
28346    :
28347else
28348     if false; then
28349  DX_COND_html_TRUE=
28350  DX_COND_html_FALSE='#'
28351else
28352  DX_COND_html_TRUE='#'
28353  DX_COND_html_FALSE=
28354fi
28355
28356    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
28357
28358    :
28359fi
28360
28361
28362# PostScript file generation:
28363
28364    
28365    
28366    @%:@ Check whether --enable-doxygen-ps was given.
28367if test "${enable_doxygen_ps+set}" = set; then
28368  enableval=$enable_doxygen_ps; 
28369case "$enableval" in
28370#(
28371y|Y|yes|Yes|YES)
28372    DX_FLAG_ps=1
28373
28374    
28375test "$DX_FLAG_doc" = "1" \
28376|| { { $as_echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
28377$as_echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
28378   { (exit 1); exit 1; }; }
28379
28380;; #(
28381n|N|no|No|NO)
28382    DX_FLAG_ps=0
28383
28384;; #(
28385*)
28386    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
28387$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
28388   { (exit 1); exit 1; }; }
28389;;
28390esac
28391
28392else
28393  
28394DX_FLAG_ps=0
28395
28396
28397test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
28398
28399
28400
28401fi
28402
28403if test "$DX_FLAG_ps" = 1; then
28404    
28405if test -n "$ac_tool_prefix"; then
28406  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
28407set dummy ${ac_tool_prefix}latex; ac_word=$2
28408{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28409$as_echo_n "checking for $ac_word... " >&6; }
28410if test "${ac_cv_path_DX_LATEX+set}" = set; then
28411  $as_echo_n "(cached) " >&6
28412else
28413  case $DX_LATEX in
28414  [\\/]* | ?:[\\/]*)
28415  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
28416  ;;
28417  *)
28418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28419for as_dir in $PATH
28420do
28421  IFS=$as_save_IFS
28422  test -z "$as_dir" && as_dir=.
28423  for ac_exec_ext in '' $ac_executable_extensions; do
28424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28425    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
28426    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28427    break 2
28428  fi
28429done
28430done
28431IFS=$as_save_IFS
28432
28433  ;;
28434esac
28435fi
28436DX_LATEX=$ac_cv_path_DX_LATEX
28437if test -n "$DX_LATEX"; then
28438  { $as_echo "$as_me:$LINENO: result: $DX_LATEX" >&5
28439$as_echo "$DX_LATEX" >&6; }
28440else
28441  { $as_echo "$as_me:$LINENO: result: no" >&5
28442$as_echo "no" >&6; }
28443fi
28444
28445
28446fi
28447if test -z "$ac_cv_path_DX_LATEX"; then
28448  ac_pt_DX_LATEX=$DX_LATEX
28449  # Extract the first word of "latex", so it can be a program name with args.
28450set dummy latex; ac_word=$2
28451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28452$as_echo_n "checking for $ac_word... " >&6; }
28453if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
28454  $as_echo_n "(cached) " >&6
28455else
28456  case $ac_pt_DX_LATEX in
28457  [\\/]* | ?:[\\/]*)
28458  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
28459  ;;
28460  *)
28461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28462for as_dir in $PATH
28463do
28464  IFS=$as_save_IFS
28465  test -z "$as_dir" && as_dir=.
28466  for ac_exec_ext in '' $ac_executable_extensions; do
28467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28468    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
28469    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28470    break 2
28471  fi
28472done
28473done
28474IFS=$as_save_IFS
28475
28476  ;;
28477esac
28478fi
28479ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
28480if test -n "$ac_pt_DX_LATEX"; then
28481  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
28482$as_echo "$ac_pt_DX_LATEX" >&6; }
28483else
28484  { $as_echo "$as_me:$LINENO: result: no" >&5
28485$as_echo "no" >&6; }
28486fi
28487
28488  if test "x$ac_pt_DX_LATEX" = x; then
28489    DX_LATEX=""
28490  else
28491    case $cross_compiling:$ac_tool_warned in
28492yes:)
28493{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28495ac_tool_warned=yes ;;
28496esac
28497    DX_LATEX=$ac_pt_DX_LATEX
28498  fi
28499else
28500  DX_LATEX="$ac_cv_path_DX_LATEX"
28501fi
28502
28503if test "$DX_FLAG_ps$DX_LATEX" = 1; then
28504    { $as_echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
28505$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
28506    DX_FLAG_ps=0
28507
28508fi
28509
28510             
28511if test -n "$ac_tool_prefix"; then
28512  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
28513set dummy ${ac_tool_prefix}makeindex; ac_word=$2
28514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28515$as_echo_n "checking for $ac_word... " >&6; }
28516if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
28517  $as_echo_n "(cached) " >&6
28518else
28519  case $DX_MAKEINDEX in
28520  [\\/]* | ?:[\\/]*)
28521  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
28522  ;;
28523  *)
28524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28525for as_dir in $PATH
28526do
28527  IFS=$as_save_IFS
28528  test -z "$as_dir" && as_dir=.
28529  for ac_exec_ext in '' $ac_executable_extensions; do
28530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28531    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
28532    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28533    break 2
28534  fi
28535done
28536done
28537IFS=$as_save_IFS
28538
28539  ;;
28540esac
28541fi
28542DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
28543if test -n "$DX_MAKEINDEX"; then
28544  { $as_echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
28545$as_echo "$DX_MAKEINDEX" >&6; }
28546else
28547  { $as_echo "$as_me:$LINENO: result: no" >&5
28548$as_echo "no" >&6; }
28549fi
28550
28551
28552fi
28553if test -z "$ac_cv_path_DX_MAKEINDEX"; then
28554  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
28555  # Extract the first word of "makeindex", so it can be a program name with args.
28556set dummy makeindex; ac_word=$2
28557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28558$as_echo_n "checking for $ac_word... " >&6; }
28559if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
28560  $as_echo_n "(cached) " >&6
28561else
28562  case $ac_pt_DX_MAKEINDEX in
28563  [\\/]* | ?:[\\/]*)
28564  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
28565  ;;
28566  *)
28567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28568for as_dir in $PATH
28569do
28570  IFS=$as_save_IFS
28571  test -z "$as_dir" && as_dir=.
28572  for ac_exec_ext in '' $ac_executable_extensions; do
28573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28574    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
28575    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28576    break 2
28577  fi
28578done
28579done
28580IFS=$as_save_IFS
28581
28582  ;;
28583esac
28584fi
28585ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
28586if test -n "$ac_pt_DX_MAKEINDEX"; then
28587  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
28588$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
28589else
28590  { $as_echo "$as_me:$LINENO: result: no" >&5
28591$as_echo "no" >&6; }
28592fi
28593
28594  if test "x$ac_pt_DX_MAKEINDEX" = x; then
28595    DX_MAKEINDEX=""
28596  else
28597    case $cross_compiling:$ac_tool_warned in
28598yes:)
28599{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28601ac_tool_warned=yes ;;
28602esac
28603    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
28604  fi
28605else
28606  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
28607fi
28608
28609if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
28610    { $as_echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
28611$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
28612    DX_FLAG_ps=0
28613
28614fi
28615
28616             
28617if test -n "$ac_tool_prefix"; then
28618  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
28619set dummy ${ac_tool_prefix}dvips; ac_word=$2
28620{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28621$as_echo_n "checking for $ac_word... " >&6; }
28622if test "${ac_cv_path_DX_DVIPS+set}" = set; then
28623  $as_echo_n "(cached) " >&6
28624else
28625  case $DX_DVIPS in
28626  [\\/]* | ?:[\\/]*)
28627  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
28628  ;;
28629  *)
28630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28631for as_dir in $PATH
28632do
28633  IFS=$as_save_IFS
28634  test -z "$as_dir" && as_dir=.
28635  for ac_exec_ext in '' $ac_executable_extensions; do
28636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28637    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
28638    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28639    break 2
28640  fi
28641done
28642done
28643IFS=$as_save_IFS
28644
28645  ;;
28646esac
28647fi
28648DX_DVIPS=$ac_cv_path_DX_DVIPS
28649if test -n "$DX_DVIPS"; then
28650  { $as_echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
28651$as_echo "$DX_DVIPS" >&6; }
28652else
28653  { $as_echo "$as_me:$LINENO: result: no" >&5
28654$as_echo "no" >&6; }
28655fi
28656
28657
28658fi
28659if test -z "$ac_cv_path_DX_DVIPS"; then
28660  ac_pt_DX_DVIPS=$DX_DVIPS
28661  # Extract the first word of "dvips", so it can be a program name with args.
28662set dummy dvips; ac_word=$2
28663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28664$as_echo_n "checking for $ac_word... " >&6; }
28665if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
28666  $as_echo_n "(cached) " >&6
28667else
28668  case $ac_pt_DX_DVIPS in
28669  [\\/]* | ?:[\\/]*)
28670  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
28671  ;;
28672  *)
28673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28674for as_dir in $PATH
28675do
28676  IFS=$as_save_IFS
28677  test -z "$as_dir" && as_dir=.
28678  for ac_exec_ext in '' $ac_executable_extensions; do
28679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28680    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
28681    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28682    break 2
28683  fi
28684done
28685done
28686IFS=$as_save_IFS
28687
28688  ;;
28689esac
28690fi
28691ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
28692if test -n "$ac_pt_DX_DVIPS"; then
28693  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
28694$as_echo "$ac_pt_DX_DVIPS" >&6; }
28695else
28696  { $as_echo "$as_me:$LINENO: result: no" >&5
28697$as_echo "no" >&6; }
28698fi
28699
28700  if test "x$ac_pt_DX_DVIPS" = x; then
28701    DX_DVIPS=""
28702  else
28703    case $cross_compiling:$ac_tool_warned in
28704yes:)
28705{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28707ac_tool_warned=yes ;;
28708esac
28709    DX_DVIPS=$ac_pt_DX_DVIPS
28710  fi
28711else
28712  DX_DVIPS="$ac_cv_path_DX_DVIPS"
28713fi
28714
28715if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
28716    { $as_echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
28717$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
28718    DX_FLAG_ps=0
28719
28720fi
28721
28722             
28723if test -n "$ac_tool_prefix"; then
28724  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
28725set dummy ${ac_tool_prefix}egrep; ac_word=$2
28726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28727$as_echo_n "checking for $ac_word... " >&6; }
28728if test "${ac_cv_path_DX_EGREP+set}" = set; then
28729  $as_echo_n "(cached) " >&6
28730else
28731  case $DX_EGREP in
28732  [\\/]* | ?:[\\/]*)
28733  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
28734  ;;
28735  *)
28736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28737for as_dir in $PATH
28738do
28739  IFS=$as_save_IFS
28740  test -z "$as_dir" && as_dir=.
28741  for ac_exec_ext in '' $ac_executable_extensions; do
28742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28743    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
28744    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28745    break 2
28746  fi
28747done
28748done
28749IFS=$as_save_IFS
28750
28751  ;;
28752esac
28753fi
28754DX_EGREP=$ac_cv_path_DX_EGREP
28755if test -n "$DX_EGREP"; then
28756  { $as_echo "$as_me:$LINENO: result: $DX_EGREP" >&5
28757$as_echo "$DX_EGREP" >&6; }
28758else
28759  { $as_echo "$as_me:$LINENO: result: no" >&5
28760$as_echo "no" >&6; }
28761fi
28762
28763
28764fi
28765if test -z "$ac_cv_path_DX_EGREP"; then
28766  ac_pt_DX_EGREP=$DX_EGREP
28767  # Extract the first word of "egrep", so it can be a program name with args.
28768set dummy egrep; ac_word=$2
28769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28770$as_echo_n "checking for $ac_word... " >&6; }
28771if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
28772  $as_echo_n "(cached) " >&6
28773else
28774  case $ac_pt_DX_EGREP in
28775  [\\/]* | ?:[\\/]*)
28776  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
28777  ;;
28778  *)
28779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28780for as_dir in $PATH
28781do
28782  IFS=$as_save_IFS
28783  test -z "$as_dir" && as_dir=.
28784  for ac_exec_ext in '' $ac_executable_extensions; do
28785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28786    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
28787    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28788    break 2
28789  fi
28790done
28791done
28792IFS=$as_save_IFS
28793
28794  ;;
28795esac
28796fi
28797ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
28798if test -n "$ac_pt_DX_EGREP"; then
28799  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
28800$as_echo "$ac_pt_DX_EGREP" >&6; }
28801else
28802  { $as_echo "$as_me:$LINENO: result: no" >&5
28803$as_echo "no" >&6; }
28804fi
28805
28806  if test "x$ac_pt_DX_EGREP" = x; then
28807    DX_EGREP=""
28808  else
28809    case $cross_compiling:$ac_tool_warned in
28810yes:)
28811{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28813ac_tool_warned=yes ;;
28814esac
28815    DX_EGREP=$ac_pt_DX_EGREP
28816  fi
28817else
28818  DX_EGREP="$ac_cv_path_DX_EGREP"
28819fi
28820
28821if test "$DX_FLAG_ps$DX_EGREP" = 1; then
28822    { $as_echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
28823$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
28824    DX_FLAG_ps=0
28825
28826fi
28827
28828    :
28829fi
28830if test "$DX_FLAG_ps" = 1; then
28831     if :; then
28832  DX_COND_ps_TRUE=
28833  DX_COND_ps_FALSE='#'
28834else
28835  DX_COND_ps_TRUE='#'
28836  DX_COND_ps_FALSE=
28837fi
28838
28839    
28840    :
28841else
28842     if false; then
28843  DX_COND_ps_TRUE=
28844  DX_COND_ps_FALSE='#'
28845else
28846  DX_COND_ps_TRUE='#'
28847  DX_COND_ps_FALSE=
28848fi
28849
28850    
28851    :
28852fi
28853
28854
28855# PDF file generation:
28856
28857    
28858    
28859    @%:@ Check whether --enable-doxygen-pdf was given.
28860if test "${enable_doxygen_pdf+set}" = set; then
28861  enableval=$enable_doxygen_pdf; 
28862case "$enableval" in
28863#(
28864y|Y|yes|Yes|YES)
28865    DX_FLAG_pdf=1
28866
28867    
28868test "$DX_FLAG_doc" = "1" \
28869|| { { $as_echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
28870$as_echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
28871   { (exit 1); exit 1; }; }
28872
28873;; #(
28874n|N|no|No|NO)
28875    DX_FLAG_pdf=0
28876
28877;; #(
28878*)
28879    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
28880$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
28881   { (exit 1); exit 1; }; }
28882;;
28883esac
28884
28885else
28886  
28887DX_FLAG_pdf=0
28888
28889
28890test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
28891
28892
28893
28894fi
28895
28896if test "$DX_FLAG_pdf" = 1; then
28897    
28898if test -n "$ac_tool_prefix"; then
28899  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
28900set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
28901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28902$as_echo_n "checking for $ac_word... " >&6; }
28903if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
28904  $as_echo_n "(cached) " >&6
28905else
28906  case $DX_PDFLATEX in
28907  [\\/]* | ?:[\\/]*)
28908  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
28909  ;;
28910  *)
28911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28912for as_dir in $PATH
28913do
28914  IFS=$as_save_IFS
28915  test -z "$as_dir" && as_dir=.
28916  for ac_exec_ext in '' $ac_executable_extensions; do
28917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28918    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
28919    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28920    break 2
28921  fi
28922done
28923done
28924IFS=$as_save_IFS
28925
28926  ;;
28927esac
28928fi
28929DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
28930if test -n "$DX_PDFLATEX"; then
28931  { $as_echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
28932$as_echo "$DX_PDFLATEX" >&6; }
28933else
28934  { $as_echo "$as_me:$LINENO: result: no" >&5
28935$as_echo "no" >&6; }
28936fi
28937
28938
28939fi
28940if test -z "$ac_cv_path_DX_PDFLATEX"; then
28941  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
28942  # Extract the first word of "pdflatex", so it can be a program name with args.
28943set dummy pdflatex; ac_word=$2
28944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28945$as_echo_n "checking for $ac_word... " >&6; }
28946if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
28947  $as_echo_n "(cached) " >&6
28948else
28949  case $ac_pt_DX_PDFLATEX in
28950  [\\/]* | ?:[\\/]*)
28951  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
28952  ;;
28953  *)
28954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28955for as_dir in $PATH
28956do
28957  IFS=$as_save_IFS
28958  test -z "$as_dir" && as_dir=.
28959  for ac_exec_ext in '' $ac_executable_extensions; do
28960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28961    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
28962    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28963    break 2
28964  fi
28965done
28966done
28967IFS=$as_save_IFS
28968
28969  ;;
28970esac
28971fi
28972ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
28973if test -n "$ac_pt_DX_PDFLATEX"; then
28974  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
28975$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
28976else
28977  { $as_echo "$as_me:$LINENO: result: no" >&5
28978$as_echo "no" >&6; }
28979fi
28980
28981  if test "x$ac_pt_DX_PDFLATEX" = x; then
28982    DX_PDFLATEX=""
28983  else
28984    case $cross_compiling:$ac_tool_warned in
28985yes:)
28986{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28988ac_tool_warned=yes ;;
28989esac
28990    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
28991  fi
28992else
28993  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
28994fi
28995
28996if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
28997    { $as_echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
28998$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
28999    DX_FLAG_pdf=0
29000
29001fi
29002
29003             
29004if test -n "$ac_tool_prefix"; then
29005  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
29006set dummy ${ac_tool_prefix}makeindex; ac_word=$2
29007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29008$as_echo_n "checking for $ac_word... " >&6; }
29009if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
29010  $as_echo_n "(cached) " >&6
29011else
29012  case $DX_MAKEINDEX in
29013  [\\/]* | ?:[\\/]*)
29014  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
29015  ;;
29016  *)
29017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29018for as_dir in $PATH
29019do
29020  IFS=$as_save_IFS
29021  test -z "$as_dir" && as_dir=.
29022  for ac_exec_ext in '' $ac_executable_extensions; do
29023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29024    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
29025    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29026    break 2
29027  fi
29028done
29029done
29030IFS=$as_save_IFS
29031
29032  ;;
29033esac
29034fi
29035DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
29036if test -n "$DX_MAKEINDEX"; then
29037  { $as_echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
29038$as_echo "$DX_MAKEINDEX" >&6; }
29039else
29040  { $as_echo "$as_me:$LINENO: result: no" >&5
29041$as_echo "no" >&6; }
29042fi
29043
29044
29045fi
29046if test -z "$ac_cv_path_DX_MAKEINDEX"; then
29047  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
29048  # Extract the first word of "makeindex", so it can be a program name with args.
29049set dummy makeindex; ac_word=$2
29050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29051$as_echo_n "checking for $ac_word... " >&6; }
29052if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
29053  $as_echo_n "(cached) " >&6
29054else
29055  case $ac_pt_DX_MAKEINDEX in
29056  [\\/]* | ?:[\\/]*)
29057  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
29058  ;;
29059  *)
29060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29061for as_dir in $PATH
29062do
29063  IFS=$as_save_IFS
29064  test -z "$as_dir" && as_dir=.
29065  for ac_exec_ext in '' $ac_executable_extensions; do
29066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29067    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
29068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29069    break 2
29070  fi
29071done
29072done
29073IFS=$as_save_IFS
29074
29075  ;;
29076esac
29077fi
29078ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
29079if test -n "$ac_pt_DX_MAKEINDEX"; then
29080  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
29081$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
29082else
29083  { $as_echo "$as_me:$LINENO: result: no" >&5
29084$as_echo "no" >&6; }
29085fi
29086
29087  if test "x$ac_pt_DX_MAKEINDEX" = x; then
29088    DX_MAKEINDEX=""
29089  else
29090    case $cross_compiling:$ac_tool_warned in
29091yes:)
29092{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
29093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29094ac_tool_warned=yes ;;
29095esac
29096    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
29097  fi
29098else
29099  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
29100fi
29101
29102if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
29103    { $as_echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
29104$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
29105    DX_FLAG_pdf=0
29106
29107fi
29108
29109             
29110if test -n "$ac_tool_prefix"; then
29111  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
29112set dummy ${ac_tool_prefix}egrep; ac_word=$2
29113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29114$as_echo_n "checking for $ac_word... " >&6; }
29115if test "${ac_cv_path_DX_EGREP+set}" = set; then
29116  $as_echo_n "(cached) " >&6
29117else
29118  case $DX_EGREP in
29119  [\\/]* | ?:[\\/]*)
29120  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
29121  ;;
29122  *)
29123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29124for as_dir in $PATH
29125do
29126  IFS=$as_save_IFS
29127  test -z "$as_dir" && as_dir=.
29128  for ac_exec_ext in '' $ac_executable_extensions; do
29129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29130    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
29131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29132    break 2
29133  fi
29134done
29135done
29136IFS=$as_save_IFS
29137
29138  ;;
29139esac
29140fi
29141DX_EGREP=$ac_cv_path_DX_EGREP
29142if test -n "$DX_EGREP"; then
29143  { $as_echo "$as_me:$LINENO: result: $DX_EGREP" >&5
29144$as_echo "$DX_EGREP" >&6; }
29145else
29146  { $as_echo "$as_me:$LINENO: result: no" >&5
29147$as_echo "no" >&6; }
29148fi
29149
29150
29151fi
29152if test -z "$ac_cv_path_DX_EGREP"; then
29153  ac_pt_DX_EGREP=$DX_EGREP
29154  # Extract the first word of "egrep", so it can be a program name with args.
29155set dummy egrep; ac_word=$2
29156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29157$as_echo_n "checking for $ac_word... " >&6; }
29158if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
29159  $as_echo_n "(cached) " >&6
29160else
29161  case $ac_pt_DX_EGREP in
29162  [\\/]* | ?:[\\/]*)
29163  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
29164  ;;
29165  *)
29166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29167for as_dir in $PATH
29168do
29169  IFS=$as_save_IFS
29170  test -z "$as_dir" && as_dir=.
29171  for ac_exec_ext in '' $ac_executable_extensions; do
29172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29173    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
29174    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29175    break 2
29176  fi
29177done
29178done
29179IFS=$as_save_IFS
29180
29181  ;;
29182esac
29183fi
29184ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
29185if test -n "$ac_pt_DX_EGREP"; then
29186  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
29187$as_echo "$ac_pt_DX_EGREP" >&6; }
29188else
29189  { $as_echo "$as_me:$LINENO: result: no" >&5
29190$as_echo "no" >&6; }
29191fi
29192
29193  if test "x$ac_pt_DX_EGREP" = x; then
29194    DX_EGREP=""
29195  else
29196    case $cross_compiling:$ac_tool_warned in
29197yes:)
29198{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
29199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29200ac_tool_warned=yes ;;
29201esac
29202    DX_EGREP=$ac_pt_DX_EGREP
29203  fi
29204else
29205  DX_EGREP="$ac_cv_path_DX_EGREP"
29206fi
29207
29208if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
29209    { $as_echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
29210$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
29211    DX_FLAG_pdf=0
29212
29213fi
29214
29215    :
29216fi
29217if test "$DX_FLAG_pdf" = 1; then
29218     if :; then
29219  DX_COND_pdf_TRUE=
29220  DX_COND_pdf_FALSE='#'
29221else
29222  DX_COND_pdf_TRUE='#'
29223  DX_COND_pdf_FALSE=
29224fi
29225
29226    
29227    :
29228else
29229     if false; then
29230  DX_COND_pdf_TRUE=
29231  DX_COND_pdf_FALSE='#'
29232else
29233  DX_COND_pdf_TRUE='#'
29234  DX_COND_pdf_FALSE=
29235fi
29236
29237    
29238    :
29239fi
29240
29241
29242# LaTeX generation for PS and/or PDF:
29243if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
29244     if :; then
29245  DX_COND_latex_TRUE=
29246  DX_COND_latex_FALSE='#'
29247else
29248  DX_COND_latex_TRUE='#'
29249  DX_COND_latex_FALSE=
29250fi
29251
29252    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
29253
29254else
29255     if false; then
29256  DX_COND_latex_TRUE=
29257  DX_COND_latex_FALSE='#'
29258else
29259  DX_COND_latex_TRUE='#'
29260  DX_COND_latex_FALSE=
29261fi
29262
29263    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
29264
29265fi
29266
29267# Paper size for PS and/or PDF:
29268
29269case "$DOXYGEN_PAPER_SIZE" in
29270#(
29271"")
29272    DOXYGEN_PAPER_SIZE=""
29273
29274;; #(
29275a4wide|a4|letter|legal|executive)
29276    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
29277
29278;; #(
29279*)
29280    { { $as_echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
29281$as_echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
29282   { (exit 1); exit 1; }; }
29283;;
29284esac
29285
29286#For debugging:
29287#echo DX_FLAG_doc=$DX_FLAG_doc
29288#echo DX_FLAG_dot=$DX_FLAG_dot
29289#echo DX_FLAG_man=$DX_FLAG_man
29290#echo DX_FLAG_html=$DX_FLAG_html
29291#echo DX_FLAG_chm=$DX_FLAG_chm
29292#echo DX_FLAG_chi=$DX_FLAG_chi
29293#echo DX_FLAG_rtf=$DX_FLAG_rtf
29294#echo DX_FLAG_xml=$DX_FLAG_xml
29295#echo DX_FLAG_pdf=$DX_FLAG_pdf
29296#echo DX_FLAG_ps=$DX_FLAG_ps
29297#echo DX_ENV=$DX_ENV
29298
29299
29300@%:@ Check whether --enable-core-docs was given.
29301if test "${enable_core_docs+set}" = set; then
29302  enableval=$enable_core_docs; case "${enableval}" in
29303  yes) ENABLE_CORE_DOCS=yes ;;
29304  no)  ENABLE_CORE_DOCS=no ;;
29305  *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-core-docs" >&5
29306$as_echo "$as_me: error: bad value ${enableval} for --enable-core-docs" >&2;}
29307   { (exit 1); exit 1; }; } ;;
29308esac
29309else
29310  ENABLE_CORE_DOCS=no
29311fi
29312
29313
29314 if test "x$ENABLE_CORE_DOCS" = xyes; then
29315  ENABLE_CORE_DOCS_TRUE=
29316  ENABLE_CORE_DOCS_FALSE='#'
29317else
29318  ENABLE_CORE_DOCS_TRUE='#'
29319  ENABLE_CORE_DOCS_FALSE=
29320fi
29321
29322
29323#
29324# Build and Install man pages
29325#
29326@%:@ Check whether --enable-manpages was given.
29327if test "${enable_manpages+set}" = set; then
29328  enableval=$enable_manpages; case "${enableval}" in
29329  yes) manpages=yes ;;
29330  no)  manpages=no ;;
29331  *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-manpages" >&5
29332$as_echo "$as_me: error: bad value ${enableval} for --disable-manpages" >&2;}
29333   { (exit 1); exit 1; }; } ;;
29334esac
29335else
29336  manpages=yes
29337fi
29338
29339
29340if test x$manpages = xyes ; then
29341    #
29342    # XMLTOMAN manpage generation
29343    #
29344    @%:@ Check whether --enable-xmltoman was given.
29345if test "${enable_xmltoman+set}" = set; then
29346  enableval=$enable_xmltoman; case "${enableval}" in
29347      yes) xmltoman=yes ;;
29348      no)  xmltoman=no ;;
29349      *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-xmltoman" >&5
29350$as_echo "$as_me: error: bad value ${enableval} for --disable-xmltoman" >&2;}
29351   { (exit 1); exit 1; }; } ;;
29352    esac
29353else
29354  xmltoman=yes
29355fi
29356
29357
29358    if test x$xmltoman = xyes ; then
29359        # Extract the first word of "xmltoman", so it can be a program name with args.
29360set dummy xmltoman; ac_word=$2
29361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29362$as_echo_n "checking for $ac_word... " >&6; }
29363if test "${ac_cv_prog_have_xmltoman+set}" = set; then
29364  $as_echo_n "(cached) " >&6
29365else
29366  if test -n "$have_xmltoman"; then
29367  ac_cv_prog_have_xmltoman="$have_xmltoman" # Let the user override the test.
29368else
29369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29370for as_dir in $PATH
29371do
29372  IFS=$as_save_IFS
29373  test -z "$as_dir" && as_dir=.
29374  for ac_exec_ext in '' $ac_executable_extensions; do
29375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29376    ac_cv_prog_have_xmltoman="yes"
29377    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29378    break 2
29379  fi
29380done
29381done
29382IFS=$as_save_IFS
29383
29384  test -z "$ac_cv_prog_have_xmltoman" && ac_cv_prog_have_xmltoman="no"
29385fi
29386fi
29387have_xmltoman=$ac_cv_prog_have_xmltoman
29388if test -n "$have_xmltoman"; then
29389  { $as_echo "$as_me:$LINENO: result: $have_xmltoman" >&5
29390$as_echo "$have_xmltoman" >&6; }
29391else
29392  { $as_echo "$as_me:$LINENO: result: no" >&5
29393$as_echo "no" >&6; }
29394fi
29395
29396
29397    fi
29398
29399    if test x$have_xmltoman = xno -o x$xmltoman = xno; then
29400        if ! test -e man/avahi-daemon.8 ; then
29401            { { $as_echo "$as_me:$LINENO: error: *** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman" >&5
29402$as_echo "$as_me: error: *** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman" >&2;}
29403   { (exit 1); exit 1; }; }
29404            exit 1
29405        fi
29406        { $as_echo "$as_me:$LINENO: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&5
29407$as_echo "$as_me: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&2;}
29408        xmltoman=no
29409    fi
29410fi
29411 if test "x$xmltoman" = xyes; then
29412  USE_XMLTOMAN_TRUE=
29413  USE_XMLTOMAN_FALSE='#'
29414else
29415  USE_XMLTOMAN_TRUE='#'
29416  USE_XMLTOMAN_FALSE=
29417fi
29418
29419 if test "x$manpages" = xyes; then
29420  BUILD_MANPAGES_TRUE=
29421  BUILD_MANPAGES_FALSE='#'
29422else
29423  BUILD_MANPAGES_TRUE='#'
29424  BUILD_MANPAGES_FALSE=
29425fi
29426
29427
29428#
29429# Conditionally compile test and example programs
29430#
29431@%:@ Check whether --enable-tests was given.
29432if test "${enable_tests+set}" = set; then
29433  enableval=$enable_tests; case "${enableval}" in
29434                yes) ENABLE_TESTS=yes ;;
29435                no)  ENABLE_TESTS=no ;;
29436                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5
29437$as_echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;}
29438   { (exit 1); exit 1; }; } ;;
29439        esac
29440else
29441  ENABLE_TESTS=no
29442fi
29443
29444
29445 if test "x$ENABLE_TESTS" = "xyes"; then
29446  ENABLE_TESTS_TRUE=
29447  ENABLE_TESTS_FALSE='#'
29448else
29449  ENABLE_TESTS_TRUE='#'
29450  ENABLE_TESTS_FALSE=
29451fi
29452
29453
29454#
29455# Optionally enable libdns_sd compatibility support
29456#
29457@%:@ Check whether --enable-compat-libdns_sd was given.
29458if test "${enable_compat_libdns_sd+set}" = set; then
29459  enableval=$enable_compat_libdns_sd; case "${enableval}" in
29460                yes) ENABLE_COMPAT_LIBDNS_SD=yes ;;
29461                no)  ENABLE_COMPAT_LIBDNS_SD=no ;;
29462                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-compat-libdns_sd" >&5
29463$as_echo "$as_me: error: bad value ${enableval} for --enable-compat-libdns_sd" >&2;}
29464   { (exit 1); exit 1; }; } ;;
29465        esac
29466else
29467  ENABLE_COMPAT_LIBDNS_SD=no
29468fi
29469
29470
29471 if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes"; then
29472  ENABLE_COMPAT_LIBDNS_SD_TRUE=
29473  ENABLE_COMPAT_LIBDNS_SD_FALSE='#'
29474else
29475  ENABLE_COMPAT_LIBDNS_SD_TRUE='#'
29476  ENABLE_COMPAT_LIBDNS_SD_FALSE=
29477fi
29478
29479
29480#
29481# Optionally enable HOWL compatibility support
29482#
29483@%:@ Check whether --enable-compat-howl was given.
29484if test "${enable_compat_howl+set}" = set; then
29485  enableval=$enable_compat_howl; case "${enableval}" in
29486                yes) ENABLE_COMPAT_HOWL=yes ;;
29487                no)  ENABLE_COMPAT_HOWL=no ;;
29488                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-compat-howl" >&5
29489$as_echo "$as_me: error: bad value ${enableval} for --enable-compat-howl" >&2;}
29490   { (exit 1); exit 1; }; } ;;
29491        esac
29492else
29493  ENABLE_COMPAT_HOWL=no
29494fi
29495
29496
29497 if test "x$ENABLE_COMPAT_HOWL" = "xyes"; then
29498  ENABLE_COMPAT_HOWL_TRUE=
29499  ENABLE_COMPAT_HOWL_FALSE='#'
29500else
29501  ENABLE_COMPAT_HOWL_TRUE='#'
29502  ENABLE_COMPAT_HOWL_FALSE=
29503fi
29504
29505
29506
29507# ==========================================================================
29508ac_config_files="$ac_config_files Makefile avahi-common/Makefile avahi-core/Makefile avahi-glib/Makefile avahi-gobject/Makefile avahi-qt/Makefile avahi-daemon/Makefile avahi-daemon/avahi-dbus.conf avahi-discover-standalone/Makefile avahi-client/Makefile initscript/Makefile initscript/debian/Makefile initscript/gentoo/Makefile initscript/archlinux/Makefile initscript/suse/Makefile initscript/fedora/Makefile initscript/lfs/Makefile initscript/mandriva/Makefile initscript/darwin/Makefile initscript/freebsd/Makefile initscript/slackware/Makefile avahi-dnsconfd/Makefile avahi-utils/Makefile avahi-python/Makefile avahi-python/avahi/Makefile avahi-python/avahi-discover/Makefile examples/Makefile common/Makefile man/Makefile tests/Makefile service-type-database/Makefile avahi-sharp/Makefile avahi-ui-sharp/Makefile avahi-compat-libdns_sd/Makefile avahi-compat-howl/Makefile avahi-compat-howl/samples/Makefile avahi-autoipd/Makefile avahi-ui/Makefile po/Makefile.in"
29509
29510cat >confcache <<\_ACEOF
29511# This file is a shell script that caches the results of configure
29512# tests run on this system so they can be shared between configure
29513# scripts and configure runs, see configure's option --config-cache.
29514# It is not useful on other systems.  If it contains results you don't
29515# want to keep, you may remove or edit it.
29516#
29517# config.status only pays attention to the cache file if you give it
29518# the --recheck option to rerun configure.
29519#
29520# `ac_cv_env_foo' variables (set or unset) will be overridden when
29521# loading this file, other *unset* `ac_cv_foo' will be assigned the
29522# following values.
29523
29524_ACEOF
29525
29526# The following way of writing the cache mishandles newlines in values,
29527# but we know of no workaround that is simple, portable, and efficient.
29528# So, we kill variables containing newlines.
29529# Ultrix sh set writes to stderr and can't be redirected directly,
29530# and sets the high bit in the cache file unless we assign to the vars.
29531(
29532  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29533    eval ac_val=\$$ac_var
29534    case $ac_val in #(
29535    *${as_nl}*)
29536      case $ac_var in #(
29537      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29539      esac
29540      case $ac_var in #(
29541      _ | IFS | as_nl) ;; #(
29542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29543      *) $as_unset $ac_var ;;
29544      esac ;;
29545    esac
29546  done
29547
29548  (set) 2>&1 |
29549    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29550    *${as_nl}ac_space=\ *)
29551      # `set' does not quote correctly, so add quotes (double-quote
29552      # substitution turns \\\\ into \\, and sed turns \\ into \).
29553      sed -n \
29554	"s/'/'\\\\''/g;
29555	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29556      ;; #(
29557    *)
29558      # `set' quotes correctly as required by POSIX, so do not add quotes.
29559      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29560      ;;
29561    esac |
29562    sort
29563) |
29564  sed '
29565     /^ac_cv_env_/b end
29566     t clear
29567     :clear
29568     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29569     t end
29570     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29571     :end' >>confcache
29572if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29573  if test -w "$cache_file"; then
29574    test "x$cache_file" != "x/dev/null" &&
29575      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29576$as_echo "$as_me: updating cache $cache_file" >&6;}
29577    cat confcache >$cache_file
29578  else
29579    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29581  fi
29582fi
29583rm -f confcache
29584
29585test "x$prefix" = xNONE && prefix=$ac_default_prefix
29586# Let make expand exec_prefix.
29587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29588
29589DEFS=-DHAVE_CONFIG_H
29590
29591ac_libobjs=
29592ac_ltlibobjs=
29593for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
29594  # 1. Remove the extension, and $U if already installed.
29595  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29596  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29597  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29598  #    will be set to the directory where LIBOBJS objects are built.
29599  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29600  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29601done
29602LIB@&t@OBJS=$ac_libobjs
29603
29604LTLIBOBJS=$ac_ltlibobjs
29605
29606
29607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29608  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29609Usually this means the macro was only invoked conditionally." >&5
29610$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
29611Usually this means the macro was only invoked conditionally." >&2;}
29612   { (exit 1); exit 1; }; }
29613fi
29614if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29615  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29616Usually this means the macro was only invoked conditionally." >&5
29617$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29618Usually this means the macro was only invoked conditionally." >&2;}
29619   { (exit 1); exit 1; }; }
29620fi
29621if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29622  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29623Usually this means the macro was only invoked conditionally." >&5
29624$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29625Usually this means the macro was only invoked conditionally." >&2;}
29626   { (exit 1); exit 1; }; }
29627fi
29628if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29629  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29630Usually this means the macro was only invoked conditionally." >&5
29631$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29632Usually this means the macro was only invoked conditionally." >&2;}
29633   { (exit 1); exit 1; }; }
29634fi
29635if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
29636  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETLINK\" was never defined.
29637Usually this means the macro was only invoked conditionally." >&5
29638$as_echo "$as_me: error: conditional \"HAVE_NETLINK\" was never defined.
29639Usually this means the macro was only invoked conditionally." >&2;}
29640   { (exit 1); exit 1; }; }
29641fi
29642if test -z "${HAVE_PF_ROUTE_TRUE}" && test -z "${HAVE_PF_ROUTE_FALSE}"; then
29643  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PF_ROUTE\" was never defined.
29644Usually this means the macro was only invoked conditionally." >&5
29645$as_echo "$as_me: error: conditional \"HAVE_PF_ROUTE\" was never defined.
29646Usually this means the macro was only invoked conditionally." >&2;}
29647   { (exit 1); exit 1; }; }
29648fi
29649if test -z "${HAVE_SYS_FILIO_H_TRUE}" && test -z "${HAVE_SYS_FILIO_H_FALSE}"; then
29650  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_FILIO_H\" was never defined.
29651Usually this means the macro was only invoked conditionally." >&5
29652$as_echo "$as_me: error: conditional \"HAVE_SYS_FILIO_H\" was never defined.
29653Usually this means the macro was only invoked conditionally." >&2;}
29654   { (exit 1); exit 1; }; }
29655fi
29656if test -z "${HAVE_SYS_SYSCTL_H_TRUE}" && test -z "${HAVE_SYS_SYSCTL_H_FALSE}"; then
29657  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_SYSCTL_H\" was never defined.
29658Usually this means the macro was only invoked conditionally." >&5
29659$as_echo "$as_me: error: conditional \"HAVE_SYS_SYSCTL_H\" was never defined.
29660Usually this means the macro was only invoked conditionally." >&2;}
29661   { (exit 1); exit 1; }; }
29662fi
29663if test -z "${TARGET_LFS_TRUE}" && test -z "${TARGET_LFS_FALSE}"; then
29664  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_LFS\" was never defined.
29665Usually this means the macro was only invoked conditionally." >&5
29666$as_echo "$as_me: error: conditional \"TARGET_LFS\" was never defined.
29667Usually this means the macro was only invoked conditionally." >&2;}
29668   { (exit 1); exit 1; }; }
29669fi
29670if test -z "${TARGET_SUSE_TRUE}" && test -z "${TARGET_SUSE_FALSE}"; then
29671  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_SUSE\" was never defined.
29672Usually this means the macro was only invoked conditionally." >&5
29673$as_echo "$as_me: error: conditional \"TARGET_SUSE\" was never defined.
29674Usually this means the macro was only invoked conditionally." >&2;}
29675   { (exit 1); exit 1; }; }
29676fi
29677if test -z "${TARGET_GENTOO_TRUE}" && test -z "${TARGET_GENTOO_FALSE}"; then
29678  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_GENTOO\" was never defined.
29679Usually this means the macro was only invoked conditionally." >&5
29680$as_echo "$as_me: error: conditional \"TARGET_GENTOO\" was never defined.
29681Usually this means the macro was only invoked conditionally." >&2;}
29682   { (exit 1); exit 1; }; }
29683fi
29684if test -z "${TARGET_DEBIAN_TRUE}" && test -z "${TARGET_DEBIAN_FALSE}"; then
29685  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_DEBIAN\" was never defined.
29686Usually this means the macro was only invoked conditionally." >&5
29687$as_echo "$as_me: error: conditional \"TARGET_DEBIAN\" was never defined.
29688Usually this means the macro was only invoked conditionally." >&2;}
29689   { (exit 1); exit 1; }; }
29690fi
29691if test -z "${TARGET_ARCHLINUX_TRUE}" && test -z "${TARGET_ARCHLINUX_FALSE}"; then
29692  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ARCHLINUX\" was never defined.
29693Usually this means the macro was only invoked conditionally." >&5
29694$as_echo "$as_me: error: conditional \"TARGET_ARCHLINUX\" was never defined.
29695Usually this means the macro was only invoked conditionally." >&2;}
29696   { (exit 1); exit 1; }; }
29697fi
29698if test -z "${TARGET_FEDORA_TRUE}" && test -z "${TARGET_FEDORA_FALSE}"; then
29699  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_FEDORA\" was never defined.
29700Usually this means the macro was only invoked conditionally." >&5
29701$as_echo "$as_me: error: conditional \"TARGET_FEDORA\" was never defined.
29702Usually this means the macro was only invoked conditionally." >&2;}
29703   { (exit 1); exit 1; }; }
29704fi
29705if test -z "${TARGET_MANDRIVA_TRUE}" && test -z "${TARGET_MANDRIVA_FALSE}"; then
29706  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_MANDRIVA\" was never defined.
29707Usually this means the macro was only invoked conditionally." >&5
29708$as_echo "$as_me: error: conditional \"TARGET_MANDRIVA\" was never defined.
29709Usually this means the macro was only invoked conditionally." >&2;}
29710   { (exit 1); exit 1; }; }
29711fi
29712if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
29713  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_DARWIN\" was never defined.
29714Usually this means the macro was only invoked conditionally." >&5
29715$as_echo "$as_me: error: conditional \"TARGET_DARWIN\" was never defined.
29716Usually this means the macro was only invoked conditionally." >&2;}
29717   { (exit 1); exit 1; }; }
29718fi
29719if test -z "${TARGET_NETBSD_TRUE}" && test -z "${TARGET_NETBSD_FALSE}"; then
29720  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_NETBSD\" was never defined.
29721Usually this means the macro was only invoked conditionally." >&5
29722$as_echo "$as_me: error: conditional \"TARGET_NETBSD\" was never defined.
29723Usually this means the macro was only invoked conditionally." >&2;}
29724   { (exit 1); exit 1; }; }
29725fi
29726if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then
29727  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_FREEBSD\" was never defined.
29728Usually this means the macro was only invoked conditionally." >&5
29729$as_echo "$as_me: error: conditional \"TARGET_FREEBSD\" was never defined.
29730Usually this means the macro was only invoked conditionally." >&2;}
29731   { (exit 1); exit 1; }; }
29732fi
29733if test -z "${TARGET_SLACKWARE_TRUE}" && test -z "${TARGET_SLACKWARE_FALSE}"; then
29734  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_SLACKWARE\" was never defined.
29735Usually this means the macro was only invoked conditionally." >&5
29736$as_echo "$as_me: error: conditional \"TARGET_SLACKWARE\" was never defined.
29737Usually this means the macro was only invoked conditionally." >&2;}
29738   { (exit 1); exit 1; }; }
29739fi
29740if test -z "${ENABLE_CHROOT_TRUE}" && test -z "${ENABLE_CHROOT_FALSE}"; then
29741  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_CHROOT\" was never defined.
29742Usually this means the macro was only invoked conditionally." >&5
29743$as_echo "$as_me: error: conditional \"ENABLE_CHROOT\" was never defined.
29744Usually this means the macro was only invoked conditionally." >&2;}
29745   { (exit 1); exit 1; }; }
29746fi
29747if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
29748  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
29749Usually this means the macro was only invoked conditionally." >&5
29750$as_echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
29751Usually this means the macro was only invoked conditionally." >&2;}
29752   { (exit 1); exit 1; }; }
29753fi
29754if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
29755  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INOTIFY\" was never defined.
29756Usually this means the macro was only invoked conditionally." >&5
29757$as_echo "$as_me: error: conditional \"HAVE_INOTIFY\" was never defined.
29758Usually this means the macro was only invoked conditionally." >&2;}
29759   { (exit 1); exit 1; }; }
29760fi
29761if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
29762  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_KQUEUE\" was never defined.
29763Usually this means the macro was only invoked conditionally." >&5
29764$as_echo "$as_me: error: conditional \"HAVE_KQUEUE\" was never defined.
29765Usually this means the macro was only invoked conditionally." >&2;}
29766   { (exit 1); exit 1; }; }
29767fi
29768
29769  ac_config_commands="$ac_config_commands po/stamp-it"
29770
29771
29772if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
29773  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GLIB\" was never defined.
29774Usually this means the macro was only invoked conditionally." >&5
29775$as_echo "$as_me: error: conditional \"HAVE_GLIB\" was never defined.
29776Usually this means the macro was only invoked conditionally." >&2;}
29777   { (exit 1); exit 1; }; }
29778fi
29779if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
29780  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GOBJECT\" was never defined.
29781Usually this means the macro was only invoked conditionally." >&5
29782$as_echo "$as_me: error: conditional \"HAVE_GOBJECT\" was never defined.
29783Usually this means the macro was only invoked conditionally." >&2;}
29784   { (exit 1); exit 1; }; }
29785fi
29786if test -z "${HAVE_QT3_TRUE}" && test -z "${HAVE_QT3_FALSE}"; then
29787  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_QT3\" was never defined.
29788Usually this means the macro was only invoked conditionally." >&5
29789$as_echo "$as_me: error: conditional \"HAVE_QT3\" was never defined.
29790Usually this means the macro was only invoked conditionally." >&2;}
29791   { (exit 1); exit 1; }; }
29792fi
29793if test -z "${HAVE_QT4_TRUE}" && test -z "${HAVE_QT4_FALSE}"; then
29794  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_QT4\" was never defined.
29795Usually this means the macro was only invoked conditionally." >&5
29796$as_echo "$as_me: error: conditional \"HAVE_QT4\" was never defined.
29797Usually this means the macro was only invoked conditionally." >&2;}
29798   { (exit 1); exit 1; }; }
29799fi
29800if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
29801  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
29802Usually this means the macro was only invoked conditionally." >&5
29803$as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
29804Usually this means the macro was only invoked conditionally." >&2;}
29805   { (exit 1); exit 1; }; }
29806fi
29807if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
29808  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
29809Usually this means the macro was only invoked conditionally." >&5
29810$as_echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
29811Usually this means the macro was only invoked conditionally." >&2;}
29812   { (exit 1); exit 1; }; }
29813fi
29814if test -z "${HAVE_XML_TRUE}" && test -z "${HAVE_XML_FALSE}"; then
29815  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XML\" was never defined.
29816Usually this means the macro was only invoked conditionally." >&5
29817$as_echo "$as_me: error: conditional \"HAVE_XML\" was never defined.
29818Usually this means the macro was only invoked conditionally." >&2;}
29819   { (exit 1); exit 1; }; }
29820fi
29821if test -z "${HAVE_GDBM_TRUE}" && test -z "${HAVE_GDBM_FALSE}"; then
29822  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GDBM\" was never defined.
29823Usually this means the macro was only invoked conditionally." >&5
29824$as_echo "$as_me: error: conditional \"HAVE_GDBM\" was never defined.
29825Usually this means the macro was only invoked conditionally." >&2;}
29826   { (exit 1); exit 1; }; }
29827fi
29828if test -z "${HAVE_DBM_TRUE}" && test -z "${HAVE_DBM_FALSE}"; then
29829  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBM\" was never defined.
29830Usually this means the macro was only invoked conditionally." >&5
29831$as_echo "$as_me: error: conditional \"HAVE_DBM\" was never defined.
29832Usually this means the macro was only invoked conditionally." >&2;}
29833   { (exit 1); exit 1; }; }
29834fi
29835if test -z "${HAVE_LIBDAEMON_TRUE}" && test -z "${HAVE_LIBDAEMON_FALSE}"; then
29836  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDAEMON\" was never defined.
29837Usually this means the macro was only invoked conditionally." >&5
29838$as_echo "$as_me: error: conditional \"HAVE_LIBDAEMON\" was never defined.
29839Usually this means the macro was only invoked conditionally." >&2;}
29840   { (exit 1); exit 1; }; }
29841fi
29842if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
29843  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
29844Usually this means the macro was only invoked conditionally." >&5
29845$as_echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
29846Usually this means the macro was only invoked conditionally." >&2;}
29847   { (exit 1); exit 1; }; }
29848fi
29849if test -z "${HAVE_PYGTK_TRUE}" && test -z "${HAVE_PYGTK_FALSE}"; then
29850  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYGTK\" was never defined.
29851Usually this means the macro was only invoked conditionally." >&5
29852$as_echo "$as_me: error: conditional \"HAVE_PYGTK\" was never defined.
29853Usually this means the macro was only invoked conditionally." >&2;}
29854   { (exit 1); exit 1; }; }
29855fi
29856if test -z "${HAVE_PYTHON_DBUS_TRUE}" && test -z "${HAVE_PYTHON_DBUS_FALSE}"; then
29857  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON_DBUS\" was never defined.
29858Usually this means the macro was only invoked conditionally." >&5
29859$as_echo "$as_me: error: conditional \"HAVE_PYTHON_DBUS\" was never defined.
29860Usually this means the macro was only invoked conditionally." >&2;}
29861   { (exit 1); exit 1; }; }
29862fi
29863if test -z "${HAVE_MONO_TRUE}" && test -z "${HAVE_MONO_FALSE}"; then
29864  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MONO\" was never defined.
29865Usually this means the macro was only invoked conditionally." >&5
29866$as_echo "$as_me: error: conditional \"HAVE_MONO\" was never defined.
29867Usually this means the macro was only invoked conditionally." >&2;}
29868   { (exit 1); exit 1; }; }
29869fi
29870if test -z "${HAVE_MONODOC_TRUE}" && test -z "${HAVE_MONODOC_FALSE}"; then
29871  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MONODOC\" was never defined.
29872Usually this means the macro was only invoked conditionally." >&5
29873$as_echo "$as_me: error: conditional \"HAVE_MONODOC\" was never defined.
29874Usually this means the macro was only invoked conditionally." >&2;}
29875   { (exit 1); exit 1; }; }
29876fi
29877if test -z "${ENABLE_AUTOIPD_TRUE}" && test -z "${ENABLE_AUTOIPD_FALSE}"; then
29878  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_AUTOIPD\" was never defined.
29879Usually this means the macro was only invoked conditionally." >&5
29880$as_echo "$as_me: error: conditional \"ENABLE_AUTOIPD\" was never defined.
29881Usually this means the macro was only invoked conditionally." >&2;}
29882   { (exit 1); exit 1; }; }
29883fi
29884if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
29885  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
29886Usually this means the macro was only invoked conditionally." >&5
29887$as_echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
29888Usually this means the macro was only invoked conditionally." >&2;}
29889   { (exit 1); exit 1; }; }
29890fi
29891if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
29892  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
29893Usually this means the macro was only invoked conditionally." >&5
29894$as_echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
29895Usually this means the macro was only invoked conditionally." >&2;}
29896   { (exit 1); exit 1; }; }
29897fi
29898if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
29899  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
29900Usually this means the macro was only invoked conditionally." >&5
29901$as_echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
29902Usually this means the macro was only invoked conditionally." >&2;}
29903   { (exit 1); exit 1; }; }
29904fi
29905if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
29906  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
29907Usually this means the macro was only invoked conditionally." >&5
29908$as_echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
29909Usually this means the macro was only invoked conditionally." >&2;}
29910   { (exit 1); exit 1; }; }
29911fi
29912if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
29913  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
29914Usually this means the macro was only invoked conditionally." >&5
29915$as_echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
29916Usually this means the macro was only invoked conditionally." >&2;}
29917   { (exit 1); exit 1; }; }
29918fi
29919if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
29920  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
29921Usually this means the macro was only invoked conditionally." >&5
29922$as_echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
29923Usually this means the macro was only invoked conditionally." >&2;}
29924   { (exit 1); exit 1; }; }
29925fi
29926if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
29927  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
29928Usually this means the macro was only invoked conditionally." >&5
29929$as_echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
29930Usually this means the macro was only invoked conditionally." >&2;}
29931   { (exit 1); exit 1; }; }
29932fi
29933if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
29934  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
29935Usually this means the macro was only invoked conditionally." >&5
29936$as_echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
29937Usually this means the macro was only invoked conditionally." >&2;}
29938   { (exit 1); exit 1; }; }
29939fi
29940if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
29941  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
29942Usually this means the macro was only invoked conditionally." >&5
29943$as_echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
29944Usually this means the macro was only invoked conditionally." >&2;}
29945   { (exit 1); exit 1; }; }
29946fi
29947if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
29948  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
29949Usually this means the macro was only invoked conditionally." >&5
29950$as_echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
29951Usually this means the macro was only invoked conditionally." >&2;}
29952   { (exit 1); exit 1; }; }
29953fi
29954if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
29955  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
29956Usually this means the macro was only invoked conditionally." >&5
29957$as_echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
29958Usually this means the macro was only invoked conditionally." >&2;}
29959   { (exit 1); exit 1; }; }
29960fi
29961if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
29962  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
29963Usually this means the macro was only invoked conditionally." >&5
29964$as_echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
29965Usually this means the macro was only invoked conditionally." >&2;}
29966   { (exit 1); exit 1; }; }
29967fi
29968if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
29969  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
29970Usually this means the macro was only invoked conditionally." >&5
29971$as_echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
29972Usually this means the macro was only invoked conditionally." >&2;}
29973   { (exit 1); exit 1; }; }
29974fi
29975if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
29976  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
29977Usually this means the macro was only invoked conditionally." >&5
29978$as_echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
29979Usually this means the macro was only invoked conditionally." >&2;}
29980   { (exit 1); exit 1; }; }
29981fi
29982if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
29983  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
29984Usually this means the macro was only invoked conditionally." >&5
29985$as_echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
29986Usually this means the macro was only invoked conditionally." >&2;}
29987   { (exit 1); exit 1; }; }
29988fi
29989if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
29990  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
29991Usually this means the macro was only invoked conditionally." >&5
29992$as_echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
29993Usually this means the macro was only invoked conditionally." >&2;}
29994   { (exit 1); exit 1; }; }
29995fi
29996if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
29997  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
29998Usually this means the macro was only invoked conditionally." >&5
29999$as_echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
30000Usually this means the macro was only invoked conditionally." >&2;}
30001   { (exit 1); exit 1; }; }
30002fi
30003if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
30004  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
30005Usually this means the macro was only invoked conditionally." >&5
30006$as_echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
30007Usually this means the macro was only invoked conditionally." >&2;}
30008   { (exit 1); exit 1; }; }
30009fi
30010if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
30011  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
30012Usually this means the macro was only invoked conditionally." >&5
30013$as_echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
30014Usually this means the macro was only invoked conditionally." >&2;}
30015   { (exit 1); exit 1; }; }
30016fi
30017if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
30018  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
30019Usually this means the macro was only invoked conditionally." >&5
30020$as_echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
30021Usually this means the macro was only invoked conditionally." >&2;}
30022   { (exit 1); exit 1; }; }
30023fi
30024if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
30025  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
30026Usually this means the macro was only invoked conditionally." >&5
30027$as_echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
30028Usually this means the macro was only invoked conditionally." >&2;}
30029   { (exit 1); exit 1; }; }
30030fi
30031if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
30032  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
30033Usually this means the macro was only invoked conditionally." >&5
30034$as_echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
30035Usually this means the macro was only invoked conditionally." >&2;}
30036   { (exit 1); exit 1; }; }
30037fi
30038if test -z "${ENABLE_CORE_DOCS_TRUE}" && test -z "${ENABLE_CORE_DOCS_FALSE}"; then
30039  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_CORE_DOCS\" was never defined.
30040Usually this means the macro was only invoked conditionally." >&5
30041$as_echo "$as_me: error: conditional \"ENABLE_CORE_DOCS\" was never defined.
30042Usually this means the macro was only invoked conditionally." >&2;}
30043   { (exit 1); exit 1; }; }
30044fi
30045if test -z "${USE_XMLTOMAN_TRUE}" && test -z "${USE_XMLTOMAN_FALSE}"; then
30046  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XMLTOMAN\" was never defined.
30047Usually this means the macro was only invoked conditionally." >&5
30048$as_echo "$as_me: error: conditional \"USE_XMLTOMAN\" was never defined.
30049Usually this means the macro was only invoked conditionally." >&2;}
30050   { (exit 1); exit 1; }; }
30051fi
30052if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
30053  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MANPAGES\" was never defined.
30054Usually this means the macro was only invoked conditionally." >&5
30055$as_echo "$as_me: error: conditional \"BUILD_MANPAGES\" was never defined.
30056Usually this means the macro was only invoked conditionally." >&2;}
30057   { (exit 1); exit 1; }; }
30058fi
30059if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
30060  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTS\" was never defined.
30061Usually this means the macro was only invoked conditionally." >&5
30062$as_echo "$as_me: error: conditional \"ENABLE_TESTS\" was never defined.
30063Usually this means the macro was only invoked conditionally." >&2;}
30064   { (exit 1); exit 1; }; }
30065fi
30066if test -z "${ENABLE_COMPAT_LIBDNS_SD_TRUE}" && test -z "${ENABLE_COMPAT_LIBDNS_SD_FALSE}"; then
30067  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined.
30068Usually this means the macro was only invoked conditionally." >&5
30069$as_echo "$as_me: error: conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined.
30070Usually this means the macro was only invoked conditionally." >&2;}
30071   { (exit 1); exit 1; }; }
30072fi
30073if test -z "${ENABLE_COMPAT_HOWL_TRUE}" && test -z "${ENABLE_COMPAT_HOWL_FALSE}"; then
30074  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPAT_HOWL\" was never defined.
30075Usually this means the macro was only invoked conditionally." >&5
30076$as_echo "$as_me: error: conditional \"ENABLE_COMPAT_HOWL\" was never defined.
30077Usually this means the macro was only invoked conditionally." >&2;}
30078   { (exit 1); exit 1; }; }
30079fi
30080
30081: ${CONFIG_STATUS=./config.status}
30082ac_write_fail=0
30083ac_clean_files_save=$ac_clean_files
30084ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30085{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30086$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30087cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30088#! $SHELL
30089# Generated by $as_me.
30090# Run this file to recreate the current configuration.
30091# Compiler output produced by configure, useful for debugging
30092# configure, is in config.log if it exists.
30093
30094debug=false
30095ac_cs_recheck=false
30096ac_cs_silent=false
30097SHELL=\${CONFIG_SHELL-$SHELL}
30098_ACEOF
30099
30100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101## --------------------- ##
30102## M4sh Initialization.  ##
30103## --------------------- ##
30104
30105# Be more Bourne compatible
30106DUALCASE=1; export DUALCASE # for MKS sh
30107if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30108  emulate sh
30109  NULLCMD=:
30110  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30111  # is contrary to our usage.  Disable this feature.
30112  alias -g '${1+"$@"}'='"$@"'
30113  setopt NO_GLOB_SUBST
30114else
30115  case `(set -o) 2>/dev/null` in
30116  *posix*) set -o posix ;;
30117esac
30118
30119fi
30120
30121
30122
30123
30124# PATH needs CR
30125# Avoid depending upon Character Ranges.
30126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30129as_cr_digits='0123456789'
30130as_cr_alnum=$as_cr_Letters$as_cr_digits
30131
30132as_nl='
30133'
30134export as_nl
30135# Printing a long string crashes Solaris 7 /usr/bin/printf.
30136as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30139if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30140  as_echo='printf %s\n'
30141  as_echo_n='printf %s'
30142else
30143  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30144    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30145    as_echo_n='/usr/ucb/echo -n'
30146  else
30147    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30148    as_echo_n_body='eval
30149      arg=$1;
30150      case $arg in
30151      *"$as_nl"*)
30152	expr "X$arg" : "X\\(.*\\)$as_nl";
30153	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30154      esac;
30155      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30156    '
30157    export as_echo_n_body
30158    as_echo_n='sh -c $as_echo_n_body as_echo'
30159  fi
30160  export as_echo_body
30161  as_echo='sh -c $as_echo_body as_echo'
30162fi
30163
30164# The user is always right.
30165if test "${PATH_SEPARATOR+set}" != set; then
30166  PATH_SEPARATOR=:
30167  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30168    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30169      PATH_SEPARATOR=';'
30170  }
30171fi
30172
30173# Support unset when possible.
30174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30175  as_unset=unset
30176else
30177  as_unset=false
30178fi
30179
30180
30181# IFS
30182# We need space, tab and new line, in precisely that order.  Quoting is
30183# there to prevent editors from complaining about space-tab.
30184# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30185# splitting by setting IFS to empty value.)
30186IFS=" ""	$as_nl"
30187
30188# Find who we are.  Look in the path if we contain no directory separator.
30189case $0 in
30190  *[\\/]* ) as_myself=$0 ;;
30191  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30192for as_dir in $PATH
30193do
30194  IFS=$as_save_IFS
30195  test -z "$as_dir" && as_dir=.
30196  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30197done
30198IFS=$as_save_IFS
30199
30200     ;;
30201esac
30202# We did not find ourselves, most probably we were run as `sh COMMAND'
30203# in which case we are not to be found in the path.
30204if test "x$as_myself" = x; then
30205  as_myself=$0
30206fi
30207if test ! -f "$as_myself"; then
30208  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30209  { (exit 1); exit 1; }
30210fi
30211
30212# Work around bugs in pre-3.0 UWIN ksh.
30213for as_var in ENV MAIL MAILPATH
30214do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30215done
30216PS1='$ '
30217PS2='> '
30218PS4='+ '
30219
30220# NLS nuisances.
30221LC_ALL=C
30222export LC_ALL
30223LANGUAGE=C
30224export LANGUAGE
30225
30226# Required to use basename.
30227if expr a : '\(a\)' >/dev/null 2>&1 &&
30228   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30229  as_expr=expr
30230else
30231  as_expr=false
30232fi
30233
30234if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30235  as_basename=basename
30236else
30237  as_basename=false
30238fi
30239
30240
30241# Name of the executable.
30242as_me=`$as_basename -- "$0" ||
30243$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30244	 X"$0" : 'X\(//\)$' \| \
30245	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30246$as_echo X/"$0" |
30247    sed '/^.*\/\([^/][^/]*\)\/*$/{
30248	    s//\1/
30249	    q
30250	  }
30251	  /^X\/\(\/\/\)$/{
30252	    s//\1/
30253	    q
30254	  }
30255	  /^X\/\(\/\).*/{
30256	    s//\1/
30257	    q
30258	  }
30259	  s/.*/./; q'`
30260
30261# CDPATH.
30262$as_unset CDPATH
30263
30264
30265
30266  as_lineno_1=$LINENO
30267  as_lineno_2=$LINENO
30268  test "x$as_lineno_1" != "x$as_lineno_2" &&
30269  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30270
30271  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30272  # uniformly replaced by the line number.  The first 'sed' inserts a
30273  # line-number line after each line using $LINENO; the second 'sed'
30274  # does the real work.  The second script uses 'N' to pair each
30275  # line-number line with the line containing $LINENO, and appends
30276  # trailing '-' during substitution so that $LINENO is not a special
30277  # case at line end.
30278  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30279  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30280  # E. McMahon (1931-1989) for sed's syntax.  :-)
30281  sed -n '
30282    p
30283    /[$]LINENO/=
30284  ' <$as_myself |
30285    sed '
30286      s/[$]LINENO.*/&-/
30287      t lineno
30288      b
30289      :lineno
30290      N
30291      :loop
30292      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30293      t loop
30294      s/-\n.*//
30295    ' >$as_me.lineno &&
30296  chmod +x "$as_me.lineno" ||
30297    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30298   { (exit 1); exit 1; }; }
30299
30300  # Don't try to exec as it changes $[0], causing all sort of problems
30301  # (the dirname of $[0] is not the place where we might find the
30302  # original and so on.  Autoconf is especially sensitive to this).
30303  . "./$as_me.lineno"
30304  # Exit status is that of the last command.
30305  exit
30306}
30307
30308
30309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30310  as_dirname=dirname
30311else
30312  as_dirname=false
30313fi
30314
30315ECHO_C= ECHO_N= ECHO_T=
30316case `echo -n x` in
30317-n*)
30318  case `echo 'x\c'` in
30319  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30320  *)   ECHO_C='\c';;
30321  esac;;
30322*)
30323  ECHO_N='-n';;
30324esac
30325if expr a : '\(a\)' >/dev/null 2>&1 &&
30326   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30327  as_expr=expr
30328else
30329  as_expr=false
30330fi
30331
30332rm -f conf$$ conf$$.exe conf$$.file
30333if test -d conf$$.dir; then
30334  rm -f conf$$.dir/conf$$.file
30335else
30336  rm -f conf$$.dir
30337  mkdir conf$$.dir 2>/dev/null
30338fi
30339if (echo >conf$$.file) 2>/dev/null; then
30340  if ln -s conf$$.file conf$$ 2>/dev/null; then
30341    as_ln_s='ln -s'
30342    # ... but there are two gotchas:
30343    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30344    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30345    # In both cases, we have to default to `cp -p'.
30346    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30347      as_ln_s='cp -p'
30348  elif ln conf$$.file conf$$ 2>/dev/null; then
30349    as_ln_s=ln
30350  else
30351    as_ln_s='cp -p'
30352  fi
30353else
30354  as_ln_s='cp -p'
30355fi
30356rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30357rmdir conf$$.dir 2>/dev/null
30358
30359if mkdir -p . 2>/dev/null; then
30360  as_mkdir_p=:
30361else
30362  test -d ./-p && rmdir ./-p
30363  as_mkdir_p=false
30364fi
30365
30366if test -x / >/dev/null 2>&1; then
30367  as_test_x='test -x'
30368else
30369  if ls -dL / >/dev/null 2>&1; then
30370    as_ls_L_option=L
30371  else
30372    as_ls_L_option=
30373  fi
30374  as_test_x='
30375    eval sh -c '\''
30376      if test -d "$1"; then
30377	test -d "$1/.";
30378      else
30379	case $1 in
30380	-*)set "./$1";;
30381	esac;
30382	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30383	???[sx]*):;;*)false;;esac;fi
30384    '\'' sh
30385  '
30386fi
30387as_executable_p=$as_test_x
30388
30389# Sed expression to map a string onto a valid CPP name.
30390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30391
30392# Sed expression to map a string onto a valid variable name.
30393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30394
30395
30396exec 6>&1
30397
30398# Save the log message, to keep $[0] and so on meaningful, and to
30399# report actual input values of CONFIG_FILES etc. instead of their
30400# values after options handling.
30401ac_log="
30402This file was extended by avahi $as_me 0.6.25, which was
30403generated by GNU Autoconf 2.63.  Invocation command line was
30404
30405  CONFIG_FILES    = $CONFIG_FILES
30406  CONFIG_HEADERS  = $CONFIG_HEADERS
30407  CONFIG_LINKS    = $CONFIG_LINKS
30408  CONFIG_COMMANDS = $CONFIG_COMMANDS
30409  $ $0 $@
30410
30411on `(hostname || uname -n) 2>/dev/null | sed 1q`
30412"
30413
30414_ACEOF
30415
30416case $ac_config_files in *"
30417"*) set x $ac_config_files; shift; ac_config_files=$*;;
30418esac
30419
30420case $ac_config_headers in *"
30421"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30422esac
30423
30424
30425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30426# Files that config.status was made for.
30427config_files="$ac_config_files"
30428config_headers="$ac_config_headers"
30429config_commands="$ac_config_commands"
30430
30431_ACEOF
30432
30433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30434ac_cs_usage="\
30435\`$as_me' instantiates files from templates according to the
30436current configuration.
30437
30438Usage: $0 [OPTION]... [FILE]...
30439
30440  -h, --help       print this help, then exit
30441  -V, --version    print version number and configuration settings, then exit
30442  -q, --quiet, --silent
30443                   do not print progress messages
30444  -d, --debug      don't remove temporary files
30445      --recheck    update $as_me by reconfiguring in the same conditions
30446      --file=FILE[:TEMPLATE] 
30447                   instantiate the configuration file FILE
30448      --header=FILE[:TEMPLATE] 
30449                   instantiate the configuration header FILE
30450
30451Configuration files:
30452$config_files
30453
30454Configuration headers:
30455$config_headers
30456
30457Configuration commands:
30458$config_commands
30459
30460Report bugs to <bug-autoconf@gnu.org>."
30461
30462_ACEOF
30463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30464ac_cs_version="\\
30465avahi config.status 0.6.25
30466configured by $0, generated by GNU Autoconf 2.63,
30467  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30468
30469Copyright (C) 2008 Free Software Foundation, Inc.
30470This config.status script is free software; the Free Software Foundation
30471gives unlimited permission to copy, distribute and modify it."
30472
30473ac_pwd='$ac_pwd'
30474srcdir='$srcdir'
30475INSTALL='$INSTALL'
30476MKDIR_P='$MKDIR_P'
30477AWK='$AWK'
30478test -n "\$AWK" || AWK=awk
30479_ACEOF
30480
30481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482# The default lists apply if the user does not specify any file.
30483ac_need_defaults=:
30484while test $# != 0
30485do
30486  case $1 in
30487  --*=*)
30488    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30489    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30490    ac_shift=:
30491    ;;
30492  *)
30493    ac_option=$1
30494    ac_optarg=$2
30495    ac_shift=shift
30496    ;;
30497  esac
30498
30499  case $ac_option in
30500  # Handling of the options.
30501  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30502    ac_cs_recheck=: ;;
30503  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30504    $as_echo "$ac_cs_version"; exit ;;
30505  --debug | --debu | --deb | --de | --d | -d )
30506    debug=: ;;
30507  --file | --fil | --fi | --f )
30508    $ac_shift
30509    case $ac_optarg in
30510    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30511    esac
30512    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30513    ac_need_defaults=false;;
30514  --header | --heade | --head | --hea )
30515    $ac_shift
30516    case $ac_optarg in
30517    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30518    esac
30519    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30520    ac_need_defaults=false;;
30521  --he | --h)
30522    # Conflict between --help and --header
30523    { $as_echo "$as_me: error: ambiguous option: $1
30524Try \`$0 --help' for more information." >&2
30525   { (exit 1); exit 1; }; };;
30526  --help | --hel | -h )
30527    $as_echo "$ac_cs_usage"; exit ;;
30528  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30529  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30530    ac_cs_silent=: ;;
30531
30532  # This is an error.
30533  -*) { $as_echo "$as_me: error: unrecognized option: $1
30534Try \`$0 --help' for more information." >&2
30535   { (exit 1); exit 1; }; } ;;
30536
30537  *) ac_config_targets="$ac_config_targets $1"
30538     ac_need_defaults=false ;;
30539
30540  esac
30541  shift
30542done
30543
30544ac_configure_extra_args=
30545
30546if $ac_cs_silent; then
30547  exec 6>/dev/null
30548  ac_configure_extra_args="$ac_configure_extra_args --silent"
30549fi
30550
30551_ACEOF
30552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553if \$ac_cs_recheck; then
30554  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30555  shift
30556  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30557  CONFIG_SHELL='$SHELL'
30558  export CONFIG_SHELL
30559  exec "\$@"
30560fi
30561
30562_ACEOF
30563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30564exec 5>>config.log
30565{
30566  echo
30567  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30568@%:@@%:@ Running $as_me. @%:@@%:@
30569_ASBOX
30570  $as_echo "$ac_log"
30571} >&5
30572
30573_ACEOF
30574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30575#
30576# INIT-COMMANDS
30577#
30578AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30579
30580
30581# The HP-UX ksh and POSIX shell print the target directory to stdout
30582# if CDPATH is set.
30583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30584
30585sed_quote_subst='$sed_quote_subst'
30586double_quote_subst='$double_quote_subst'
30587delay_variable_subst='$delay_variable_subst'
30588macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30589macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30590enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30591enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30592pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30593enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30594host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30595host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30596host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30597build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30598build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30599build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30600SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30601Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30602GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30603EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30604FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30605LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30606NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30607LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30608max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30609ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30610exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30611lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30612lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30613lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30614reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30615reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30616OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30617deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30618file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30619AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30620AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30621STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30622RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30623old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30624old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30625old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30626CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30627CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30628compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30629GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30630lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30631lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30632lt_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"`'
30633lt_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"`'
30634objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30635SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30636ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30637MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30638lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30639lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30640lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30641lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30642lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30643need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30644DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30645NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30646LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30647OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30648OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30649libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30650shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30651extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30652archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30653enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30654export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30655whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30656compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30657old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30658old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30659archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30660archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30661module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30662module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30663with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30664allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30665no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30666hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30667hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30668hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30669hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30670hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30671hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30672hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30673hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30674inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30675link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30676fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30677always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30678export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30679exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30680include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30681prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30682file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30683variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30684need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30685need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30686version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30687runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30688shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30689shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30690libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30691library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30692soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30693postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30694postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30695finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30696finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30697hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30698sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30699sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30700hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30701enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30702enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30703enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30704old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30705striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30706compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30707predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30708postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30709predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30710postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30711compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30712LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30713old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30714compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30715GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30716lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30717lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30718lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30719lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30720lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30721archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30722enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30723export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30724whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30725compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30726old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30727old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30728archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30729archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30730module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30731module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30732with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30733allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30734no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30735hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30736hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30737hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30738hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30739hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30740hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30741hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30742hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30743inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30744link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30745fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30746always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30747export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30748exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30749include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30750prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30751file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30752hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30753compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30754predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30755postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30756predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30757postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30758compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30759
30760LTCC='$LTCC'
30761LTCFLAGS='$LTCFLAGS'
30762compiler='$compiler_DEFAULT'
30763
30764# Quote evaled strings.
30765for var in SED \
30766GREP \
30767EGREP \
30768FGREP \
30769LD \
30770NM \
30771LN_S \
30772lt_SP2NL \
30773lt_NL2SP \
30774reload_flag \
30775OBJDUMP \
30776deplibs_check_method \
30777file_magic_cmd \
30778AR \
30779AR_FLAGS \
30780STRIP \
30781RANLIB \
30782CC \
30783CFLAGS \
30784compiler \
30785lt_cv_sys_global_symbol_pipe \
30786lt_cv_sys_global_symbol_to_cdecl \
30787lt_cv_sys_global_symbol_to_c_name_address \
30788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30789SHELL \
30790ECHO \
30791lt_prog_compiler_no_builtin_flag \
30792lt_prog_compiler_wl \
30793lt_prog_compiler_pic \
30794lt_prog_compiler_static \
30795lt_cv_prog_compiler_c_o \
30796need_locks \
30797DSYMUTIL \
30798NMEDIT \
30799LIPO \
30800OTOOL \
30801OTOOL64 \
30802shrext_cmds \
30803export_dynamic_flag_spec \
30804whole_archive_flag_spec \
30805compiler_needs_object \
30806with_gnu_ld \
30807allow_undefined_flag \
30808no_undefined_flag \
30809hardcode_libdir_flag_spec \
30810hardcode_libdir_flag_spec_ld \
30811hardcode_libdir_separator \
30812fix_srcfile_path \
30813exclude_expsyms \
30814include_expsyms \
30815file_list_spec \
30816variables_saved_for_relink \
30817libname_spec \
30818library_names_spec \
30819soname_spec \
30820finish_eval \
30821old_striplib \
30822striplib \
30823compiler_lib_search_dirs \
30824predep_objects \
30825postdep_objects \
30826predeps \
30827postdeps \
30828compiler_lib_search_path \
30829LD_CXX \
30830compiler_CXX \
30831lt_prog_compiler_no_builtin_flag_CXX \
30832lt_prog_compiler_wl_CXX \
30833lt_prog_compiler_pic_CXX \
30834lt_prog_compiler_static_CXX \
30835lt_cv_prog_compiler_c_o_CXX \
30836export_dynamic_flag_spec_CXX \
30837whole_archive_flag_spec_CXX \
30838compiler_needs_object_CXX \
30839with_gnu_ld_CXX \
30840allow_undefined_flag_CXX \
30841no_undefined_flag_CXX \
30842hardcode_libdir_flag_spec_CXX \
30843hardcode_libdir_flag_spec_ld_CXX \
30844hardcode_libdir_separator_CXX \
30845fix_srcfile_path_CXX \
30846exclude_expsyms_CXX \
30847include_expsyms_CXX \
30848file_list_spec_CXX \
30849compiler_lib_search_dirs_CXX \
30850predep_objects_CXX \
30851postdep_objects_CXX \
30852predeps_CXX \
30853postdeps_CXX \
30854compiler_lib_search_path_CXX; do
30855    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30856    *[\\\\\\\`\\"\\\$]*)
30857      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30858      ;;
30859    *)
30860      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30861      ;;
30862    esac
30863done
30864
30865# Double-quote double-evaled strings.
30866for var in reload_cmds \
30867old_postinstall_cmds \
30868old_postuninstall_cmds \
30869old_archive_cmds \
30870extract_expsyms_cmds \
30871old_archive_from_new_cmds \
30872old_archive_from_expsyms_cmds \
30873archive_cmds \
30874archive_expsym_cmds \
30875module_cmds \
30876module_expsym_cmds \
30877export_symbols_cmds \
30878prelink_cmds \
30879postinstall_cmds \
30880postuninstall_cmds \
30881finish_cmds \
30882sys_lib_search_path_spec \
30883sys_lib_dlsearch_path_spec \
30884old_archive_cmds_CXX \
30885old_archive_from_new_cmds_CXX \
30886old_archive_from_expsyms_cmds_CXX \
30887archive_cmds_CXX \
30888archive_expsym_cmds_CXX \
30889module_cmds_CXX \
30890module_expsym_cmds_CXX \
30891export_symbols_cmds_CXX \
30892prelink_cmds_CXX; do
30893    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30894    *[\\\\\\\`\\"\\\$]*)
30895      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30896      ;;
30897    *)
30898      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30899      ;;
30900    esac
30901done
30902
30903# Fix-up fallback echo if it was mangled by the above quoting rules.
30904case \$lt_ECHO in
30905*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30906  ;;
30907esac
30908
30909ac_aux_dir='$ac_aux_dir'
30910xsi_shell='$xsi_shell'
30911lt_shell_append='$lt_shell_append'
30912
30913# See if we are running on zsh, and set the options which allow our
30914# commands through without removal of \ escapes INIT.
30915if test -n "\${ZSH_VERSION+set}" ; then
30916   setopt NO_GLOB_SUBST
30917fi
30918
30919
30920    PACKAGE='$PACKAGE'
30921    VERSION='$VERSION'
30922    TIMESTAMP='$TIMESTAMP'
30923    RM='$RM'
30924    ofile='$ofile'
30925
30926
30927
30928
30929
30930
30931
30932_ACEOF
30933
30934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30935
30936# Handling of arguments.
30937for ac_config_target in $ac_config_targets
30938do
30939  case $ac_config_target in
30940    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30941    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30942    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30943    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30944    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30945    "avahi-common/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-common/Makefile" ;;
30946    "avahi-core/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-core/Makefile" ;;
30947    "avahi-glib/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-glib/Makefile" ;;
30948    "avahi-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-gobject/Makefile" ;;
30949    "avahi-qt/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-qt/Makefile" ;;
30950    "avahi-daemon/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-daemon/Makefile" ;;
30951    "avahi-daemon/avahi-dbus.conf") CONFIG_FILES="$CONFIG_FILES avahi-daemon/avahi-dbus.conf" ;;
30952    "avahi-discover-standalone/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-discover-standalone/Makefile" ;;
30953    "avahi-client/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-client/Makefile" ;;
30954    "initscript/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/Makefile" ;;
30955    "initscript/debian/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/debian/Makefile" ;;
30956    "initscript/gentoo/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/gentoo/Makefile" ;;
30957    "initscript/archlinux/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/archlinux/Makefile" ;;
30958    "initscript/suse/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/suse/Makefile" ;;
30959    "initscript/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/fedora/Makefile" ;;
30960    "initscript/lfs/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/lfs/Makefile" ;;
30961    "initscript/mandriva/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/mandriva/Makefile" ;;
30962    "initscript/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/darwin/Makefile" ;;
30963    "initscript/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/freebsd/Makefile" ;;
30964    "initscript/slackware/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/slackware/Makefile" ;;
30965    "avahi-dnsconfd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-dnsconfd/Makefile" ;;
30966    "avahi-utils/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-utils/Makefile" ;;
30967    "avahi-python/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/Makefile" ;;
30968    "avahi-python/avahi/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi/Makefile" ;;
30969    "avahi-python/avahi-discover/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi-discover/Makefile" ;;
30970    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30971    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
30972    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
30973    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30974    "service-type-database/Makefile") CONFIG_FILES="$CONFIG_FILES service-type-database/Makefile" ;;
30975    "avahi-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-sharp/Makefile" ;;
30976    "avahi-ui-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui-sharp/Makefile" ;;
30977    "avahi-compat-libdns_sd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-libdns_sd/Makefile" ;;
30978    "avahi-compat-howl/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/Makefile" ;;
30979    "avahi-compat-howl/samples/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/samples/Makefile" ;;
30980    "avahi-autoipd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-autoipd/Makefile" ;;
30981    "avahi-ui/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui/Makefile" ;;
30982    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30983    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
30984
30985  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30986$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30987   { (exit 1); exit 1; }; };;
30988  esac
30989done
30990
30991
30992# If the user did not use the arguments to specify the items to instantiate,
30993# then the envvar interface is used.  Set only those that are not.
30994# We use the long form for the default assignment because of an extremely
30995# bizarre bug on SunOS 4.1.3.
30996if $ac_need_defaults; then
30997  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30998  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30999  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31000fi
31001
31002# Have a temporary directory for convenience.  Make it in the build tree
31003# simply because there is no reason against having it here, and in addition,
31004# creating and moving files from /tmp can sometimes cause problems.
31005# Hook for its removal unless debugging.
31006# Note that there is a small window in which the directory will not be cleaned:
31007# after its creation but before its name has been assigned to `$tmp'.
31008$debug ||
31009{
31010  tmp=
31011  trap 'exit_status=$?
31012  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31013' 0
31014  trap '{ (exit 1); exit 1; }' 1 2 13 15
31015}
31016# Create a (secure) tmp directory for tmp files.
31017
31018{
31019  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31020  test -n "$tmp" && test -d "$tmp"
31021}  ||
31022{
31023  tmp=./conf$$-$RANDOM
31024  (umask 077 && mkdir "$tmp")
31025} ||
31026{
31027   $as_echo "$as_me: cannot create a temporary directory in ." >&2
31028   { (exit 1); exit 1; }
31029}
31030
31031# Set up the scripts for CONFIG_FILES section.
31032# No need to generate them if there are no CONFIG_FILES.
31033# This happens for instance with `./config.status config.h'.
31034if test -n "$CONFIG_FILES"; then
31035
31036
31037ac_cr='
31038'
31039ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31040if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31041  ac_cs_awk_cr='\\r'
31042else
31043  ac_cs_awk_cr=$ac_cr
31044fi
31045
31046echo 'BEGIN {' >"$tmp/subs1.awk" &&
31047_ACEOF
31048
31049
31050{
31051  echo "cat >conf$$subs.awk <<_ACEOF" &&
31052  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31053  echo "_ACEOF"
31054} >conf$$subs.sh ||
31055  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31056$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31057   { (exit 1); exit 1; }; }
31058ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31059ac_delim='%!_!# '
31060for ac_last_try in false false false false false :; do
31061  . ./conf$$subs.sh ||
31062    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31063$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31064   { (exit 1); exit 1; }; }
31065
31066  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31067  if test $ac_delim_n = $ac_delim_num; then
31068    break
31069  elif $ac_last_try; then
31070    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31071$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31072   { (exit 1); exit 1; }; }
31073  else
31074    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31075  fi
31076done
31077rm -f conf$$subs.sh
31078
31079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31080cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31081_ACEOF
31082sed -n '
31083h
31084s/^/S["/; s/!.*/"]=/
31085p
31086g
31087s/^[^!]*!//
31088:repl
31089t repl
31090s/'"$ac_delim"'$//
31091t delim
31092:nl
31093h
31094s/\(.\{148\}\).*/\1/
31095t more1
31096s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31097p
31098n
31099b repl
31100:more1
31101s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31102p
31103g
31104s/.\{148\}//
31105t nl
31106:delim
31107h
31108s/\(.\{148\}\).*/\1/
31109t more2
31110s/["\\]/\\&/g; s/^/"/; s/$/"/
31111p
31112b
31113:more2
31114s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31115p
31116g
31117s/.\{148\}//
31118t delim
31119' <conf$$subs.awk | sed '
31120/^[^""]/{
31121  N
31122  s/\n//
31123}
31124' >>$CONFIG_STATUS || ac_write_fail=1
31125rm -f conf$$subs.awk
31126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31127_ACAWK
31128cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31129  for (key in S) S_is_set[key] = 1
31130  FS = ""
31131
31132}
31133{
31134  line = $ 0
31135  nfields = split(line, field, "@")
31136  substed = 0
31137  len = length(field[1])
31138  for (i = 2; i < nfields; i++) {
31139    key = field[i]
31140    keylen = length(key)
31141    if (S_is_set[key]) {
31142      value = S[key]
31143      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31144      len += length(value) + length(field[++i])
31145      substed = 1
31146    } else
31147      len += 1 + keylen
31148  }
31149
31150  print line
31151}
31152
31153_ACAWK
31154_ACEOF
31155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31156if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31157  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31158else
31159  cat
31160fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31161  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31162$as_echo "$as_me: error: could not setup config files machinery" >&2;}
31163   { (exit 1); exit 1; }; }
31164_ACEOF
31165
31166# VPATH may cause trouble with some makes, so we remove $(srcdir),
31167# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31168# trailing colons and then remove the whole line if VPATH becomes empty
31169# (actually we leave an empty line to preserve line numbers).
31170if test "x$srcdir" = x.; then
31171  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31172s/:*\$(srcdir):*/:/
31173s/:*\${srcdir}:*/:/
31174s/:*@srcdir@:*/:/
31175s/^\([^=]*=[	 ]*\):*/\1/
31176s/:*$//
31177s/^[^=]*=[	 ]*$//
31178}'
31179fi
31180
31181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31182fi # test -n "$CONFIG_FILES"
31183
31184# Set up the scripts for CONFIG_HEADERS section.
31185# No need to generate them if there are no CONFIG_HEADERS.
31186# This happens for instance with `./config.status Makefile'.
31187if test -n "$CONFIG_HEADERS"; then
31188cat >"$tmp/defines.awk" <<\_ACAWK ||
31189BEGIN {
31190_ACEOF
31191
31192# Transform confdefs.h into an awk script `defines.awk', embedded as
31193# here-document in config.status, that substitutes the proper values into
31194# config.h.in to produce config.h.
31195
31196# Create a delimiter string that does not exist in confdefs.h, to ease
31197# handling of long lines.
31198ac_delim='%!_!# '
31199for ac_last_try in false false :; do
31200  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31201  if test -z "$ac_t"; then
31202    break
31203  elif $ac_last_try; then
31204    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31205$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31206   { (exit 1); exit 1; }; }
31207  else
31208    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31209  fi
31210done
31211
31212# For the awk script, D is an array of macro values keyed by name,
31213# likewise P contains macro parameters if any.  Preserve backslash
31214# newline sequences.
31215
31216ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31217sed -n '
31218s/.\{148\}/&'"$ac_delim"'/g
31219t rset
31220:rset
31221s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31222t def
31223d
31224:def
31225s/\\$//
31226t bsnl
31227s/["\\]/\\&/g
31228s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31229D["\1"]=" \3"/p
31230s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31231d
31232:bsnl
31233s/["\\]/\\&/g
31234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31235D["\1"]=" \3\\\\\\n"\\/p
31236t cont
31237s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31238t cont
31239d
31240:cont
31241n
31242s/.\{148\}/&'"$ac_delim"'/g
31243t clear
31244:clear
31245s/\\$//
31246t bsnlc
31247s/["\\]/\\&/g; s/^/"/; s/$/"/p
31248d
31249:bsnlc
31250s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31251b cont
31252' <confdefs.h | sed '
31253s/'"$ac_delim"'/"\\\
31254"/g' >>$CONFIG_STATUS || ac_write_fail=1
31255
31256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31257  for (key in D) D_is_set[key] = 1
31258  FS = ""
31259}
31260/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31261  line = \$ 0
31262  split(line, arg, " ")
31263  if (arg[1] == "#") {
31264    defundef = arg[2]
31265    mac1 = arg[3]
31266  } else {
31267    defundef = substr(arg[1], 2)
31268    mac1 = arg[2]
31269  }
31270  split(mac1, mac2, "(") #)
31271  macro = mac2[1]
31272  prefix = substr(line, 1, index(line, defundef) - 1)
31273  if (D_is_set[macro]) {
31274    # Preserve the white space surrounding the "#".
31275    print prefix "define", macro P[macro] D[macro]
31276    next
31277  } else {
31278    # Replace #undef with comments.  This is necessary, for example,
31279    # in the case of _POSIX_SOURCE, which is predefined and required
31280    # on some systems where configure will not decide to define it.
31281    if (defundef == "undef") {
31282      print "/*", prefix defundef, macro, "*/"
31283      next
31284    }
31285  }
31286}
31287{ print }
31288_ACAWK
31289_ACEOF
31290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31291  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31292$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31293   { (exit 1); exit 1; }; }
31294fi # test -n "$CONFIG_HEADERS"
31295
31296
31297eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31298shift
31299for ac_tag
31300do
31301  case $ac_tag in
31302  :[FHLC]) ac_mode=$ac_tag; continue;;
31303  esac
31304  case $ac_mode$ac_tag in
31305  :[FHL]*:*);;
31306  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31307$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31308   { (exit 1); exit 1; }; };;
31309  :[FH]-) ac_tag=-:-;;
31310  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31311  esac
31312  ac_save_IFS=$IFS
31313  IFS=:
31314  set x $ac_tag
31315  IFS=$ac_save_IFS
31316  shift
31317  ac_file=$1
31318  shift
31319
31320  case $ac_mode in
31321  :L) ac_source=$1;;
31322  :[FH])
31323    ac_file_inputs=
31324    for ac_f
31325    do
31326      case $ac_f in
31327      -) ac_f="$tmp/stdin";;
31328      *) # Look for the file first in the build tree, then in the source tree
31329	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31330	 # because $ac_f cannot contain `:'.
31331	 test -f "$ac_f" ||
31332	   case $ac_f in
31333	   [\\/$]*) false;;
31334	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31335	   esac ||
31336	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31337$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31338   { (exit 1); exit 1; }; };;
31339      esac
31340      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31341      ac_file_inputs="$ac_file_inputs '$ac_f'"
31342    done
31343
31344    # Let's still pretend it is `configure' which instantiates (i.e., don't
31345    # use $as_me), people would be surprised to read:
31346    #    /* config.h.  Generated by config.status.  */
31347    configure_input='Generated from '`
31348	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31349	`' by configure.'
31350    if test x"$ac_file" != x-; then
31351      configure_input="$ac_file.  $configure_input"
31352      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31353$as_echo "$as_me: creating $ac_file" >&6;}
31354    fi
31355    # Neutralize special characters interpreted by sed in replacement strings.
31356    case $configure_input in #(
31357    *\&* | *\|* | *\\* )
31358       ac_sed_conf_input=`$as_echo "$configure_input" |
31359       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31360    *) ac_sed_conf_input=$configure_input;;
31361    esac
31362
31363    case $ac_tag in
31364    *:-:* | *:-) cat >"$tmp/stdin" \
31365      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31366$as_echo "$as_me: error: could not create $ac_file" >&2;}
31367   { (exit 1); exit 1; }; } ;;
31368    esac
31369    ;;
31370  esac
31371
31372  ac_dir=`$as_dirname -- "$ac_file" ||
31373$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31374	 X"$ac_file" : 'X\(//\)[^/]' \| \
31375	 X"$ac_file" : 'X\(//\)$' \| \
31376	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31377$as_echo X"$ac_file" |
31378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31379	    s//\1/
31380	    q
31381	  }
31382	  /^X\(\/\/\)[^/].*/{
31383	    s//\1/
31384	    q
31385	  }
31386	  /^X\(\/\/\)$/{
31387	    s//\1/
31388	    q
31389	  }
31390	  /^X\(\/\).*/{
31391	    s//\1/
31392	    q
31393	  }
31394	  s/.*/./; q'`
31395  { as_dir="$ac_dir"
31396  case $as_dir in #(
31397  -*) as_dir=./$as_dir;;
31398  esac
31399  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31400    as_dirs=
31401    while :; do
31402      case $as_dir in #(
31403      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31404      *) as_qdir=$as_dir;;
31405      esac
31406      as_dirs="'$as_qdir' $as_dirs"
31407      as_dir=`$as_dirname -- "$as_dir" ||
31408$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31409	 X"$as_dir" : 'X\(//\)[^/]' \| \
31410	 X"$as_dir" : 'X\(//\)$' \| \
31411	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31412$as_echo X"$as_dir" |
31413    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31414	    s//\1/
31415	    q
31416	  }
31417	  /^X\(\/\/\)[^/].*/{
31418	    s//\1/
31419	    q
31420	  }
31421	  /^X\(\/\/\)$/{
31422	    s//\1/
31423	    q
31424	  }
31425	  /^X\(\/\).*/{
31426	    s//\1/
31427	    q
31428	  }
31429	  s/.*/./; q'`
31430      test -d "$as_dir" && break
31431    done
31432    test -z "$as_dirs" || eval "mkdir $as_dirs"
31433  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31434$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31435   { (exit 1); exit 1; }; }; }
31436  ac_builddir=.
31437
31438case "$ac_dir" in
31439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31440*)
31441  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31442  # A ".." for each directory in $ac_dir_suffix.
31443  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31444  case $ac_top_builddir_sub in
31445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31447  esac ;;
31448esac
31449ac_abs_top_builddir=$ac_pwd
31450ac_abs_builddir=$ac_pwd$ac_dir_suffix
31451# for backward compatibility:
31452ac_top_builddir=$ac_top_build_prefix
31453
31454case $srcdir in
31455  .)  # We are building in place.
31456    ac_srcdir=.
31457    ac_top_srcdir=$ac_top_builddir_sub
31458    ac_abs_top_srcdir=$ac_pwd ;;
31459  [\\/]* | ?:[\\/]* )  # Absolute name.
31460    ac_srcdir=$srcdir$ac_dir_suffix;
31461    ac_top_srcdir=$srcdir
31462    ac_abs_top_srcdir=$srcdir ;;
31463  *) # Relative name.
31464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31465    ac_top_srcdir=$ac_top_build_prefix$srcdir
31466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31467esac
31468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31469
31470
31471  case $ac_mode in
31472  :F)
31473  #
31474  # CONFIG_FILE
31475  #
31476
31477  case $INSTALL in
31478  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31479  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31480  esac
31481  ac_MKDIR_P=$MKDIR_P
31482  case $MKDIR_P in
31483  [\\/$]* | ?:[\\/]* ) ;;
31484  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31485  esac
31486_ACEOF
31487
31488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31489# If the template does not know about datarootdir, expand it.
31490# FIXME: This hack should be removed a few years after 2.60.
31491ac_datarootdir_hack=; ac_datarootdir_seen=
31492
31493ac_sed_dataroot='
31494/datarootdir/ {
31495  p
31496  q
31497}
31498/@datadir@/p
31499/@docdir@/p
31500/@infodir@/p
31501/@localedir@/p
31502/@mandir@/p
31503'
31504case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31505*datarootdir*) ac_datarootdir_seen=yes;;
31506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31507  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31508$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31509_ACEOF
31510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31511  ac_datarootdir_hack='
31512  s&@datadir@&$datadir&g
31513  s&@docdir@&$docdir&g
31514  s&@infodir@&$infodir&g
31515  s&@localedir@&$localedir&g
31516  s&@mandir@&$mandir&g
31517    s&\\\${datarootdir}&$datarootdir&g' ;;
31518esac
31519_ACEOF
31520
31521# Neutralize VPATH when `$srcdir' = `.'.
31522# Shell code in configure.ac might set extrasub.
31523# FIXME: do we really want to maintain this feature?
31524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31525ac_sed_extra="$ac_vpsub
31526$extrasub
31527_ACEOF
31528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31529:t
31530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31531s|@configure_input@|$ac_sed_conf_input|;t t
31532s&@top_builddir@&$ac_top_builddir_sub&;t t
31533s&@top_build_prefix@&$ac_top_build_prefix&;t t
31534s&@srcdir@&$ac_srcdir&;t t
31535s&@abs_srcdir@&$ac_abs_srcdir&;t t
31536s&@top_srcdir@&$ac_top_srcdir&;t t
31537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31538s&@builddir@&$ac_builddir&;t t
31539s&@abs_builddir@&$ac_abs_builddir&;t t
31540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31541s&@INSTALL@&$ac_INSTALL&;t t
31542s&@MKDIR_P@&$ac_MKDIR_P&;t t
31543$ac_datarootdir_hack
31544"
31545eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31546  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31547$as_echo "$as_me: error: could not create $ac_file" >&2;}
31548   { (exit 1); exit 1; }; }
31549
31550test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31551  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31552  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31553  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31554which seems to be undefined.  Please make sure it is defined." >&5
31555$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31556which seems to be undefined.  Please make sure it is defined." >&2;}
31557
31558  rm -f "$tmp/stdin"
31559  case $ac_file in
31560  -) cat "$tmp/out" && rm -f "$tmp/out";;
31561  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31562  esac \
31563  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31564$as_echo "$as_me: error: could not create $ac_file" >&2;}
31565   { (exit 1); exit 1; }; }
31566 ;;
31567  :H)
31568  #
31569  # CONFIG_HEADER
31570  #
31571  if test x"$ac_file" != x-; then
31572    {
31573      $as_echo "/* $configure_input  */" \
31574      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31575    } >"$tmp/config.h" \
31576      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31577$as_echo "$as_me: error: could not create $ac_file" >&2;}
31578   { (exit 1); exit 1; }; }
31579    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31580      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31581$as_echo "$as_me: $ac_file is unchanged" >&6;}
31582    else
31583      rm -f "$ac_file"
31584      mv "$tmp/config.h" "$ac_file" \
31585	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31586$as_echo "$as_me: error: could not create $ac_file" >&2;}
31587   { (exit 1); exit 1; }; }
31588    fi
31589  else
31590    $as_echo "/* $configure_input  */" \
31591      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31592      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31593$as_echo "$as_me: error: could not create -" >&2;}
31594   { (exit 1); exit 1; }; }
31595  fi
31596# Compute "$ac_file"'s index in $config_headers.
31597_am_arg="$ac_file"
31598_am_stamp_count=1
31599for _am_header in $config_headers :; do
31600  case $_am_header in
31601    $_am_arg | $_am_arg:* )
31602      break ;;
31603    * )
31604      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31605  esac
31606done
31607echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31608$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31609	 X"$_am_arg" : 'X\(//\)[^/]' \| \
31610	 X"$_am_arg" : 'X\(//\)$' \| \
31611	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31612$as_echo X"$_am_arg" |
31613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31614	    s//\1/
31615	    q
31616	  }
31617	  /^X\(\/\/\)[^/].*/{
31618	    s//\1/
31619	    q
31620	  }
31621	  /^X\(\/\/\)$/{
31622	    s//\1/
31623	    q
31624	  }
31625	  /^X\(\/\).*/{
31626	    s//\1/
31627	    q
31628	  }
31629	  s/.*/./; q'`/stamp-h$_am_stamp_count
31630 ;;
31631  
31632  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31633$as_echo "$as_me: executing $ac_file commands" >&6;}
31634 ;;
31635  esac
31636
31637
31638  case $ac_file$ac_mode in
31639    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31640  # Strip MF so we end up with the name of the file.
31641  mf=`echo "$mf" | sed -e 's/:.*$//'`
31642  # Check whether this is an Automake generated Makefile or not.
31643  # We used to match only the files named `Makefile.in', but
31644  # some people rename them; so instead we look at the file content.
31645  # Grep'ing the first line is not enough: some people post-process
31646  # each Makefile.in and add a new line on top of each file to say so.
31647  # Grep'ing the whole file is not good either: AIX grep has a line
31648  # limit of 2048, but all sed's we know have understand at least 4000.
31649  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31650    dirpart=`$as_dirname -- "$mf" ||
31651$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31652	 X"$mf" : 'X\(//\)[^/]' \| \
31653	 X"$mf" : 'X\(//\)$' \| \
31654	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31655$as_echo X"$mf" |
31656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31657	    s//\1/
31658	    q
31659	  }
31660	  /^X\(\/\/\)[^/].*/{
31661	    s//\1/
31662	    q
31663	  }
31664	  /^X\(\/\/\)$/{
31665	    s//\1/
31666	    q
31667	  }
31668	  /^X\(\/\).*/{
31669	    s//\1/
31670	    q
31671	  }
31672	  s/.*/./; q'`
31673  else
31674    continue
31675  fi
31676  # Extract the definition of DEPDIR, am__include, and am__quote
31677  # from the Makefile without running `make'.
31678  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31679  test -z "$DEPDIR" && continue
31680  am__include=`sed -n 's/^am__include = //p' < "$mf"`
31681  test -z "am__include" && continue
31682  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31683  # When using ansi2knr, U may be empty or an underscore; expand it
31684  U=`sed -n 's/^U = //p' < "$mf"`
31685  # Find all dependency output files, they are included files with
31686  # $(DEPDIR) in their names.  We invoke sed twice because it is the
31687  # simplest approach to changing $(DEPDIR) to its actual value in the
31688  # expansion.
31689  for file in `sed -n "
31690    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31691       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31692    # Make sure the directory exists.
31693    test -f "$dirpart/$file" && continue
31694    fdir=`$as_dirname -- "$file" ||
31695$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31696	 X"$file" : 'X\(//\)[^/]' \| \
31697	 X"$file" : 'X\(//\)$' \| \
31698	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31699$as_echo X"$file" |
31700    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31701	    s//\1/
31702	    q
31703	  }
31704	  /^X\(\/\/\)[^/].*/{
31705	    s//\1/
31706	    q
31707	  }
31708	  /^X\(\/\/\)$/{
31709	    s//\1/
31710	    q
31711	  }
31712	  /^X\(\/\).*/{
31713	    s//\1/
31714	    q
31715	  }
31716	  s/.*/./; q'`
31717    { as_dir=$dirpart/$fdir
31718  case $as_dir in #(
31719  -*) as_dir=./$as_dir;;
31720  esac
31721  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31722    as_dirs=
31723    while :; do
31724      case $as_dir in #(
31725      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31726      *) as_qdir=$as_dir;;
31727      esac
31728      as_dirs="'$as_qdir' $as_dirs"
31729      as_dir=`$as_dirname -- "$as_dir" ||
31730$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31731	 X"$as_dir" : 'X\(//\)[^/]' \| \
31732	 X"$as_dir" : 'X\(//\)$' \| \
31733	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31734$as_echo X"$as_dir" |
31735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31736	    s//\1/
31737	    q
31738	  }
31739	  /^X\(\/\/\)[^/].*/{
31740	    s//\1/
31741	    q
31742	  }
31743	  /^X\(\/\/\)$/{
31744	    s//\1/
31745	    q
31746	  }
31747	  /^X\(\/\).*/{
31748	    s//\1/
31749	    q
31750	  }
31751	  s/.*/./; q'`
31752      test -d "$as_dir" && break
31753    done
31754    test -z "$as_dirs" || eval "mkdir $as_dirs"
31755  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31756$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31757   { (exit 1); exit 1; }; }; }
31758    # echo "creating $dirpart/$file"
31759    echo '# dummy' > "$dirpart/$file"
31760  done
31761done
31762 ;;
31763    "libtool":C) 
31764    
31765    # See if we are running on zsh, and set the options which allow our
31766    # commands through without removal of \ escapes.
31767    if test -n "${ZSH_VERSION+set}" ; then
31768      setopt NO_GLOB_SUBST
31769    fi
31770
31771    cfgfile="${ofile}T"
31772    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31773    $RM "$cfgfile"
31774
31775    cat <<_LT_EOF >> "$cfgfile"
31776#! $SHELL
31777
31778# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31779# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31781# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31782#
31783#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31784#                 2006, 2007, 2008 Free Software Foundation, Inc.
31785#   Written by Gordon Matzigkeit, 1996
31786#
31787#   This file is part of GNU Libtool.
31788#
31789# GNU Libtool is free software; you can redistribute it and/or
31790# modify it under the terms of the GNU General Public License as
31791# published by the Free Software Foundation; either version 2 of
31792# the License, or (at your option) any later version.
31793#
31794# As a special exception to the GNU General Public License,
31795# if you distribute this file as part of a program or library that
31796# is built using GNU Libtool, you may include this file under the
31797# same distribution terms that you use for the rest of that program.
31798#
31799# GNU Libtool is distributed in the hope that it will be useful,
31800# but WITHOUT ANY WARRANTY; without even the implied warranty of
31801# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31802# GNU General Public License for more details.
31803#
31804# You should have received a copy of the GNU General Public License
31805# along with GNU Libtool; see the file COPYING.  If not, a copy
31806# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31807# obtained by writing to the Free Software Foundation, Inc.,
31808# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31809
31810
31811# The names of the tagged configurations supported by this script.
31812available_tags="CXX "
31813
31814# ### BEGIN LIBTOOL CONFIG
31815
31816# Which release of libtool.m4 was used?
31817macro_version=$macro_version
31818macro_revision=$macro_revision
31819
31820# Whether or not to build shared libraries.
31821build_libtool_libs=$enable_shared
31822
31823# Whether or not to build static libraries.
31824build_old_libs=$enable_static
31825
31826# What type of objects to build.
31827pic_mode=$pic_mode
31828
31829# Whether or not to optimize for fast installation.
31830fast_install=$enable_fast_install
31831
31832# The host system.
31833host_alias=$host_alias
31834host=$host
31835host_os=$host_os
31836
31837# The build system.
31838build_alias=$build_alias
31839build=$build
31840build_os=$build_os
31841
31842# A sed program that does not truncate output.
31843SED=$lt_SED
31844
31845# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31846Xsed="\$SED -e 1s/^X//"
31847
31848# A grep program that handles long lines.
31849GREP=$lt_GREP
31850
31851# An ERE matcher.
31852EGREP=$lt_EGREP
31853
31854# A literal string matcher.
31855FGREP=$lt_FGREP
31856
31857# A BSD- or MS-compatible name lister.
31858NM=$lt_NM
31859
31860# Whether we need soft or hard links.
31861LN_S=$lt_LN_S
31862
31863# What is the maximum length of a command?
31864max_cmd_len=$max_cmd_len
31865
31866# Object file suffix (normally "o").
31867objext=$ac_objext
31868
31869# Executable file suffix (normally "").
31870exeext=$exeext
31871
31872# whether the shell understands "unset".
31873lt_unset=$lt_unset
31874
31875# turn spaces into newlines.
31876SP2NL=$lt_lt_SP2NL
31877
31878# turn newlines into spaces.
31879NL2SP=$lt_lt_NL2SP
31880
31881# How to create reloadable object files.
31882reload_flag=$lt_reload_flag
31883reload_cmds=$lt_reload_cmds
31884
31885# An object symbol dumper.
31886OBJDUMP=$lt_OBJDUMP
31887
31888# Method to check whether dependent libraries are shared objects.
31889deplibs_check_method=$lt_deplibs_check_method
31890
31891# Command to use when deplibs_check_method == "file_magic".
31892file_magic_cmd=$lt_file_magic_cmd
31893
31894# The archiver.
31895AR=$lt_AR
31896AR_FLAGS=$lt_AR_FLAGS
31897
31898# A symbol stripping program.
31899STRIP=$lt_STRIP
31900
31901# Commands used to install an old-style archive.
31902RANLIB=$lt_RANLIB
31903old_postinstall_cmds=$lt_old_postinstall_cmds
31904old_postuninstall_cmds=$lt_old_postuninstall_cmds
31905
31906# A C compiler.
31907LTCC=$lt_CC
31908
31909# LTCC compiler flags.
31910LTCFLAGS=$lt_CFLAGS
31911
31912# Take the output of nm and produce a listing of raw symbols and C names.
31913global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31914
31915# Transform the output of nm in a proper C declaration.
31916global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31917
31918# Transform the output of nm in a C name address pair.
31919global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31920
31921# Transform the output of nm in a C name address pair when lib prefix is needed.
31922global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31923
31924# The name of the directory that contains temporary libtool files.
31925objdir=$objdir
31926
31927# Shell to use when invoking shell scripts.
31928SHELL=$lt_SHELL
31929
31930# An echo program that does not interpret backslashes.
31931ECHO=$lt_ECHO
31932
31933# Used to examine libraries when file_magic_cmd begins with "file".
31934MAGIC_CMD=$MAGIC_CMD
31935
31936# Must we lock files when doing compilation?
31937need_locks=$lt_need_locks
31938
31939# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31940DSYMUTIL=$lt_DSYMUTIL
31941
31942# Tool to change global to local symbols on Mac OS X.
31943NMEDIT=$lt_NMEDIT
31944
31945# Tool to manipulate fat objects and archives on Mac OS X.
31946LIPO=$lt_LIPO
31947
31948# ldd/readelf like tool for Mach-O binaries on Mac OS X.
31949OTOOL=$lt_OTOOL
31950
31951# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31952OTOOL64=$lt_OTOOL64
31953
31954# Old archive suffix (normally "a").
31955libext=$libext
31956
31957# Shared library suffix (normally ".so").
31958shrext_cmds=$lt_shrext_cmds
31959
31960# The commands to extract the exported symbol list from a shared archive.
31961extract_expsyms_cmds=$lt_extract_expsyms_cmds
31962
31963# Variables whose values should be saved in libtool wrapper scripts and
31964# restored at link time.
31965variables_saved_for_relink=$lt_variables_saved_for_relink
31966
31967# Do we need the "lib" prefix for modules?
31968need_lib_prefix=$need_lib_prefix
31969
31970# Do we need a version for libraries?
31971need_version=$need_version
31972
31973# Library versioning type.
31974version_type=$version_type
31975
31976# Shared library runtime path variable.
31977runpath_var=$runpath_var
31978
31979# Shared library path variable.
31980shlibpath_var=$shlibpath_var
31981
31982# Is shlibpath searched before the hard-coded library search path?
31983shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31984
31985# Format of library name prefix.
31986libname_spec=$lt_libname_spec
31987
31988# List of archive names.  First name is the real one, the rest are links.
31989# The last name is the one that the linker finds with -lNAME
31990library_names_spec=$lt_library_names_spec
31991
31992# The coded name of the library, if different from the real name.
31993soname_spec=$lt_soname_spec
31994
31995# Command to use after installation of a shared archive.
31996postinstall_cmds=$lt_postinstall_cmds
31997
31998# Command to use after uninstallation of a shared archive.
31999postuninstall_cmds=$lt_postuninstall_cmds
32000
32001# Commands used to finish a libtool library installation in a directory.
32002finish_cmds=$lt_finish_cmds
32003
32004# As "finish_cmds", except a single script fragment to be evaled but
32005# not shown.
32006finish_eval=$lt_finish_eval
32007
32008# Whether we should hardcode library paths into libraries.
32009hardcode_into_libs=$hardcode_into_libs
32010
32011# Compile-time system search path for libraries.
32012sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32013
32014# Run-time system search path for libraries.
32015sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32016
32017# Whether dlopen is supported.
32018dlopen_support=$enable_dlopen
32019
32020# Whether dlopen of programs is supported.
32021dlopen_self=$enable_dlopen_self
32022
32023# Whether dlopen of statically linked programs is supported.
32024dlopen_self_static=$enable_dlopen_self_static
32025
32026# Commands to strip libraries.
32027old_striplib=$lt_old_striplib
32028striplib=$lt_striplib
32029
32030
32031# The linker used to build libraries.
32032LD=$lt_LD
32033
32034# Commands used to build an old-style archive.
32035old_archive_cmds=$lt_old_archive_cmds
32036
32037# A language specific compiler.
32038CC=$lt_compiler
32039
32040# Is the compiler the GNU compiler?
32041with_gcc=$GCC
32042
32043# Compiler flag to turn off builtin functions.
32044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32045
32046# How to pass a linker flag through the compiler.
32047wl=$lt_lt_prog_compiler_wl
32048
32049# Additional compiler flags for building library objects.
32050pic_flag=$lt_lt_prog_compiler_pic
32051
32052# Compiler flag to prevent dynamic linking.
32053link_static_flag=$lt_lt_prog_compiler_static
32054
32055# Does compiler simultaneously support -c and -o options?
32056compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32057
32058# Whether or not to add -lc for building shared libraries.
32059build_libtool_need_lc=$archive_cmds_need_lc
32060
32061# Whether or not to disallow shared libs when runtime libs are static.
32062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32063
32064# Compiler flag to allow reflexive dlopens.
32065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32066
32067# Compiler flag to generate shared objects directly from archives.
32068whole_archive_flag_spec=$lt_whole_archive_flag_spec
32069
32070# Whether the compiler copes with passing no objects directly.
32071compiler_needs_object=$lt_compiler_needs_object
32072
32073# Create an old-style archive from a shared archive.
32074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32075
32076# Create a temporary old-style archive to link instead of a shared archive.
32077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32078
32079# Commands used to build a shared archive.
32080archive_cmds=$lt_archive_cmds
32081archive_expsym_cmds=$lt_archive_expsym_cmds
32082
32083# Commands used to build a loadable module if different from building
32084# a shared archive.
32085module_cmds=$lt_module_cmds
32086module_expsym_cmds=$lt_module_expsym_cmds
32087
32088# Whether we are building with GNU ld or not.
32089with_gnu_ld=$lt_with_gnu_ld
32090
32091# Flag that allows shared libraries with undefined symbols to be built.
32092allow_undefined_flag=$lt_allow_undefined_flag
32093
32094# Flag that enforces no undefined symbols.
32095no_undefined_flag=$lt_no_undefined_flag
32096
32097# Flag to hardcode \$libdir into a binary during linking.
32098# This must work even if \$libdir does not exist
32099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32100
32101# If ld is used when linking, flag to hardcode \$libdir into a binary
32102# during linking.  This must work even if \$libdir does not exist.
32103hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32104
32105# Whether we need a single "-rpath" flag with a separated argument.
32106hardcode_libdir_separator=$lt_hardcode_libdir_separator
32107
32108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32109# DIR into the resulting binary.
32110hardcode_direct=$hardcode_direct
32111
32112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32113# DIR into the resulting binary and the resulting library dependency is
32114# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32115# library is relocated.
32116hardcode_direct_absolute=$hardcode_direct_absolute
32117
32118# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32119# into the resulting binary.
32120hardcode_minus_L=$hardcode_minus_L
32121
32122# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32123# into the resulting binary.
32124hardcode_shlibpath_var=$hardcode_shlibpath_var
32125
32126# Set to "yes" if building a shared library automatically hardcodes DIR
32127# into the library and all subsequent libraries and executables linked
32128# against it.
32129hardcode_automatic=$hardcode_automatic
32130
32131# Set to yes if linker adds runtime paths of dependent libraries
32132# to runtime path list.
32133inherit_rpath=$inherit_rpath
32134
32135# Whether libtool must link a program against all its dependency libraries.
32136link_all_deplibs=$link_all_deplibs
32137
32138# Fix the shell variable \$srcfile for the compiler.
32139fix_srcfile_path=$lt_fix_srcfile_path
32140
32141# Set to "yes" if exported symbols are required.
32142always_export_symbols=$always_export_symbols
32143
32144# The commands to list exported symbols.
32145export_symbols_cmds=$lt_export_symbols_cmds
32146
32147# Symbols that should not be listed in the preloaded symbols.
32148exclude_expsyms=$lt_exclude_expsyms
32149
32150# Symbols that must always be exported.
32151include_expsyms=$lt_include_expsyms
32152
32153# Commands necessary for linking programs (against libraries) with templates.
32154prelink_cmds=$lt_prelink_cmds
32155
32156# Specify filename containing input files.
32157file_list_spec=$lt_file_list_spec
32158
32159# How to hardcode a shared library path into an executable.
32160hardcode_action=$hardcode_action
32161
32162# The directories searched by this compiler when creating a shared library.
32163compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32164
32165# Dependencies to place before and after the objects being linked to
32166# create a shared library.
32167predep_objects=$lt_predep_objects
32168postdep_objects=$lt_postdep_objects
32169predeps=$lt_predeps
32170postdeps=$lt_postdeps
32171
32172# The library search path used internally by the compiler when linking
32173# a shared library.
32174compiler_lib_search_path=$lt_compiler_lib_search_path
32175
32176# ### END LIBTOOL CONFIG
32177
32178_LT_EOF
32179
32180  case $host_os in
32181  aix3*)
32182    cat <<\_LT_EOF >> "$cfgfile"
32183# AIX sometimes has problems with the GCC collect2 program.  For some
32184# reason, if we set the COLLECT_NAMES environment variable, the problems
32185# vanish in a puff of smoke.
32186if test "X${COLLECT_NAMES+set}" != Xset; then
32187  COLLECT_NAMES=
32188  export COLLECT_NAMES
32189fi
32190_LT_EOF
32191    ;;
32192  esac
32193
32194  
32195ltmain="$ac_aux_dir/ltmain.sh"
32196
32197
32198  # We use sed instead of cat because bash on DJGPP gets confused if
32199  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32200  # text mode, it properly converts lines to CR/LF.  This bash problem
32201  # is reportedly fixed, but why not run on old versions too?
32202  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32203    || (rm -f "$cfgfile"; exit 1)
32204
32205  case $xsi_shell in
32206  yes)
32207    cat << \_LT_EOF >> "$cfgfile"
32208
32209# func_dirname file append nondir_replacement
32210# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32211# otherwise set result to NONDIR_REPLACEMENT.
32212func_dirname ()
32213{
32214  case ${1} in
32215    */*) func_dirname_result="${1%/*}${2}" ;;
32216    *  ) func_dirname_result="${3}" ;;
32217  esac
32218}
32219
32220# func_basename file
32221func_basename ()
32222{
32223  func_basename_result="${1##*/}"
32224}
32225
32226# func_dirname_and_basename file append nondir_replacement
32227# perform func_basename and func_dirname in a single function
32228# call:
32229#   dirname:  Compute the dirname of FILE.  If nonempty,
32230#             add APPEND to the result, otherwise set result
32231#             to NONDIR_REPLACEMENT.
32232#             value returned in "$func_dirname_result"
32233#   basename: Compute filename of FILE.
32234#             value retuned in "$func_basename_result"
32235# Implementation must be kept synchronized with func_dirname
32236# and func_basename. For efficiency, we do not delegate to
32237# those functions but instead duplicate the functionality here.
32238func_dirname_and_basename ()
32239{
32240  case ${1} in
32241    */*) func_dirname_result="${1%/*}${2}" ;;
32242    *  ) func_dirname_result="${3}" ;;
32243  esac
32244  func_basename_result="${1##*/}"
32245}
32246
32247# func_stripname prefix suffix name
32248# strip PREFIX and SUFFIX off of NAME.
32249# PREFIX and SUFFIX must not contain globbing or regex special
32250# characters, hashes, percent signs, but SUFFIX may contain a leading
32251# dot (in which case that matches only a dot).
32252func_stripname ()
32253{
32254  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32255  # positional parameters, so assign one to ordinary parameter first.
32256  func_stripname_result=${3}
32257  func_stripname_result=${func_stripname_result#"${1}"}
32258  func_stripname_result=${func_stripname_result%"${2}"}
32259}
32260
32261# func_opt_split
32262func_opt_split ()
32263{
32264  func_opt_split_opt=${1%%=*}
32265  func_opt_split_arg=${1#*=}
32266}
32267
32268# func_lo2o object
32269func_lo2o ()
32270{
32271  case ${1} in
32272    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32273    *)    func_lo2o_result=${1} ;;
32274  esac
32275}
32276
32277# func_xform libobj-or-source
32278func_xform ()
32279{
32280  func_xform_result=${1%.*}.lo
32281}
32282
32283# func_arith arithmetic-term...
32284func_arith ()
32285{
32286  func_arith_result=$(( $* ))
32287}
32288
32289# func_len string
32290# STRING may not start with a hyphen.
32291func_len ()
32292{
32293  func_len_result=${#1}
32294}
32295
32296_LT_EOF
32297    ;;
32298  *) # Bourne compatible functions.
32299    cat << \_LT_EOF >> "$cfgfile"
32300
32301# func_dirname file append nondir_replacement
32302# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32303# otherwise set result to NONDIR_REPLACEMENT.
32304func_dirname ()
32305{
32306  # Extract subdirectory from the argument.
32307  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32308  if test "X$func_dirname_result" = "X${1}"; then
32309    func_dirname_result="${3}"
32310  else
32311    func_dirname_result="$func_dirname_result${2}"
32312  fi
32313}
32314
32315# func_basename file
32316func_basename ()
32317{
32318  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32319}
32320
32321
32322# func_stripname prefix suffix name
32323# strip PREFIX and SUFFIX off of NAME.
32324# PREFIX and SUFFIX must not contain globbing or regex special
32325# characters, hashes, percent signs, but SUFFIX may contain a leading
32326# dot (in which case that matches only a dot).
32327# func_strip_suffix prefix name
32328func_stripname ()
32329{
32330  case ${2} in
32331    .*) func_stripname_result=`$ECHO "X${3}" \
32332           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32333    *)  func_stripname_result=`$ECHO "X${3}" \
32334           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32335  esac
32336}
32337
32338# sed scripts:
32339my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32340my_sed_long_arg='1s/^-[^=]*=//'
32341
32342# func_opt_split
32343func_opt_split ()
32344{
32345  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32346  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32347}
32348
32349# func_lo2o object
32350func_lo2o ()
32351{
32352  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32353}
32354
32355# func_xform libobj-or-source
32356func_xform ()
32357{
32358  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32359}
32360
32361# func_arith arithmetic-term...
32362func_arith ()
32363{
32364  func_arith_result=`expr "$@"`
32365}
32366
32367# func_len string
32368# STRING may not start with a hyphen.
32369func_len ()
32370{
32371  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32372}
32373
32374_LT_EOF
32375esac
32376
32377case $lt_shell_append in
32378  yes)
32379    cat << \_LT_EOF >> "$cfgfile"
32380
32381# func_append var value
32382# Append VALUE to the end of shell variable VAR.
32383func_append ()
32384{
32385  eval "$1+=\$2"
32386}
32387_LT_EOF
32388    ;;
32389  *)
32390    cat << \_LT_EOF >> "$cfgfile"
32391
32392# func_append var value
32393# Append VALUE to the end of shell variable VAR.
32394func_append ()
32395{
32396  eval "$1=\$$1\$2"
32397}
32398
32399_LT_EOF
32400    ;;
32401  esac
32402
32403
32404  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32405    || (rm -f "$cfgfile"; exit 1)
32406
32407  mv -f "$cfgfile" "$ofile" ||
32408    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32409  chmod +x "$ofile"
32410
32411
32412    cat <<_LT_EOF >> "$ofile"
32413
32414# ### BEGIN LIBTOOL TAG CONFIG: CXX
32415
32416# The linker used to build libraries.
32417LD=$lt_LD_CXX
32418
32419# Commands used to build an old-style archive.
32420old_archive_cmds=$lt_old_archive_cmds_CXX
32421
32422# A language specific compiler.
32423CC=$lt_compiler_CXX
32424
32425# Is the compiler the GNU compiler?
32426with_gcc=$GCC_CXX
32427
32428# Compiler flag to turn off builtin functions.
32429no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32430
32431# How to pass a linker flag through the compiler.
32432wl=$lt_lt_prog_compiler_wl_CXX
32433
32434# Additional compiler flags for building library objects.
32435pic_flag=$lt_lt_prog_compiler_pic_CXX
32436
32437# Compiler flag to prevent dynamic linking.
32438link_static_flag=$lt_lt_prog_compiler_static_CXX
32439
32440# Does compiler simultaneously support -c and -o options?
32441compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32442
32443# Whether or not to add -lc for building shared libraries.
32444build_libtool_need_lc=$archive_cmds_need_lc_CXX
32445
32446# Whether or not to disallow shared libs when runtime libs are static.
32447allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32448
32449# Compiler flag to allow reflexive dlopens.
32450export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32451
32452# Compiler flag to generate shared objects directly from archives.
32453whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32454
32455# Whether the compiler copes with passing no objects directly.
32456compiler_needs_object=$lt_compiler_needs_object_CXX
32457
32458# Create an old-style archive from a shared archive.
32459old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32460
32461# Create a temporary old-style archive to link instead of a shared archive.
32462old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32463
32464# Commands used to build a shared archive.
32465archive_cmds=$lt_archive_cmds_CXX
32466archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32467
32468# Commands used to build a loadable module if different from building
32469# a shared archive.
32470module_cmds=$lt_module_cmds_CXX
32471module_expsym_cmds=$lt_module_expsym_cmds_CXX
32472
32473# Whether we are building with GNU ld or not.
32474with_gnu_ld=$lt_with_gnu_ld_CXX
32475
32476# Flag that allows shared libraries with undefined symbols to be built.
32477allow_undefined_flag=$lt_allow_undefined_flag_CXX
32478
32479# Flag that enforces no undefined symbols.
32480no_undefined_flag=$lt_no_undefined_flag_CXX
32481
32482# Flag to hardcode \$libdir into a binary during linking.
32483# This must work even if \$libdir does not exist
32484hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32485
32486# If ld is used when linking, flag to hardcode \$libdir into a binary
32487# during linking.  This must work even if \$libdir does not exist.
32488hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32489
32490# Whether we need a single "-rpath" flag with a separated argument.
32491hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32492
32493# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32494# DIR into the resulting binary.
32495hardcode_direct=$hardcode_direct_CXX
32496
32497# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32498# DIR into the resulting binary and the resulting library dependency is
32499# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32500# library is relocated.
32501hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32502
32503# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32504# into the resulting binary.
32505hardcode_minus_L=$hardcode_minus_L_CXX
32506
32507# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32508# into the resulting binary.
32509hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32510
32511# Set to "yes" if building a shared library automatically hardcodes DIR
32512# into the library and all subsequent libraries and executables linked
32513# against it.
32514hardcode_automatic=$hardcode_automatic_CXX
32515
32516# Set to yes if linker adds runtime paths of dependent libraries
32517# to runtime path list.
32518inherit_rpath=$inherit_rpath_CXX
32519
32520# Whether libtool must link a program against all its dependency libraries.
32521link_all_deplibs=$link_all_deplibs_CXX
32522
32523# Fix the shell variable \$srcfile for the compiler.
32524fix_srcfile_path=$lt_fix_srcfile_path_CXX
32525
32526# Set to "yes" if exported symbols are required.
32527always_export_symbols=$always_export_symbols_CXX
32528
32529# The commands to list exported symbols.
32530export_symbols_cmds=$lt_export_symbols_cmds_CXX
32531
32532# Symbols that should not be listed in the preloaded symbols.
32533exclude_expsyms=$lt_exclude_expsyms_CXX
32534
32535# Symbols that must always be exported.
32536include_expsyms=$lt_include_expsyms_CXX
32537
32538# Commands necessary for linking programs (against libraries) with templates.
32539prelink_cmds=$lt_prelink_cmds_CXX
32540
32541# Specify filename containing input files.
32542file_list_spec=$lt_file_list_spec_CXX
32543
32544# How to hardcode a shared library path into an executable.
32545hardcode_action=$hardcode_action_CXX
32546
32547# The directories searched by this compiler when creating a shared library.
32548compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32549
32550# Dependencies to place before and after the objects being linked to
32551# create a shared library.
32552predep_objects=$lt_predep_objects_CXX
32553postdep_objects=$lt_postdep_objects_CXX
32554predeps=$lt_predeps_CXX
32555postdeps=$lt_postdeps_CXX
32556
32557# The library search path used internally by the compiler when linking
32558# a shared library.
32559compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32560
32561# ### END LIBTOOL TAG CONFIG: CXX
32562_LT_EOF
32563
32564 ;;
32565    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
32566        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
32567      esac ;;
32568    "po/stamp-it":C) 
32569    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
32570       { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
32571$as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
32572   { (exit 1); exit 1; }; }
32573    fi
32574    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
32575    >"po/stamp-it.tmp"
32576    sed '/^#/d
32577	 s/^[[].*] *//
32578	 /^[ 	]*$/d
32579	'"s|^|	$ac_top_srcdir/|" \
32580      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
32581    
32582    sed '/^POTFILES =/,/[^\\]$/ {
32583		/^POTFILES =/!d
32584		r po/POTFILES
32585	  }
32586	 ' "po/Makefile.in" >"po/Makefile"
32587    rm -f "po/Makefile.tmp"
32588    mv "po/stamp-it.tmp" "po/stamp-it"
32589   ;;
32590
32591  esac
32592done # for ac_tag
32593
32594
32595{ (exit 0); exit 0; }
32596_ACEOF
32597chmod +x $CONFIG_STATUS
32598ac_clean_files=$ac_clean_files_save
32599
32600test $ac_write_fail = 0 ||
32601  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32602$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32603   { (exit 1); exit 1; }; }
32604
32605
32606# configure is writing to config.log, and then calls config.status.
32607# config.status does its own redirection, appending to config.log.
32608# Unfortunately, on DOS this fails, as config.log is still kept open
32609# by configure, so config.status won't be able to write to it; its
32610# output is simply discarded.  So we exec the FD to /dev/null,
32611# effectively closing config.log, so it can be properly (re)opened and
32612# appended to by config.status.  When coming back to configure, we
32613# need to make the FD available again.
32614if test "$no_create" != yes; then
32615  ac_cs_success=:
32616  ac_config_status_args=
32617  test "$silent" = yes &&
32618    ac_config_status_args="$ac_config_status_args --quiet"
32619  exec 5>/dev/null
32620  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32621  exec 5>>config.log
32622  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32623  # would make configure fail if this is the last instruction.
32624  $ac_cs_success || { (exit 1); exit 1; }
32625fi
32626if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32627  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32628$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32629fi
32630
32631
32632# ==========================================================================
32633echo "
32634 ---{ $PACKAGE_NAME $VERSION }---
32635
32636    prefix:                                    ${prefix}
32637    sysconfdir:                                ${sysconfdir}
32638    localstatedir:                             ${localstatedir}
32639    avahi socket:                              ${avahi_socket}
32640    dbus-1 system.d dir:                       ${DBUS_SYS_DIR}
32641    dbus-1 version:                            ${DBUS_VERSION}
32642    dbus-1 system socket:                      ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
32643    C Compiler:                                ${CC}
32644    CFLAGS:                                    ${CFLAGS}
32645    Enable GLIB:                               ${HAVE_GLIB}
32646    Enable GLIB GObject:                       ${HAVE_GOBJECT}
32647    Enable GTK:                                ${HAVE_GTK}
32648    Enable D-Bus:                              ${HAVE_DBUS}
32649    With XML:                                  ${with_xml}
32650    Enable GDBM:                               ${HAVE_GDBM}
32651    Enable DBM:                                ${HAVE_DBM}
32652    Enable libdaemon:                          ${HAVE_LIBDAEMON}
32653    Enable Python:                             ${HAVE_PYTHON}
32654    Enable pygtk:                              ${HAVE_PYGTK}
32655    Enable python-dbus:                        ${HAVE_PYTHON_DBUS}
32656    Enable QT3:                                ${HAVE_QT3}
32657    Enable QT4:                                ${HAVE_QT4}
32658    Enable Mono:                               ${HAVE_MONO}
32659    Enable Monodoc:                            ${HAVE_MONODOC}
32660    Distribution/OS:                           ${with_distro}
32661    User for avahi-daemon:                     ${AVAHI_USER}
32662    Group for avahi-daemon:                    ${AVAHI_GROUP}
32663    Priviliged access group for Avahi clients: ${AVAHI_PRIV_ACCESS_GROUP}
32664    User for avahi-autoipd:                    ${AVAHI_AUTOIPD_USER}
32665    Group for avahi-autoipd:                   ${AVAHI_AUTOIPD_GROUP}
32666    Enable chroot():                           ${enable_chroot}
32667    Enable Linux inotify:                      ${have_inotify}
32668    Enable stack-smashing protection:          ${enable_ssp}
32669"
32670
32671BUILD_DAEMON="no   (You need libdaemon and expat/bsdxml!)"
32672
32673if test "x$HAVE_XML" = "xyes" -a "x$HAVE_LIBDAEMON" = "xyes" ; then
32674    BUILD_DAEMON=yes
32675fi
32676
32677BUILD_PYTHON="no   (You need python, pygtk and python-dbus!)"
32678
32679if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" -a "x$HAVE_PYTHON" = "xyes" -a "x$HAVE_PYTHON_DBUS" = "xyes" -a "x$HAVE_PYGTK" = "xyes" ; then
32680    BUILD_PYTHON=yes
32681fi
32682
32683BUILD_CLIENT="no   (You need avahi-daemon and D-Bus!)"
32684
32685if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" ; then
32686    BUILD_CLIENT=yes
32687fi
32688
32689if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
32690   ENABLE_COMPAT_LIBDNS_SD="no   (You need libavahi-client!)"
32691fi
32692if test "x$ENABLE_COMPAT_HOWL" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
32693   ENABLE_COMPAT_HOWL="no   (You need libavahi-client!)"
32694fi
32695if test "x$ENABLE_AUTOIPD" = "xyes" -a "x$HAVE_LIBDAEMON" != "xyes" ; then
32696   ENABLE_AUTOIPD="no   (You need libdaemon!)"
32697fi
32698
32699BUILD_UI="no"
32700if test "x$HAVE_GTK" = "xyes" -a "x$BUILD_CLIENT" = "xyes" ; then
32701   BUILD_UI="yes"
32702fi
32703
32704BUILD_GOBJECT="no"
32705if test "x$BUILD_CLIENT" = "xyes" -a "x$HAVE_GOBJECT" = "xyes" ; then
32706   BUILD_GOBJECT="yes"
32707fi
32708
32709echo "\
32710    Building libavahi-core              yes
32711    Building avahi-daemon:              ${BUILD_DAEMON}
32712    Building avahi-dnsconfd:            ${BUILD_DAEMON}
32713    Building libavahi-client:           ${BUILD_CLIENT}
32714    Building avahi-utils:               ${BUILD_CLIENT}
32715    Building avahi-python:              ${BUILD_PYTHON}
32716    Building libavahi-glib:             ${HAVE_GLIB}
32717    Building libavahi-gobject:          ${BUILD_GOBJECT}
32718    Building avahi-discover-standalone: ${HAVE_GTK}
32719    Building libavahi-qt3:              ${HAVE_QT3}
32720    Building libavahi-qt4:              ${HAVE_QT4}
32721    Building avahi-sharp:               ${HAVE_MONO}
32722    Building avahi-compat-libdns_sd:    ${ENABLE_COMPAT_LIBDNS_SD}
32723    Building avahi-compat-howl:         ${ENABLE_COMPAT_HOWL}
32724    Building tests:                     ${ENABLE_TESTS}
32725    Building avahi-core documentation:  ${ENABLE_CORE_DOCS}
32726    Building avahi-autoipd:             ${ENABLE_AUTOIPD}
32727    Building libavahi-ui:               ${BUILD_UI}
32728"
32729