tizen 2.0
[external/popt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for popt 1.16.
4 #
5 # Report bugs to <popt-devel@rpm5.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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
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.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
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.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if 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; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_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
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$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   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
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
253 done
254 IFS=$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
261 if 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
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
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
282 if 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
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $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
357 fi
358
359 fi
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+"$@"}
369 fi
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; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$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
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `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';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (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
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
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   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_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.
572 as_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.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if 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
609 fi
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
615 if 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
713 fi
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.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 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.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='popt'
747 PACKAGE_TARNAME='popt'
748 PACKAGE_VERSION='1.16'
749 PACKAGE_STRING='popt 1.16'
750 PACKAGE_BUGREPORT='popt-devel@rpm5.org'
751
752 ac_unique_file="popt.h"
753 # Factoring default headers for most tests.
754 ac_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
789 gt_needs=
790 enable_option_checking=no
791 ac_subst_vars='am__EXEEXT_FALSE
792 am__EXEEXT_TRUE
793 LTLIBOBJS
794 LIBOBJS
795 subdirs
796 POPT_SOURCE_PATH
797 POPT_PKGCONFIG_LIBS
798 POSUB
799 LTLIBINTL
800 LIBINTL
801 INTLLIBS
802 LTLIBICONV
803 LIBICONV
804 INTL_MACOSX_LIBS
805 XGETTEXT_EXTRA_OPTIONS
806 MSGMERGE
807 XGETTEXT_015
808 XGETTEXT
809 GMSGFMT_015
810 MSGFMT_015
811 GMSGFMT
812 MSGFMT
813 GETTEXT_MACRO_VERSION
814 USE_NLS
815 HAVE_LD_VERSION_SCRIPT_FALSE
816 HAVE_LD_VERSION_SCRIPT_TRUE
817 ANSI2KNR
818 U
819 TARGET
820 CPP
821 OTOOL64
822 OTOOL
823 LIPO
824 NMEDIT
825 DSYMUTIL
826 lt_ECHO
827 RANLIB
828 AR
829 OBJDUMP
830 LN_S
831 NM
832 ac_ct_DUMPBIN
833 DUMPBIN
834 LD
835 FGREP
836 EGREP
837 GREP
838 SED
839 LIBTOOL
840 am__fastdepCC_FALSE
841 am__fastdepCC_TRUE
842 CCDEPMODE
843 AMDEPBACKSLASH
844 AMDEP_FALSE
845 AMDEP_TRUE
846 am__quote
847 am__include
848 DEPDIR
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 LT_AGE
857 LT_REVISION
858 LT_CURRENT
859 MAINT
860 MAINTAINER_MODE_FALSE
861 MAINTAINER_MODE_TRUE
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 target_os
886 target_vendor
887 target_cpu
888 target
889 host_os
890 host_vendor
891 host_cpu
892 host
893 build_os
894 build_vendor
895 build_cpu
896 build
897 target_alias
898 host_alias
899 build_alias
900 LIBS
901 ECHO_T
902 ECHO_N
903 ECHO_C
904 DEFS
905 mandir
906 localedir
907 libdir
908 psdir
909 pdfdir
910 dvidir
911 htmldir
912 infodir
913 docdir
914 oldincludedir
915 includedir
916 localstatedir
917 sharedstatedir
918 sysconfdir
919 datadir
920 datarootdir
921 libexecdir
922 sbindir
923 bindir
924 program_transform_name
925 prefix
926 exec_prefix
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files=''
935 ac_user_opts='
936 enable_option_checking
937 enable_maintainer_mode
938 enable_dependency_tracking
939 enable_shared
940 enable_static
941 with_pic
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 enable_largefile
946 enable_ld_version_script
947 enable_build_gcov
948 enable_nls
949 enable_rpath
950 with_libiconv_prefix
951 with_libintl_prefix
952 '
953       ac_precious_vars='build_alias
954 host_alias
955 target_alias
956 CC
957 CFLAGS
958 LDFLAGS
959 LIBS
960 CPPFLAGS
961 CPP'
962 ac_subdirs_all=''
963
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 ac_unrecognized_opts=
968 ac_unrecognized_sep=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
985
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1011
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1015 do
1016   # If the previous option needs an argument, assign it.
1017   if test -n "$ac_prev"; then
1018     eval $ac_prev=\$ac_option
1019     ac_prev=
1020     continue
1021   fi
1022
1023   case $ac_option in
1024   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025   *)    ac_optarg=yes ;;
1026   esac
1027
1028   # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030   case $ac_dashdash$ac_option in
1031   --)
1032     ac_dashdash=yes ;;
1033
1034   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035     ac_prev=bindir ;;
1036   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037     bindir=$ac_optarg ;;
1038
1039   -build | --build | --buil | --bui | --bu)
1040     ac_prev=build_alias ;;
1041   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042     build_alias=$ac_optarg ;;
1043
1044   -cache-file | --cache-file | --cache-fil | --cache-fi \
1045   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046     ac_prev=cache_file ;;
1047   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049     cache_file=$ac_optarg ;;
1050
1051   --config-cache | -C)
1052     cache_file=config.cache ;;
1053
1054   -datadir | --datadir | --datadi | --datad)
1055     ac_prev=datadir ;;
1056   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057     datadir=$ac_optarg ;;
1058
1059   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060   | --dataroo | --dataro | --datar)
1061     ac_prev=datarootdir ;;
1062   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064     datarootdir=$ac_optarg ;;
1065
1066   -disable-* | --disable-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071    { (exit 1); exit 1; }; }
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=no ;;
1082
1083   -docdir | --docdir | --docdi | --doc | --do)
1084     ac_prev=docdir ;;
1085   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086     docdir=$ac_optarg ;;
1087
1088   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089     ac_prev=dvidir ;;
1090   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091     dvidir=$ac_optarg ;;
1092
1093   -enable-* | --enable-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098    { (exit 1); exit 1; }; }
1099     ac_useropt_orig=$ac_useropt
1100     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101     case $ac_user_opts in
1102       *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106          ac_unrecognized_sep=', ';;
1107     esac
1108     eval enable_$ac_useropt=\$ac_optarg ;;
1109
1110   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112   | --exec | --exe | --ex)
1113     ac_prev=exec_prefix ;;
1114   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116   | --exec=* | --exe=* | --ex=*)
1117     exec_prefix=$ac_optarg ;;
1118
1119   -gas | --gas | --ga | --g)
1120     # Obsolete; use --with-gas.
1121     with_gas=yes ;;
1122
1123   -help | --help | --hel | --he | -h)
1124     ac_init_help=long ;;
1125   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126     ac_init_help=recursive ;;
1127   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128     ac_init_help=short ;;
1129
1130   -host | --host | --hos | --ho)
1131     ac_prev=host_alias ;;
1132   -host=* | --host=* | --hos=* | --ho=*)
1133     host_alias=$ac_optarg ;;
1134
1135   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136     ac_prev=htmldir ;;
1137   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138   | --ht=*)
1139     htmldir=$ac_optarg ;;
1140
1141   -includedir | --includedir | --includedi | --included | --include \
1142   | --includ | --inclu | --incl | --inc)
1143     ac_prev=includedir ;;
1144   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145   | --includ=* | --inclu=* | --incl=* | --inc=*)
1146     includedir=$ac_optarg ;;
1147
1148   -infodir | --infodir | --infodi | --infod | --info | --inf)
1149     ac_prev=infodir ;;
1150   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151     infodir=$ac_optarg ;;
1152
1153   -libdir | --libdir | --libdi | --libd)
1154     ac_prev=libdir ;;
1155   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156     libdir=$ac_optarg ;;
1157
1158   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159   | --libexe | --libex | --libe)
1160     ac_prev=libexecdir ;;
1161   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162   | --libexe=* | --libex=* | --libe=*)
1163     libexecdir=$ac_optarg ;;
1164
1165   -localedir | --localedir | --localedi | --localed | --locale)
1166     ac_prev=localedir ;;
1167   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168     localedir=$ac_optarg ;;
1169
1170   -localstatedir | --localstatedir | --localstatedi | --localstated \
1171   | --localstate | --localstat | --localsta | --localst | --locals)
1172     ac_prev=localstatedir ;;
1173   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175     localstatedir=$ac_optarg ;;
1176
1177   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178     ac_prev=mandir ;;
1179   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180     mandir=$ac_optarg ;;
1181
1182   -nfp | --nfp | --nf)
1183     # Obsolete; use --without-fp.
1184     with_fp=no ;;
1185
1186   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187   | --no-cr | --no-c | -n)
1188     no_create=yes ;;
1189
1190   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192     no_recursion=yes ;;
1193
1194   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196   | --oldin | --oldi | --old | --ol | --o)
1197     ac_prev=oldincludedir ;;
1198   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201     oldincludedir=$ac_optarg ;;
1202
1203   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204     ac_prev=prefix ;;
1205   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206     prefix=$ac_optarg ;;
1207
1208   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209   | --program-pre | --program-pr | --program-p)
1210     ac_prev=program_prefix ;;
1211   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213     program_prefix=$ac_optarg ;;
1214
1215   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216   | --program-suf | --program-su | --program-s)
1217     ac_prev=program_suffix ;;
1218   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220     program_suffix=$ac_optarg ;;
1221
1222   -program-transform-name | --program-transform-name \
1223   | --program-transform-nam | --program-transform-na \
1224   | --program-transform-n | --program-transform- \
1225   | --program-transform | --program-transfor \
1226   | --program-transfo | --program-transf \
1227   | --program-trans | --program-tran \
1228   | --progr-tra | --program-tr | --program-t)
1229     ac_prev=program_transform_name ;;
1230   -program-transform-name=* | --program-transform-name=* \
1231   | --program-transform-nam=* | --program-transform-na=* \
1232   | --program-transform-n=* | --program-transform-=* \
1233   | --program-transform=* | --program-transfor=* \
1234   | --program-transfo=* | --program-transf=* \
1235   | --program-trans=* | --program-tran=* \
1236   | --progr-tra=* | --program-tr=* | --program-t=*)
1237     program_transform_name=$ac_optarg ;;
1238
1239   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240     ac_prev=pdfdir ;;
1241   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242     pdfdir=$ac_optarg ;;
1243
1244   -psdir | --psdir | --psdi | --psd | --ps)
1245     ac_prev=psdir ;;
1246   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247     psdir=$ac_optarg ;;
1248
1249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250   | -silent | --silent | --silen | --sile | --sil)
1251     silent=yes ;;
1252
1253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254     ac_prev=sbindir ;;
1255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256   | --sbi=* | --sb=*)
1257     sbindir=$ac_optarg ;;
1258
1259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261   | --sharedst | --shareds | --shared | --share | --shar \
1262   | --sha | --sh)
1263     ac_prev=sharedstatedir ;;
1264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267   | --sha=* | --sh=*)
1268     sharedstatedir=$ac_optarg ;;
1269
1270   -site | --site | --sit)
1271     ac_prev=site ;;
1272   -site=* | --site=* | --sit=*)
1273     site=$ac_optarg ;;
1274
1275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276     ac_prev=srcdir ;;
1277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278     srcdir=$ac_optarg ;;
1279
1280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281   | --syscon | --sysco | --sysc | --sys | --sy)
1282     ac_prev=sysconfdir ;;
1283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285     sysconfdir=$ac_optarg ;;
1286
1287   -target | --target | --targe | --targ | --tar | --ta | --t)
1288     ac_prev=target_alias ;;
1289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290     target_alias=$ac_optarg ;;
1291
1292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293     verbose=yes ;;
1294
1295   -version | --version | --versio | --versi | --vers | -V)
1296     ac_init_version=: ;;
1297
1298   -with-* | --with-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_useropt_orig=$ac_useropt
1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306     case $ac_user_opts in
1307       *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311          ac_unrecognized_sep=', ';;
1312     esac
1313     eval with_$ac_useropt=\$ac_optarg ;;
1314
1315   -without-* | --without-*)
1316     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320    { (exit 1); exit 1; }; }
1321     ac_useropt_orig=$ac_useropt
1322     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323     case $ac_user_opts in
1324       *"
1325 "with_$ac_useropt"
1326 "*) ;;
1327       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328          ac_unrecognized_sep=', ';;
1329     esac
1330     eval with_$ac_useropt=no ;;
1331
1332   --x)
1333     # Obsolete; use --with-x.
1334     with_x=yes ;;
1335
1336   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337   | --x-incl | --x-inc | --x-in | --x-i)
1338     ac_prev=x_includes ;;
1339   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341     x_includes=$ac_optarg ;;
1342
1343   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345     ac_prev=x_libraries ;;
1346   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348     x_libraries=$ac_optarg ;;
1349
1350   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351 Try \`$0 --help' for more information." >&2
1352    { (exit 1); exit 1; }; }
1353     ;;
1354
1355   *=*)
1356     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360    { (exit 1); exit 1; }; }
1361     eval $ac_envvar=\$ac_optarg
1362     export $ac_envvar ;;
1363
1364   *)
1365     # FIXME: should be removed in autoconf 3.0.
1366     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1370     ;;
1371
1372   esac
1373 done
1374
1375 if test -n "$ac_prev"; then
1376   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378    { (exit 1); exit 1; }; }
1379 fi
1380
1381 if test -n "$ac_unrecognized_opts"; then
1382   case $enable_option_checking in
1383     no) ;;
1384     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385    { (exit 1); exit 1; }; } ;;
1386     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387   esac
1388 fi
1389
1390 # Check all directory arguments for consistency.
1391 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392                 datadir sysconfdir sharedstatedir localstatedir includedir \
1393                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394                 libdir localedir mandir
1395 do
1396   eval ac_val=\$$ac_var
1397   # Remove trailing slashes.
1398   case $ac_val in
1399     */ )
1400       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401       eval $ac_var=\$ac_val;;
1402   esac
1403   # Be sure to have absolute directory names.
1404   case $ac_val in
1405     [\\/$]* | ?:[\\/]* )  continue;;
1406     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407   esac
1408   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409    { (exit 1); exit 1; }; }
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421   if test "x$build_alias" = x; then
1422     cross_compiling=maybe
1423     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424     If a cross compiler is detected then cross compile mode will be used." >&2
1425   elif test "x$build_alias" != "x$host_alias"; then
1426     cross_compiling=yes
1427   fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440    { (exit 1); exit 1; }; }
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443    { (exit 1); exit 1; }; }
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448   ac_srcdir_defaulted=yes
1449   # Try the directory containing this script, then the parent directory.
1450   ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452          X"$as_myself" : 'X\(//\)[^/]' \| \
1453          X"$as_myself" : 'X\(//\)$' \| \
1454          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)[^/].*/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)$/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\).*/{
1469             s//\1/
1470             q
1471           }
1472           s/.*/./; q'`
1473   srcdir=$ac_confdir
1474   if test ! -r "$srcdir/$ac_unique_file"; then
1475     srcdir=..
1476   fi
1477 else
1478   ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483    { (exit 1); exit 1; }; }
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488    { (exit 1); exit 1; }; }
1489         pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492   srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_env_${ac_var}_value=\$${ac_var}
1503   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511   # Omit some internal or obsolete options to make the list less imposing.
1512   # This message is too long to be a string in the A/UX 3.1 sh.
1513   cat <<_ACEOF
1514 \`configure' configures popt 1.16 to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524   -h, --help              display this help and exit
1525       --help=short        display options specific to this package
1526       --help=recursive    display the short help of all the included packages
1527   -V, --version           display version information and exit
1528   -q, --quiet, --silent   do not print \`checking...' messages
1529       --cache-file=FILE   cache test results in FILE [disabled]
1530   -C, --config-cache      alias for \`--cache-file=config.cache'
1531   -n, --no-create         do not create output files
1532       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535   --prefix=PREFIX         install architecture-independent files in PREFIX
1536                           [$ac_default_prefix]
1537   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                           [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548   --bindir=DIR            user executables [EPREFIX/bin]
1549   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550   --libexecdir=DIR        program executables [EPREFIX/libexec]
1551   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554   --libdir=DIR            object code libraries [EPREFIX/lib]
1555   --includedir=DIR        C header files [PREFIX/include]
1556   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559   --infodir=DIR           info documentation [DATAROOTDIR/info]
1560   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561   --mandir=DIR            man documentation [DATAROOTDIR/man]
1562   --docdir=DIR            documentation root [DATAROOTDIR/doc/popt]
1563   --htmldir=DIR           html documentation [DOCDIR]
1564   --dvidir=DIR            dvi documentation [DOCDIR]
1565   --pdfdir=DIR            pdf documentation [DOCDIR]
1566   --psdir=DIR             ps documentation [DOCDIR]
1567 _ACEOF
1568
1569   cat <<\_ACEOF
1570
1571 Program names:
1572   --program-prefix=PREFIX            prepend PREFIX to installed program names
1573   --program-suffix=SUFFIX            append SUFFIX to installed program names
1574   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575
1576 System types:
1577   --build=BUILD     configure for building on BUILD [guessed]
1578   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579   --target=TARGET   configure for building compilers for TARGET [HOST]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584   case $ac_init_help in
1585      short | recursive ) echo "Configuration of popt 1.16:";;
1586    esac
1587   cat <<\_ACEOF
1588
1589 Optional Features:
1590   --disable-option-checking  ignore unrecognized --enable/--with options
1591   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1592   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1593   --enable-maintainer-mode  enable make rules and dependencies not useful
1594                           (and sometimes confusing) to the casual installer
1595   --disable-dependency-tracking  speeds up one-time build
1596   --enable-dependency-tracking   do not reject slow dependency extractors
1597   --enable-shared[=PKGS]  build shared libraries [default=yes]
1598   --enable-static[=PKGS]  build static libraries [default=yes]
1599   --enable-fast-install[=PKGS]
1600                           optimize for fast installation [default=yes]
1601   --disable-libtool-lock  avoid locking (might break parallel builds)
1602   --disable-largefile     omit support for large files
1603   --enable-ld-version-script
1604                           enable/disable use of linker version script.
1605                           (default is system dependent)
1606   --enable-build-gcov     build POPT instrumented for gcov
1607   --disable-nls           do not use Native Language Support
1608   --disable-rpath         do not hardcode runtime library paths
1609
1610 Optional Packages:
1611   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1612   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1613   --with-pic              try to use only PIC/non-PIC objects [default=use
1614                           both]
1615   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1617   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1618   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1619   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1620   --without-libintl-prefix     don't search for libintl in includedir and libdir
1621
1622 Some influential environment variables:
1623   CC          C compiler command
1624   CFLAGS      C compiler flags
1625   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626               nonstandard directory <lib dir>
1627   LIBS        libraries to pass to the linker, e.g. -l<library>
1628   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629               you have headers in a nonstandard directory <include dir>
1630   CPP         C preprocessor
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to <popt-devel@rpm5.org>.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641   # If there are subdirs, report their specific --help.
1642   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643     test -d "$ac_dir" ||
1644       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645       continue
1646     ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652   # A ".." for each directory in $ac_dir_suffix.
1653   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654   case $ac_top_builddir_sub in
1655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657   esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665   .)  # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669   [\\/]* | ?:[\\/]* )  # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673   *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690     fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692   done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697   cat <<\_ACEOF
1698 popt configure 1.16
1699 generated by GNU Autoconf 2.63
1700
1701 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1702 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1705 _ACEOF
1706   exit
1707 fi
1708 cat >config.log <<_ACEOF
1709 This file contains any messages produced by compilers while
1710 running configure, to aid debugging if configure makes a mistake.
1711
1712 It was created by popt $as_me 1.16, which was
1713 generated by GNU Autoconf 2.63.  Invocation command line was
1714
1715   $ $0 $@
1716
1717 _ACEOF
1718 exec 5>>config.log
1719 {
1720 cat <<_ASUNAME
1721 ## --------- ##
1722 ## Platform. ##
1723 ## --------- ##
1724
1725 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1726 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1727 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1728 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1729 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730
1731 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1732 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1733
1734 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1735 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1736 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1737 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1738 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1739 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1740 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1741
1742 _ASUNAME
1743
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   $as_echo "PATH: $as_dir"
1750 done
1751 IFS=$as_save_IFS
1752
1753 } >&5
1754
1755 cat >&5 <<_ACEOF
1756
1757
1758 ## ----------- ##
1759 ## Core tests. ##
1760 ## ----------- ##
1761
1762 _ACEOF
1763
1764
1765 # Keep a trace of the command line.
1766 # Strip out --no-create and --no-recursion so they do not pile up.
1767 # Strip out --silent because we don't want to record it for future runs.
1768 # Also quote any args containing shell meta-characters.
1769 # Make two passes to allow for proper duplicate-argument suppression.
1770 ac_configure_args=
1771 ac_configure_args0=
1772 ac_configure_args1=
1773 ac_must_keep_next=false
1774 for ac_pass in 1 2
1775 do
1776   for ac_arg
1777   do
1778     case $ac_arg in
1779     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1780     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1781     | -silent | --silent | --silen | --sile | --sil)
1782       continue ;;
1783     *\'*)
1784       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785     esac
1786     case $ac_pass in
1787     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1788     2)
1789       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1790       if test $ac_must_keep_next = true; then
1791         ac_must_keep_next=false # Got value, back to normal.
1792       else
1793         case $ac_arg in
1794           *=* | --config-cache | -C | -disable-* | --disable-* \
1795           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1796           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1797           | -with-* | --with-* | -without-* | --without-* | --x)
1798             case "$ac_configure_args0 " in
1799               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1800             esac
1801             ;;
1802           -* ) ac_must_keep_next=true ;;
1803         esac
1804       fi
1805       ac_configure_args="$ac_configure_args '$ac_arg'"
1806       ;;
1807     esac
1808   done
1809 done
1810 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1811 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1812
1813 # When interrupted or exit'd, cleanup temporary files, and complete
1814 # config.log.  We remove comments because anyway the quotes in there
1815 # would cause problems or look ugly.
1816 # WARNING: Use '\'' to represent an apostrophe within the trap.
1817 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1818 trap 'exit_status=$?
1819   # Save into config.log some information that might help in debugging.
1820   {
1821     echo
1822
1823     cat <<\_ASBOX
1824 ## ---------------- ##
1825 ## Cache variables. ##
1826 ## ---------------- ##
1827 _ASBOX
1828     echo
1829     # The following way of writing the cache mishandles newlines in values,
1830 (
1831   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1832     eval ac_val=\$$ac_var
1833     case $ac_val in #(
1834     *${as_nl}*)
1835       case $ac_var in #(
1836       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1838       esac
1839       case $ac_var in #(
1840       _ | IFS | as_nl) ;; #(
1841       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1842       *) $as_unset $ac_var ;;
1843       esac ;;
1844     esac
1845   done
1846   (set) 2>&1 |
1847     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848     *${as_nl}ac_space=\ *)
1849       sed -n \
1850         "s/'\''/'\''\\\\'\'''\''/g;
1851           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852       ;; #(
1853     *)
1854       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855       ;;
1856     esac |
1857     sort
1858 )
1859     echo
1860
1861     cat <<\_ASBOX
1862 ## ----------------- ##
1863 ## Output variables. ##
1864 ## ----------------- ##
1865 _ASBOX
1866     echo
1867     for ac_var in $ac_subst_vars
1868     do
1869       eval ac_val=\$$ac_var
1870       case $ac_val in
1871       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872       esac
1873       $as_echo "$ac_var='\''$ac_val'\''"
1874     done | sort
1875     echo
1876
1877     if test -n "$ac_subst_files"; then
1878       cat <<\_ASBOX
1879 ## ------------------- ##
1880 ## File substitutions. ##
1881 ## ------------------- ##
1882 _ASBOX
1883       echo
1884       for ac_var in $ac_subst_files
1885       do
1886         eval ac_val=\$$ac_var
1887         case $ac_val in
1888         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889         esac
1890         $as_echo "$ac_var='\''$ac_val'\''"
1891       done | sort
1892       echo
1893     fi
1894
1895     if test -s confdefs.h; then
1896       cat <<\_ASBOX
1897 ## ----------- ##
1898 ## confdefs.h. ##
1899 ## ----------- ##
1900 _ASBOX
1901       echo
1902       cat confdefs.h
1903       echo
1904     fi
1905     test "$ac_signal" != 0 &&
1906       $as_echo "$as_me: caught signal $ac_signal"
1907     $as_echo "$as_me: exit $exit_status"
1908   } >&5
1909   rm -f core *.core core.conftest.* &&
1910     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911     exit $exit_status
1912 ' 0
1913 for ac_signal in 1 2 13 15; do
1914   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915 done
1916 ac_signal=0
1917
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1920
1921 # Predefined preprocessor variables.
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_NAME "$PACKAGE_NAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_STRING "$PACKAGE_STRING"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945 _ACEOF
1946
1947
1948 # Let the site file select an alternate cache file if it wants to.
1949 # Prefer an explicitly selected file to automatically selected ones.
1950 ac_site_file1=NONE
1951 ac_site_file2=NONE
1952 if test -n "$CONFIG_SITE"; then
1953   ac_site_file1=$CONFIG_SITE
1954 elif test "x$prefix" != xNONE; then
1955   ac_site_file1=$prefix/share/config.site
1956   ac_site_file2=$prefix/etc/config.site
1957 else
1958   ac_site_file1=$ac_default_prefix/share/config.site
1959   ac_site_file2=$ac_default_prefix/etc/config.site
1960 fi
1961 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1962 do
1963   test "x$ac_site_file" = xNONE && continue
1964   if test -r "$ac_site_file"; then
1965     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1967     sed 's/^/| /' "$ac_site_file" >&5
1968     . "$ac_site_file"
1969   fi
1970 done
1971
1972 if test -r "$cache_file"; then
1973   # Some versions of bash will fail to source /dev/null (special
1974   # files actually), so we avoid doing that.
1975   if test -f "$cache_file"; then
1976     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 $as_echo "$as_me: loading cache $cache_file" >&6;}
1978     case $cache_file in
1979       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980       *)                      . "./$cache_file";;
1981     esac
1982   fi
1983 else
1984   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 $as_echo "$as_me: creating cache $cache_file" >&6;}
1986   >$cache_file
1987 fi
1988
1989 gt_needs="$gt_needs "
1990 # Check that the precious variables saved in the cache have kept the same
1991 # value.
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995   eval ac_new_set=\$ac_env_${ac_var}_set
1996   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997   eval ac_new_val=\$ac_env_${ac_var}_value
1998   case $ac_old_set,$ac_new_set in
1999     set,)
2000       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002       ac_cache_corrupted=: ;;
2003     ,set)
2004       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006       ac_cache_corrupted=: ;;
2007     ,);;
2008     *)
2009       if test "x$ac_old_val" != "x$ac_new_val"; then
2010         # differences in whitespace do not lead to failure.
2011         ac_old_val_w=`echo x $ac_old_val`
2012         ac_new_val_w=`echo x $ac_new_val`
2013         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016           ac_cache_corrupted=:
2017         else
2018           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020           eval $ac_var=\$ac_old_val
2021         fi
2022         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2023 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2024         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2026       fi;;
2027   esac
2028   # Pass precious variables to config.status.
2029   if test "$ac_new_set" = set; then
2030     case $ac_new_val in
2031     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032     *) ac_arg=$ac_var=$ac_new_val ;;
2033     esac
2034     case " $ac_configure_args " in
2035       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2036       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037     esac
2038   fi
2039 done
2040 if $ac_cache_corrupted; then
2041   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2046 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074 ac_ext=c
2075 ac_cpp='$CPP $CPPFLAGS'
2076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079
2080
2081
2082 ac_config_headers="$ac_config_headers config.h"
2083
2084 ac_aux_dir=
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086   if test -f "$ac_dir/install-sh"; then
2087     ac_aux_dir=$ac_dir
2088     ac_install_sh="$ac_aux_dir/install-sh -c"
2089     break
2090   elif test -f "$ac_dir/install.sh"; then
2091     ac_aux_dir=$ac_dir
2092     ac_install_sh="$ac_aux_dir/install.sh -c"
2093     break
2094   elif test -f "$ac_dir/shtool"; then
2095     ac_aux_dir=$ac_dir
2096     ac_install_sh="$ac_aux_dir/shtool install -c"
2097     break
2098   fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103    { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119    { (exit 1); exit 1; }; }
2120
2121 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2122 $as_echo_n "checking build system type... " >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124   $as_echo_n "(cached) " >&6
2125 else
2126   ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132    { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138 fi
2139 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 $as_echo "$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2145    { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2162 $as_echo_n "checking host system type... " >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164   $as_echo_n "(cached) " >&6
2165 else
2166   if test "x$host_alias" = x; then
2167   ac_cv_host=$ac_cv_build
2168 else
2169   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 $as_echo "$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2182    { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2199 $as_echo_n "checking target system type... " >&6; }
2200 if test "${ac_cv_target+set}" = set; then
2201   $as_echo_n "(cached) " >&6
2202 else
2203   if test "x$target_alias" = x; then
2204   ac_cv_target=$ac_cv_host
2205 else
2206   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2207     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2208 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2209    { (exit 1); exit 1; }; }
2210 fi
2211
2212 fi
2213 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2214 $as_echo "$ac_cv_target" >&6; }
2215 case $ac_cv_target in
2216 *-*-*) ;;
2217 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2218 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2219    { (exit 1); exit 1; }; };;
2220 esac
2221 target=$ac_cv_target
2222 ac_save_IFS=$IFS; IFS='-'
2223 set x $ac_cv_target
2224 shift
2225 target_cpu=$1
2226 target_vendor=$2
2227 shift; shift
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2230 target_os=$*
2231 IFS=$ac_save_IFS
2232 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2233
2234
2235 # The aliases save the names the user supplied, while $host etc.
2236 # will get canonicalized.
2237 test -n "$target_alias" &&
2238   test "$program_prefix$program_suffix$program_transform_name" = \
2239     NONENONEs,x,x, &&
2240   program_prefix=${target_alias}-
2241
2242
2243 am__api_version='1.11'
2244
2245 # Find a good install program.  We prefer a C program (faster),
2246 # so one script is as good as another.  But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2251 # AIX /bin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if test "${ac_cv_path_install+set}" = set; then
2263   $as_echo_n "(cached) " >&6
2264 else
2265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in
2272   ./ | .// | /cC/* | \
2273   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2275   /usr/ucb/* ) ;;
2276   *)
2277     # OSF1 and SCO ODT 3.0 have their own names for install.
2278     # Don't use installbsd from OSF since it installs stuff as root
2279     # by default.
2280     for ac_prog in ginstall scoinst install; do
2281       for ac_exec_ext in '' $ac_executable_extensions; do
2282         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283           if test $ac_prog = install &&
2284             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285             # AIX install.  It has an incompatible calling convention.
2286             :
2287           elif test $ac_prog = install &&
2288             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289             # program-specific install script used by HP pwplus--don't use.
2290             :
2291           else
2292             rm -rf conftest.one conftest.two conftest.dir
2293             echo one > conftest.one
2294             echo two > conftest.two
2295             mkdir conftest.dir
2296             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297               test -s conftest.one && test -s conftest.two &&
2298               test -s conftest.dir/conftest.one &&
2299               test -s conftest.dir/conftest.two
2300             then
2301               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302               break 3
2303             fi
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310
2311 done
2312 IFS=$as_save_IFS
2313
2314 rm -rf conftest.one conftest.two conftest.dir
2315
2316 fi
2317   if test "${ac_cv_path_install+set}" = set; then
2318     INSTALL=$ac_cv_path_install
2319   else
2320     # As a last resort, use the slow shell script.  Don't cache a
2321     # value for INSTALL within a source directory, because that will
2322     # break other packages using the cache if that directory is
2323     # removed, or if the value is a relative name.
2324     INSTALL=$ac_install_sh
2325   fi
2326 fi
2327 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 # Just in case
2341 sleep 1
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name.  Accept space and tab only in the latter.
2345 am_lf='
2346 '
2347 case `pwd` in
2348   *[\\\"\#\$\&\'\`$am_lf]*)
2349     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2350 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2351    { (exit 1); exit 1; }; };;
2352 esac
2353 case $srcdir in
2354   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2355     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2356 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2357    { (exit 1); exit 1; }; };;
2358 esac
2359
2360 # Do `set' in a subshell so we don't clobber the current shell's
2361 # arguments.  Must try -L first in case configure is actually a
2362 # symlink; some systems play weird games with the mod time of symlinks
2363 # (eg FreeBSD returns the mod time of the symlink's containing
2364 # directory).
2365 if (
2366    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367    if test "$*" = "X"; then
2368       # -L didn't work.
2369       set X `ls -t "$srcdir/configure" conftest.file`
2370    fi
2371    rm -f conftest.file
2372    if test "$*" != "X $srcdir/configure conftest.file" \
2373       && test "$*" != "X conftest.file $srcdir/configure"; then
2374
2375       # If neither matched, then we have a broken ls.  This can happen
2376       # if, for instance, CONFIG_SHELL is bash and it inherits a
2377       # broken ls alias from the environment.  This has actually
2378       # happened.  Such a system could not be considered "sane".
2379       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2380 alias in your environment" >&5
2381 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2382 alias in your environment" >&2;}
2383    { (exit 1); exit 1; }; }
2384    fi
2385
2386    test "$2" = conftest.file
2387    )
2388 then
2389    # Ok.
2390    :
2391 else
2392    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2393 Check your system clock" >&5
2394 $as_echo "$as_me: error: newly created file is older than distributed files!
2395 Check your system clock" >&2;}
2396    { (exit 1); exit 1; }; }
2397 fi
2398 { $as_echo "$as_me:$LINENO: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2409
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2412
2413 if test x"${MISSING+set}" != xset; then
2414   case $am_aux_dir in
2415   *\ * | *\     *)
2416     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2417   *)
2418     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419   esac
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --run true"; then
2423   am_missing_run="$MISSING --run "
2424 else
2425   am_missing_run=
2426   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2428 fi
2429
2430 if test x"${install_sh}" != xset; then
2431   case $am_aux_dir in
2432   *\ * | *\     *)
2433     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434   *)
2435     install_sh="\${SHELL} $am_aux_dir/install-sh"
2436   esac
2437 fi
2438
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'.  However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450   $as_echo_n "(cached) " >&6
2451 else
2452   if test -n "$STRIP"; then
2453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477   { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484   ac_ct_STRIP=$STRIP
2485   # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490   $as_echo_n "(cached) " >&6
2491 else
2492   if test -n "$ac_ct_STRIP"; then
2493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_ac_ct_STRIP="strip"
2503     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517   { $as_echo "$as_me:$LINENO: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521   if test "x$ac_ct_STRIP" = x; then
2522     STRIP=":"
2523   else
2524     case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530     STRIP=$ac_ct_STRIP
2531   fi
2532 else
2533   STRIP="$ac_cv_prog_STRIP"
2534 fi
2535
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542   if test "${ac_cv_path_mkdir+set}" = set; then
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_prog in mkdir gmkdir; do
2551          for ac_exec_ext in '' $ac_executable_extensions; do
2552            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2553            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554              'mkdir (GNU coreutils) '* | \
2555              'mkdir (coreutils) '* | \
2556              'mkdir (fileutils) '4.1*)
2557                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558                break 3;;
2559            esac
2560          done
2561        done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566
2567   if test "${ac_cv_path_mkdir+set}" = set; then
2568     MKDIR_P="$ac_cv_path_mkdir -p"
2569   else
2570     # As a last resort, use the slow shell script.  Don't cache a
2571     # value for MKDIR_P within a source directory, because that will
2572     # break other packages using the cache if that directory is
2573     # removed, or if the value is a relative name.
2574     test -d ./--version && rmdir ./--version
2575     MKDIR_P="$ac_install_sh -d"
2576   fi
2577 fi
2578 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2580
2581 mkdir_p="$MKDIR_P"
2582 case $mkdir_p in
2583   [\\/$]* | ?:[\\/]*) ;;
2584   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2585 esac
2586
2587 for ac_prog in gawk mawk nawk awk
2588 do
2589   # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if test "${ac_cv_prog_AWK+set}" = set; then
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$AWK"; then
2597   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_AWK="$ac_prog"
2607     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 AWK=$ac_cv_prog_AWK
2617 if test -n "$AWK"; then
2618   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2620 else
2621   { $as_echo "$as_me:$LINENO: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626   test -n "$AWK" && break
2627 done
2628
2629 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2631 set x ${MAKE-make}
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2634   $as_echo_n "(cached) " >&6
2635 else
2636   cat >conftest.make <<\_ACEOF
2637 SHELL = /bin/sh
2638 all:
2639         @echo '@@@%%%=$(MAKE)=@@@%%%'
2640 _ACEOF
2641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2643   *@@@%%%=?*=@@@%%%*)
2644     eval ac_cv_prog_make_${ac_make}_set=yes;;
2645   *)
2646     eval ac_cv_prog_make_${ac_make}_set=no;;
2647 esac
2648 rm -f conftest.make
2649 fi
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651   { $as_echo "$as_me:$LINENO: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653   SET_MAKE=
2654 else
2655   { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2657   SET_MAKE="MAKE=${MAKE-make}"
2658 fi
2659
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2663   am__leading_dot=.
2664 else
2665   am__leading_dot=_
2666 fi
2667 rmdir .tst 2>/dev/null
2668
2669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671   # is not polluted with repeated "-I."
2672   am__isrc=' -I$(srcdir)'
2673   # test to see if srcdir already configured
2674   if test -f $srcdir/config.status; then
2675     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2676 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2677    { (exit 1); exit 1; }; }
2678   fi
2679 fi
2680
2681 # test whether we have cygpath
2682 if test -z "$CYGPATH_W"; then
2683   if (cygpath --version) >/dev/null 2>/dev/null; then
2684     CYGPATH_W='cygpath -w'
2685   else
2686     CYGPATH_W=echo
2687   fi
2688 fi
2689
2690
2691 # Define the identity of the package.
2692  PACKAGE='popt'
2693  VERSION='1.16'
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE "$PACKAGE"
2698 _ACEOF
2699
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define VERSION "$VERSION"
2703 _ACEOF
2704
2705 # Some tools Automake needs.
2706
2707 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2708
2709
2710 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2711
2712
2713 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2714
2715
2716 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2717
2718
2719 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2720
2721 # We need awk for the "check" target.  The system "awk" is bad on
2722 # some platforms.
2723 # Always define AMTAR for backward compatibility.
2724
2725 AMTAR=${AMTAR-"${am_missing_run}tar"}
2726
2727 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2728
2729
2730
2731
2732
2733
2734 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2735 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2736     # Check whether --enable-maintainer-mode was given.
2737 if test "${enable_maintainer_mode+set}" = set; then
2738   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2739 else
2740   USE_MAINTAINER_MODE=no
2741 fi
2742
2743   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2744 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2745    if test $USE_MAINTAINER_MODE = yes; then
2746   MAINTAINER_MODE_TRUE=
2747   MAINTAINER_MODE_FALSE='#'
2748 else
2749   MAINTAINER_MODE_TRUE='#'
2750   MAINTAINER_MODE_FALSE=
2751 fi
2752
2753   MAINT=$MAINTAINER_MODE_TRUE
2754
2755
2756
2757 # Library code modified:                              REVISION++
2758 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
2759 # Interfaces added:                             AGE++
2760 # Interfaces removed:                           AGE=0
2761 LT_CURRENT=0
2762
2763 LT_REVISION=0
2764
2765 LT_AGE=8
2766
2767
2768 ALL_LINGUAS="cs da de eo es fi fr ga gl hu id is it ja ko lv nb nl pl pt ro ru sk sl sv th tr uk vi wa zh_TW zh_CN"
2769
2770 DEPDIR="${am__leading_dot}deps"
2771
2772 ac_config_commands="$ac_config_commands depfiles"
2773
2774
2775 am_make=${MAKE-make}
2776 cat > confinc << 'END'
2777 am__doit:
2778         @echo this is the am__doit target
2779 .PHONY: am__doit
2780 END
2781 # If we don't find an include directive, just comment out the code.
2782 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2783 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2784 am__include="#"
2785 am__quote=
2786 _am_result=none
2787 # First try GNU make style include.
2788 echo "include confinc" > confmf
2789 # Ignore all kinds of additional output from `make'.
2790 case `$am_make -s -f confmf 2> /dev/null` in #(
2791 *the\ am__doit\ target*)
2792   am__include=include
2793   am__quote=
2794   _am_result=GNU
2795   ;;
2796 esac
2797 # Now try BSD make style include.
2798 if test "$am__include" = "#"; then
2799    echo '.include "confinc"' > confmf
2800    case `$am_make -s -f confmf 2> /dev/null` in #(
2801    *the\ am__doit\ target*)
2802      am__include=.include
2803      am__quote="\""
2804      _am_result=BSD
2805      ;;
2806    esac
2807 fi
2808
2809
2810 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2811 $as_echo "$_am_result" >&6; }
2812 rm -f confinc confmf
2813
2814 # Check whether --enable-dependency-tracking was given.
2815 if test "${enable_dependency_tracking+set}" = set; then
2816   enableval=$enable_dependency_tracking;
2817 fi
2818
2819 if test "x$enable_dependency_tracking" != xno; then
2820   am_depcomp="$ac_aux_dir/depcomp"
2821   AMDEPBACKSLASH='\'
2822 fi
2823  if test "x$enable_dependency_tracking" != xno; then
2824   AMDEP_TRUE=
2825   AMDEP_FALSE='#'
2826 else
2827   AMDEP_TRUE='#'
2828   AMDEP_FALSE=
2829 fi
2830
2831
2832 ac_ext=c
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$CC"; then
2846   ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853   for ac_exec_ext in '' $ac_executable_extensions; do
2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2856     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870   { $as_echo "$as_me:$LINENO: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$ac_cv_prog_CC"; then
2877   ac_ct_CC=$CC
2878   # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883   $as_echo_n "(cached) " >&6
2884 else
2885   if test -n "$ac_ct_CC"; then
2886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     ac_cv_prog_ac_ct_CC="gcc"
2896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2909 else
2910   { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914   if test "x$ac_ct_CC" = x; then
2915     CC=""
2916   else
2917     case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923     CC=$ac_ct_CC
2924   fi
2925 else
2926   CC="$ac_cv_prog_CC"
2927 fi
2928
2929 if test -z "$CC"; then
2930           if test -n "$ac_tool_prefix"; then
2931     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}cc; ac_word=$2
2933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_prog_CC="${ac_tool_prefix}cc"
2949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963   { $as_echo "$as_me:$LINENO: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968   fi
2969 fi
2970 if test -z "$CC"; then
2971   # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc; ac_word=$2
2973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then
2976   $as_echo_n "(cached) " >&6
2977 else
2978   if test -n "$CC"; then
2979   ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981   ac_prog_rejected=no
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990        ac_prog_rejected=yes
2991        continue
2992      fi
2993     ac_cv_prog_CC="cc"
2994     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 if test $ac_prog_rejected = yes; then
3002   # We found a bogon in the path, so make sure we never use it.
3003   set dummy $ac_cv_prog_CC
3004   shift
3005   if test $# != 0; then
3006     # We chose a different compiler from the bogus one.
3007     # However, it has the same basename, so the bogon will be chosen
3008     # first if we set CC to just the basename; use the full file name.
3009     shift
3010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011   fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020   { $as_echo "$as_me:$LINENO: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 fi
3026 if test -z "$CC"; then
3027   if test -n "$ac_tool_prefix"; then
3028   for ac_prog in cl.exe
3029   do
3030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035   $as_echo_n "(cached) " >&6
3036 else
3037   if test -n "$CC"; then
3038   ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062   { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067     test -n "$CC" && break
3068   done
3069 fi
3070 if test -z "$CC"; then
3071   ac_ct_CC=$CC
3072   for ac_prog in cl.exe
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$ac_ct_CC"; then
3082   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_ac_ct_CC="$ac_prog"
3092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3105 else
3106   { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111   test -n "$ac_ct_CC" && break
3112 done
3113
3114   if test "x$ac_ct_CC" = x; then
3115     CC=""
3116   else
3117     case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123     CC=$ac_ct_CC
3124   fi
3125 fi
3126
3127 fi
3128
3129
3130 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." >&5
3134 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details." >&2;}
3136    { (exit 1); exit 1; }; }; }
3137
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3140 set X $ac_compile
3141 ac_compiler=$2
3142 { (ac_try="$ac_compiler --version >&5"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3148 $as_echo "$ac_try_echo") >&5
3149   (eval "$ac_compiler --version >&5") 2>&5
3150   ac_status=$?
3151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }
3153 { (ac_try="$ac_compiler -v >&5"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159 $as_echo "$ac_try_echo") >&5
3160   (eval "$ac_compiler -v >&5") 2>&5
3161   ac_status=$?
3162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171   (eval "$ac_compiler -V >&5") 2>&5
3172   ac_status=$?
3173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }
3175
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 ac_clean_files_save=$ac_clean_files
3192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3193 # Try to create an executable without -o first, disregard a.out.
3194 # It will help us diagnose broken compilers, and finding out an intuition
3195 # of exeext.
3196 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
3198 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199
3200 # The possible output files:
3201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3202
3203 ac_rmfiles=
3204 for ac_file in $ac_files
3205 do
3206   case $ac_file in
3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3209   esac
3210 done
3211 rm -f $ac_rmfiles
3212
3213 if { (ac_try="$ac_link_default"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220   (eval "$ac_link_default") 2>&5
3221   ac_status=$?
3222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; then
3224   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3226 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3227 # so that the user can short-circuit this test for compilers unknown to
3228 # Autoconf.
3229 for ac_file in $ac_files ''
3230 do
3231   test -f "$ac_file" || continue
3232   case $ac_file in
3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3234         ;;
3235     [ab].out )
3236         # We found the default executable, but exeext='' is most
3237         # certainly right.
3238         break;;
3239     *.* )
3240         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3241         then :; else
3242            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243         fi
3244         # We set ac_cv_exeext here because the later test for it is not
3245         # safe: cross compilers may not add the suffix if given an `-o'
3246         # argument, so we may need to know it at that point already.
3247         # Even if this section looks crufty: it has the advantage of
3248         # actually working.
3249         break;;
3250     * )
3251         break;;
3252   esac
3253 done
3254 test "$ac_cv_exeext" = no && ac_cv_exeext=
3255
3256 else
3257   ac_file=''
3258 fi
3259
3260 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3261 $as_echo "$ac_file" >&6; }
3262 if test -z "$ac_file"; then
3263   $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3269 See \`config.log' for more details." >&5
3270 $as_echo "$as_me: error: C compiler cannot create executables
3271 See \`config.log' for more details." >&2;}
3272    { (exit 77); exit 77; }; }; }
3273 fi
3274
3275 ac_exeext=$ac_cv_exeext
3276
3277 # Check that the compiler produces executables we can run.  If not, either
3278 # the compiler is broken, or we cross compile.
3279 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3280 $as_echo_n "checking whether the C compiler works... " >&6; }
3281 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3282 # If not cross compiling, check that we can run a simple program.
3283 if test "$cross_compiling" != yes; then
3284   if { ac_try='./$ac_file'
3285   { (case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290 $as_echo "$ac_try_echo") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295     cross_compiling=no
3296   else
3297     if test "$cross_compiling" = maybe; then
3298         cross_compiling=yes
3299     else
3300         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." >&5
3305 $as_echo "$as_me: error: cannot run C compiled programs.
3306 If you meant to cross compile, use \`--host'.
3307 See \`config.log' for more details." >&2;}
3308    { (exit 1); exit 1; }; }; }
3309     fi
3310   fi
3311 fi
3312 { $as_echo "$as_me:$LINENO: result: yes" >&5
3313 $as_echo "yes" >&6; }
3314
3315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 # Check that the compiler produces executables we can run.  If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3320 $as_echo_n "checking whether we are cross compiling... " >&6; }
3321 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3322 $as_echo "$cross_compiling" >&6; }
3323
3324 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { (ac_try="$ac_link"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333   (eval "$ac_link") 2>&5
3334   ac_status=$?
3335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); }; then
3337   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3340 # `rm'.
3341 for ac_file in conftest.exe conftest conftest.*; do
3342   test -f "$ac_file" || continue
3343   case $ac_file in
3344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346           break;;
3347     * ) break;;
3348   esac
3349 done
3350 else
3351   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details." >&5
3355 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details." >&2;}
3357    { (exit 1); exit 1; }; }; }
3358 fi
3359
3360 rm -f conftest$ac_cv_exeext
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3362 $as_echo "$ac_cv_exeext" >&6; }
3363
3364 rm -f conftest.$ac_ext
3365 EXEEXT=$ac_cv_exeext
3366 ac_exeext=$EXEEXT
3367 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3368 $as_echo_n "checking for suffix of object files... " >&6; }
3369 if test "${ac_cv_objext+set}" = set; then
3370   $as_echo_n "(cached) " >&6
3371 else
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3394 $as_echo "$ac_try_echo") >&5
3395   (eval "$ac_compile") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; then
3399   for ac_file in conftest.o conftest.obj conftest.*; do
3400   test -f "$ac_file" || continue;
3401   case $ac_file in
3402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404        break;;
3405   esac
3406 done
3407 else
3408   $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details." >&5
3415 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3416 See \`config.log' for more details." >&2;}
3417    { (exit 1); exit 1; }; }; }
3418 fi
3419
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421 fi
3422 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3425 ac_objext=$OBJEXT
3426 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3429   $as_echo_n "(cached) " >&6
3430 else
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437
3438 int
3439 main ()
3440 {
3441 #ifndef __GNUC__
3442        choke me
3443 #endif
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457   (eval "$ac_compile") 2>conftest.er1
3458   ac_status=$?
3459   grep -v '^ *+' conftest.er1 >conftest.err
3460   rm -f conftest.er1
3461   cat conftest.err >&5
3462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } && {
3464          test -z "$ac_c_werror_flag" ||
3465          test ! -s conftest.err
3466        } && test -s conftest.$ac_objext; then
3467   ac_compiler_gnu=yes
3468 else
3469   $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472         ac_compiler_gnu=no
3473 fi
3474
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477
3478 fi
3479 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3482   GCC=yes
3483 else
3484   GCC=
3485 fi
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if test "${ac_cv_prog_cc_g+set}" = set; then
3491   $as_echo_n "(cached) " >&6
3492 else
3493   ac_save_c_werror_flag=$ac_c_werror_flag
3494    ac_c_werror_flag=yes
3495    ac_cv_prog_cc_g=no
3496    CFLAGS="-g"
3497    cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520   (eval "$ac_compile") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } && {
3527          test -z "$ac_c_werror_flag" ||
3528          test ! -s conftest.err
3529        } && test -s conftest.$ac_objext; then
3530   ac_cv_prog_cc_g=yes
3531 else
3532   $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535         CFLAGS=""
3536       cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559   (eval "$ac_compile") 2>conftest.er1
3560   ac_status=$?
3561   grep -v '^ *+' conftest.er1 >conftest.err
3562   rm -f conftest.er1
3563   cat conftest.err >&5
3564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } && {
3566          test -z "$ac_c_werror_flag" ||
3567          test ! -s conftest.err
3568        } && test -s conftest.$ac_objext; then
3569   :
3570 else
3571   $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574         ac_c_werror_flag=$ac_save_c_werror_flag
3575          CFLAGS="-g"
3576          cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3598 $as_echo "$ac_try_echo") >&5
3599   (eval "$ac_compile") 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } && {
3606          test -z "$ac_c_werror_flag" ||
3607          test ! -s conftest.err
3608        } && test -s conftest.$ac_objext; then
3609   ac_cv_prog_cc_g=yes
3610 else
3611   $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614
3615 fi
3616
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 fi
3619
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 fi
3622
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624    ac_c_werror_flag=$ac_save_c_werror_flag
3625 fi
3626 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if test "${ac_cv_prog_cc_c89+set}" = set; then
3646   $as_echo_n "(cached) " >&6
3647 else
3648   ac_cv_prog_cc_c89=no
3649 ac_save_CC=$CC
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689    inside strings and character constants.  */
3690 #define FOO(x) 'x'
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3699 int
3700 main ()
3701 {
3702 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 do
3710   CC="$ac_save_CC $ac_arg"
3711   rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719   (eval "$ac_compile") 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } && {
3726          test -z "$ac_c_werror_flag" ||
3727          test ! -s conftest.err
3728        } && test -s conftest.$ac_objext; then
3729   ac_cv_prog_cc_c89=$ac_arg
3730 else
3731   $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext
3738   test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 done
3740 rm -f conftest.$ac_ext
3741 CC=$ac_save_CC
3742
3743 fi
3744 # AC_CACHE_VAL
3745 case "x$ac_cv_prog_cc_c89" in
3746   x)
3747     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;;
3749   xno)
3750     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3751 $as_echo "unsupported" >&6; } ;;
3752   *)
3753     CC="$CC $ac_cv_prog_cc_c89"
3754     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 esac
3757
3758
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765 depcc="$CC"   am_compiler_list=
3766
3767 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768 $as_echo_n "checking dependency style of $depcc... " >&6; }
3769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770   $as_echo_n "(cached) " >&6
3771 else
3772   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773   # We make a subdir and do the tests there.  Otherwise we can end up
3774   # making bogus files that we don't know about and never remove.  For
3775   # instance it was reported that on HP-UX the gcc test will end up
3776   # making a dummy file named `D' -- because `-MD' means `put the output
3777   # in D'.
3778   mkdir conftest.dir
3779   # Copy depcomp to subdir because otherwise we won't find it if we're
3780   # using a relative directory.
3781   cp "$am_depcomp" conftest.dir
3782   cd conftest.dir
3783   # We will build objects and dependencies in a subdirectory because
3784   # it helps to detect inapplicable dependency modes.  For instance
3785   # both Tru64's cc and ICC support -MD to output dependencies as a
3786   # side effect of compilation, but ICC will put the dependencies in
3787   # the current directory while Tru64 will put them in the object
3788   # directory.
3789   mkdir sub
3790
3791   am_cv_CC_dependencies_compiler_type=none
3792   if test "$am_compiler_list" = ""; then
3793      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3794   fi
3795   am__universal=false
3796   case " $depcc " in #(
3797      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3798      esac
3799
3800   for depmode in $am_compiler_list; do
3801     # Setup a source with many dependencies, because some compilers
3802     # like to wrap large dependency lists on column 80 (with \), and
3803     # we should not choose a depcomp mode which is confused by this.
3804     #
3805     # We need to recreate these files for each test, as the compiler may
3806     # overwrite some of them when testing with obscure command lines.
3807     # This happens at least with the AIX C compiler.
3808     : > sub/conftest.c
3809     for i in 1 2 3 4 5 6; do
3810       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3811       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3812       # Solaris 8's {/usr,}/bin/sh.
3813       touch sub/conftst$i.h
3814     done
3815     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3816
3817     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3818     # mode.  It turns out that the SunPro C++ compiler does not properly
3819     # handle `-M -o', and we need to detect this.  Also, some Intel
3820     # versions had trouble with output in subdirs
3821     am__obj=sub/conftest.${OBJEXT-o}
3822     am__minus_obj="-o $am__obj"
3823     case $depmode in
3824     gcc)
3825       # This depmode causes a compiler race in universal mode.
3826       test "$am__universal" = false || continue
3827       ;;
3828     nosideeffect)
3829       # after this tag, mechanisms are not by side-effect, so they'll
3830       # only be used when explicitly requested
3831       if test "x$enable_dependency_tracking" = xyes; then
3832         continue
3833       else
3834         break
3835       fi
3836       ;;
3837     msvisualcpp | msvcmsys)
3838       # This compiler won't grok `-c -o', but also, the minuso test has
3839       # not run yet.  These depmodes are late enough in the game, and
3840       # so weak that their functioning should not be impacted.
3841       am__obj=conftest.${OBJEXT-o}
3842       am__minus_obj=
3843       ;;
3844     none) break ;;
3845     esac
3846     if depmode=$depmode \
3847        source=sub/conftest.c object=$am__obj \
3848        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3850          >/dev/null 2>conftest.err &&
3851        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3852        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3854        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855       # icc doesn't choke on unknown options, it will just issue warnings
3856       # or remarks (even with -Werror).  So we grep stderr for any message
3857       # that says an option was ignored or not supported.
3858       # When given -MP, icc 7.0 and 7.1 complain thusly:
3859       #   icc: Command line warning: ignoring option '-M'; no argument required
3860       # The diagnosis changed in icc 8.0:
3861       #   icc: Command line remark: option '-MP' not supported
3862       if (grep 'ignoring option' conftest.err ||
3863           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864         am_cv_CC_dependencies_compiler_type=$depmode
3865         break
3866       fi
3867     fi
3868   done
3869
3870   cd ..
3871   rm -rf conftest.dir
3872 else
3873   am_cv_CC_dependencies_compiler_type=none
3874 fi
3875
3876 fi
3877 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3880
3881  if
3882   test "x$enable_dependency_tracking" != xno \
3883   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3884   am__fastdepCC_TRUE=
3885   am__fastdepCC_FALSE='#'
3886 else
3887   am__fastdepCC_TRUE='#'
3888   am__fastdepCC_FALSE=
3889 fi
3890
3891
3892    case $ac_cv_prog_cc_stdc in
3893   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3894   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3896 if test "${ac_cv_prog_cc_c99+set}" = set; then
3897   $as_echo_n "(cached) " >&6
3898 else
3899   ac_cv_prog_cc_c99=no
3900 ac_save_CC=$CC
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 #include <stdarg.h>
3908 #include <stdbool.h>
3909 #include <stdlib.h>
3910 #include <wchar.h>
3911 #include <stdio.h>
3912
3913 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3914 #define debug(...) fprintf (stderr, __VA_ARGS__)
3915 #define showlist(...) puts (#__VA_ARGS__)
3916 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3917 static void
3918 test_varargs_macros (void)
3919 {
3920   int x = 1234;
3921   int y = 5678;
3922   debug ("Flag");
3923   debug ("X = %d\n", x);
3924   showlist (The first, second, and third items.);
3925   report (x>y, "x is %d but y is %d", x, y);
3926 }
3927
3928 // Check long long types.
3929 #define BIG64 18446744073709551615ull
3930 #define BIG32 4294967295ul
3931 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3932 #if !BIG_OK
3933   your preprocessor is broken;
3934 #endif
3935 #if BIG_OK
3936 #else
3937   your preprocessor is broken;
3938 #endif
3939 static long long int bignum = -9223372036854775807LL;
3940 static unsigned long long int ubignum = BIG64;
3941
3942 struct incomplete_array
3943 {
3944   int datasize;
3945   double data[];
3946 };
3947
3948 struct named_init {
3949   int number;
3950   const wchar_t *name;
3951   double average;
3952 };
3953
3954 typedef const char *ccp;
3955
3956 static inline int
3957 test_restrict (ccp restrict text)
3958 {
3959   // See if C++-style comments work.
3960   // Iterate through items via the restricted pointer.
3961   // Also check for declarations in for loops.
3962   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3963     continue;
3964   return 0;
3965 }
3966
3967 // Check varargs and va_copy.
3968 static void
3969 test_varargs (const char *format, ...)
3970 {
3971   va_list args;
3972   va_start (args, format);
3973   va_list args_copy;
3974   va_copy (args_copy, args);
3975
3976   const char *str;
3977   int number;
3978   float fnumber;
3979
3980   while (*format)
3981     {
3982       switch (*format++)
3983         {
3984         case 's': // string
3985           str = va_arg (args_copy, const char *);
3986           break;
3987         case 'd': // int
3988           number = va_arg (args_copy, int);
3989           break;
3990         case 'f': // float
3991           fnumber = va_arg (args_copy, double);
3992           break;
3993         default:
3994           break;
3995         }
3996     }
3997   va_end (args_copy);
3998   va_end (args);
3999 }
4000
4001 int
4002 main ()
4003 {
4004
4005   // Check bool.
4006   _Bool success = false;
4007
4008   // Check restrict.
4009   if (test_restrict ("String literal") == 0)
4010     success = true;
4011   char *restrict newvar = "Another string";
4012
4013   // Check varargs.
4014   test_varargs ("s, d' f .", "string", 65, 34.234);
4015   test_varargs_macros ();
4016
4017   // Check flexible array members.
4018   struct incomplete_array *ia =
4019     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4020   ia->datasize = 10;
4021   for (int i = 0; i < ia->datasize; ++i)
4022     ia->data[i] = i * 1.234;
4023
4024   // Check named initializers.
4025   struct named_init ni = {
4026     .number = 34,
4027     .name = L"Test wide string",
4028     .average = 543.34343,
4029   };
4030
4031   ni.number = 58;
4032
4033   int dynamic_array[ni.number];
4034   dynamic_array[ni.number - 1] = 543;
4035
4036   // work around unused variable warnings
4037   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4038           || dynamic_array[ni.number - 1] != 543);
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4045 do
4046   CC="$ac_save_CC $ac_arg"
4047   rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055   (eval "$ac_compile") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } && {
4062          test -z "$ac_c_werror_flag" ||
4063          test ! -s conftest.err
4064        } && test -s conftest.$ac_objext; then
4065   ac_cv_prog_cc_c99=$ac_arg
4066 else
4067   $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070
4071 fi
4072
4073 rm -f core conftest.err conftest.$ac_objext
4074   test "x$ac_cv_prog_cc_c99" != "xno" && break
4075 done
4076 rm -f conftest.$ac_ext
4077 CC=$ac_save_CC
4078
4079 fi
4080 # AC_CACHE_VAL
4081 case "x$ac_cv_prog_cc_c99" in
4082   x)
4083     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4085   xno)
4086     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4088   *)
4089     CC="$CC $ac_cv_prog_cc_c99"
4090     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4091 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4092 esac
4093 if test "x$ac_cv_prog_cc_c99" != xno; then
4094   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4095 else
4096   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then
4099   $as_echo_n "(cached) " >&6
4100 else
4101   ac_cv_prog_cc_c89=no
4102 ac_save_CC=$CC
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #include <stdarg.h>
4110 #include <stdio.h>
4111 #include <sys/types.h>
4112 #include <sys/stat.h>
4113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4114 struct buf { int x; };
4115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4116 static char *e (p, i)
4117      char **p;
4118      int i;
4119 {
4120   return p[i];
4121 }
4122 static char *f (char * (*g) (char **, int), char **p, ...)
4123 {
4124   char *s;
4125   va_list v;
4126   va_start (v,p);
4127   s = g (p, va_arg (v,int));
4128   va_end (v);
4129   return s;
4130 }
4131
4132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4133    function prototypes and stuff, but not '\xHH' hex character constants.
4134    These don't provoke an error unfortunately, instead are silently treated
4135    as 'x'.  The following induces an error, until -std is added to get
4136    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4137    array size at least.  It's necessary to write '\x00'==0 to get something
4138    that's true only with -std.  */
4139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4140
4141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4142    inside strings and character constants.  */
4143 #define FOO(x) 'x'
4144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4145
4146 int test (int i, double x);
4147 struct s1 {int (*f) (int a);};
4148 struct s2 {int (*f) (double a);};
4149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4150 int argc;
4151 char **argv;
4152 int
4153 main ()
4154 {
4155 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4161         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162 do
4163   CC="$ac_save_CC $ac_arg"
4164   rm -f conftest.$ac_objext
4165 if { (ac_try="$ac_compile"
4166 case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4171 $as_echo "$ac_try_echo") >&5
4172   (eval "$ac_compile") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } && {
4179          test -z "$ac_c_werror_flag" ||
4180          test ! -s conftest.err
4181        } && test -s conftest.$ac_objext; then
4182   ac_cv_prog_cc_c89=$ac_arg
4183 else
4184   $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187
4188 fi
4189
4190 rm -f core conftest.err conftest.$ac_objext
4191   test "x$ac_cv_prog_cc_c89" != "xno" && break
4192 done
4193 rm -f conftest.$ac_ext
4194 CC=$ac_save_CC
4195
4196 fi
4197 # AC_CACHE_VAL
4198 case "x$ac_cv_prog_cc_c89" in
4199   x)
4200     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4202   xno)
4203     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4205   *)
4206     CC="$CC $ac_cv_prog_cc_c89"
4207     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4209 esac
4210 if test "x$ac_cv_prog_cc_c89" != xno; then
4211   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4212 else
4213   ac_cv_prog_cc_stdc=no
4214 fi
4215
4216
4217 fi
4218
4219  ;;
4220 esac
4221   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4222 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4223   if test "${ac_cv_prog_cc_stdc+set}" = set; then
4224   $as_echo_n "(cached) " >&6
4225 fi
4226
4227   case $ac_cv_prog_cc_stdc in
4228   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4229 $as_echo "unsupported" >&6; } ;;
4230   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4232   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4233 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4234 esac
4235
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 if test -n "$ac_tool_prefix"; then
4243   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_CC+set}" = set; then
4248   $as_echo_n "(cached) " >&6
4249 else
4250   if test -n "$CC"; then
4251   ac_cv_prog_CC="$CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 CC=$ac_cv_prog_CC
4271 if test -n "$CC"; then
4272   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4273 $as_echo "$CC" >&6; }
4274 else
4275   { $as_echo "$as_me:$LINENO: result: no" >&5
4276 $as_echo "no" >&6; }
4277 fi
4278
4279
4280 fi
4281 if test -z "$ac_cv_prog_CC"; then
4282   ac_ct_CC=$CC
4283   # Extract the first word of "gcc", so it can be a program name with args.
4284 set dummy gcc; ac_word=$2
4285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4288   $as_echo_n "(cached) " >&6
4289 else
4290   if test -n "$ac_ct_CC"; then
4291   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_prog_ac_ct_CC="gcc"
4301     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4313 $as_echo "$ac_ct_CC" >&6; }
4314 else
4315   { $as_echo "$as_me:$LINENO: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319   if test "x$ac_ct_CC" = x; then
4320     CC=""
4321   else
4322     case $cross_compiling:$ac_tool_warned in
4323 yes:)
4324 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned=yes ;;
4327 esac
4328     CC=$ac_ct_CC
4329   fi
4330 else
4331   CC="$ac_cv_prog_CC"
4332 fi
4333
4334 if test -z "$CC"; then
4335           if test -n "$ac_tool_prefix"; then
4336     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}cc; ac_word=$2
4338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341   $as_echo_n "(cached) " >&6
4342 else
4343   if test -n "$CC"; then
4344   ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353     ac_cv_prog_CC="${ac_tool_prefix}cc"
4354     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355     break 2
4356   fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361 fi
4362 fi
4363 CC=$ac_cv_prog_CC
4364 if test -n "$CC"; then
4365   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4366 $as_echo "$CC" >&6; }
4367 else
4368   { $as_echo "$as_me:$LINENO: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371
4372
4373   fi
4374 fi
4375 if test -z "$CC"; then
4376   # Extract the first word of "cc", so it can be a program name with args.
4377 set dummy cc; ac_word=$2
4378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_prog_CC+set}" = set; then
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if test -n "$CC"; then
4384   ac_cv_prog_CC="$CC" # Let the user override the test.
4385 else
4386   ac_prog_rejected=no
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392   for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4395        ac_prog_rejected=yes
4396        continue
4397      fi
4398     ac_cv_prog_CC="cc"
4399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400     break 2
4401   fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 if test $ac_prog_rejected = yes; then
4407   # We found a bogon in the path, so make sure we never use it.
4408   set dummy $ac_cv_prog_CC
4409   shift
4410   if test $# != 0; then
4411     # We chose a different compiler from the bogus one.
4412     # However, it has the same basename, so the bogon will be chosen
4413     # first if we set CC to just the basename; use the full file name.
4414     shift
4415     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4416   fi
4417 fi
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4424 else
4425   { $as_echo "$as_me:$LINENO: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 fi
4431 if test -z "$CC"; then
4432   if test -n "$ac_tool_prefix"; then
4433   for ac_prog in cl.exe
4434   do
4435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_CC+set}" = set; then
4440   $as_echo_n "(cached) " >&6
4441 else
4442   if test -n "$CC"; then
4443   ac_cv_prog_CC="$CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4453     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4465 $as_echo "$CC" >&6; }
4466 else
4467   { $as_echo "$as_me:$LINENO: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472     test -n "$CC" && break
4473   done
4474 fi
4475 if test -z "$CC"; then
4476   ac_ct_CC=$CC
4477   for ac_prog in cl.exe
4478 do
4479   # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4484   $as_echo_n "(cached) " >&6
4485 else
4486   if test -n "$ac_ct_CC"; then
4487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496     ac_cv_prog_ac_ct_CC="$ac_prog"
4497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502 IFS=$as_save_IFS
4503
4504 fi
4505 fi
4506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4507 if test -n "$ac_ct_CC"; then
4508   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4509 $as_echo "$ac_ct_CC" >&6; }
4510 else
4511   { $as_echo "$as_me:$LINENO: result: no" >&5
4512 $as_echo "no" >&6; }
4513 fi
4514
4515
4516   test -n "$ac_ct_CC" && break
4517 done
4518
4519   if test "x$ac_ct_CC" = x; then
4520     CC=""
4521   else
4522     case $cross_compiling:$ac_tool_warned in
4523 yes:)
4524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526 ac_tool_warned=yes ;;
4527 esac
4528     CC=$ac_ct_CC
4529   fi
4530 fi
4531
4532 fi
4533
4534
4535 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4538 See \`config.log' for more details." >&5
4539 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4540 See \`config.log' for more details." >&2;}
4541    { (exit 1); exit 1; }; }; }
4542
4543 # Provide some information about the compiler.
4544 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4545 set X $ac_compile
4546 ac_compiler=$2
4547 { (ac_try="$ac_compiler --version >&5"
4548 case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554   (eval "$ac_compiler --version >&5") 2>&5
4555   ac_status=$?
4556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }
4558 { (ac_try="$ac_compiler -v >&5"
4559 case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565   (eval "$ac_compiler -v >&5") 2>&5
4566   ac_status=$?
4567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }
4569 { (ac_try="$ac_compiler -V >&5"
4570 case "(($ac_try" in
4571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572   *) ac_try_echo=$ac_try;;
4573 esac
4574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575 $as_echo "$ac_try_echo") >&5
4576   (eval "$ac_compiler -V >&5") 2>&5
4577   ac_status=$?
4578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }
4580
4581 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4584   $as_echo_n "(cached) " >&6
4585 else
4586   cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592
4593 int
4594 main ()
4595 {
4596 #ifndef __GNUC__
4597        choke me
4598 #endif
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612   (eval "$ac_compile") 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } && {
4619          test -z "$ac_c_werror_flag" ||
4620          test ! -s conftest.err
4621        } && test -s conftest.$ac_objext; then
4622   ac_compiler_gnu=yes
4623 else
4624   $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627         ac_compiler_gnu=no
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4632
4633 fi
4634 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4637   GCC=yes
4638 else
4639   GCC=
4640 fi
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4645 if test "${ac_cv_prog_cc_g+set}" = set; then
4646   $as_echo_n "(cached) " >&6
4647 else
4648   ac_save_c_werror_flag=$ac_c_werror_flag
4649    ac_c_werror_flag=yes
4650    ac_cv_prog_cc_g=no
4651    CFLAGS="-g"
4652    cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (ac_try="$ac_compile"
4669 case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4674 $as_echo "$ac_try_echo") >&5
4675   (eval "$ac_compile") 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } && {
4682          test -z "$ac_c_werror_flag" ||
4683          test ! -s conftest.err
4684        } && test -s conftest.$ac_objext; then
4685   ac_cv_prog_cc_g=yes
4686 else
4687   $as_echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690         CFLAGS=""
4691       cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4708 case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714   (eval "$ac_compile") 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } && {
4721          test -z "$ac_c_werror_flag" ||
4722          test ! -s conftest.err
4723        } && test -s conftest.$ac_objext; then
4724   :
4725 else
4726   $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729         ac_c_werror_flag=$ac_save_c_werror_flag
4730          CFLAGS="-g"
4731          cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753 $as_echo "$ac_try_echo") >&5
4754   (eval "$ac_compile") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } && {
4761          test -z "$ac_c_werror_flag" ||
4762          test ! -s conftest.err
4763        } && test -s conftest.$ac_objext; then
4764   ac_cv_prog_cc_g=yes
4765 else
4766   $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769
4770 fi
4771
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779    ac_c_werror_flag=$ac_save_c_werror_flag
4780 fi
4781 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4782 $as_echo "$ac_cv_prog_cc_g" >&6; }
4783 if test "$ac_test_CFLAGS" = set; then
4784   CFLAGS=$ac_save_CFLAGS
4785 elif test $ac_cv_prog_cc_g = yes; then
4786   if test "$GCC" = yes; then
4787     CFLAGS="-g -O2"
4788   else
4789     CFLAGS="-g"
4790   fi
4791 else
4792   if test "$GCC" = yes; then
4793     CFLAGS="-O2"
4794   else
4795     CFLAGS=
4796   fi
4797 fi
4798 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4799 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4800 if test "${ac_cv_prog_cc_c89+set}" = set; then
4801   $as_echo_n "(cached) " >&6
4802 else
4803   ac_cv_prog_cc_c89=no
4804 ac_save_CC=$CC
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 #include <stdarg.h>
4812 #include <stdio.h>
4813 #include <sys/types.h>
4814 #include <sys/stat.h>
4815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4816 struct buf { int x; };
4817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4818 static char *e (p, i)
4819      char **p;
4820      int i;
4821 {
4822   return p[i];
4823 }
4824 static char *f (char * (*g) (char **, int), char **p, ...)
4825 {
4826   char *s;
4827   va_list v;
4828   va_start (v,p);
4829   s = g (p, va_arg (v,int));
4830   va_end (v);
4831   return s;
4832 }
4833
4834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4835    function prototypes and stuff, but not '\xHH' hex character constants.
4836    These don't provoke an error unfortunately, instead are silently treated
4837    as 'x'.  The following induces an error, until -std is added to get
4838    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4839    array size at least.  It's necessary to write '\x00'==0 to get something
4840    that's true only with -std.  */
4841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4842
4843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4844    inside strings and character constants.  */
4845 #define FOO(x) 'x'
4846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4847
4848 int test (int i, double x);
4849 struct s1 {int (*f) (int a);};
4850 struct s2 {int (*f) (double a);};
4851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4852 int argc;
4853 char **argv;
4854 int
4855 main ()
4856 {
4857 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4863         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4864 do
4865   CC="$ac_save_CC $ac_arg"
4866   rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4868 case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874   (eval "$ac_compile") 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } && {
4881          test -z "$ac_c_werror_flag" ||
4882          test ! -s conftest.err
4883        } && test -s conftest.$ac_objext; then
4884   ac_cv_prog_cc_c89=$ac_arg
4885 else
4886   $as_echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889
4890 fi
4891
4892 rm -f core conftest.err conftest.$ac_objext
4893   test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4897
4898 fi
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4901   x)
4902     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904   xno)
4905     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4907   *)
4908     CC="$CC $ac_cv_prog_cc_c89"
4909     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912
4913
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920 depcc="$CC"   am_compiler_list=
4921
4922 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4923 $as_echo_n "checking dependency style of $depcc... " >&6; }
4924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4925   $as_echo_n "(cached) " >&6
4926 else
4927   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4928   # We make a subdir and do the tests there.  Otherwise we can end up
4929   # making bogus files that we don't know about and never remove.  For
4930   # instance it was reported that on HP-UX the gcc test will end up
4931   # making a dummy file named `D' -- because `-MD' means `put the output
4932   # in D'.
4933   mkdir conftest.dir
4934   # Copy depcomp to subdir because otherwise we won't find it if we're
4935   # using a relative directory.
4936   cp "$am_depcomp" conftest.dir
4937   cd conftest.dir
4938   # We will build objects and dependencies in a subdirectory because
4939   # it helps to detect inapplicable dependency modes.  For instance
4940   # both Tru64's cc and ICC support -MD to output dependencies as a
4941   # side effect of compilation, but ICC will put the dependencies in
4942   # the current directory while Tru64 will put them in the object
4943   # directory.
4944   mkdir sub
4945
4946   am_cv_CC_dependencies_compiler_type=none
4947   if test "$am_compiler_list" = ""; then
4948      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4949   fi
4950   am__universal=false
4951   case " $depcc " in #(
4952      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4953      esac
4954
4955   for depmode in $am_compiler_list; do
4956     # Setup a source with many dependencies, because some compilers
4957     # like to wrap large dependency lists on column 80 (with \), and
4958     # we should not choose a depcomp mode which is confused by this.
4959     #
4960     # We need to recreate these files for each test, as the compiler may
4961     # overwrite some of them when testing with obscure command lines.
4962     # This happens at least with the AIX C compiler.
4963     : > sub/conftest.c
4964     for i in 1 2 3 4 5 6; do
4965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4967       # Solaris 8's {/usr,}/bin/sh.
4968       touch sub/conftst$i.h
4969     done
4970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4971
4972     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4973     # mode.  It turns out that the SunPro C++ compiler does not properly
4974     # handle `-M -o', and we need to detect this.  Also, some Intel
4975     # versions had trouble with output in subdirs
4976     am__obj=sub/conftest.${OBJEXT-o}
4977     am__minus_obj="-o $am__obj"
4978     case $depmode in
4979     gcc)
4980       # This depmode causes a compiler race in universal mode.
4981       test "$am__universal" = false || continue
4982       ;;
4983     nosideeffect)
4984       # after this tag, mechanisms are not by side-effect, so they'll
4985       # only be used when explicitly requested
4986       if test "x$enable_dependency_tracking" = xyes; then
4987         continue
4988       else
4989         break
4990       fi
4991       ;;
4992     msvisualcpp | msvcmsys)
4993       # This compiler won't grok `-c -o', but also, the minuso test has
4994       # not run yet.  These depmodes are late enough in the game, and
4995       # so weak that their functioning should not be impacted.
4996       am__obj=conftest.${OBJEXT-o}
4997       am__minus_obj=
4998       ;;
4999     none) break ;;
5000     esac
5001     if depmode=$depmode \
5002        source=sub/conftest.c object=$am__obj \
5003        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5004        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5005          >/dev/null 2>conftest.err &&
5006        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5007        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5008        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5010       # icc doesn't choke on unknown options, it will just issue warnings
5011       # or remarks (even with -Werror).  So we grep stderr for any message
5012       # that says an option was ignored or not supported.
5013       # When given -MP, icc 7.0 and 7.1 complain thusly:
5014       #   icc: Command line warning: ignoring option '-M'; no argument required
5015       # The diagnosis changed in icc 8.0:
5016       #   icc: Command line remark: option '-MP' not supported
5017       if (grep 'ignoring option' conftest.err ||
5018           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5019         am_cv_CC_dependencies_compiler_type=$depmode
5020         break
5021       fi
5022     fi
5023   done
5024
5025   cd ..
5026   rm -rf conftest.dir
5027 else
5028   am_cv_CC_dependencies_compiler_type=none
5029 fi
5030
5031 fi
5032 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5035
5036  if
5037   test "x$enable_dependency_tracking" != xno \
5038   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5039   am__fastdepCC_TRUE=
5040   am__fastdepCC_FALSE='#'
5041 else
5042   am__fastdepCC_TRUE='#'
5043   am__fastdepCC_FALSE=
5044 fi
5045
5046
5047
5048 # Find a good install program.  We prefer a C program (faster),
5049 # so one script is as good as another.  But avoid the broken or
5050 # incompatible versions:
5051 # SysV /etc/install, /usr/sbin/install
5052 # SunOS /usr/etc/install
5053 # IRIX /sbin/install
5054 # AIX /bin/install
5055 # AmigaOS /C/install, which installs bootblocks on floppy discs
5056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # OS/2's system install, which has a completely different semantic
5060 # ./install, which can be erroneously created by make from ./install.sh.
5061 # Reject install programs that cannot install multiple files.
5062 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5064 if test -z "$INSTALL"; then
5065 if test "${ac_cv_path_install+set}" = set; then
5066   $as_echo_n "(cached) " >&6
5067 else
5068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   # Account for people who put trailing slashes in PATH elements.
5074 case $as_dir/ in
5075   ./ | .// | /cC/* | \
5076   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5078   /usr/ucb/* ) ;;
5079   *)
5080     # OSF1 and SCO ODT 3.0 have their own names for install.
5081     # Don't use installbsd from OSF since it installs stuff as root
5082     # by default.
5083     for ac_prog in ginstall scoinst install; do
5084       for ac_exec_ext in '' $ac_executable_extensions; do
5085         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5086           if test $ac_prog = install &&
5087             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088             # AIX install.  It has an incompatible calling convention.
5089             :
5090           elif test $ac_prog = install &&
5091             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092             # program-specific install script used by HP pwplus--don't use.
5093             :
5094           else
5095             rm -rf conftest.one conftest.two conftest.dir
5096             echo one > conftest.one
5097             echo two > conftest.two
5098             mkdir conftest.dir
5099             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5100               test -s conftest.one && test -s conftest.two &&
5101               test -s conftest.dir/conftest.one &&
5102               test -s conftest.dir/conftest.two
5103             then
5104               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5105               break 3
5106             fi
5107           fi
5108         fi
5109       done
5110     done
5111     ;;
5112 esac
5113
5114 done
5115 IFS=$as_save_IFS
5116
5117 rm -rf conftest.one conftest.two conftest.dir
5118
5119 fi
5120   if test "${ac_cv_path_install+set}" = set; then
5121     INSTALL=$ac_cv_path_install
5122   else
5123     # As a last resort, use the slow shell script.  Don't cache a
5124     # value for INSTALL within a source directory, because that will
5125     # break other packages using the cache if that directory is
5126     # removed, or if the value is a relative name.
5127     INSTALL=$ac_install_sh
5128   fi
5129 fi
5130 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5131 $as_echo "$INSTALL" >&6; }
5132
5133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5134 # It thinks the first close brace ends the variable substitution.
5135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5136
5137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5138
5139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5140
5141 case `pwd` in
5142   *\ * | *\     *)
5143     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5145 esac
5146
5147
5148
5149 macro_version='2.2.6'
5150 macro_revision='1.3012'
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 ltmain="$ac_aux_dir/ltmain.sh"
5165
5166 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5168 if test "${ac_cv_path_SED+set}" = set; then
5169   $as_echo_n "(cached) " >&6
5170 else
5171             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5172      for ac_i in 1 2 3 4 5 6 7; do
5173        ac_script="$ac_script$as_nl$ac_script"
5174      done
5175      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5176      $as_unset ac_script || ac_script=
5177      if test -z "$SED"; then
5178   ac_path_SED_found=false
5179   # Loop through the user's path and test for each of PROGNAME-LIST
5180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_prog in sed gsed; do
5186     for ac_exec_ext in '' $ac_executable_extensions; do
5187       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5188       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5189 # Check for GNU ac_path_SED and select it if it is found.
5190   # Check for GNU $ac_path_SED
5191 case `"$ac_path_SED" --version 2>&1` in
5192 *GNU*)
5193   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5194 *)
5195   ac_count=0
5196   $as_echo_n 0123456789 >"conftest.in"
5197   while :
5198   do
5199     cat "conftest.in" "conftest.in" >"conftest.tmp"
5200     mv "conftest.tmp" "conftest.in"
5201     cp "conftest.in" "conftest.nl"
5202     $as_echo '' >> "conftest.nl"
5203     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205     ac_count=`expr $ac_count + 1`
5206     if test $ac_count -gt ${ac_path_SED_max-0}; then
5207       # Best one so far, save it but keep looking for a better one
5208       ac_cv_path_SED="$ac_path_SED"
5209       ac_path_SED_max=$ac_count
5210     fi
5211     # 10*(2^10) chars as input seems more than enough
5212     test $ac_count -gt 10 && break
5213   done
5214   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5216
5217       $ac_path_SED_found && break 3
5218     done
5219   done
5220 done
5221 IFS=$as_save_IFS
5222   if test -z "$ac_cv_path_SED"; then
5223     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5224 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5225    { (exit 1); exit 1; }; }
5226   fi
5227 else
5228   ac_cv_path_SED=$SED
5229 fi
5230
5231 fi
5232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5233 $as_echo "$ac_cv_path_SED" >&6; }
5234  SED="$ac_cv_path_SED"
5235   rm -f conftest.sed
5236
5237 test -z "$SED" && SED=sed
5238 Xsed="$SED -e 1s/^X//"
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5252 if test "${ac_cv_path_GREP+set}" = set; then
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -z "$GREP"; then
5256   ac_path_GREP_found=false
5257   # Loop through the user's path and test for each of PROGNAME-LIST
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263   for ac_prog in grep ggrep; do
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5266       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5267 # Check for GNU ac_path_GREP and select it if it is found.
5268   # Check for GNU $ac_path_GREP
5269 case `"$ac_path_GREP" --version 2>&1` in
5270 *GNU*)
5271   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5272 *)
5273   ac_count=0
5274   $as_echo_n 0123456789 >"conftest.in"
5275   while :
5276   do
5277     cat "conftest.in" "conftest.in" >"conftest.tmp"
5278     mv "conftest.tmp" "conftest.in"
5279     cp "conftest.in" "conftest.nl"
5280     $as_echo 'GREP' >> "conftest.nl"
5281     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283     ac_count=`expr $ac_count + 1`
5284     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5285       # Best one so far, save it but keep looking for a better one
5286       ac_cv_path_GREP="$ac_path_GREP"
5287       ac_path_GREP_max=$ac_count
5288     fi
5289     # 10*(2^10) chars as input seems more than enough
5290     test $ac_count -gt 10 && break
5291   done
5292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293 esac
5294
5295       $ac_path_GREP_found && break 3
5296     done
5297   done
5298 done
5299 IFS=$as_save_IFS
5300   if test -z "$ac_cv_path_GREP"; then
5301     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5302 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5303    { (exit 1); exit 1; }; }
5304   fi
5305 else
5306   ac_cv_path_GREP=$GREP
5307 fi
5308
5309 fi
5310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5311 $as_echo "$ac_cv_path_GREP" >&6; }
5312  GREP="$ac_cv_path_GREP"
5313
5314
5315 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5316 $as_echo_n "checking for egrep... " >&6; }
5317 if test "${ac_cv_path_EGREP+set}" = set; then
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5321    then ac_cv_path_EGREP="$GREP -E"
5322    else
5323      if test -z "$EGREP"; then
5324   ac_path_EGREP_found=false
5325   # Loop through the user's path and test for each of PROGNAME-LIST
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331   for ac_prog in egrep; do
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5334       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5335 # Check for GNU ac_path_EGREP and select it if it is found.
5336   # Check for GNU $ac_path_EGREP
5337 case `"$ac_path_EGREP" --version 2>&1` in
5338 *GNU*)
5339   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5340 *)
5341   ac_count=0
5342   $as_echo_n 0123456789 >"conftest.in"
5343   while :
5344   do
5345     cat "conftest.in" "conftest.in" >"conftest.tmp"
5346     mv "conftest.tmp" "conftest.in"
5347     cp "conftest.in" "conftest.nl"
5348     $as_echo 'EGREP' >> "conftest.nl"
5349     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351     ac_count=`expr $ac_count + 1`
5352     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5353       # Best one so far, save it but keep looking for a better one
5354       ac_cv_path_EGREP="$ac_path_EGREP"
5355       ac_path_EGREP_max=$ac_count
5356     fi
5357     # 10*(2^10) chars as input seems more than enough
5358     test $ac_count -gt 10 && break
5359   done
5360   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 esac
5362
5363       $ac_path_EGREP_found && break 3
5364     done
5365   done
5366 done
5367 IFS=$as_save_IFS
5368   if test -z "$ac_cv_path_EGREP"; then
5369     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5370 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5371    { (exit 1); exit 1; }; }
5372   fi
5373 else
5374   ac_cv_path_EGREP=$EGREP
5375 fi
5376
5377    fi
5378 fi
5379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5380 $as_echo "$ac_cv_path_EGREP" >&6; }
5381  EGREP="$ac_cv_path_EGREP"
5382
5383
5384 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5385 $as_echo_n "checking for fgrep... " >&6; }
5386 if test "${ac_cv_path_FGREP+set}" = set; then
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5390    then ac_cv_path_FGREP="$GREP -F"
5391    else
5392      if test -z "$FGREP"; then
5393   ac_path_FGREP_found=false
5394   # Loop through the user's path and test for each of PROGNAME-LIST
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400   for ac_prog in fgrep; do
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5403       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5404 # Check for GNU ac_path_FGREP and select it if it is found.
5405   # Check for GNU $ac_path_FGREP
5406 case `"$ac_path_FGREP" --version 2>&1` in
5407 *GNU*)
5408   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5409 *)
5410   ac_count=0
5411   $as_echo_n 0123456789 >"conftest.in"
5412   while :
5413   do
5414     cat "conftest.in" "conftest.in" >"conftest.tmp"
5415     mv "conftest.tmp" "conftest.in"
5416     cp "conftest.in" "conftest.nl"
5417     $as_echo 'FGREP' >> "conftest.nl"
5418     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5420     ac_count=`expr $ac_count + 1`
5421     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5422       # Best one so far, save it but keep looking for a better one
5423       ac_cv_path_FGREP="$ac_path_FGREP"
5424       ac_path_FGREP_max=$ac_count
5425     fi
5426     # 10*(2^10) chars as input seems more than enough
5427     test $ac_count -gt 10 && break
5428   done
5429   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 esac
5431
5432       $ac_path_FGREP_found && break 3
5433     done
5434   done
5435 done
5436 IFS=$as_save_IFS
5437   if test -z "$ac_cv_path_FGREP"; then
5438     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5439 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5440    { (exit 1); exit 1; }; }
5441   fi
5442 else
5443   ac_cv_path_FGREP=$FGREP
5444 fi
5445
5446    fi
5447 fi
5448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5449 $as_echo "$ac_cv_path_FGREP" >&6; }
5450  FGREP="$ac_cv_path_FGREP"
5451
5452
5453 test -z "$GREP" && GREP=grep
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 # Check whether --with-gnu-ld was given.
5474 if test "${with_gnu_ld+set}" = set; then
5475   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5476 else
5477   with_gnu_ld=no
5478 fi
5479
5480 ac_prog=ld
5481 if test "$GCC" = yes; then
5482   # Check if gcc -print-prog-name=ld gives a path.
5483   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5484 $as_echo_n "checking for ld used by $CC... " >&6; }
5485   case $host in
5486   *-*-mingw*)
5487     # gcc leaves a trailing carriage return which upsets mingw
5488     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5489   *)
5490     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5491   esac
5492   case $ac_prog in
5493     # Accept absolute paths.
5494     [\\/]* | ?:[\\/]*)
5495       re_direlt='/[^/][^/]*/\.\./'
5496       # Canonicalize the pathname of ld
5497       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5498       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5499         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5500       done
5501       test -z "$LD" && LD="$ac_prog"
5502       ;;
5503   "")
5504     # If it fails, then pretend we aren't using GCC.
5505     ac_prog=ld
5506     ;;
5507   *)
5508     # If it is relative, then search for the first ld in PATH.
5509     with_gnu_ld=unknown
5510     ;;
5511   esac
5512 elif test "$with_gnu_ld" = yes; then
5513   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5514 $as_echo_n "checking for GNU ld... " >&6; }
5515 else
5516   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5517 $as_echo_n "checking for non-GNU ld... " >&6; }
5518 fi
5519 if test "${lt_cv_path_LD+set}" = set; then
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -z "$LD"; then
5523   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5524   for ac_dir in $PATH; do
5525     IFS="$lt_save_ifs"
5526     test -z "$ac_dir" && ac_dir=.
5527     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5528       lt_cv_path_LD="$ac_dir/$ac_prog"
5529       # Check to see if the program is GNU ld.  I'd rather use --version,
5530       # but apparently some variants of GNU ld only accept -v.
5531       # Break only if it was the GNU/non-GNU ld that we prefer.
5532       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5533       *GNU* | *'with BFD'*)
5534         test "$with_gnu_ld" != no && break
5535         ;;
5536       *)
5537         test "$with_gnu_ld" != yes && break
5538         ;;
5539       esac
5540     fi
5541   done
5542   IFS="$lt_save_ifs"
5543 else
5544   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5545 fi
5546 fi
5547
5548 LD="$lt_cv_path_LD"
5549 if test -n "$LD"; then
5550   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5551 $as_echo "$LD" >&6; }
5552 else
5553   { $as_echo "$as_me:$LINENO: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5557 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5558    { (exit 1); exit 1; }; }
5559 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5562   $as_echo_n "(cached) " >&6
5563 else
5564   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5565 case `$LD -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567   lt_cv_prog_gnu_ld=yes
5568   ;;
5569 *)
5570   lt_cv_prog_gnu_ld=no
5571   ;;
5572 esac
5573 fi
5574 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5576 with_gnu_ld=$lt_cv_prog_gnu_ld
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5588 if test "${lt_cv_path_NM+set}" = set; then
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test -n "$NM"; then
5592   # Let the user override the test.
5593   lt_cv_path_NM="$NM"
5594 else
5595   lt_nm_to_check="${ac_tool_prefix}nm"
5596   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597     lt_nm_to_check="$lt_nm_to_check nm"
5598   fi
5599   for lt_tmp_nm in $lt_nm_to_check; do
5600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5602       IFS="$lt_save_ifs"
5603       test -z "$ac_dir" && ac_dir=.
5604       tmp_nm="$ac_dir/$lt_tmp_nm"
5605       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606         # Check to see if the nm accepts a BSD-compat flag.
5607         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608         #   nm: unknown option "B" ignored
5609         # Tru64's nm complains that /dev/null is an invalid object file
5610         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611         */dev/null* | *'Invalid file or object type'*)
5612           lt_cv_path_NM="$tmp_nm -B"
5613           break
5614           ;;
5615         *)
5616           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617           */dev/null*)
5618             lt_cv_path_NM="$tmp_nm -p"
5619             break
5620             ;;
5621           *)
5622             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623             continue # so that we can try to find one that supports BSD flags
5624             ;;
5625           esac
5626           ;;
5627         esac
5628       fi
5629     done
5630     IFS="$lt_save_ifs"
5631   done
5632   : ${lt_cv_path_NM=no}
5633 fi
5634 fi
5635 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5636 $as_echo "$lt_cv_path_NM" >&6; }
5637 if test "$lt_cv_path_NM" != "no"; then
5638   NM="$lt_cv_path_NM"
5639 else
5640   # Didn't find any BSD compatible name lister, look for dumpbin.
5641   if test -n "$ac_tool_prefix"; then
5642   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5643   do
5644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$DUMPBIN"; then
5652   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659   for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666 done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 DUMPBIN=$ac_cv_prog_DUMPBIN
5672 if test -n "$DUMPBIN"; then
5673   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5674 $as_echo "$DUMPBIN" >&6; }
5675 else
5676   { $as_echo "$as_me:$LINENO: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681     test -n "$DUMPBIN" && break
5682   done
5683 fi
5684 if test -z "$DUMPBIN"; then
5685   ac_ct_DUMPBIN=$DUMPBIN
5686   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5687 do
5688   # Extract the first word of "$ac_prog", so it can be a program name with args.
5689 set dummy $ac_prog; ac_word=$2
5690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if test -n "$ac_ct_DUMPBIN"; then
5696   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_exec_ext in '' $ac_executable_extensions; do
5704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5706     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5716 if test -n "$ac_ct_DUMPBIN"; then
5717   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5718 $as_echo "$ac_ct_DUMPBIN" >&6; }
5719 else
5720   { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724
5725   test -n "$ac_ct_DUMPBIN" && break
5726 done
5727
5728   if test "x$ac_ct_DUMPBIN" = x; then
5729     DUMPBIN=":"
5730   else
5731     case $cross_compiling:$ac_tool_warned in
5732 yes:)
5733 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735 ac_tool_warned=yes ;;
5736 esac
5737     DUMPBIN=$ac_ct_DUMPBIN
5738   fi
5739 fi
5740
5741
5742   if test "$DUMPBIN" != ":"; then
5743     NM="$DUMPBIN"
5744   fi
5745 fi
5746 test -z "$NM" && NM=nm
5747
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5755 if test "${lt_cv_nm_interface+set}" = set; then
5756   $as_echo_n "(cached) " >&6
5757 else
5758   lt_cv_nm_interface="BSD nm"
5759   echo "int some_variable = 0;" > conftest.$ac_ext
5760   (eval echo "\"\$as_me:5760: $ac_compile\"" >&5)
5761   (eval "$ac_compile" 2>conftest.err)
5762   cat conftest.err >&5
5763   (eval echo "\"\$as_me:5763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5764   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5765   cat conftest.err >&5
5766   (eval echo "\"\$as_me:5766: output\"" >&5)
5767   cat conftest.out >&5
5768   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5769     lt_cv_nm_interface="MS dumpbin"
5770   fi
5771   rm -f conftest*
5772 fi
5773 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5774 $as_echo "$lt_cv_nm_interface" >&6; }
5775
5776 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 $as_echo_n "checking whether ln -s works... " >&6; }
5778 LN_S=$as_ln_s
5779 if test "$LN_S" = "ln -s"; then
5780   { $as_echo "$as_me:$LINENO: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 else
5783   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 $as_echo "no, using $LN_S" >&6; }
5785 fi
5786
5787 # find the maximum length of command line arguments
5788 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5790 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5791   $as_echo_n "(cached) " >&6
5792 else
5793     i=0
5794   teststring="ABCD"
5795
5796   case $build_os in
5797   msdosdjgpp*)
5798     # On DJGPP, this test can blow up pretty badly due to problems in libc
5799     # (any single argument exceeding 2000 bytes causes a buffer overrun
5800     # during glob expansion).  Even if it were fixed, the result of this
5801     # check would be larger than it should be.
5802     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5803     ;;
5804
5805   gnu*)
5806     # Under GNU Hurd, this test is not required because there is
5807     # no limit to the length of command line arguments.
5808     # Libtool will interpret -1 as no limit whatsoever
5809     lt_cv_sys_max_cmd_len=-1;
5810     ;;
5811
5812   cygwin* | mingw* | cegcc*)
5813     # On Win9x/ME, this test blows up -- it succeeds, but takes
5814     # about 5 minutes as the teststring grows exponentially.
5815     # Worse, since 9x/ME are not pre-emptively multitasking,
5816     # you end up with a "frozen" computer, even though with patience
5817     # the test eventually succeeds (with a max line length of 256k).
5818     # Instead, let's just punt: use the minimum linelength reported by
5819     # all of the supported platforms: 8192 (on NT/2K/XP).
5820     lt_cv_sys_max_cmd_len=8192;
5821     ;;
5822
5823   amigaos*)
5824     # On AmigaOS with pdksh, this test takes hours, literally.
5825     # So we just punt and use a minimum line length of 8192.
5826     lt_cv_sys_max_cmd_len=8192;
5827     ;;
5828
5829   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5830     # This has been around since 386BSD, at least.  Likely further.
5831     if test -x /sbin/sysctl; then
5832       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833     elif test -x /usr/sbin/sysctl; then
5834       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835     else
5836       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5837     fi
5838     # And add a safety zone
5839     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841     ;;
5842
5843   interix*)
5844     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845     lt_cv_sys_max_cmd_len=196608
5846     ;;
5847
5848   osf*)
5849     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5850     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5851     # nice to cause kernel panics so lets avoid the loop below.
5852     # First set a reasonable default.
5853     lt_cv_sys_max_cmd_len=16384
5854     #
5855     if test -x /sbin/sysconfig; then
5856       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5857         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5858       esac
5859     fi
5860     ;;
5861   sco3.2v5*)
5862     lt_cv_sys_max_cmd_len=102400
5863     ;;
5864   sysv5* | sco5v6* | sysv4.2uw2*)
5865     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5866     if test -n "$kargmax"; then
5867       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5868     else
5869       lt_cv_sys_max_cmd_len=32768
5870     fi
5871     ;;
5872   *)
5873     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5874     if test -n "$lt_cv_sys_max_cmd_len"; then
5875       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5876       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5877     else
5878       # Make teststring a little bigger before we do anything with it.
5879       # a 1K string should be a reasonable start.
5880       for i in 1 2 3 4 5 6 7 8 ; do
5881         teststring=$teststring$teststring
5882       done
5883       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5884       # If test is not a shell built-in, we'll probably end up computing a
5885       # maximum length that is only half of the actual maximum length, but
5886       # we can't tell.
5887       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5888                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5889               test $i != 17 # 1/2 MB should be enough
5890       do
5891         i=`expr $i + 1`
5892         teststring=$teststring$teststring
5893       done
5894       # Only check the string length outside the loop.
5895       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5896       teststring=
5897       # Add a significant safety factor because C++ compilers can tack on
5898       # massive amounts of additional arguments before passing them to the
5899       # linker.  It appears as though 1/2 is a usable value.
5900       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5901     fi
5902     ;;
5903   esac
5904
5905 fi
5906
5907 if test -n $lt_cv_sys_max_cmd_len ; then
5908   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5909 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5910 else
5911   { $as_echo "$as_me:$LINENO: result: none" >&5
5912 $as_echo "none" >&6; }
5913 fi
5914 max_cmd_len=$lt_cv_sys_max_cmd_len
5915
5916
5917
5918
5919
5920
5921 : ${CP="cp -f"}
5922 : ${MV="mv -f"}
5923 : ${RM="rm -f"}
5924
5925 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5926 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5927 # Try some XSI features
5928 xsi_shell=no
5929 ( _lt_dummy="a/b/c"
5930   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5931       = c,a/b,, \
5932     && eval 'test $(( 1 + 1 )) -eq 2 \
5933     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5934   && xsi_shell=yes
5935 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5936 $as_echo "$xsi_shell" >&6; }
5937
5938
5939 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5940 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5941 lt_shell_append=no
5942 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5943     >/dev/null 2>&1 \
5944   && lt_shell_append=yes
5945 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5946 $as_echo "$lt_shell_append" >&6; }
5947
5948
5949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5950   lt_unset=unset
5951 else
5952   lt_unset=false
5953 fi
5954
5955
5956
5957
5958
5959 # test EBCDIC or ASCII
5960 case `echo X|tr X '\101'` in
5961  A) # ASCII based system
5962     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5963   lt_SP2NL='tr \040 \012'
5964   lt_NL2SP='tr \015\012 \040\040'
5965   ;;
5966  *) # EBCDIC based system
5967   lt_SP2NL='tr \100 \n'
5968   lt_NL2SP='tr \r\n \100\100'
5969   ;;
5970 esac
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5981 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5982 if test "${lt_cv_ld_reload_flag+set}" = set; then
5983   $as_echo_n "(cached) " >&6
5984 else
5985   lt_cv_ld_reload_flag='-r'
5986 fi
5987 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5988 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5989 reload_flag=$lt_cv_ld_reload_flag
5990 case $reload_flag in
5991 "" | " "*) ;;
5992 *) reload_flag=" $reload_flag" ;;
5993 esac
5994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5995 case $host_os in
5996   darwin*)
5997     if test "$GCC" = yes; then
5998       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5999     else
6000       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6001     fi
6002     ;;
6003 esac
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6019   $as_echo_n "(cached) " >&6
6020 else
6021   if test -n "$OBJDUMP"; then
6022   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 OBJDUMP=$ac_cv_prog_OBJDUMP
6042 if test -n "$OBJDUMP"; then
6043   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6044 $as_echo "$OBJDUMP" >&6; }
6045 else
6046   { $as_echo "$as_me:$LINENO: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_OBJDUMP"; then
6053   ac_ct_OBJDUMP=$OBJDUMP
6054   # Extract the first word of "objdump", so it can be a program name with args.
6055 set dummy objdump; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$ac_ct_OBJDUMP"; then
6062   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6082 if test -n "$ac_ct_OBJDUMP"; then
6083   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6084 $as_echo "$ac_ct_OBJDUMP" >&6; }
6085 else
6086   { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090   if test "x$ac_ct_OBJDUMP" = x; then
6091     OBJDUMP="false"
6092   else
6093     case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099     OBJDUMP=$ac_ct_OBJDUMP
6100   fi
6101 else
6102   OBJDUMP="$ac_cv_prog_OBJDUMP"
6103 fi
6104
6105 test -z "$OBJDUMP" && OBJDUMP=objdump
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6116 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6117 if test "${lt_cv_deplibs_check_method+set}" = set; then
6118   $as_echo_n "(cached) " >&6
6119 else
6120   lt_cv_file_magic_cmd='$MAGIC_CMD'
6121 lt_cv_file_magic_test_file=
6122 lt_cv_deplibs_check_method='unknown'
6123 # Need to set the preceding variable on all platforms that support
6124 # interlibrary dependencies.
6125 # 'none' -- dependencies not supported.
6126 # `unknown' -- same as none, but documents that we really don't know.
6127 # 'pass_all' -- all dependencies passed with no checks.
6128 # 'test_compile' -- check by making test program.
6129 # 'file_magic [[regex]]' -- check by looking for files in library path
6130 # which responds to the $file_magic_cmd with a given extended regex.
6131 # If you have `file' or equivalent on your system and you're not sure
6132 # whether `pass_all' will *always* work, you probably want this one.
6133
6134 case $host_os in
6135 aix[4-9]*)
6136   lt_cv_deplibs_check_method=pass_all
6137   ;;
6138
6139 beos*)
6140   lt_cv_deplibs_check_method=pass_all
6141   ;;
6142
6143 bsdi[45]*)
6144   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6145   lt_cv_file_magic_cmd='/usr/bin/file -L'
6146   lt_cv_file_magic_test_file=/shlib/libc.so
6147   ;;
6148
6149 cygwin*)
6150   # func_win32_libid is a shell function defined in ltmain.sh
6151   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6152   lt_cv_file_magic_cmd='func_win32_libid'
6153   ;;
6154
6155 mingw* | pw32*)
6156   # Base MSYS/MinGW do not provide the 'file' command needed by
6157   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6158   # unless we find 'file', for example because we are cross-compiling.
6159   if ( file / ) >/dev/null 2>&1; then
6160     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6161     lt_cv_file_magic_cmd='func_win32_libid'
6162   else
6163     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6164     lt_cv_file_magic_cmd='$OBJDUMP -f'
6165   fi
6166   ;;
6167
6168 cegcc)
6169   # use the weaker test based on 'objdump'. See mingw*.
6170   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6171   lt_cv_file_magic_cmd='$OBJDUMP -f'
6172   ;;
6173
6174 darwin* | rhapsody*)
6175   lt_cv_deplibs_check_method=pass_all
6176   ;;
6177
6178 freebsd* | dragonfly*)
6179   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180     case $host_cpu in
6181     i*86 )
6182       # Not sure whether the presence of OpenBSD here was a mistake.
6183       # Let's accept both of them until this is cleared up.
6184       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6185       lt_cv_file_magic_cmd=/usr/bin/file
6186       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6187       ;;
6188     esac
6189   else
6190     lt_cv_deplibs_check_method=pass_all
6191   fi
6192   ;;
6193
6194 gnu*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197
6198 hpux10.20* | hpux11*)
6199   lt_cv_file_magic_cmd=/usr/bin/file
6200   case $host_cpu in
6201   ia64*)
6202     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6203     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6204     ;;
6205   hppa*64*)
6206     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]'
6207     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6208     ;;
6209   *)
6210     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6211     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6212     ;;
6213   esac
6214   ;;
6215
6216 interix[3-9]*)
6217   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6218   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6219   ;;
6220
6221 irix5* | irix6* | nonstopux*)
6222   case $LD in
6223   *-32|*"-32 ") libmagic=32-bit;;
6224   *-n32|*"-n32 ") libmagic=N32;;
6225   *-64|*"-64 ") libmagic=64-bit;;
6226   *) libmagic=never-match;;
6227   esac
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 # This must be Linux ELF.
6232 linux* | k*bsd*-gnu)
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 netbsd*)
6237   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6239   else
6240     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6241   fi
6242   ;;
6243
6244 newos6*)
6245   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6246   lt_cv_file_magic_cmd=/usr/bin/file
6247   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6248   ;;
6249
6250 *nto* | *qnx*)
6251   lt_cv_deplibs_check_method=pass_all
6252   ;;
6253
6254 openbsd*)
6255   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6257   else
6258     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6259   fi
6260   ;;
6261
6262 osf3* | osf4* | osf5*)
6263   lt_cv_deplibs_check_method=pass_all
6264   ;;
6265
6266 rdos*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 solaris*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6275   lt_cv_deplibs_check_method=pass_all
6276   ;;
6277
6278 sysv4 | sysv4.3*)
6279   case $host_vendor in
6280   motorola)
6281     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]'
6282     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6283     ;;
6284   ncr)
6285     lt_cv_deplibs_check_method=pass_all
6286     ;;
6287   sequent)
6288     lt_cv_file_magic_cmd='/bin/file'
6289     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6290     ;;
6291   sni)
6292     lt_cv_file_magic_cmd='/bin/file'
6293     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6294     lt_cv_file_magic_test_file=/lib/libc.so
6295     ;;
6296   siemens)
6297     lt_cv_deplibs_check_method=pass_all
6298     ;;
6299   pc)
6300     lt_cv_deplibs_check_method=pass_all
6301     ;;
6302   esac
6303   ;;
6304
6305 tpf*)
6306   lt_cv_deplibs_check_method=pass_all
6307   ;;
6308 esac
6309
6310 fi
6311 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6312 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6313 file_magic_cmd=$lt_cv_file_magic_cmd
6314 deplibs_check_method=$lt_cv_deplibs_check_method
6315 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 if test -n "$ac_tool_prefix"; then
6329   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}ar; ac_word=$2
6331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_AR+set}" = set; then
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -n "$AR"; then
6337   ac_cv_prog_AR="$AR" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_prog_AR="${ac_tool_prefix}ar"
6347     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 AR=$ac_cv_prog_AR
6357 if test -n "$AR"; then
6358   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6359 $as_echo "$AR" >&6; }
6360 else
6361   { $as_echo "$as_me:$LINENO: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365
6366 fi
6367 if test -z "$ac_cv_prog_AR"; then
6368   ac_ct_AR=$AR
6369   # Extract the first word of "ar", so it can be a program name with args.
6370 set dummy ar; ac_word=$2
6371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6374   $as_echo_n "(cached) " >&6
6375 else
6376   if test -n "$ac_ct_AR"; then
6377   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_prog_ac_ct_AR="ar"
6387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6400 else
6401   { $as_echo "$as_me:$LINENO: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405   if test "x$ac_ct_AR" = x; then
6406     AR="false"
6407   else
6408     case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414     AR=$ac_ct_AR
6415   fi
6416 else
6417   AR="$ac_cv_prog_AR"
6418 fi
6419
6420 test -z "$AR" && AR=ar
6421 test -z "$AR_FLAGS" && AR_FLAGS=cru
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}strip; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_STRIP+set}" = set; then
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$STRIP"; then
6442   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 STRIP=$ac_cv_prog_STRIP
6462 if test -n "$STRIP"; then
6463   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6464 $as_echo "$STRIP" >&6; }
6465 else
6466   { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_STRIP"; then
6473   ac_ct_STRIP=$STRIP
6474   # Extract the first word of "strip", so it can be a program name with args.
6475 set dummy strip; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$ac_ct_STRIP"; then
6482   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_STRIP="strip"
6492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6502 if test -n "$ac_ct_STRIP"; then
6503   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6504 $as_echo "$ac_ct_STRIP" >&6; }
6505 else
6506   { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_STRIP" = x; then
6511     STRIP=":"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6518 esac
6519     STRIP=$ac_ct_STRIP
6520   fi
6521 else
6522   STRIP="$ac_cv_prog_STRIP"
6523 fi
6524
6525 test -z "$STRIP" && STRIP=:
6526
6527
6528
6529
6530
6531
6532 if test -n "$ac_tool_prefix"; then
6533   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_RANLIB+set}" = set; then
6538   $as_echo_n "(cached) " >&6
6539 else
6540   if test -n "$RANLIB"; then
6541   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548   for ac_exec_ext in '' $ac_executable_extensions; do
6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6551     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 RANLIB=$ac_cv_prog_RANLIB
6561 if test -n "$RANLIB"; then
6562   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6563 $as_echo "$RANLIB" >&6; }
6564 else
6565   { $as_echo "$as_me:$LINENO: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569
6570 fi
6571 if test -z "$ac_cv_prog_RANLIB"; then
6572   ac_ct_RANLIB=$RANLIB
6573   # Extract the first word of "ranlib", so it can be a program name with args.
6574 set dummy ranlib; ac_word=$2
6575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6578   $as_echo_n "(cached) " >&6
6579 else
6580   if test -n "$ac_ct_RANLIB"; then
6581   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_prog_ac_ct_RANLIB="ranlib"
6591     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6601 if test -n "$ac_ct_RANLIB"; then
6602   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6603 $as_echo "$ac_ct_RANLIB" >&6; }
6604 else
6605   { $as_echo "$as_me:$LINENO: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609   if test "x$ac_ct_RANLIB" = x; then
6610     RANLIB=":"
6611   else
6612     case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618     RANLIB=$ac_ct_RANLIB
6619   fi
6620 else
6621   RANLIB="$ac_cv_prog_RANLIB"
6622 fi
6623
6624 test -z "$RANLIB" && RANLIB=:
6625
6626
6627
6628
6629
6630
6631 # Determine commands to create old-style static archives.
6632 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6633 old_postinstall_cmds='chmod 644 $oldlib'
6634 old_postuninstall_cmds=
6635
6636 if test -n "$RANLIB"; then
6637   case $host_os in
6638   openbsd*)
6639     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6640     ;;
6641   *)
6642     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6643     ;;
6644   esac
6645   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 # If no C compiler was specified, use CC.
6682 LTCC=${LTCC-"$CC"}
6683
6684 # If no C compiler flags were specified, use CFLAGS.
6685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6686
6687 # Allow CC to be a program name with arguments.
6688 compiler=$CC
6689
6690
6691 # Check for command to grab the raw symbol name followed by C symbol from nm.
6692 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6693 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6694 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6695   $as_echo_n "(cached) " >&6
6696 else
6697
6698 # These are sane defaults that work on at least a few old systems.
6699 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6700
6701 # Character class describing NM global symbol codes.
6702 symcode='[BCDEGRST]'
6703
6704 # Regexp to match symbols that can be accessed directly from C.
6705 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6706
6707 # Define system-specific variables.
6708 case $host_os in
6709 aix*)
6710   symcode='[BCDT]'
6711   ;;
6712 cygwin* | mingw* | pw32* | cegcc*)
6713   symcode='[ABCDGISTW]'
6714   ;;
6715 hpux*)
6716   if test "$host_cpu" = ia64; then
6717     symcode='[ABCDEGRST]'
6718   fi
6719   ;;
6720 irix* | nonstopux*)
6721   symcode='[BCDEGRST]'
6722   ;;
6723 osf*)
6724   symcode='[BCDEGQRST]'
6725   ;;
6726 solaris*)
6727   symcode='[BDRT]'
6728   ;;
6729 sco3.2v5*)
6730   symcode='[DT]'
6731   ;;
6732 sysv4.2uw2*)
6733   symcode='[DT]'
6734   ;;
6735 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6736   symcode='[ABDT]'
6737   ;;
6738 sysv4)
6739   symcode='[DFNSTU]'
6740   ;;
6741 esac
6742
6743 # If we're using GNU nm, then use its standard symbol codes.
6744 case `$NM -V 2>&1` in
6745 *GNU* | *'with BFD'*)
6746   symcode='[ABCDGIRSTW]' ;;
6747 esac
6748
6749 # Transform an extracted symbol line into a proper C declaration.
6750 # Some systems (esp. on ia64) link data and code symbols differently,
6751 # so use this general approach.
6752 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6753
6754 # Transform an extracted symbol line into symbol name and symbol address
6755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6757
6758 # Handle CRLF in mingw tool chain
6759 opt_cr=
6760 case $build_os in
6761 mingw*)
6762   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6763   ;;
6764 esac
6765
6766 # Try without a prefix underscore, then with it.
6767 for ac_symprfx in "" "_"; do
6768
6769   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6770   symxfrm="\\1 $ac_symprfx\\2 \\2"
6771
6772   # Write the raw and C identifiers.
6773   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6774     # Fake it for dumpbin and say T for any non-static function
6775     # and D for any global variable.
6776     # Also find C++ and __fastcall symbols from MSVC++,
6777     # which start with @ or ?.
6778     lt_cv_sys_global_symbol_pipe="$AWK '"\
6779 "     {last_section=section; section=\$ 3};"\
6780 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6781 "     \$ 0!~/External *\|/{next};"\
6782 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6783 "     {if(hide[section]) next};"\
6784 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6785 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6786 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6787 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6788 "     ' prfx=^$ac_symprfx"
6789   else
6790     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6791   fi
6792
6793   # Check to see that the pipe works correctly.
6794   pipe_works=no
6795
6796   rm -f conftest*
6797   cat > conftest.$ac_ext <<_LT_EOF
6798 #ifdef __cplusplus
6799 extern "C" {
6800 #endif
6801 char nm_test_var;
6802 void nm_test_func(void);
6803 void nm_test_func(void){}
6804 #ifdef __cplusplus
6805 }
6806 #endif
6807 int main(){nm_test_var='a';nm_test_func();return(0);}
6808 _LT_EOF
6809
6810   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811   (eval $ac_compile) 2>&5
6812   ac_status=$?
6813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; then
6815     # Now try to grab the symbols.
6816     nlist=conftest.nm
6817     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6818   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6819   ac_status=$?
6820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } && test -s "$nlist"; then
6822       # Try sorting and uniquifying the output.
6823       if sort "$nlist" | uniq > "$nlist"T; then
6824         mv -f "$nlist"T "$nlist"
6825       else
6826         rm -f "$nlist"T
6827       fi
6828
6829       # Make sure that we snagged all the symbols we need.
6830       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6831         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6832           cat <<_LT_EOF > conftest.$ac_ext
6833 #ifdef __cplusplus
6834 extern "C" {
6835 #endif
6836
6837 _LT_EOF
6838           # Now generate the symbol file.
6839           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6840
6841           cat <<_LT_EOF >> conftest.$ac_ext
6842
6843 /* The mapping between symbol names and symbols.  */
6844 const struct {
6845   const char *name;
6846   void       *address;
6847 }
6848 lt__PROGRAM__LTX_preloaded_symbols[] =
6849 {
6850   { "@PROGRAM@", (void *) 0 },
6851 _LT_EOF
6852           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6853           cat <<\_LT_EOF >> conftest.$ac_ext
6854   {0, (void *) 0}
6855 };
6856
6857 /* This works around a problem in FreeBSD linker */
6858 #ifdef FREEBSD_WORKAROUND
6859 static const void *lt_preloaded_setup() {
6860   return lt__PROGRAM__LTX_preloaded_symbols;
6861 }
6862 #endif
6863
6864 #ifdef __cplusplus
6865 }
6866 #endif
6867 _LT_EOF
6868           # Now try linking the two files.
6869           mv conftest.$ac_objext conftstm.$ac_objext
6870           lt_save_LIBS="$LIBS"
6871           lt_save_CFLAGS="$CFLAGS"
6872           LIBS="conftstm.$ac_objext"
6873           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6874           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875   (eval $ac_link) 2>&5
6876   ac_status=$?
6877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6879             pipe_works=yes
6880           fi
6881           LIBS="$lt_save_LIBS"
6882           CFLAGS="$lt_save_CFLAGS"
6883         else
6884           echo "cannot find nm_test_func in $nlist" >&5
6885         fi
6886       else
6887         echo "cannot find nm_test_var in $nlist" >&5
6888       fi
6889     else
6890       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6891     fi
6892   else
6893     echo "$progname: failed program was:" >&5
6894     cat conftest.$ac_ext >&5
6895   fi
6896   rm -rf conftest* conftst*
6897
6898   # Do not use the global_symbol_pipe unless it works.
6899   if test "$pipe_works" = yes; then
6900     break
6901   else
6902     lt_cv_sys_global_symbol_pipe=
6903   fi
6904 done
6905
6906 fi
6907
6908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6909   lt_cv_sys_global_symbol_to_cdecl=
6910 fi
6911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6912   { $as_echo "$as_me:$LINENO: result: failed" >&5
6913 $as_echo "failed" >&6; }
6914 else
6915   { $as_echo "$as_me:$LINENO: result: ok" >&5
6916 $as_echo "ok" >&6; }
6917 fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941 # Check whether --enable-libtool-lock was given.
6942 if test "${enable_libtool_lock+set}" = set; then
6943   enableval=$enable_libtool_lock;
6944 fi
6945
6946 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6947
6948 # Some flags need to be propagated to the compiler or linker for good
6949 # libtool support.
6950 case $host in
6951 ia64-*-hpux*)
6952   # Find out which ABI we are using.
6953   echo 'int i;' > conftest.$ac_ext
6954   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955   (eval $ac_compile) 2>&5
6956   ac_status=$?
6957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; then
6959     case `/usr/bin/file conftest.$ac_objext` in
6960       *ELF-32*)
6961         HPUX_IA64_MODE="32"
6962         ;;
6963       *ELF-64*)
6964         HPUX_IA64_MODE="64"
6965         ;;
6966     esac
6967   fi
6968   rm -rf conftest*
6969   ;;
6970 *-*-irix6*)
6971   # Find out which ABI we are using.
6972   echo '#line 6972 "configure"' > conftest.$ac_ext
6973   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974   (eval $ac_compile) 2>&5
6975   ac_status=$?
6976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; then
6978     if test "$lt_cv_prog_gnu_ld" = yes; then
6979       case `/usr/bin/file conftest.$ac_objext` in
6980         *32-bit*)
6981           LD="${LD-ld} -melf32bsmip"
6982           ;;
6983         *N32*)
6984           LD="${LD-ld} -melf32bmipn32"
6985           ;;
6986         *64-bit*)
6987           LD="${LD-ld} -melf64bmip"
6988         ;;
6989       esac
6990     else
6991       case `/usr/bin/file conftest.$ac_objext` in
6992         *32-bit*)
6993           LD="${LD-ld} -32"
6994           ;;
6995         *N32*)
6996           LD="${LD-ld} -n32"
6997           ;;
6998         *64-bit*)
6999           LD="${LD-ld} -64"
7000           ;;
7001       esac
7002     fi
7003   fi
7004   rm -rf conftest*
7005   ;;
7006
7007 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7008 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7009   # Find out which ABI we are using.
7010   echo 'int i;' > conftest.$ac_ext
7011   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012   (eval $ac_compile) 2>&5
7013   ac_status=$?
7014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; then
7016     case `/usr/bin/file conftest.o` in
7017       *32-bit*)
7018         case $host in
7019           x86_64-*kfreebsd*-gnu)
7020             LD="${LD-ld} -m elf_i386_fbsd"
7021             ;;
7022           x86_64-*linux*)
7023             LD="${LD-ld} -m elf_i386"
7024             ;;
7025           ppc64-*linux*|powerpc64-*linux*)
7026             LD="${LD-ld} -m elf32ppclinux"
7027             ;;
7028           s390x-*linux*)
7029             LD="${LD-ld} -m elf_s390"
7030             ;;
7031           sparc64-*linux*)
7032             LD="${LD-ld} -m elf32_sparc"
7033             ;;
7034         esac
7035         ;;
7036       *64-bit*)
7037         case $host in
7038           x86_64-*kfreebsd*-gnu)
7039             LD="${LD-ld} -m elf_x86_64_fbsd"
7040             ;;
7041           x86_64-*linux*)
7042             LD="${LD-ld} -m elf_x86_64"
7043             ;;
7044           ppc*-*linux*|powerpc*-*linux*)
7045             LD="${LD-ld} -m elf64ppc"
7046             ;;
7047           s390*-*linux*|s390*-*tpf*)
7048             LD="${LD-ld} -m elf64_s390"
7049             ;;
7050           sparc*-*linux*)
7051             LD="${LD-ld} -m elf64_sparc"
7052             ;;
7053         esac
7054         ;;
7055     esac
7056   fi
7057   rm -rf conftest*
7058   ;;
7059
7060 *-*-sco3.2v5*)
7061   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7062   SAVE_CFLAGS="$CFLAGS"
7063   CFLAGS="$CFLAGS -belf"
7064   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7065 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7066 if test "${lt_cv_cc_needs_belf+set}" = set; then
7067   $as_echo_n "(cached) " >&6
7068 else
7069   ac_ext=c
7070 ac_cpp='$CPP $CPPFLAGS'
7071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074
7075      cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h.  */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h.  */
7081
7082 int
7083 main ()
7084 {
7085
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (ac_try="$ac_link"
7092 case "(($ac_try" in
7093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094   *) ac_try_echo=$ac_try;;
7095 esac
7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097 $as_echo "$ac_try_echo") >&5
7098   (eval "$ac_link") 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } && {
7105          test -z "$ac_c_werror_flag" ||
7106          test ! -s conftest.err
7107        } && test -s conftest$ac_exeext && {
7108          test "$cross_compiling" = yes ||
7109          $as_test_x conftest$ac_exeext
7110        }; then
7111   lt_cv_cc_needs_belf=yes
7112 else
7113   $as_echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116         lt_cv_cc_needs_belf=no
7117 fi
7118
7119 rm -rf conftest.dSYM
7120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7121       conftest$ac_exeext conftest.$ac_ext
7122      ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127
7128 fi
7129 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7131   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7132     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7133     CFLAGS="$SAVE_CFLAGS"
7134   fi
7135   ;;
7136 sparc*-*solaris*)
7137   # Find out which ABI we are using.
7138   echo 'int i;' > conftest.$ac_ext
7139   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140   (eval $ac_compile) 2>&5
7141   ac_status=$?
7142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; then
7144     case `/usr/bin/file conftest.o` in
7145     *64-bit*)
7146       case $lt_cv_prog_gnu_ld in
7147       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7148       *)
7149         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7150           LD="${LD-ld} -64"
7151         fi
7152         ;;
7153       esac
7154       ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 esac
7160
7161 need_locks="$enable_libtool_lock"
7162
7163
7164   case $host_os in
7165     rhapsody* | darwin*)
7166     if test -n "$ac_tool_prefix"; then
7167   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7172   $as_echo_n "(cached) " >&6
7173 else
7174   if test -n "$DSYMUTIL"; then
7175   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7195 if test -n "$DSYMUTIL"; then
7196   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7197 $as_echo "$DSYMUTIL" >&6; }
7198 else
7199   { $as_echo "$as_me:$LINENO: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_DSYMUTIL"; then
7206   ac_ct_DSYMUTIL=$DSYMUTIL
7207   # Extract the first word of "dsymutil", so it can be a program name with args.
7208 set dummy dsymutil; ac_word=$2
7209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7212   $as_echo_n "(cached) " >&6
7213 else
7214   if test -n "$ac_ct_DSYMUTIL"; then
7215   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7235 if test -n "$ac_ct_DSYMUTIL"; then
7236   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7237 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7238 else
7239   { $as_echo "$as_me:$LINENO: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243   if test "x$ac_ct_DSYMUTIL" = x; then
7244     DSYMUTIL=":"
7245   else
7246     case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252     DSYMUTIL=$ac_ct_DSYMUTIL
7253   fi
7254 else
7255   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7256 fi
7257
7258     if test -n "$ac_tool_prefix"; then
7259   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$NMEDIT"; then
7267   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7277     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 NMEDIT=$ac_cv_prog_NMEDIT
7287 if test -n "$NMEDIT"; then
7288   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7289 $as_echo "$NMEDIT" >&6; }
7290 else
7291   { $as_echo "$as_me:$LINENO: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_NMEDIT"; then
7298   ac_ct_NMEDIT=$NMEDIT
7299   # Extract the first word of "nmedit", so it can be a program name with args.
7300 set dummy nmedit; ac_word=$2
7301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -n "$ac_ct_NMEDIT"; then
7307   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7317     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7327 if test -n "$ac_ct_NMEDIT"; then
7328   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7329 $as_echo "$ac_ct_NMEDIT" >&6; }
7330 else
7331   { $as_echo "$as_me:$LINENO: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335   if test "x$ac_ct_NMEDIT" = x; then
7336     NMEDIT=":"
7337   else
7338     case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344     NMEDIT=$ac_ct_NMEDIT
7345   fi
7346 else
7347   NMEDIT="$ac_cv_prog_NMEDIT"
7348 fi
7349
7350     if test -n "$ac_tool_prefix"; then
7351   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_LIPO+set}" = set; then
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$LIPO"; then
7359   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7369     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 LIPO=$ac_cv_prog_LIPO
7379 if test -n "$LIPO"; then
7380   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7381 $as_echo "$LIPO" >&6; }
7382 else
7383   { $as_echo "$as_me:$LINENO: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388 fi
7389 if test -z "$ac_cv_prog_LIPO"; then
7390   ac_ct_LIPO=$LIPO
7391   # Extract the first word of "lipo", so it can be a program name with args.
7392 set dummy lipo; ac_word=$2
7393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7396   $as_echo_n "(cached) " >&6
7397 else
7398   if test -n "$ac_ct_LIPO"; then
7399   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_prog_ac_ct_LIPO="lipo"
7409     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7419 if test -n "$ac_ct_LIPO"; then
7420   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7421 $as_echo "$ac_ct_LIPO" >&6; }
7422 else
7423   { $as_echo "$as_me:$LINENO: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427   if test "x$ac_ct_LIPO" = x; then
7428     LIPO=":"
7429   else
7430     case $cross_compiling:$ac_tool_warned in
7431 yes:)
7432 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7435 esac
7436     LIPO=$ac_ct_LIPO
7437   fi
7438 else
7439   LIPO="$ac_cv_prog_LIPO"
7440 fi
7441
7442     if test -n "$ac_tool_prefix"; then
7443   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}otool; ac_word=$2
7445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_OTOOL+set}" = set; then
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$OTOOL"; then
7451   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7461     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 OTOOL=$ac_cv_prog_OTOOL
7471 if test -n "$OTOOL"; then
7472   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7473 $as_echo "$OTOOL" >&6; }
7474 else
7475   { $as_echo "$as_me:$LINENO: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480 fi
7481 if test -z "$ac_cv_prog_OTOOL"; then
7482   ac_ct_OTOOL=$OTOOL
7483   # Extract the first word of "otool", so it can be a program name with args.
7484 set dummy otool; ac_word=$2
7485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7488   $as_echo_n "(cached) " >&6
7489 else
7490   if test -n "$ac_ct_OTOOL"; then
7491   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498   for ac_exec_ext in '' $ac_executable_extensions; do
7499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500     ac_cv_prog_ac_ct_OTOOL="otool"
7501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7511 if test -n "$ac_ct_OTOOL"; then
7512   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7513 $as_echo "$ac_ct_OTOOL" >&6; }
7514 else
7515   { $as_echo "$as_me:$LINENO: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519   if test "x$ac_ct_OTOOL" = x; then
7520     OTOOL=":"
7521   else
7522     case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528     OTOOL=$ac_ct_OTOOL
7529   fi
7530 else
7531   OTOOL="$ac_cv_prog_OTOOL"
7532 fi
7533
7534     if test -n "$ac_tool_prefix"; then
7535   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$OTOOL64"; then
7543   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7553     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 OTOOL64=$ac_cv_prog_OTOOL64
7563 if test -n "$OTOOL64"; then
7564   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7565 $as_echo "$OTOOL64" >&6; }
7566 else
7567   { $as_echo "$as_me:$LINENO: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572 fi
7573 if test -z "$ac_cv_prog_OTOOL64"; then
7574   ac_ct_OTOOL64=$OTOOL64
7575   # Extract the first word of "otool64", so it can be a program name with args.
7576 set dummy otool64; ac_word=$2
7577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7580   $as_echo_n "(cached) " >&6
7581 else
7582   if test -n "$ac_ct_OTOOL64"; then
7583   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590   for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_prog_ac_ct_OTOOL64="otool64"
7593     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7603 if test -n "$ac_ct_OTOOL64"; then
7604   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7605 $as_echo "$ac_ct_OTOOL64" >&6; }
7606 else
7607   { $as_echo "$as_me:$LINENO: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611   if test "x$ac_ct_OTOOL64" = x; then
7612     OTOOL64=":"
7613   else
7614     case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620     OTOOL64=$ac_ct_OTOOL64
7621   fi
7622 else
7623   OTOOL64="$ac_cv_prog_OTOOL64"
7624 fi
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7653 $as_echo_n "checking for -single_module linker flag... " >&6; }
7654 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7655   $as_echo_n "(cached) " >&6
7656 else
7657   lt_cv_apple_cc_single_mod=no
7658       if test -z "${LT_MULTI_MODULE}"; then
7659         # By default we will add the -single_module flag. You can override
7660         # by either setting the environment variable LT_MULTI_MODULE
7661         # non-empty at configure time, or by adding -multi_module to the
7662         # link flags.
7663         rm -rf libconftest.dylib*
7664         echo "int foo(void){return 1;}" > conftest.c
7665         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7666 -dynamiclib -Wl,-single_module conftest.c" >&5
7667         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7668           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7669         _lt_result=$?
7670         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7671           lt_cv_apple_cc_single_mod=yes
7672         else
7673           cat conftest.err >&5
7674         fi
7675         rm -rf libconftest.dylib*
7676         rm -f conftest.*
7677       fi
7678 fi
7679 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7680 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7681     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7683 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7684   $as_echo_n "(cached) " >&6
7685 else
7686   lt_cv_ld_exported_symbols_list=no
7687       save_LDFLAGS=$LDFLAGS
7688       echo "_main" > conftest.sym
7689       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7690       cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696
7697 int
7698 main ()
7699 {
7700
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (ac_try="$ac_link"
7707 case "(($ac_try" in
7708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709   *) ac_try_echo=$ac_try;;
7710 esac
7711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7712 $as_echo "$ac_try_echo") >&5
7713   (eval "$ac_link") 2>conftest.er1
7714   ac_status=$?
7715   grep -v '^ *+' conftest.er1 >conftest.err
7716   rm -f conftest.er1
7717   cat conftest.err >&5
7718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && {
7720          test -z "$ac_c_werror_flag" ||
7721          test ! -s conftest.err
7722        } && test -s conftest$ac_exeext && {
7723          test "$cross_compiling" = yes ||
7724          $as_test_x conftest$ac_exeext
7725        }; then
7726   lt_cv_ld_exported_symbols_list=yes
7727 else
7728   $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731         lt_cv_ld_exported_symbols_list=no
7732 fi
7733
7734 rm -rf conftest.dSYM
7735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7736       conftest$ac_exeext conftest.$ac_ext
7737         LDFLAGS="$save_LDFLAGS"
7738
7739 fi
7740 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7741 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7742     case $host_os in
7743     rhapsody* | darwin1.[012])
7744       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7745     darwin1.*)
7746       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7747     darwin*) # darwin 5.x on
7748       # if running on 10.5 or later, the deployment target defaults
7749       # to the OS version, if on x86, and 10.4, the deployment
7750       # target defaults to 10.4. Don't you love it?
7751       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7752         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7753           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7754         10.[012]*)
7755           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7756         10.*)
7757           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7758       esac
7759     ;;
7760   esac
7761     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7762       _lt_dar_single_mod='$single_module'
7763     fi
7764     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7765       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7766     else
7767       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7768     fi
7769     if test "$DSYMUTIL" != ":"; then
7770       _lt_dsymutil='~$DSYMUTIL $lib || :'
7771     else
7772       _lt_dsymutil=
7773     fi
7774     ;;
7775   esac
7776
7777 ac_ext=c
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7784 # On Suns, sometimes $CPP names a directory.
7785 if test -n "$CPP" && test -d "$CPP"; then
7786   CPP=
7787 fi
7788 if test -z "$CPP"; then
7789   if test "${ac_cv_prog_CPP+set}" = set; then
7790   $as_echo_n "(cached) " >&6
7791 else
7792       # Double quotes because CPP needs to be expanded
7793     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7794     do
7795       ac_preproc_ok=false
7796 for ac_c_preproc_warn_flag in '' yes
7797 do
7798   # Use a header file that comes with gcc, so configuring glibc
7799   # with a fresh cross-compiler works.
7800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7801   # <limits.h> exists even on freestanding compilers.
7802   # On the NeXT, cc -E runs the code through the compiler's parser,
7803   # not just through cpp. "Syntax error" is here to catch this case.
7804   cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810 #ifdef __STDC__
7811 # include <limits.h>
7812 #else
7813 # include <assert.h>
7814 #endif
7815                      Syntax error
7816 _ACEOF
7817 if { (ac_try="$ac_cpp conftest.$ac_ext"
7818 case "(($ac_try" in
7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820   *) ac_try_echo=$ac_try;;
7821 esac
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } >/dev/null && {
7831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7832          test ! -s conftest.err
7833        }; then
7834   :
7835 else
7836   $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839   # Broken: fails on valid input.
7840 continue
7841 fi
7842
7843 rm -f conftest.err conftest.$ac_ext
7844
7845   # OK, works on sane cases.  Now check whether nonexistent headers
7846   # can be detected and how.
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 #include <ac_nonexistent.h>
7854 _ACEOF
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7863   ac_status=$?
7864   grep -v '^ *+' conftest.er1 >conftest.err
7865   rm -f conftest.er1
7866   cat conftest.err >&5
7867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } >/dev/null && {
7869          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7870          test ! -s conftest.err
7871        }; then
7872   # Broken: success on invalid input.
7873 continue
7874 else
7875   $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878   # Passes both tests.
7879 ac_preproc_ok=:
7880 break
7881 fi
7882
7883 rm -f conftest.err conftest.$ac_ext
7884
7885 done
7886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7887 rm -f conftest.err conftest.$ac_ext
7888 if $ac_preproc_ok; then
7889   break
7890 fi
7891
7892     done
7893     ac_cv_prog_CPP=$CPP
7894
7895 fi
7896   CPP=$ac_cv_prog_CPP
7897 else
7898   ac_cv_prog_CPP=$CPP
7899 fi
7900 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7901 $as_echo "$CPP" >&6; }
7902 ac_preproc_ok=false
7903 for ac_c_preproc_warn_flag in '' yes
7904 do
7905   # Use a header file that comes with gcc, so configuring glibc
7906   # with a fresh cross-compiler works.
7907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7908   # <limits.h> exists even on freestanding compilers.
7909   # On the NeXT, cc -E runs the code through the compiler's parser,
7910   # not just through cpp. "Syntax error" is here to catch this case.
7911   cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 #ifdef __STDC__
7918 # include <limits.h>
7919 #else
7920 # include <assert.h>
7921 #endif
7922                      Syntax error
7923 _ACEOF
7924 if { (ac_try="$ac_cpp conftest.$ac_ext"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } >/dev/null && {
7938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939          test ! -s conftest.err
7940        }; then
7941   :
7942 else
7943   $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946   # Broken: fails on valid input.
7947 continue
7948 fi
7949
7950 rm -f conftest.err conftest.$ac_ext
7951
7952   # OK, works on sane cases.  Now check whether nonexistent headers
7953   # can be detected and how.
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960 #include <ac_nonexistent.h>
7961 _ACEOF
7962 if { (ac_try="$ac_cpp conftest.$ac_ext"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } >/dev/null && {
7976          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7977          test ! -s conftest.err
7978        }; then
7979   # Broken: success on invalid input.
7980 continue
7981 else
7982   $as_echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985   # Passes both tests.
7986 ac_preproc_ok=:
7987 break
7988 fi
7989
7990 rm -f conftest.err conftest.$ac_ext
7991
7992 done
7993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7994 rm -f conftest.err conftest.$ac_ext
7995 if $ac_preproc_ok; then
7996   :
7997 else
7998   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8000 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8001 See \`config.log' for more details." >&5
8002 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8003 See \`config.log' for more details." >&2;}
8004    { (exit 1); exit 1; }; }; }
8005 fi
8006
8007 ac_ext=c
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012
8013
8014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8015 $as_echo_n "checking for ANSI C header files... " >&6; }
8016 if test "${ac_cv_header_stdc+set}" = set; then
8017   $as_echo_n "(cached) " >&6
8018 else
8019   cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <stdlib.h>
8026 #include <stdarg.h>
8027 #include <string.h>
8028 #include <float.h>
8029
8030 int
8031 main ()
8032 {
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046   (eval "$ac_compile") 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } && {
8053          test -z "$ac_c_werror_flag" ||
8054          test ! -s conftest.err
8055        } && test -s conftest.$ac_objext; then
8056   ac_cv_header_stdc=yes
8057 else
8058   $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061         ac_cv_header_stdc=no
8062 fi
8063
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065
8066 if test $ac_cv_header_stdc = yes; then
8067   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8068   cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074 #include <string.h>
8075
8076 _ACEOF
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078   $EGREP "memchr" >/dev/null 2>&1; then
8079   :
8080 else
8081   ac_cv_header_stdc=no
8082 fi
8083 rm -f conftest*
8084
8085 fi
8086
8087 if test $ac_cv_header_stdc = yes; then
8088   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 #include <stdlib.h>
8096
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099   $EGREP "free" >/dev/null 2>&1; then
8100   :
8101 else
8102   ac_cv_header_stdc=no
8103 fi
8104 rm -f conftest*
8105
8106 fi
8107
8108 if test $ac_cv_header_stdc = yes; then
8109   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110   if test "$cross_compiling" = yes; then
8111   :
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 #include <ctype.h>
8120 #include <stdlib.h>
8121 #if ((' ' & 0x0FF) == 0x020)
8122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8124 #else
8125 # define ISLOWER(c) \
8126                    (('a' <= (c) && (c) <= 'i') \
8127                      || ('j' <= (c) && (c) <= 'r') \
8128                      || ('s' <= (c) && (c) <= 'z'))
8129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8130 #endif
8131
8132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8133 int
8134 main ()
8135 {
8136   int i;
8137   for (i = 0; i < 256; i++)
8138     if (XOR (islower (i), ISLOWER (i))
8139         || toupper (i) != TOUPPER (i))
8140       return 2;
8141   return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148   *) ac_try_echo=$ac_try;;
8149 esac
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152   (eval "$ac_link") 2>&5
8153   ac_status=$?
8154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8156   { (case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162   (eval "$ac_try") 2>&5
8163   ac_status=$?
8164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   :
8167 else
8168   $as_echo "$as_me: program exited with status $ac_status" >&5
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 ( exit $ac_status )
8173 ac_cv_header_stdc=no
8174 fi
8175 rm -rf conftest.dSYM
8176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8177 fi
8178
8179
8180 fi
8181 fi
8182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8183 $as_echo "$ac_cv_header_stdc" >&6; }
8184 if test $ac_cv_header_stdc = yes; then
8185
8186 cat >>confdefs.h <<\_ACEOF
8187 #define STDC_HEADERS 1
8188 _ACEOF
8189
8190 fi
8191
8192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8203                   inttypes.h stdint.h unistd.h
8204 do
8205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 $as_echo_n "checking for $ac_header... " >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209   $as_echo_n "(cached) " >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 $ac_includes_default
8218
8219 #include <$ac_header>
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228 $as_echo "$ac_try_echo") >&5
8229   (eval "$ac_compile") 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } && {
8236          test -z "$ac_c_werror_flag" ||
8237          test ! -s conftest.err
8238        } && test -s conftest.$ac_objext; then
8239   eval "$as_ac_Header=yes"
8240 else
8241   $as_echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244         eval "$as_ac_Header=no"
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 ac_res=`eval 'as_val=${'$as_ac_Header'}
8250                  $as_echo "$as_val"'`
8251                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8252 $as_echo "$ac_res" >&6; }
8253 as_val=`eval 'as_val=${'$as_ac_Header'}
8254                  $as_echo "$as_val"'`
8255    if test "x$as_val" = x""yes; then
8256   cat >>confdefs.h <<_ACEOF
8257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 _ACEOF
8259
8260 fi
8261
8262 done
8263
8264
8265
8266 for ac_header in dlfcn.h
8267 do
8268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8270 $as_echo_n "checking for $ac_header... " >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272   $as_echo_n "(cached) " >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 $ac_includes_default
8281
8282 #include <$ac_header>
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8291 $as_echo "$ac_try_echo") >&5
8292   (eval "$ac_compile") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } && {
8299          test -z "$ac_c_werror_flag" ||
8300          test ! -s conftest.err
8301        } && test -s conftest.$ac_objext; then
8302   eval "$as_ac_Header=yes"
8303 else
8304   $as_echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307         eval "$as_ac_Header=no"
8308 fi
8309
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 ac_res=`eval 'as_val=${'$as_ac_Header'}
8313                  $as_echo "$as_val"'`
8314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8315 $as_echo "$ac_res" >&6; }
8316 as_val=`eval 'as_val=${'$as_ac_Header'}
8317                  $as_echo "$as_val"'`
8318    if test "x$as_val" = x""yes; then
8319   cat >>confdefs.h <<_ACEOF
8320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8321 _ACEOF
8322
8323 fi
8324
8325 done
8326
8327
8328
8329 # Set options
8330
8331
8332
8333         enable_dlopen=no
8334
8335
8336   enable_win32_dll=no
8337
8338
8339             # Check whether --enable-shared was given.
8340 if test "${enable_shared+set}" = set; then
8341   enableval=$enable_shared; p=${PACKAGE-default}
8342     case $enableval in
8343     yes) enable_shared=yes ;;
8344     no) enable_shared=no ;;
8345     *)
8346       enable_shared=no
8347       # Look at the argument we got.  We use all the common list separators.
8348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349       for pkg in $enableval; do
8350         IFS="$lt_save_ifs"
8351         if test "X$pkg" = "X$p"; then
8352           enable_shared=yes
8353         fi
8354       done
8355       IFS="$lt_save_ifs"
8356       ;;
8357     esac
8358 else
8359   enable_shared=yes
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370   # Check whether --enable-static was given.
8371 if test "${enable_static+set}" = set; then
8372   enableval=$enable_static; p=${PACKAGE-default}
8373     case $enableval in
8374     yes) enable_static=yes ;;
8375     no) enable_static=no ;;
8376     *)
8377      enable_static=no
8378       # Look at the argument we got.  We use all the common list separators.
8379       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380       for pkg in $enableval; do
8381         IFS="$lt_save_ifs"
8382         if test "X$pkg" = "X$p"; then
8383           enable_static=yes
8384         fi
8385       done
8386       IFS="$lt_save_ifs"
8387       ;;
8388     esac
8389 else
8390   enable_static=yes
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 # Check whether --with-pic was given.
8403 if test "${with_pic+set}" = set; then
8404   withval=$with_pic; pic_mode="$withval"
8405 else
8406   pic_mode=default
8407 fi
8408
8409
8410 test -z "$pic_mode" && pic_mode=default
8411
8412
8413
8414
8415
8416
8417
8418   # Check whether --enable-fast-install was given.
8419 if test "${enable_fast_install+set}" = set; then
8420   enableval=$enable_fast_install; p=${PACKAGE-default}
8421     case $enableval in
8422     yes) enable_fast_install=yes ;;
8423     no) enable_fast_install=no ;;
8424     *)
8425       enable_fast_install=no
8426       # Look at the argument we got.  We use all the common list separators.
8427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428       for pkg in $enableval; do
8429         IFS="$lt_save_ifs"
8430         if test "X$pkg" = "X$p"; then
8431           enable_fast_install=yes
8432         fi
8433       done
8434       IFS="$lt_save_ifs"
8435       ;;
8436     esac
8437 else
8438   enable_fast_install=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451 # This can be used to rebuild libtool when needed
8452 LIBTOOL_DEPS="$ltmain"
8453
8454 # Always use our own libtool.
8455 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 test -z "$LN_S" && LN_S="ln -s"
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496 if test -n "${ZSH_VERSION+set}" ; then
8497    setopt NO_GLOB_SUBST
8498 fi
8499
8500 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8501 $as_echo_n "checking for objdir... " >&6; }
8502 if test "${lt_cv_objdir+set}" = set; then
8503   $as_echo_n "(cached) " >&6
8504 else
8505   rm -f .libs 2>/dev/null
8506 mkdir .libs 2>/dev/null
8507 if test -d .libs; then
8508   lt_cv_objdir=.libs
8509 else
8510   # MS-DOS does not allow filenames that begin with a dot.
8511   lt_cv_objdir=_libs
8512 fi
8513 rmdir .libs 2>/dev/null
8514 fi
8515 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8516 $as_echo "$lt_cv_objdir" >&6; }
8517 objdir=$lt_cv_objdir
8518
8519
8520
8521
8522
8523 cat >>confdefs.h <<_ACEOF
8524 #define LT_OBJDIR "$lt_cv_objdir/"
8525 _ACEOF
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543 case $host_os in
8544 aix3*)
8545   # AIX sometimes has problems with the GCC collect2 program.  For some
8546   # reason, if we set the COLLECT_NAMES environment variable, the problems
8547   # vanish in a puff of smoke.
8548   if test "X${COLLECT_NAMES+set}" != Xset; then
8549     COLLECT_NAMES=
8550     export COLLECT_NAMES
8551   fi
8552   ;;
8553 esac
8554
8555 # Sed substitution that helps us do robust quoting.  It backslashifies
8556 # metacharacters that are still active within double-quoted strings.
8557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8558
8559 # Same as above, but do not quote variable references.
8560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8561
8562 # Sed substitution to delay expansion of an escaped shell variable in a
8563 # double_quote_subst'ed string.
8564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8565
8566 # Sed substitution to delay expansion of an escaped single quote.
8567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8568
8569 # Sed substitution to avoid accidental globbing in evaled expressions
8570 no_glob_subst='s/\*/\\\*/g'
8571
8572 # Global variables:
8573 ofile=libtool
8574 can_build_shared=yes
8575
8576 # All known linkers require a `.a' archive for static linking (except MSVC,
8577 # which needs '.lib').
8578 libext=a
8579
8580 with_gnu_ld="$lt_cv_prog_gnu_ld"
8581
8582 old_CC="$CC"
8583 old_CFLAGS="$CFLAGS"
8584
8585 # Set sane defaults for various variables
8586 test -z "$CC" && CC=cc
8587 test -z "$LTCC" && LTCC=$CC
8588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8589 test -z "$LD" && LD=ld
8590 test -z "$ac_objext" && ac_objext=o
8591
8592 for cc_temp in $compiler""; do
8593   case $cc_temp in
8594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8596     \-*) ;;
8597     *) break;;
8598   esac
8599 done
8600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8601
8602
8603 # Only perform the check for file, if the check method requires it
8604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8605 case $deplibs_check_method in
8606 file_magic*)
8607   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8608     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8611   $as_echo_n "(cached) " >&6
8612 else
8613   case $MAGIC_CMD in
8614 [\\/*] |  ?:[\\/]*)
8615   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8616   ;;
8617 *)
8618   lt_save_MAGIC_CMD="$MAGIC_CMD"
8619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8620   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8621   for ac_dir in $ac_dummy; do
8622     IFS="$lt_save_ifs"
8623     test -z "$ac_dir" && ac_dir=.
8624     if test -f $ac_dir/${ac_tool_prefix}file; then
8625       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8626       if test -n "$file_magic_test_file"; then
8627         case $deplibs_check_method in
8628         "file_magic "*)
8629           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8630           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8632             $EGREP "$file_magic_regex" > /dev/null; then
8633             :
8634           else
8635             cat <<_LT_EOF 1>&2
8636
8637 *** Warning: the command libtool uses to detect shared libraries,
8638 *** $file_magic_cmd, produces output that libtool cannot recognize.
8639 *** The result is that libtool may fail to recognize shared libraries
8640 *** as such.  This will affect the creation of libtool libraries that
8641 *** depend on shared libraries, but programs linked with such libtool
8642 *** libraries will work regardless of this problem.  Nevertheless, you
8643 *** may want to report the problem to your system manager and/or to
8644 *** bug-libtool@gnu.org
8645
8646 _LT_EOF
8647           fi ;;
8648         esac
8649       fi
8650       break
8651     fi
8652   done
8653   IFS="$lt_save_ifs"
8654   MAGIC_CMD="$lt_save_MAGIC_CMD"
8655   ;;
8656 esac
8657 fi
8658
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if test -n "$MAGIC_CMD"; then
8661   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8662 $as_echo "$MAGIC_CMD" >&6; }
8663 else
8664   { $as_echo "$as_me:$LINENO: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669
8670
8671
8672 if test -z "$lt_cv_path_MAGIC_CMD"; then
8673   if test -n "$ac_tool_prefix"; then
8674     { $as_echo "$as_me:$LINENO: checking for file" >&5
8675 $as_echo_n "checking for file... " >&6; }
8676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8677   $as_echo_n "(cached) " >&6
8678 else
8679   case $MAGIC_CMD in
8680 [\\/*] |  ?:[\\/]*)
8681   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682   ;;
8683 *)
8684   lt_save_MAGIC_CMD="$MAGIC_CMD"
8685   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687   for ac_dir in $ac_dummy; do
8688     IFS="$lt_save_ifs"
8689     test -z "$ac_dir" && ac_dir=.
8690     if test -f $ac_dir/file; then
8691       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8692       if test -n "$file_magic_test_file"; then
8693         case $deplibs_check_method in
8694         "file_magic "*)
8695           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698             $EGREP "$file_magic_regex" > /dev/null; then
8699             :
8700           else
8701             cat <<_LT_EOF 1>&2
8702
8703 *** Warning: the command libtool uses to detect shared libraries,
8704 *** $file_magic_cmd, produces output that libtool cannot recognize.
8705 *** The result is that libtool may fail to recognize shared libraries
8706 *** as such.  This will affect the creation of libtool libraries that
8707 *** depend on shared libraries, but programs linked with such libtool
8708 *** libraries will work regardless of this problem.  Nevertheless, you
8709 *** may want to report the problem to your system manager and/or to
8710 *** bug-libtool@gnu.org
8711
8712 _LT_EOF
8713           fi ;;
8714         esac
8715       fi
8716       break
8717     fi
8718   done
8719   IFS="$lt_save_ifs"
8720   MAGIC_CMD="$lt_save_MAGIC_CMD"
8721   ;;
8722 esac
8723 fi
8724
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if test -n "$MAGIC_CMD"; then
8727   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8728 $as_echo "$MAGIC_CMD" >&6; }
8729 else
8730   { $as_echo "$as_me:$LINENO: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735   else
8736     MAGIC_CMD=:
8737   fi
8738 fi
8739
8740   fi
8741   ;;
8742 esac
8743
8744 # Use C for the default configuration in the libtool script
8745
8746 lt_save_CC="$CC"
8747 ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752
8753
8754 # Source file extension for C test sources.
8755 ac_ext=c
8756
8757 # Object file extension for compiled C test sources.
8758 objext=o
8759 objext=$objext
8760
8761 # Code to be used in simple compile tests
8762 lt_simple_compile_test_code="int some_variable = 0;"
8763
8764 # Code to be used in simple link tests
8765 lt_simple_link_test_code='int main(){return(0);}'
8766
8767
8768
8769
8770
8771
8772
8773 # If no C compiler was specified, use CC.
8774 LTCC=${LTCC-"$CC"}
8775
8776 # If no C compiler flags were specified, use CFLAGS.
8777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8778
8779 # Allow CC to be a program name with arguments.
8780 compiler=$CC
8781
8782 # Save the default compiler, since it gets overwritten when the other
8783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8784 compiler_DEFAULT=$CC
8785
8786 # save warnings/boilerplate of simple test code
8787 ac_outfile=conftest.$ac_objext
8788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8790 _lt_compiler_boilerplate=`cat conftest.err`
8791 $RM conftest*
8792
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8796 _lt_linker_boilerplate=`cat conftest.err`
8797 $RM -r conftest*
8798
8799
8800 ## CAVEAT EMPTOR:
8801 ## There is no encapsulation within the following macros, do not change
8802 ## the running order or otherwise move them around unless you know exactly
8803 ## what you are doing...
8804 if test -n "$compiler"; then
8805
8806 lt_prog_compiler_no_builtin_flag=
8807
8808 if test "$GCC" = yes; then
8809   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8810
8811   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8812 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8813 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8814   $as_echo_n "(cached) " >&6
8815 else
8816   lt_cv_prog_compiler_rtti_exceptions=no
8817    ac_outfile=conftest.$ac_objext
8818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819    lt_compiler_flag="-fno-rtti -fno-exceptions"
8820    # Insert the option either (1) after the last *FLAGS variable, or
8821    # (2) before a word containing "conftest.", or (3) at the end.
8822    # Note that $ac_compile itself does not contain backslashes and begins
8823    # with a dollar sign (not a hyphen), so the echo should work correctly.
8824    # The option is referenced via a variable to avoid confusing sed.
8825    lt_compile=`echo "$ac_compile" | $SED \
8826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828    -e 's:$: $lt_compiler_flag:'`
8829    (eval echo "\"\$as_me:8829: $lt_compile\"" >&5)
8830    (eval "$lt_compile" 2>conftest.err)
8831    ac_status=$?
8832    cat conftest.err >&5
8833    echo "$as_me:8833: \$? = $ac_status" >&5
8834    if (exit $ac_status) && test -s "$ac_outfile"; then
8835      # The compiler can only warn and ignore the option if not recognized
8836      # So say no if there are warnings other than the usual output.
8837      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8838      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8840        lt_cv_prog_compiler_rtti_exceptions=yes
8841      fi
8842    fi
8843    $RM conftest*
8844
8845 fi
8846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8847 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8848
8849 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8850     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8851 else
8852     :
8853 fi
8854
8855 fi
8856
8857
8858
8859
8860
8861
8862   lt_prog_compiler_wl=
8863 lt_prog_compiler_pic=
8864 lt_prog_compiler_static=
8865
8866 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8867 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8868
8869   if test "$GCC" = yes; then
8870     lt_prog_compiler_wl='-Wl,'
8871     lt_prog_compiler_static='-static'
8872
8873     case $host_os in
8874       aix*)
8875       # All AIX code is PIC.
8876       if test "$host_cpu" = ia64; then
8877         # AIX 5 now supports IA64 processor
8878         lt_prog_compiler_static='-Bstatic'
8879       fi
8880       ;;
8881
8882     amigaos*)
8883       case $host_cpu in
8884       powerpc)
8885             # see comment about AmigaOS4 .so support
8886             lt_prog_compiler_pic='-fPIC'
8887         ;;
8888       m68k)
8889             # FIXME: we need at least 68020 code to build shared libraries, but
8890             # adding the `-m68020' flag to GCC prevents building anything better,
8891             # like `-m68040'.
8892             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8893         ;;
8894       esac
8895       ;;
8896
8897     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8898       # PIC is the default for these OSes.
8899       ;;
8900
8901     mingw* | cygwin* | pw32* | os2* | cegcc*)
8902       # This hack is so that the source file can tell whether it is being
8903       # built for inclusion in a dll (and should export symbols for example).
8904       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8905       # (--disable-auto-import) libraries
8906       lt_prog_compiler_pic='-DDLL_EXPORT'
8907       ;;
8908
8909     darwin* | rhapsody*)
8910       # PIC is the default on this platform
8911       # Common symbols not allowed in MH_DYLIB files
8912       lt_prog_compiler_pic='-fno-common'
8913       ;;
8914
8915     hpux*)
8916       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8917       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8918       # sets the default TLS model and affects inlining.
8919       case $host_cpu in
8920       hppa*64*)
8921         # +Z the default
8922         ;;
8923       *)
8924         lt_prog_compiler_pic='-fPIC'
8925         ;;
8926       esac
8927       ;;
8928
8929     interix[3-9]*)
8930       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8931       # Instead, we relocate shared libraries at runtime.
8932       ;;
8933
8934     msdosdjgpp*)
8935       # Just because we use GCC doesn't mean we suddenly get shared libraries
8936       # on systems that don't support them.
8937       lt_prog_compiler_can_build_shared=no
8938       enable_shared=no
8939       ;;
8940
8941     *nto* | *qnx*)
8942       # QNX uses GNU C++, but need to define -shared option too, otherwise
8943       # it will coredump.
8944       lt_prog_compiler_pic='-fPIC -shared'
8945       ;;
8946
8947     sysv4*MP*)
8948       if test -d /usr/nec; then
8949         lt_prog_compiler_pic=-Kconform_pic
8950       fi
8951       ;;
8952
8953     *)
8954       lt_prog_compiler_pic='-fPIC'
8955       ;;
8956     esac
8957   else
8958     # PORTME Check for flag to pass linker flags through the system compiler.
8959     case $host_os in
8960     aix*)
8961       lt_prog_compiler_wl='-Wl,'
8962       if test "$host_cpu" = ia64; then
8963         # AIX 5 now supports IA64 processor
8964         lt_prog_compiler_static='-Bstatic'
8965       else
8966         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8967       fi
8968       ;;
8969
8970     mingw* | cygwin* | pw32* | os2* | cegcc*)
8971       # This hack is so that the source file can tell whether it is being
8972       # built for inclusion in a dll (and should export symbols for example).
8973       lt_prog_compiler_pic='-DDLL_EXPORT'
8974       ;;
8975
8976     hpux9* | hpux10* | hpux11*)
8977       lt_prog_compiler_wl='-Wl,'
8978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8979       # not for PA HP-UX.
8980       case $host_cpu in
8981       hppa*64*|ia64*)
8982         # +Z the default
8983         ;;
8984       *)
8985         lt_prog_compiler_pic='+Z'
8986         ;;
8987       esac
8988       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8989       lt_prog_compiler_static='${wl}-a ${wl}archive'
8990       ;;
8991
8992     irix5* | irix6* | nonstopux*)
8993       lt_prog_compiler_wl='-Wl,'
8994       # PIC (with -KPIC) is the default.
8995       lt_prog_compiler_static='-non_shared'
8996       ;;
8997
8998     linux* | k*bsd*-gnu)
8999       case $cc_basename in
9000       # old Intel for x86_64 which still supported -KPIC.
9001       ecc*)
9002         lt_prog_compiler_wl='-Wl,'
9003         lt_prog_compiler_pic='-KPIC'
9004         lt_prog_compiler_static='-static'
9005         ;;
9006       # icc used to be incompatible with GCC.
9007       # ICC 10 doesn't accept -KPIC any more.
9008       icc* | ifort*)
9009         lt_prog_compiler_wl='-Wl,'
9010         lt_prog_compiler_pic='-fPIC'
9011         lt_prog_compiler_static='-static'
9012         ;;
9013       # Lahey Fortran 8.1.
9014       lf95*)
9015         lt_prog_compiler_wl='-Wl,'
9016         lt_prog_compiler_pic='--shared'
9017         lt_prog_compiler_static='--static'
9018         ;;
9019       pgcc* | pgf77* | pgf90* | pgf95*)
9020         # Portland Group compilers (*not* the Pentium gcc compiler,
9021         # which looks to be a dead project)
9022         lt_prog_compiler_wl='-Wl,'
9023         lt_prog_compiler_pic='-fpic'
9024         lt_prog_compiler_static='-Bstatic'
9025         ;;
9026       ccc*)
9027         lt_prog_compiler_wl='-Wl,'
9028         # All Alpha code is PIC.
9029         lt_prog_compiler_static='-non_shared'
9030         ;;
9031       xl*)
9032         # IBM XL C 8.0/Fortran 10.1 on PPC
9033         lt_prog_compiler_wl='-Wl,'
9034         lt_prog_compiler_pic='-qpic'
9035         lt_prog_compiler_static='-qstaticlink'
9036         ;;
9037       *)
9038         case `$CC -V 2>&1 | sed 5q` in
9039         *Sun\ C*)
9040           # Sun C 5.9
9041           lt_prog_compiler_pic='-KPIC'
9042           lt_prog_compiler_static='-Bstatic'
9043           lt_prog_compiler_wl='-Wl,'
9044           ;;
9045         *Sun\ F*)
9046           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9047           lt_prog_compiler_pic='-KPIC'
9048           lt_prog_compiler_static='-Bstatic'
9049           lt_prog_compiler_wl=''
9050           ;;
9051         esac
9052         ;;
9053       esac
9054       ;;
9055
9056     newsos6)
9057       lt_prog_compiler_pic='-KPIC'
9058       lt_prog_compiler_static='-Bstatic'
9059       ;;
9060
9061     *nto* | *qnx*)
9062       # QNX uses GNU C++, but need to define -shared option too, otherwise
9063       # it will coredump.
9064       lt_prog_compiler_pic='-fPIC -shared'
9065       ;;
9066
9067     osf3* | osf4* | osf5*)
9068       lt_prog_compiler_wl='-Wl,'
9069       # All OSF/1 code is PIC.
9070       lt_prog_compiler_static='-non_shared'
9071       ;;
9072
9073     rdos*)
9074       lt_prog_compiler_static='-non_shared'
9075       ;;
9076
9077     solaris*)
9078       lt_prog_compiler_pic='-KPIC'
9079       lt_prog_compiler_static='-Bstatic'
9080       case $cc_basename in
9081       f77* | f90* | f95*)
9082         lt_prog_compiler_wl='-Qoption ld ';;
9083       *)
9084         lt_prog_compiler_wl='-Wl,';;
9085       esac
9086       ;;
9087
9088     sunos4*)
9089       lt_prog_compiler_wl='-Qoption ld '
9090       lt_prog_compiler_pic='-PIC'
9091       lt_prog_compiler_static='-Bstatic'
9092       ;;
9093
9094     sysv4 | sysv4.2uw2* | sysv4.3*)
9095       lt_prog_compiler_wl='-Wl,'
9096       lt_prog_compiler_pic='-KPIC'
9097       lt_prog_compiler_static='-Bstatic'
9098       ;;
9099
9100     sysv4*MP*)
9101       if test -d /usr/nec ;then
9102         lt_prog_compiler_pic='-Kconform_pic'
9103         lt_prog_compiler_static='-Bstatic'
9104       fi
9105       ;;
9106
9107     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9108       lt_prog_compiler_wl='-Wl,'
9109       lt_prog_compiler_pic='-KPIC'
9110       lt_prog_compiler_static='-Bstatic'
9111       ;;
9112
9113     unicos*)
9114       lt_prog_compiler_wl='-Wl,'
9115       lt_prog_compiler_can_build_shared=no
9116       ;;
9117
9118     uts4*)
9119       lt_prog_compiler_pic='-pic'
9120       lt_prog_compiler_static='-Bstatic'
9121       ;;
9122
9123     *)
9124       lt_prog_compiler_can_build_shared=no
9125       ;;
9126     esac
9127   fi
9128
9129 case $host_os in
9130   # For platforms which do not support PIC, -DPIC is meaningless:
9131   *djgpp*)
9132     lt_prog_compiler_pic=
9133     ;;
9134   *)
9135     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9136     ;;
9137 esac
9138 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9139 $as_echo "$lt_prog_compiler_pic" >&6; }
9140
9141
9142
9143
9144
9145
9146 #
9147 # Check to make sure the PIC flag actually works.
9148 #
9149 if test -n "$lt_prog_compiler_pic"; then
9150   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9152 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9153   $as_echo_n "(cached) " >&6
9154 else
9155   lt_cv_prog_compiler_pic_works=no
9156    ac_outfile=conftest.$ac_objext
9157    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9159    # Insert the option either (1) after the last *FLAGS variable, or
9160    # (2) before a word containing "conftest.", or (3) at the end.
9161    # Note that $ac_compile itself does not contain backslashes and begins
9162    # with a dollar sign (not a hyphen), so the echo should work correctly.
9163    # The option is referenced via a variable to avoid confusing sed.
9164    lt_compile=`echo "$ac_compile" | $SED \
9165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9167    -e 's:$: $lt_compiler_flag:'`
9168    (eval echo "\"\$as_me:9168: $lt_compile\"" >&5)
9169    (eval "$lt_compile" 2>conftest.err)
9170    ac_status=$?
9171    cat conftest.err >&5
9172    echo "$as_me:9172: \$? = $ac_status" >&5
9173    if (exit $ac_status) && test -s "$ac_outfile"; then
9174      # The compiler can only warn and ignore the option if not recognized
9175      # So say no if there are warnings other than the usual output.
9176      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9177      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9178      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9179        lt_cv_prog_compiler_pic_works=yes
9180      fi
9181    fi
9182    $RM conftest*
9183
9184 fi
9185 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9187
9188 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9189     case $lt_prog_compiler_pic in
9190      "" | " "*) ;;
9191      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9192      esac
9193 else
9194     lt_prog_compiler_pic=
9195      lt_prog_compiler_can_build_shared=no
9196 fi
9197
9198 fi
9199
9200
9201
9202
9203
9204
9205 #
9206 # Check to make sure the static flag actually works.
9207 #
9208 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9209 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9211 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9212   $as_echo_n "(cached) " >&6
9213 else
9214   lt_cv_prog_compiler_static_works=no
9215    save_LDFLAGS="$LDFLAGS"
9216    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9217    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9218    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9219      # The linker can only warn and ignore the option if not recognized
9220      # So say no if there are warnings
9221      if test -s conftest.err; then
9222        # Append any errors to the config.log.
9223        cat conftest.err 1>&5
9224        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9225        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226        if diff conftest.exp conftest.er2 >/dev/null; then
9227          lt_cv_prog_compiler_static_works=yes
9228        fi
9229      else
9230        lt_cv_prog_compiler_static_works=yes
9231      fi
9232    fi
9233    $RM -r conftest*
9234    LDFLAGS="$save_LDFLAGS"
9235
9236 fi
9237 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9238 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9239
9240 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9241     :
9242 else
9243     lt_prog_compiler_static=
9244 fi
9245
9246
9247
9248
9249
9250
9251
9252   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9255   $as_echo_n "(cached) " >&6
9256 else
9257   lt_cv_prog_compiler_c_o=no
9258    $RM -r conftest 2>/dev/null
9259    mkdir conftest
9260    cd conftest
9261    mkdir out
9262    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263
9264    lt_compiler_flag="-o out/conftest2.$ac_objext"
9265    # Insert the option either (1) after the last *FLAGS variable, or
9266    # (2) before a word containing "conftest.", or (3) at the end.
9267    # Note that $ac_compile itself does not contain backslashes and begins
9268    # with a dollar sign (not a hyphen), so the echo should work correctly.
9269    lt_compile=`echo "$ac_compile" | $SED \
9270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272    -e 's:$: $lt_compiler_flag:'`
9273    (eval echo "\"\$as_me:9273: $lt_compile\"" >&5)
9274    (eval "$lt_compile" 2>out/conftest.err)
9275    ac_status=$?
9276    cat out/conftest.err >&5
9277    echo "$as_me:9277: \$? = $ac_status" >&5
9278    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9279    then
9280      # The compiler can only warn and ignore the option if not recognized
9281      # So say no if there are warnings
9282      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9283      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9284      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9285        lt_cv_prog_compiler_c_o=yes
9286      fi
9287    fi
9288    chmod u+w . 2>&5
9289    $RM conftest*
9290    # SGI C++ compiler will create directory out/ii_files/ for
9291    # template instantiation
9292    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9293    $RM out/* && rmdir out
9294    cd ..
9295    $RM -r conftest
9296    $RM conftest*
9297
9298 fi
9299 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9301
9302
9303
9304
9305
9306
9307   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9309 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9310   $as_echo_n "(cached) " >&6
9311 else
9312   lt_cv_prog_compiler_c_o=no
9313    $RM -r conftest 2>/dev/null
9314    mkdir conftest
9315    cd conftest
9316    mkdir out
9317    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9318
9319    lt_compiler_flag="-o out/conftest2.$ac_objext"
9320    # Insert the option either (1) after the last *FLAGS variable, or
9321    # (2) before a word containing "conftest.", or (3) at the end.
9322    # Note that $ac_compile itself does not contain backslashes and begins
9323    # with a dollar sign (not a hyphen), so the echo should work correctly.
9324    lt_compile=`echo "$ac_compile" | $SED \
9325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9327    -e 's:$: $lt_compiler_flag:'`
9328    (eval echo "\"\$as_me:9328: $lt_compile\"" >&5)
9329    (eval "$lt_compile" 2>out/conftest.err)
9330    ac_status=$?
9331    cat out/conftest.err >&5
9332    echo "$as_me:9332: \$? = $ac_status" >&5
9333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9334    then
9335      # The compiler can only warn and ignore the option if not recognized
9336      # So say no if there are warnings
9337      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9338      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9339      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9340        lt_cv_prog_compiler_c_o=yes
9341      fi
9342    fi
9343    chmod u+w . 2>&5
9344    $RM conftest*
9345    # SGI C++ compiler will create directory out/ii_files/ for
9346    # template instantiation
9347    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9348    $RM out/* && rmdir out
9349    cd ..
9350    $RM -r conftest
9351    $RM conftest*
9352
9353 fi
9354 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9356
9357
9358
9359
9360 hard_links="nottested"
9361 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9362   # do not overwrite the value of need_locks provided by the user
9363   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9364 $as_echo_n "checking if we can lock with hard links... " >&6; }
9365   hard_links=yes
9366   $RM conftest*
9367   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9368   touch conftest.a
9369   ln conftest.a conftest.b 2>&5 || hard_links=no
9370   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9371   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9372 $as_echo "$hard_links" >&6; }
9373   if test "$hard_links" = no; then
9374     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9376     need_locks=warn
9377   fi
9378 else
9379   need_locks=no
9380 fi
9381
9382
9383
9384
9385
9386
9387   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9389
9390   runpath_var=
9391   allow_undefined_flag=
9392   always_export_symbols=no
9393   archive_cmds=
9394   archive_expsym_cmds=
9395   compiler_needs_object=no
9396   enable_shared_with_static_runtimes=no
9397   export_dynamic_flag_spec=
9398   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9399   hardcode_automatic=no
9400   hardcode_direct=no
9401   hardcode_direct_absolute=no
9402   hardcode_libdir_flag_spec=
9403   hardcode_libdir_flag_spec_ld=
9404   hardcode_libdir_separator=
9405   hardcode_minus_L=no
9406   hardcode_shlibpath_var=unsupported
9407   inherit_rpath=no
9408   link_all_deplibs=unknown
9409   module_cmds=
9410   module_expsym_cmds=
9411   old_archive_from_new_cmds=
9412   old_archive_from_expsyms_cmds=
9413   thread_safe_flag_spec=
9414   whole_archive_flag_spec=
9415   # include_expsyms should be a list of space-separated symbols to be *always*
9416   # included in the symbol list
9417   include_expsyms=
9418   # exclude_expsyms can be an extended regexp of symbols to exclude
9419   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9420   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9421   # as well as any symbol that contains `d'.
9422   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9423   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9424   # platforms (ab)use it in PIC code, but their linkers get confused if
9425   # the symbol is explicitly referenced.  Since portable code cannot
9426   # rely on this symbol name, it's probably fine to never include it in
9427   # preloaded symbol tables.
9428   # Exclude shared library initialization/finalization symbols.
9429   extract_expsyms_cmds=
9430
9431   case $host_os in
9432   cygwin* | mingw* | pw32* | cegcc*)
9433     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9434     # When not using gcc, we currently assume that we are using
9435     # Microsoft Visual C++.
9436     if test "$GCC" != yes; then
9437       with_gnu_ld=no
9438     fi
9439     ;;
9440   interix*)
9441     # we just hope/assume this is gcc and not c89 (= MSVC++)
9442     with_gnu_ld=yes
9443     ;;
9444   openbsd*)
9445     with_gnu_ld=no
9446     ;;
9447   esac
9448
9449   ld_shlibs=yes
9450   if test "$with_gnu_ld" = yes; then
9451     # If archive_cmds runs LD, not CC, wlarc should be empty
9452     wlarc='${wl}'
9453
9454     # Set some defaults for GNU ld with shared library support. These
9455     # are reset later if shared libraries are not supported. Putting them
9456     # here allows them to be overridden if necessary.
9457     runpath_var=LD_RUN_PATH
9458     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459     export_dynamic_flag_spec='${wl}--export-dynamic'
9460     # ancient GNU ld didn't support --whole-archive et. al.
9461     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9462       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9463     else
9464       whole_archive_flag_spec=
9465     fi
9466     supports_anon_versioning=no
9467     case `$LD -v 2>&1` in
9468       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9469       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9470       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9471       *\ 2.11.*) ;; # other 2.11 versions
9472       *) supports_anon_versioning=yes ;;
9473     esac
9474
9475     # See if GNU ld supports shared libraries.
9476     case $host_os in
9477     aix[3-9]*)
9478       # On AIX/PPC, the GNU linker is very broken
9479       if test "$host_cpu" != ia64; then
9480         ld_shlibs=no
9481         cat <<_LT_EOF 1>&2
9482
9483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9484 *** to be unable to reliably create shared libraries on AIX.
9485 *** Therefore, libtool is disabling shared libraries support.  If you
9486 *** really care for shared libraries, you may want to modify your PATH
9487 *** so that a non-GNU linker is found, and then restart.
9488
9489 _LT_EOF
9490       fi
9491       ;;
9492
9493     amigaos*)
9494       case $host_cpu in
9495       powerpc)
9496             # see comment about AmigaOS4 .so support
9497             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498             archive_expsym_cmds=''
9499         ;;
9500       m68k)
9501             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)'
9502             hardcode_libdir_flag_spec='-L$libdir'
9503             hardcode_minus_L=yes
9504         ;;
9505       esac
9506       ;;
9507
9508     beos*)
9509       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9510         allow_undefined_flag=unsupported
9511         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9512         # support --undefined.  This deserves some investigation.  FIXME
9513         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514       else
9515         ld_shlibs=no
9516       fi
9517       ;;
9518
9519     cygwin* | mingw* | pw32* | cegcc*)
9520       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9521       # as there is no search path for DLLs.
9522       hardcode_libdir_flag_spec='-L$libdir'
9523       allow_undefined_flag=unsupported
9524       always_export_symbols=no
9525       enable_shared_with_static_runtimes=yes
9526       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9527
9528       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9529         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9530         # If the export-symbols file already is a .def file (1st line
9531         # is EXPORTS), use it as is; otherwise, prepend...
9532         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9533           cp $export_symbols $output_objdir/$soname.def;
9534         else
9535           echo EXPORTS > $output_objdir/$soname.def;
9536           cat $export_symbols >> $output_objdir/$soname.def;
9537         fi~
9538         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9539       else
9540         ld_shlibs=no
9541       fi
9542       ;;
9543
9544     interix[3-9]*)
9545       hardcode_direct=no
9546       hardcode_shlibpath_var=no
9547       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548       export_dynamic_flag_spec='${wl}-E'
9549       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9550       # Instead, shared libraries are loaded at an image base (0x10000000 by
9551       # default) and relocated if they conflict, which is a slow very memory
9552       # consuming and fragmenting process.  To avoid this, we pick a random,
9553       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9554       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9555       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9556       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'
9557       ;;
9558
9559     gnu* | linux* | tpf* | k*bsd*-gnu)
9560       tmp_diet=no
9561       if test "$host_os" = linux-dietlibc; then
9562         case $cc_basename in
9563           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9564         esac
9565       fi
9566       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9567          && test "$tmp_diet" = no
9568       then
9569         tmp_addflag=
9570         tmp_sharedflag='-shared'
9571         case $cc_basename,$host_cpu in
9572         pgcc*)                          # Portland Group C compiler
9573           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'
9574           tmp_addflag=' $pic_flag'
9575           ;;
9576         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9577           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'
9578           tmp_addflag=' $pic_flag -Mnomain' ;;
9579         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9580           tmp_addflag=' -i_dynamic' ;;
9581         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9582           tmp_addflag=' -i_dynamic -nofor_main' ;;
9583         ifc* | ifort*)                  # Intel Fortran compiler
9584           tmp_addflag=' -nofor_main' ;;
9585         lf95*)                          # Lahey Fortran 8.1
9586           whole_archive_flag_spec=
9587           tmp_sharedflag='--shared' ;;
9588         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9589           tmp_sharedflag='-qmkshrobj'
9590           tmp_addflag= ;;
9591         esac
9592         case `$CC -V 2>&1 | sed 5q` in
9593         *Sun\ C*)                       # Sun C 5.9
9594           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'
9595           compiler_needs_object=yes
9596           tmp_sharedflag='-G' ;;
9597         *Sun\ F*)                       # Sun Fortran 8.3
9598           tmp_sharedflag='-G' ;;
9599         esac
9600         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9601
9602         if test "x$supports_anon_versioning" = xyes; then
9603           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9604             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9605             echo "local: *; };" >> $output_objdir/$libname.ver~
9606             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9607         fi
9608
9609         case $cc_basename in
9610         xlf*)
9611           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9612           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9613           hardcode_libdir_flag_spec=
9614           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9615           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9616           if test "x$supports_anon_versioning" = xyes; then
9617             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9618               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9619               echo "local: *; };" >> $output_objdir/$libname.ver~
9620               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9621           fi
9622           ;;
9623         esac
9624       else
9625         ld_shlibs=no
9626       fi
9627       ;;
9628
9629     netbsd*)
9630       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9631         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9632         wlarc=
9633       else
9634         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9636       fi
9637       ;;
9638
9639     solaris*)
9640       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9641         ld_shlibs=no
9642         cat <<_LT_EOF 1>&2
9643
9644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9645 *** create shared libraries on Solaris systems.  Therefore, libtool
9646 *** is disabling shared libraries support.  We urge you to upgrade GNU
9647 *** binutils to release 2.9.1 or newer.  Another option is to modify
9648 *** your PATH or compiler configuration so that the native linker is
9649 *** used, and then restart.
9650
9651 _LT_EOF
9652       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9655       else
9656         ld_shlibs=no
9657       fi
9658       ;;
9659
9660     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9661       case `$LD -v 2>&1` in
9662         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9663         ld_shlibs=no
9664         cat <<_LT_EOF 1>&2
9665
9666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9667 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9668 *** is disabling shared libraries support.  We urge you to upgrade GNU
9669 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9670 *** your PATH or compiler configuration so that the native linker is
9671 *** used, and then restart.
9672
9673 _LT_EOF
9674         ;;
9675         *)
9676           # For security reasons, it is highly recommended that you always
9677           # use absolute paths for naming shared libraries, and exclude the
9678           # DT_RUNPATH tag from executables and libraries.  But doing so
9679           # requires that you compile everything twice, which is a pain.
9680           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684           else
9685             ld_shlibs=no
9686           fi
9687         ;;
9688       esac
9689       ;;
9690
9691     sunos4*)
9692       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693       wlarc=
9694       hardcode_direct=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     *)
9699       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9702       else
9703         ld_shlibs=no
9704       fi
9705       ;;
9706     esac
9707
9708     if test "$ld_shlibs" = no; then
9709       runpath_var=
9710       hardcode_libdir_flag_spec=
9711       export_dynamic_flag_spec=
9712       whole_archive_flag_spec=
9713     fi
9714   else
9715     # PORTME fill in a description of your system's linker (not GNU ld)
9716     case $host_os in
9717     aix3*)
9718       allow_undefined_flag=unsupported
9719       always_export_symbols=yes
9720       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'
9721       # Note: this linker hardcodes the directories in LIBPATH if there
9722       # are no directories specified by -L.
9723       hardcode_minus_L=yes
9724       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9725         # Neither direct hardcoding nor static linking is supported with a
9726         # broken collect2.
9727         hardcode_direct=unsupported
9728       fi
9729       ;;
9730
9731     aix[4-9]*)
9732       if test "$host_cpu" = ia64; then
9733         # On IA64, the linker does run time linking by default, so we don't
9734         # have to do anything special.
9735         aix_use_runtimelinking=no
9736         exp_sym_flag='-Bexport'
9737         no_entry_flag=""
9738       else
9739         # If we're using GNU nm, then we don't want the "-C" option.
9740         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9741         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9742           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'
9743         else
9744           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'
9745         fi
9746         aix_use_runtimelinking=no
9747
9748         # Test if we are trying to use run time linking or normal
9749         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9750         # need to do runtime linking.
9751         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9752           for ld_flag in $LDFLAGS; do
9753           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9754             aix_use_runtimelinking=yes
9755             break
9756           fi
9757           done
9758           ;;
9759         esac
9760
9761         exp_sym_flag='-bexport'
9762         no_entry_flag='-bnoentry'
9763       fi
9764
9765       # When large executables or shared objects are built, AIX ld can
9766       # have problems creating the table of contents.  If linking a library
9767       # or program results in "error TOC overflow" add -mminimal-toc to
9768       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9769       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9770
9771       archive_cmds=''
9772       hardcode_direct=yes
9773       hardcode_direct_absolute=yes
9774       hardcode_libdir_separator=':'
9775       link_all_deplibs=yes
9776       file_list_spec='${wl}-f,'
9777
9778       if test "$GCC" = yes; then
9779         case $host_os in aix4.[012]|aix4.[012].*)
9780         # We only want to do this on AIX 4.2 and lower, the check
9781         # below for broken collect2 doesn't work under 4.3+
9782           collect2name=`${CC} -print-prog-name=collect2`
9783           if test -f "$collect2name" &&
9784            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9785           then
9786           # We have reworked collect2
9787           :
9788           else
9789           # We have old collect2
9790           hardcode_direct=unsupported
9791           # It fails to find uninstalled libraries when the uninstalled
9792           # path is not listed in the libpath.  Setting hardcode_minus_L
9793           # to unsupported forces relinking
9794           hardcode_minus_L=yes
9795           hardcode_libdir_flag_spec='-L$libdir'
9796           hardcode_libdir_separator=
9797           fi
9798           ;;
9799         esac
9800         shared_flag='-shared'
9801         if test "$aix_use_runtimelinking" = yes; then
9802           shared_flag="$shared_flag "'${wl}-G'
9803         fi
9804       else
9805         # not using gcc
9806         if test "$host_cpu" = ia64; then
9807         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9808         # chokes on -Wl,-G. The following line is correct:
9809           shared_flag='-G'
9810         else
9811           if test "$aix_use_runtimelinking" = yes; then
9812             shared_flag='${wl}-G'
9813           else
9814             shared_flag='${wl}-bM:SRE'
9815           fi
9816         fi
9817       fi
9818
9819       export_dynamic_flag_spec='${wl}-bexpall'
9820       # It seems that -bexpall does not export symbols beginning with
9821       # underscore (_), so it is better to generate a list of symbols to export.
9822       always_export_symbols=yes
9823       if test "$aix_use_runtimelinking" = yes; then
9824         # Warning - without using the other runtime loading flags (-brtl),
9825         # -berok will link without error, but may produce a broken library.
9826         allow_undefined_flag='-berok'
9827         # Determine the default libpath from the value encoded in an
9828         # empty executable.
9829         cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852   (eval "$ac_link") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest$ac_exeext && {
9862          test "$cross_compiling" = yes ||
9863          $as_test_x conftest$ac_exeext
9864        }; then
9865
9866 lt_aix_libpath_sed='
9867     /Import File Strings/,/^$/ {
9868         /^0/ {
9869             s/^0  *\(.*\)$/\1/
9870             p
9871         }
9872     }'
9873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874 # Check for a 64-bit object if we didn't find anything.
9875 if test -z "$aix_libpath"; then
9876   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 fi
9878 else
9879   $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882
9883 fi
9884
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887       conftest$ac_exeext conftest.$ac_ext
9888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9889
9890         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9891         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"
9892       else
9893         if test "$host_cpu" = ia64; then
9894           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9895           allow_undefined_flag="-z nodefs"
9896           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"
9897         else
9898          # Determine the default libpath from the value encoded in an
9899          # empty executable.
9900          cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906
9907 int
9908 main ()
9909 {
9910
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9922 $as_echo "$ac_try_echo") >&5
9923   (eval "$ac_link") 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } && {
9930          test -z "$ac_c_werror_flag" ||
9931          test ! -s conftest.err
9932        } && test -s conftest$ac_exeext && {
9933          test "$cross_compiling" = yes ||
9934          $as_test_x conftest$ac_exeext
9935        }; then
9936
9937 lt_aix_libpath_sed='
9938     /Import File Strings/,/^$/ {
9939         /^0/ {
9940             s/^0  *\(.*\)$/\1/
9941             p
9942         }
9943     }'
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9945 # Check for a 64-bit object if we didn't find anything.
9946 if test -z "$aix_libpath"; then
9947   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9948 fi
9949 else
9950   $as_echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953
9954 fi
9955
9956 rm -rf conftest.dSYM
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958       conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9960
9961          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9962           # Warning - without using the other run time loading flags,
9963           # -berok will link without error, but may produce a broken library.
9964           no_undefined_flag=' ${wl}-bernotok'
9965           allow_undefined_flag=' ${wl}-berok'
9966           # Exported symbols can be pulled into shared objects from archives
9967           whole_archive_flag_spec='$convenience'
9968           archive_cmds_need_lc=yes
9969           # This is similar to how AIX traditionally builds its shared libraries.
9970           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'
9971         fi
9972       fi
9973       ;;
9974
9975     amigaos*)
9976       case $host_cpu in
9977       powerpc)
9978             # see comment about AmigaOS4 .so support
9979             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980             archive_expsym_cmds=''
9981         ;;
9982       m68k)
9983             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)'
9984             hardcode_libdir_flag_spec='-L$libdir'
9985             hardcode_minus_L=yes
9986         ;;
9987       esac
9988       ;;
9989
9990     bsdi[45]*)
9991       export_dynamic_flag_spec=-rdynamic
9992       ;;
9993
9994     cygwin* | mingw* | pw32* | cegcc*)
9995       # When not using gcc, we currently assume that we are using
9996       # Microsoft Visual C++.
9997       # hardcode_libdir_flag_spec is actually meaningless, as there is
9998       # no search path for DLLs.
9999       hardcode_libdir_flag_spec=' '
10000       allow_undefined_flag=unsupported
10001       # Tell ltmain to make .lib files, not .a files.
10002       libext=lib
10003       # Tell ltmain to make .dll files, not .so files.
10004       shrext_cmds=".dll"
10005       # FIXME: Setting linknames here is a bad hack.
10006       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10007       # The linker will automatically build a .lib file if we build a DLL.
10008       old_archive_from_new_cmds='true'
10009       # FIXME: Should let the user specify the lib program.
10010       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10011       fix_srcfile_path='`cygpath -w "$srcfile"`'
10012       enable_shared_with_static_runtimes=yes
10013       ;;
10014
10015     darwin* | rhapsody*)
10016
10017
10018   archive_cmds_need_lc=no
10019   hardcode_direct=no
10020   hardcode_automatic=yes
10021   hardcode_shlibpath_var=unsupported
10022   whole_archive_flag_spec=''
10023   link_all_deplibs=yes
10024   allow_undefined_flag="$_lt_dar_allow_undefined"
10025   case $cc_basename in
10026      ifort*) _lt_dar_can_shared=yes ;;
10027      *) _lt_dar_can_shared=$GCC ;;
10028   esac
10029   if test "$_lt_dar_can_shared" = "yes"; then
10030     output_verbose_link_cmd=echo
10031     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10032     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10033     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}"
10034     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}"
10035
10036   else
10037   ld_shlibs=no
10038   fi
10039
10040       ;;
10041
10042     dgux*)
10043       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044       hardcode_libdir_flag_spec='-L$libdir'
10045       hardcode_shlibpath_var=no
10046       ;;
10047
10048     freebsd1*)
10049       ld_shlibs=no
10050       ;;
10051
10052     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10053     # support.  Future versions do this automatically, but an explicit c++rt0.o
10054     # does not break anything, and helps significantly (at the cost of a little
10055     # extra space).
10056     freebsd2.2*)
10057       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10058       hardcode_libdir_flag_spec='-R$libdir'
10059       hardcode_direct=yes
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10064     freebsd2*)
10065       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10066       hardcode_direct=yes
10067       hardcode_minus_L=yes
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10072     freebsd* | dragonfly*)
10073       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10074       hardcode_libdir_flag_spec='-R$libdir'
10075       hardcode_direct=yes
10076       hardcode_shlibpath_var=no
10077       ;;
10078
10079     hpux9*)
10080       if test "$GCC" = yes; then
10081         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'
10082       else
10083         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'
10084       fi
10085       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10086       hardcode_libdir_separator=:
10087       hardcode_direct=yes
10088
10089       # hardcode_minus_L: Not really in the search PATH,
10090       # but as the default location of the library.
10091       hardcode_minus_L=yes
10092       export_dynamic_flag_spec='${wl}-E'
10093       ;;
10094
10095     hpux10*)
10096       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10097         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10100       fi
10101       if test "$with_gnu_ld" = no; then
10102         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10103         hardcode_libdir_flag_spec_ld='+b $libdir'
10104         hardcode_libdir_separator=:
10105         hardcode_direct=yes
10106         hardcode_direct_absolute=yes
10107         export_dynamic_flag_spec='${wl}-E'
10108         # hardcode_minus_L: Not really in the search PATH,
10109         # but as the default location of the library.
10110         hardcode_minus_L=yes
10111       fi
10112       ;;
10113
10114     hpux11*)
10115       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10116         case $host_cpu in
10117         hppa*64*)
10118           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10119           ;;
10120         ia64*)
10121           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10122           ;;
10123         *)
10124           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10125           ;;
10126         esac
10127       else
10128         case $host_cpu in
10129         hppa*64*)
10130           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10131           ;;
10132         ia64*)
10133           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10134           ;;
10135         *)
10136           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10137           ;;
10138         esac
10139       fi
10140       if test "$with_gnu_ld" = no; then
10141         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10142         hardcode_libdir_separator=:
10143
10144         case $host_cpu in
10145         hppa*64*|ia64*)
10146           hardcode_direct=no
10147           hardcode_shlibpath_var=no
10148           ;;
10149         *)
10150           hardcode_direct=yes
10151           hardcode_direct_absolute=yes
10152           export_dynamic_flag_spec='${wl}-E'
10153
10154           # hardcode_minus_L: Not really in the search PATH,
10155           # but as the default location of the library.
10156           hardcode_minus_L=yes
10157           ;;
10158         esac
10159       fi
10160       ;;
10161
10162     irix5* | irix6* | nonstopux*)
10163       if test "$GCC" = yes; then
10164         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'
10165         # Try to use the -exported_symbol ld option, if it does not
10166         # work, assume that -exports_file does not work either and
10167         # implicitly export all symbols.
10168         save_LDFLAGS="$LDFLAGS"
10169         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10170         cat >conftest.$ac_ext <<_ACEOF
10171 int foo(void) {}
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10180 $as_echo "$ac_try_echo") >&5
10181   (eval "$ac_link") 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } && {
10188          test -z "$ac_c_werror_flag" ||
10189          test ! -s conftest.err
10190        } && test -s conftest$ac_exeext && {
10191          test "$cross_compiling" = yes ||
10192          $as_test_x conftest$ac_exeext
10193        }; then
10194   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'
10195
10196 else
10197   $as_echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200
10201 fi
10202
10203 rm -rf conftest.dSYM
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205       conftest$ac_exeext conftest.$ac_ext
10206         LDFLAGS="$save_LDFLAGS"
10207       else
10208         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'
10209         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'
10210       fi
10211       archive_cmds_need_lc='no'
10212       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10213       hardcode_libdir_separator=:
10214       inherit_rpath=yes
10215       link_all_deplibs=yes
10216       ;;
10217
10218     netbsd*)
10219       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10220         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10221       else
10222         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10223       fi
10224       hardcode_libdir_flag_spec='-R$libdir'
10225       hardcode_direct=yes
10226       hardcode_shlibpath_var=no
10227       ;;
10228
10229     newsos6)
10230       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231       hardcode_direct=yes
10232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233       hardcode_libdir_separator=:
10234       hardcode_shlibpath_var=no
10235       ;;
10236
10237     *nto* | *qnx*)
10238       ;;
10239
10240     openbsd*)
10241       if test -f /usr/libexec/ld.so; then
10242         hardcode_direct=yes
10243         hardcode_shlibpath_var=no
10244         hardcode_direct_absolute=yes
10245         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10246           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10247           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10248           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249           export_dynamic_flag_spec='${wl}-E'
10250         else
10251           case $host_os in
10252            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10253              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10254              hardcode_libdir_flag_spec='-R$libdir'
10255              ;;
10256            *)
10257              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10258              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10259              ;;
10260           esac
10261         fi
10262       else
10263         ld_shlibs=no
10264       fi
10265       ;;
10266
10267     os2*)
10268       hardcode_libdir_flag_spec='-L$libdir'
10269       hardcode_minus_L=yes
10270       allow_undefined_flag=unsupported
10271       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'
10272       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10273       ;;
10274
10275     osf3*)
10276       if test "$GCC" = yes; then
10277         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10278         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'
10279       else
10280         allow_undefined_flag=' -expect_unresolved \*'
10281         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'
10282       fi
10283       archive_cmds_need_lc='no'
10284       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10285       hardcode_libdir_separator=:
10286       ;;
10287
10288     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10289       if test "$GCC" = yes; then
10290         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10291         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'
10292         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293       else
10294         allow_undefined_flag=' -expect_unresolved \*'
10295         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'
10296         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~
10297         $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'
10298
10299         # Both c and cxx compiler support -rpath directly
10300         hardcode_libdir_flag_spec='-rpath $libdir'
10301       fi
10302       archive_cmds_need_lc='no'
10303       hardcode_libdir_separator=:
10304       ;;
10305
10306     solaris*)
10307       no_undefined_flag=' -z defs'
10308       if test "$GCC" = yes; then
10309         wlarc='${wl}'
10310         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10311         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313       else
10314         case `$CC -V 2>&1` in
10315         *"Compilers 5.0"*)
10316           wlarc=''
10317           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10319           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10320           ;;
10321         *)
10322           wlarc='${wl}'
10323           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10324           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10326           ;;
10327         esac
10328       fi
10329       hardcode_libdir_flag_spec='-R$libdir'
10330       hardcode_shlibpath_var=no
10331       case $host_os in
10332       solaris2.[0-5] | solaris2.[0-5].*) ;;
10333       *)
10334         # The compiler driver will combine and reorder linker options,
10335         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10336         # but is careful enough not to reorder.
10337         # Supported since Solaris 2.6 (maybe 2.5.1?)
10338         if test "$GCC" = yes; then
10339           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10340         else
10341           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10342         fi
10343         ;;
10344       esac
10345       link_all_deplibs=yes
10346       ;;
10347
10348     sunos4*)
10349       if test "x$host_vendor" = xsequent; then
10350         # Use $CC to link under sequent, because it throws in some extra .o
10351         # files that make .init and .fini sections work.
10352         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10353       else
10354         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10355       fi
10356       hardcode_libdir_flag_spec='-L$libdir'
10357       hardcode_direct=yes
10358       hardcode_minus_L=yes
10359       hardcode_shlibpath_var=no
10360       ;;
10361
10362     sysv4)
10363       case $host_vendor in
10364         sni)
10365           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366           hardcode_direct=yes # is this really true???
10367         ;;
10368         siemens)
10369           ## LD is ld it makes a PLAMLIB
10370           ## CC just makes a GrossModule.
10371           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10372           reload_cmds='$CC -r -o $output$reload_objs'
10373           hardcode_direct=no
10374         ;;
10375         motorola)
10376           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10378         ;;
10379       esac
10380       runpath_var='LD_RUN_PATH'
10381       hardcode_shlibpath_var=no
10382       ;;
10383
10384     sysv4.3*)
10385       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386       hardcode_shlibpath_var=no
10387       export_dynamic_flag_spec='-Bexport'
10388       ;;
10389
10390     sysv4*MP*)
10391       if test -d /usr/nec; then
10392         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393         hardcode_shlibpath_var=no
10394         runpath_var=LD_RUN_PATH
10395         hardcode_runpath_var=yes
10396         ld_shlibs=yes
10397       fi
10398       ;;
10399
10400     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10401       no_undefined_flag='${wl}-z,text'
10402       archive_cmds_need_lc=no
10403       hardcode_shlibpath_var=no
10404       runpath_var='LD_RUN_PATH'
10405
10406       if test "$GCC" = yes; then
10407         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10408         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10409       else
10410         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412       fi
10413       ;;
10414
10415     sysv5* | sco3.2v5* | sco5v6*)
10416       # Note: We can NOT use -z defs as we might desire, because we do not
10417       # link with -lc, and that would cause any symbols used from libc to
10418       # always be unresolved, which means just about no library would
10419       # ever link correctly.  If we're not using GNU ld we use -z text
10420       # though, which does catch some bad symbols but isn't as heavy-handed
10421       # as -z defs.
10422       no_undefined_flag='${wl}-z,text'
10423       allow_undefined_flag='${wl}-z,nodefs'
10424       archive_cmds_need_lc=no
10425       hardcode_shlibpath_var=no
10426       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10427       hardcode_libdir_separator=':'
10428       link_all_deplibs=yes
10429       export_dynamic_flag_spec='${wl}-Bexport'
10430       runpath_var='LD_RUN_PATH'
10431
10432       if test "$GCC" = yes; then
10433         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10434         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435       else
10436         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10438       fi
10439       ;;
10440
10441     uts4*)
10442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443       hardcode_libdir_flag_spec='-L$libdir'
10444       hardcode_shlibpath_var=no
10445       ;;
10446
10447     *)
10448       ld_shlibs=no
10449       ;;
10450     esac
10451
10452     if test x$host_vendor = xsni; then
10453       case $host in
10454       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10455         export_dynamic_flag_spec='${wl}-Blargedynsym'
10456         ;;
10457       esac
10458     fi
10459   fi
10460
10461 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10462 $as_echo "$ld_shlibs" >&6; }
10463 test "$ld_shlibs" = no && can_build_shared=no
10464
10465 with_gnu_ld=$with_gnu_ld
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481 #
10482 # Do we need to explicitly link libc?
10483 #
10484 case "x$archive_cmds_need_lc" in
10485 x|xyes)
10486   # Assume -lc should be added
10487   archive_cmds_need_lc=yes
10488
10489   if test "$enable_shared" = yes && test "$GCC" = yes; then
10490     case $archive_cmds in
10491     *'~'*)
10492       # FIXME: we may have to deal with multi-command sequences.
10493       ;;
10494     '$CC '*)
10495       # Test whether the compiler implicitly links with -lc since on some
10496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10497       # to ld, don't add -lc before -lgcc.
10498       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10500       $RM conftest*
10501       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10502
10503       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504   (eval $ac_compile) 2>&5
10505   ac_status=$?
10506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } 2>conftest.err; then
10508         soname=conftest
10509         lib=conftest
10510         libobjs=conftest.$ac_objext
10511         deplibs=
10512         wl=$lt_prog_compiler_wl
10513         pic_flag=$lt_prog_compiler_pic
10514         compiler_flags=-v
10515         linker_flags=-v
10516         verstring=
10517         output_objdir=.
10518         libname=conftest
10519         lt_save_allow_undefined_flag=$allow_undefined_flag
10520         allow_undefined_flag=
10521         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10522   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10523   ac_status=$?
10524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }
10526         then
10527           archive_cmds_need_lc=no
10528         else
10529           archive_cmds_need_lc=yes
10530         fi
10531         allow_undefined_flag=$lt_save_allow_undefined_flag
10532       else
10533         cat conftest.err 1>&5
10534       fi
10535       $RM conftest*
10536       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10537 $as_echo "$archive_cmds_need_lc" >&6; }
10538       ;;
10539     esac
10540   fi
10541   ;;
10542 esac
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10701 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10702
10703 if test "$GCC" = yes; then
10704   case $host_os in
10705     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10706     *) lt_awk_arg="/^libraries:/" ;;
10707   esac
10708   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10709   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10710     # if the path contains ";" then we assume it to be the separator
10711     # otherwise default to the standard path separator (i.e. ":") - it is
10712     # assumed that no part of a normal pathname contains ";" but that should
10713     # okay in the real world where ";" in dirpaths is itself problematic.
10714     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10715   else
10716     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10717   fi
10718   # Ok, now we have the path, separated by spaces, we can step through it
10719   # and add multilib dir if necessary.
10720   lt_tmp_lt_search_path_spec=
10721   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10722   for lt_sys_path in $lt_search_path_spec; do
10723     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10724       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10725     else
10726       test -d "$lt_sys_path" && \
10727         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10728     fi
10729   done
10730   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10731 BEGIN {RS=" "; FS="/|\n";} {
10732   lt_foo="";
10733   lt_count=0;
10734   for (lt_i = NF; lt_i > 0; lt_i--) {
10735     if ($lt_i != "" && $lt_i != ".") {
10736       if ($lt_i == "..") {
10737         lt_count++;
10738       } else {
10739         if (lt_count == 0) {
10740           lt_foo="/" $lt_i lt_foo;
10741         } else {
10742           lt_count--;
10743         }
10744       }
10745     }
10746   }
10747   if (lt_foo != "") { lt_freq[lt_foo]++; }
10748   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10749 }'`
10750   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10751 else
10752   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10753 fi
10754 library_names_spec=
10755 libname_spec='lib$name'
10756 soname_spec=
10757 shrext_cmds=".so"
10758 postinstall_cmds=
10759 postuninstall_cmds=
10760 finish_cmds=
10761 finish_eval=
10762 shlibpath_var=
10763 shlibpath_overrides_runpath=unknown
10764 version_type=none
10765 dynamic_linker="$host_os ld.so"
10766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10767 need_lib_prefix=unknown
10768 hardcode_into_libs=no
10769
10770 # when you set need_version to no, make sure it does not cause -set_version
10771 # flags to be left without arguments
10772 need_version=unknown
10773
10774 case $host_os in
10775 aix3*)
10776   version_type=linux
10777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10778   shlibpath_var=LIBPATH
10779
10780   # AIX 3 has no versioning support, so we append a major version to the name.
10781   soname_spec='${libname}${release}${shared_ext}$major'
10782   ;;
10783
10784 aix[4-9]*)
10785   version_type=linux
10786   need_lib_prefix=no
10787   need_version=no
10788   hardcode_into_libs=yes
10789   if test "$host_cpu" = ia64; then
10790     # AIX 5 supports IA64
10791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10792     shlibpath_var=LD_LIBRARY_PATH
10793   else
10794     # With GCC up to 2.95.x, collect2 would create an import file
10795     # for dependence libraries.  The import file would start with
10796     # the line `#! .'.  This would cause the generated library to
10797     # depend on `.', always an invalid library.  This was fixed in
10798     # development snapshots of GCC prior to 3.0.
10799     case $host_os in
10800       aix4 | aix4.[01] | aix4.[01].*)
10801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10802            echo ' yes '
10803            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10804         :
10805       else
10806         can_build_shared=no
10807       fi
10808       ;;
10809     esac
10810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10811     # soname into executable. Probably we can add versioning support to
10812     # collect2, so additional links can be useful in future.
10813     if test "$aix_use_runtimelinking" = yes; then
10814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10815       # instead of lib<name>.a to let people know that these are not
10816       # typical AIX shared libraries.
10817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818     else
10819       # We preserve .a as extension for shared libraries through AIX4.2
10820       # and later when we are not doing run time linking.
10821       library_names_spec='${libname}${release}.a $libname.a'
10822       soname_spec='${libname}${release}${shared_ext}$major'
10823     fi
10824     shlibpath_var=LIBPATH
10825   fi
10826   ;;
10827
10828 amigaos*)
10829   case $host_cpu in
10830   powerpc)
10831     # Since July 2007 AmigaOS4 officially supports .so libraries.
10832     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834     ;;
10835   m68k)
10836     library_names_spec='$libname.ixlibrary $libname.a'
10837     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10838     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'
10839     ;;
10840   esac
10841   ;;
10842
10843 beos*)
10844   library_names_spec='${libname}${shared_ext}'
10845   dynamic_linker="$host_os ld.so"
10846   shlibpath_var=LIBRARY_PATH
10847   ;;
10848
10849 bsdi[45]*)
10850   version_type=linux
10851   need_version=no
10852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853   soname_spec='${libname}${release}${shared_ext}$major'
10854   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10857   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10858   # the default ld.so.conf also contains /usr/contrib/lib and
10859   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10860   # libtool to hard-code these into programs
10861   ;;
10862
10863 cygwin* | mingw* | pw32* | cegcc*)
10864   version_type=windows
10865   shrext_cmds=".dll"
10866   need_version=no
10867   need_lib_prefix=no
10868
10869   case $GCC,$host_os in
10870   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10871     library_names_spec='$libname.dll.a'
10872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873     postinstall_cmds='base_file=`basename \${file}`~
10874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875       dldir=$destdir/`dirname \$dlpath`~
10876       test -d \$dldir || mkdir -p \$dldir~
10877       $install_prog $dir/$dlname \$dldir/$dlname~
10878       chmod a+x \$dldir/$dlname~
10879       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881       fi'
10882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883       dlpath=$dir/\$dldll~
10884        $RM \$dlpath'
10885     shlibpath_overrides_runpath=yes
10886
10887     case $host_os in
10888     cygwin*)
10889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10892       ;;
10893     mingw* | cegcc*)
10894       # MinGW DLLs use traditional 'lib' prefix
10895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10897       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10898         # It is most probably a Windows format PATH printed by
10899         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10900         # path with ; separators, and with drive letters. We can handle the
10901         # drive letters (cygwin fileutils understands them), so leave them,
10902         # especially as we might pass files found there to a mingw objdump,
10903         # which wouldn't understand a cygwinified path. Ahh.
10904         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10905       else
10906         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10907       fi
10908       ;;
10909     pw32*)
10910       # pw32 DLLs use 'pw' prefix rather than 'lib'
10911       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10912       ;;
10913     esac
10914     ;;
10915
10916   *)
10917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10918     ;;
10919   esac
10920   dynamic_linker='Win32 ld.exe'
10921   # FIXME: first we should search . and the directory the executable is in
10922   shlibpath_var=PATH
10923   ;;
10924
10925 darwin* | rhapsody*)
10926   dynamic_linker="$host_os dyld"
10927   version_type=darwin
10928   need_lib_prefix=no
10929   need_version=no
10930   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10931   soname_spec='${libname}${release}${major}$shared_ext'
10932   shlibpath_overrides_runpath=yes
10933   shlibpath_var=DYLD_LIBRARY_PATH
10934   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10935
10936   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10937   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10938   ;;
10939
10940 dgux*)
10941   version_type=linux
10942   need_lib_prefix=no
10943   need_version=no
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10945   soname_spec='${libname}${release}${shared_ext}$major'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   ;;
10948
10949 freebsd1*)
10950   dynamic_linker=no
10951   ;;
10952
10953 freebsd* | dragonfly*)
10954   # DragonFly does not have aout.  When/if they implement a new
10955   # versioning mechanism, adjust this.
10956   if test -x /usr/bin/objformat; then
10957     objformat=`/usr/bin/objformat`
10958   else
10959     case $host_os in
10960     freebsd[123]*) objformat=aout ;;
10961     *) objformat=elf ;;
10962     esac
10963   fi
10964   version_type=freebsd-$objformat
10965   case $version_type in
10966     freebsd-elf*)
10967       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10968       need_version=no
10969       need_lib_prefix=no
10970       ;;
10971     freebsd-*)
10972       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10973       need_version=yes
10974       ;;
10975   esac
10976   shlibpath_var=LD_LIBRARY_PATH
10977   case $host_os in
10978   freebsd2*)
10979     shlibpath_overrides_runpath=yes
10980     ;;
10981   freebsd3.[01]* | freebsdelf3.[01]*)
10982     shlibpath_overrides_runpath=yes
10983     hardcode_into_libs=yes
10984     ;;
10985   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10986   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10987     shlibpath_overrides_runpath=no
10988     hardcode_into_libs=yes
10989     ;;
10990   *) # from 4.6 on, and DragonFly
10991     shlibpath_overrides_runpath=yes
10992     hardcode_into_libs=yes
10993     ;;
10994   esac
10995   ;;
10996
10997 gnu*)
10998   version_type=linux
10999   need_lib_prefix=no
11000   need_version=no
11001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11002   soname_spec='${libname}${release}${shared_ext}$major'
11003   shlibpath_var=LD_LIBRARY_PATH
11004   hardcode_into_libs=yes
11005   ;;
11006
11007 hpux9* | hpux10* | hpux11*)
11008   # Give a soname corresponding to the major version so that dld.sl refuses to
11009   # link against other versions.
11010   version_type=sunos
11011   need_lib_prefix=no
11012   need_version=no
11013   case $host_cpu in
11014   ia64*)
11015     shrext_cmds='.so'
11016     hardcode_into_libs=yes
11017     dynamic_linker="$host_os dld.so"
11018     shlibpath_var=LD_LIBRARY_PATH
11019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021     soname_spec='${libname}${release}${shared_ext}$major'
11022     if test "X$HPUX_IA64_MODE" = X32; then
11023       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11024     else
11025       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11026     fi
11027     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11028     ;;
11029   hppa*64*)
11030     shrext_cmds='.sl'
11031     hardcode_into_libs=yes
11032     dynamic_linker="$host_os dld.sl"
11033     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11034     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036     soname_spec='${libname}${release}${shared_ext}$major'
11037     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11039     ;;
11040   *)
11041     shrext_cmds='.sl'
11042     dynamic_linker="$host_os dld.sl"
11043     shlibpath_var=SHLIB_PATH
11044     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046     soname_spec='${libname}${release}${shared_ext}$major'
11047     ;;
11048   esac
11049   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11050   postinstall_cmds='chmod 555 $lib'
11051   ;;
11052
11053 interix[3-9]*)
11054   version_type=linux
11055   need_lib_prefix=no
11056   need_version=no
11057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11058   soname_spec='${libname}${release}${shared_ext}$major'
11059   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11060   shlibpath_var=LD_LIBRARY_PATH
11061   shlibpath_overrides_runpath=no
11062   hardcode_into_libs=yes
11063   ;;
11064
11065 irix5* | irix6* | nonstopux*)
11066   case $host_os in
11067     nonstopux*) version_type=nonstopux ;;
11068     *)
11069         if test "$lt_cv_prog_gnu_ld" = yes; then
11070                 version_type=linux
11071         else
11072                 version_type=irix
11073         fi ;;
11074   esac
11075   need_lib_prefix=no
11076   need_version=no
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11079   case $host_os in
11080   irix5* | nonstopux*)
11081     libsuff= shlibsuff=
11082     ;;
11083   *)
11084     case $LD in # libtool.m4 will add one of these switches to LD
11085     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11086       libsuff= shlibsuff= libmagic=32-bit;;
11087     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11088       libsuff=32 shlibsuff=N32 libmagic=N32;;
11089     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11090       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11091     *) libsuff= shlibsuff= libmagic=never-match;;
11092     esac
11093     ;;
11094   esac
11095   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11096   shlibpath_overrides_runpath=no
11097   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11098   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11099   hardcode_into_libs=yes
11100   ;;
11101
11102 # No shared lib support for Linux oldld, aout, or coff.
11103 linux*oldld* | linux*aout* | linux*coff*)
11104   dynamic_linker=no
11105   ;;
11106
11107 # This must be Linux ELF.
11108 linux* | k*bsd*-gnu)
11109   version_type=linux
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113   soname_spec='${libname}${release}${shared_ext}$major'
11114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   shlibpath_overrides_runpath=no
11117   # Some binutils ld are patched to set DT_RUNPATH
11118   save_LDFLAGS=$LDFLAGS
11119   save_libdir=$libdir
11120   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11121        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11122   cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128
11129 int
11130 main ()
11131 {
11132
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (ac_try="$ac_link"
11139 case "(($ac_try" in
11140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141   *) ac_try_echo=$ac_try;;
11142 esac
11143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11144 $as_echo "$ac_try_echo") >&5
11145   (eval "$ac_link") 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } && {
11152          test -z "$ac_c_werror_flag" ||
11153          test ! -s conftest.err
11154        } && test -s conftest$ac_exeext && {
11155          test "$cross_compiling" = yes ||
11156          $as_test_x conftest$ac_exeext
11157        }; then
11158   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11159   shlibpath_overrides_runpath=yes
11160 fi
11161
11162 else
11163   $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166
11167 fi
11168
11169 rm -rf conftest.dSYM
11170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11171       conftest$ac_exeext conftest.$ac_ext
11172   LDFLAGS=$save_LDFLAGS
11173   libdir=$save_libdir
11174
11175   # This implies no fast_install, which is unacceptable.
11176   # Some rework will be needed to allow for fast_install
11177   # before this can be enabled.
11178   hardcode_into_libs=yes
11179
11180   # Add ABI-specific directories to the system library path.
11181   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11182
11183   # Append ld.so.conf contents to the search path
11184   if test -f /etc/ld.so.conf; then
11185     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' ' '`
11186     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11187   fi
11188
11189   # We used to test for /lib/ld.so.1 and disable shared libraries on
11190   # powerpc, because MkLinux only supported shared libraries with the
11191   # GNU dynamic linker.  Since this was broken with cross compilers,
11192   # most powerpc-linux boxes support dynamic linking these days and
11193   # people can always --disable-shared, the test was removed, and we
11194   # assume the GNU/Linux dynamic linker is in use.
11195   dynamic_linker='GNU/Linux ld.so'
11196   ;;
11197
11198 netbsd*)
11199   version_type=sunos
11200   need_lib_prefix=no
11201   need_version=no
11202   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11205     dynamic_linker='NetBSD (a.out) ld.so'
11206   else
11207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11208     soname_spec='${libname}${release}${shared_ext}$major'
11209     dynamic_linker='NetBSD ld.elf_so'
11210   fi
11211   shlibpath_var=LD_LIBRARY_PATH
11212   shlibpath_overrides_runpath=yes
11213   hardcode_into_libs=yes
11214   ;;
11215
11216 newsos6)
11217   version_type=linux
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=yes
11221   ;;
11222
11223 *nto* | *qnx*)
11224   version_type=qnx
11225   need_lib_prefix=no
11226   need_version=no
11227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228   soname_spec='${libname}${release}${shared_ext}$major'
11229   shlibpath_var=LD_LIBRARY_PATH
11230   shlibpath_overrides_runpath=no
11231   hardcode_into_libs=yes
11232   dynamic_linker='ldqnx.so'
11233   ;;
11234
11235 openbsd*)
11236   version_type=sunos
11237   sys_lib_dlsearch_path_spec="/usr/lib"
11238   need_lib_prefix=no
11239   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11240   case $host_os in
11241     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11242     *)                          need_version=no  ;;
11243   esac
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11245   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11246   shlibpath_var=LD_LIBRARY_PATH
11247   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11248     case $host_os in
11249       openbsd2.[89] | openbsd2.[89].*)
11250         shlibpath_overrides_runpath=no
11251         ;;
11252       *)
11253         shlibpath_overrides_runpath=yes
11254         ;;
11255       esac
11256   else
11257     shlibpath_overrides_runpath=yes
11258   fi
11259   ;;
11260
11261 os2*)
11262   libname_spec='$name'
11263   shrext_cmds=".dll"
11264   need_lib_prefix=no
11265   library_names_spec='$libname${shared_ext} $libname.a'
11266   dynamic_linker='OS/2 ld.exe'
11267   shlibpath_var=LIBPATH
11268   ;;
11269
11270 osf3* | osf4* | osf5*)
11271   version_type=osf
11272   need_lib_prefix=no
11273   need_version=no
11274   soname_spec='${libname}${release}${shared_ext}$major'
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11278   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11279   ;;
11280
11281 rdos*)
11282   dynamic_linker=no
11283   ;;
11284
11285 solaris*)
11286   version_type=linux
11287   need_lib_prefix=no
11288   need_version=no
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290   soname_spec='${libname}${release}${shared_ext}$major'
11291   shlibpath_var=LD_LIBRARY_PATH
11292   shlibpath_overrides_runpath=yes
11293   hardcode_into_libs=yes
11294   # ldd complains unless libraries are executable
11295   postinstall_cmds='chmod +x $lib'
11296   ;;
11297
11298 sunos4*)
11299   version_type=sunos
11300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11301   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11302   shlibpath_var=LD_LIBRARY_PATH
11303   shlibpath_overrides_runpath=yes
11304   if test "$with_gnu_ld" = yes; then
11305     need_lib_prefix=no
11306   fi
11307   need_version=yes
11308   ;;
11309
11310 sysv4 | sysv4.3*)
11311   version_type=linux
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313   soname_spec='${libname}${release}${shared_ext}$major'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   case $host_vendor in
11316     sni)
11317       shlibpath_overrides_runpath=no
11318       need_lib_prefix=no
11319       runpath_var=LD_RUN_PATH
11320       ;;
11321     siemens)
11322       need_lib_prefix=no
11323       ;;
11324     motorola)
11325       need_lib_prefix=no
11326       need_version=no
11327       shlibpath_overrides_runpath=no
11328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11329       ;;
11330   esac
11331   ;;
11332
11333 sysv4*MP*)
11334   if test -d /usr/nec ;then
11335     version_type=linux
11336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11337     soname_spec='$libname${shared_ext}.$major'
11338     shlibpath_var=LD_LIBRARY_PATH
11339   fi
11340   ;;
11341
11342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11343   version_type=freebsd-elf
11344   need_lib_prefix=no
11345   need_version=no
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=yes
11350   hardcode_into_libs=yes
11351   if test "$with_gnu_ld" = yes; then
11352     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11353   else
11354     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11355     case $host_os in
11356       sco3.2v5*)
11357         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11358         ;;
11359     esac
11360   fi
11361   sys_lib_dlsearch_path_spec='/usr/lib'
11362   ;;
11363
11364 tpf*)
11365   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11366   version_type=linux
11367   need_lib_prefix=no
11368   need_version=no
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370   shlibpath_var=LD_LIBRARY_PATH
11371   shlibpath_overrides_runpath=no
11372   hardcode_into_libs=yes
11373   ;;
11374
11375 uts4*)
11376   version_type=linux
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   ;;
11381
11382 *)
11383   dynamic_linker=no
11384   ;;
11385 esac
11386 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11387 $as_echo "$dynamic_linker" >&6; }
11388 test "$dynamic_linker" = no && can_build_shared=no
11389
11390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11391 if test "$GCC" = yes; then
11392   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11393 fi
11394
11395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11396   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11397 fi
11398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11399   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11400 fi
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11490 hardcode_action=
11491 if test -n "$hardcode_libdir_flag_spec" ||
11492    test -n "$runpath_var" ||
11493    test "X$hardcode_automatic" = "Xyes" ; then
11494
11495   # We can hardcode non-existent directories.
11496   if test "$hardcode_direct" != no &&
11497      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11498      # have to relink, otherwise we might link with an installed library
11499      # when we should be linking with a yet-to-be-installed one
11500      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11501      test "$hardcode_minus_L" != no; then
11502     # Linking always hardcodes the temporary library directory.
11503     hardcode_action=relink
11504   else
11505     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11506     hardcode_action=immediate
11507   fi
11508 else
11509   # We cannot hardcode anything, or else we can only hardcode existing
11510   # directories.
11511   hardcode_action=unsupported
11512 fi
11513 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11514 $as_echo "$hardcode_action" >&6; }
11515
11516 if test "$hardcode_action" = relink ||
11517    test "$inherit_rpath" = yes; then
11518   # Fast installation is not supported
11519   enable_fast_install=no
11520 elif test "$shlibpath_overrides_runpath" = yes ||
11521      test "$enable_shared" = no; then
11522   # Fast installation is not necessary
11523   enable_fast_install=needless
11524 fi
11525
11526
11527
11528
11529
11530
11531   if test "x$enable_dlopen" != xyes; then
11532   enable_dlopen=unknown
11533   enable_dlopen_self=unknown
11534   enable_dlopen_self_static=unknown
11535 else
11536   lt_cv_dlopen=no
11537   lt_cv_dlopen_libs=
11538
11539   case $host_os in
11540   beos*)
11541     lt_cv_dlopen="load_add_on"
11542     lt_cv_dlopen_libs=
11543     lt_cv_dlopen_self=yes
11544     ;;
11545
11546   mingw* | pw32* | cegcc*)
11547     lt_cv_dlopen="LoadLibrary"
11548     lt_cv_dlopen_libs=
11549     ;;
11550
11551   cygwin*)
11552     lt_cv_dlopen="dlopen"
11553     lt_cv_dlopen_libs=
11554     ;;
11555
11556   darwin*)
11557   # if libdl is installed we need to link against it
11558     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11561   $as_echo_n "(cached) " >&6
11562 else
11563   ac_check_lib_save_LIBS=$LIBS
11564 LIBS="-ldl  $LIBS"
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573    Use char because int might match the return type of a GCC
11574    builtin and then its argument prototype would still apply.  */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char dlopen ();
11579 int
11580 main ()
11581 {
11582 return dlopen ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (ac_try="$ac_link"
11589 case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595   (eval "$ac_link") 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } && {
11602          test -z "$ac_c_werror_flag" ||
11603          test ! -s conftest.err
11604        } && test -s conftest$ac_exeext && {
11605          test "$cross_compiling" = yes ||
11606          $as_test_x conftest$ac_exeext
11607        }; then
11608   ac_cv_lib_dl_dlopen=yes
11609 else
11610   $as_echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11612
11613         ac_cv_lib_dl_dlopen=no
11614 fi
11615
11616 rm -rf conftest.dSYM
11617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11618       conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11620 fi
11621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11624   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11625 else
11626
11627     lt_cv_dlopen="dyld"
11628     lt_cv_dlopen_libs=
11629     lt_cv_dlopen_self=yes
11630
11631 fi
11632
11633     ;;
11634
11635   *)
11636     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11637 $as_echo_n "checking for shl_load... " >&6; }
11638 if test "${ac_cv_func_shl_load+set}" = set; then
11639   $as_echo_n "(cached) " >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define shl_load innocuous_shl_load
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char shl_load (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef shl_load
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char shl_load ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_shl_load || defined __stub___shl_load
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return shl_load ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693 $as_echo "$ac_try_echo") >&5
11694   (eval "$ac_link") 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } && {
11701          test -z "$ac_c_werror_flag" ||
11702          test ! -s conftest.err
11703        } && test -s conftest$ac_exeext && {
11704          test "$cross_compiling" = yes ||
11705          $as_test_x conftest$ac_exeext
11706        }; then
11707   ac_cv_func_shl_load=yes
11708 else
11709   $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712         ac_cv_func_shl_load=no
11713 fi
11714
11715 rm -rf conftest.dSYM
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717       conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11720 $as_echo "$ac_cv_func_shl_load" >&6; }
11721 if test "x$ac_cv_func_shl_load" = x""yes; then
11722   lt_cv_dlopen="shl_load"
11723 else
11724   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11725 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11727   $as_echo_n "(cached) " >&6
11728 else
11729   ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-ldld  $LIBS"
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739    Use char because int might match the return type of a GCC
11740    builtin and then its argument prototype would still apply.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char shl_load ();
11745 int
11746 main ()
11747 {
11748 return shl_load ();
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (ac_try="$ac_link"
11755 case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11760 $as_echo "$ac_try_echo") >&5
11761   (eval "$ac_link") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } && {
11768          test -z "$ac_c_werror_flag" ||
11769          test ! -s conftest.err
11770        } && test -s conftest$ac_exeext && {
11771          test "$cross_compiling" = yes ||
11772          $as_test_x conftest$ac_exeext
11773        }; then
11774   ac_cv_lib_dld_shl_load=yes
11775 else
11776   $as_echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779         ac_cv_lib_dld_shl_load=no
11780 fi
11781
11782 rm -rf conftest.dSYM
11783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11784       conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11789 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11790   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11791 else
11792   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11793 $as_echo_n "checking for dlopen... " >&6; }
11794 if test "${ac_cv_func_dlopen+set}" = set; then
11795   $as_echo_n "(cached) " >&6
11796 else
11797   cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11805 #define dlopen innocuous_dlopen
11806
11807 /* System header to define __stub macros and hopefully few prototypes,
11808     which can conflict with char dlopen (); below.
11809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810     <limits.h> exists even on freestanding compilers.  */
11811
11812 #ifdef __STDC__
11813 # include <limits.h>
11814 #else
11815 # include <assert.h>
11816 #endif
11817
11818 #undef dlopen
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821    Use char because int might match the return type of a GCC
11822    builtin and then its argument prototype would still apply.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char dlopen ();
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined __stub_dlopen || defined __stub___dlopen
11831 choke me
11832 #endif
11833
11834 int
11835 main ()
11836 {
11837 return dlopen ();
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850   (eval "$ac_link") 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } && {
11857          test -z "$ac_c_werror_flag" ||
11858          test ! -s conftest.err
11859        } && test -s conftest$ac_exeext && {
11860          test "$cross_compiling" = yes ||
11861          $as_test_x conftest$ac_exeext
11862        }; then
11863   ac_cv_func_dlopen=yes
11864 else
11865   $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868         ac_cv_func_dlopen=no
11869 fi
11870
11871 rm -rf conftest.dSYM
11872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873       conftest$ac_exeext conftest.$ac_ext
11874 fi
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11876 $as_echo "$ac_cv_func_dlopen" >&6; }
11877 if test "x$ac_cv_func_dlopen" = x""yes; then
11878   lt_cv_dlopen="dlopen"
11879 else
11880   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11883   $as_echo_n "(cached) " >&6
11884 else
11885   ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ldl  $LIBS"
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893
11894 /* Override any GCC internal prototype to avoid an error.
11895    Use char because int might match the return type of a GCC
11896    builtin and then its argument prototype would still apply.  */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char dlopen ();
11901 int
11902 main ()
11903 {
11904 return dlopen ();
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917   (eval "$ac_link") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } && {
11924          test -z "$ac_c_werror_flag" ||
11925          test ! -s conftest.err
11926        } && test -s conftest$ac_exeext && {
11927          test "$cross_compiling" = yes ||
11928          $as_test_x conftest$ac_exeext
11929        }; then
11930   ac_cv_lib_dl_dlopen=yes
11931 else
11932   $as_echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935         ac_cv_lib_dl_dlopen=no
11936 fi
11937
11938 rm -rf conftest.dSYM
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940       conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11944 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11945 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11947 else
11948   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11949 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11951   $as_echo_n "(cached) " >&6
11952 else
11953   ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lsvld  $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963    Use char because int might match the return type of a GCC
11964    builtin and then its argument prototype would still apply.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char dlopen ();
11969 int
11970 main ()
11971 {
11972 return dlopen ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11984 $as_echo "$ac_try_echo") >&5
11985   (eval "$ac_link") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } && {
11992          test -z "$ac_c_werror_flag" ||
11993          test ! -s conftest.err
11994        } && test -s conftest$ac_exeext && {
11995          test "$cross_compiling" = yes ||
11996          $as_test_x conftest$ac_exeext
11997        }; then
11998   ac_cv_lib_svld_dlopen=yes
11999 else
12000   $as_echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003         ac_cv_lib_svld_dlopen=no
12004 fi
12005
12006 rm -rf conftest.dSYM
12007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12008       conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12010 fi
12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12015 else
12016   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12019   $as_echo_n "(cached) " >&6
12020 else
12021   ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-ldld  $LIBS"
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029
12030 /* Override any GCC internal prototype to avoid an error.
12031    Use char because int might match the return type of a GCC
12032    builtin and then its argument prototype would still apply.  */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char dld_link ();
12037 int
12038 main ()
12039 {
12040 return dld_link ();
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053   (eval "$ac_link") 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } && {
12060          test -z "$ac_c_werror_flag" ||
12061          test ! -s conftest.err
12062        } && test -s conftest$ac_exeext && {
12063          test "$cross_compiling" = yes ||
12064          $as_test_x conftest$ac_exeext
12065        }; then
12066   ac_cv_lib_dld_dld_link=yes
12067 else
12068   $as_echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071         ac_cv_lib_dld_dld_link=no
12072 fi
12073
12074 rm -rf conftest.dSYM
12075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076       conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12078 fi
12079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12081 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12082   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12083 fi
12084
12085
12086 fi
12087
12088
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100     ;;
12101   esac
12102
12103   if test "x$lt_cv_dlopen" != xno; then
12104     enable_dlopen=yes
12105   else
12106     enable_dlopen=no
12107   fi
12108
12109   case $lt_cv_dlopen in
12110   dlopen)
12111     save_CPPFLAGS="$CPPFLAGS"
12112     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113
12114     save_LDFLAGS="$LDFLAGS"
12115     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116
12117     save_LIBS="$LIBS"
12118     LIBS="$lt_cv_dlopen_libs $LIBS"
12119
12120     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12122 if test "${lt_cv_dlopen_self+set}" = set; then
12123   $as_echo_n "(cached) " >&6
12124 else
12125           if test "$cross_compiling" = yes; then :
12126   lt_cv_dlopen_self=cross
12127 else
12128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129   lt_status=$lt_dlunknown
12130   cat > conftest.$ac_ext <<_LT_EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12133
12134 #if HAVE_DLFCN_H
12135 #include <dlfcn.h>
12136 #endif
12137
12138 #include <stdio.h>
12139
12140 #ifdef RTLD_GLOBAL
12141 #  define LT_DLGLOBAL           RTLD_GLOBAL
12142 #else
12143 #  ifdef DL_GLOBAL
12144 #    define LT_DLGLOBAL         DL_GLOBAL
12145 #  else
12146 #    define LT_DLGLOBAL         0
12147 #  endif
12148 #endif
12149
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151    find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12153 #  ifdef RTLD_LAZY
12154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12155 #  else
12156 #    ifdef DL_LAZY
12157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12158 #    else
12159 #      ifdef RTLD_NOW
12160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12161 #      else
12162 #        ifdef DL_NOW
12163 #          define LT_DLLAZY_OR_NOW      DL_NOW
12164 #        else
12165 #          define LT_DLLAZY_OR_NOW      0
12166 #        endif
12167 #      endif
12168 #    endif
12169 #  endif
12170 #endif
12171
12172 void fnord() { int i=42;}
12173 int main ()
12174 {
12175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12176   int status = $lt_dlunknown;
12177
12178   if (self)
12179     {
12180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12182       /* dlclose (self); */
12183     }
12184   else
12185     puts (dlerror ());
12186
12187   return status;
12188 }
12189 _LT_EOF
12190   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191   (eval $ac_link) 2>&5
12192   ac_status=$?
12193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12195     (./conftest; exit; ) >&5 2>/dev/null
12196     lt_status=$?
12197     case x$lt_status in
12198       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12199       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12200       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12201     esac
12202   else :
12203     # compilation failed
12204     lt_cv_dlopen_self=no
12205   fi
12206 fi
12207 rm -fr conftest*
12208
12209
12210 fi
12211 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12212 $as_echo "$lt_cv_dlopen_self" >&6; }
12213
12214     if test "x$lt_cv_dlopen_self" = xyes; then
12215       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12216       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12218 if test "${lt_cv_dlopen_self_static+set}" = set; then
12219   $as_echo_n "(cached) " >&6
12220 else
12221           if test "$cross_compiling" = yes; then :
12222   lt_cv_dlopen_self_static=cross
12223 else
12224   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12225   lt_status=$lt_dlunknown
12226   cat > conftest.$ac_ext <<_LT_EOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229
12230 #if HAVE_DLFCN_H
12231 #include <dlfcn.h>
12232 #endif
12233
12234 #include <stdio.h>
12235
12236 #ifdef RTLD_GLOBAL
12237 #  define LT_DLGLOBAL           RTLD_GLOBAL
12238 #else
12239 #  ifdef DL_GLOBAL
12240 #    define LT_DLGLOBAL         DL_GLOBAL
12241 #  else
12242 #    define LT_DLGLOBAL         0
12243 #  endif
12244 #endif
12245
12246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12247    find out it does not work in some platform. */
12248 #ifndef LT_DLLAZY_OR_NOW
12249 #  ifdef RTLD_LAZY
12250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12251 #  else
12252 #    ifdef DL_LAZY
12253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12254 #    else
12255 #      ifdef RTLD_NOW
12256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12257 #      else
12258 #        ifdef DL_NOW
12259 #          define LT_DLLAZY_OR_NOW      DL_NOW
12260 #        else
12261 #          define LT_DLLAZY_OR_NOW      0
12262 #        endif
12263 #      endif
12264 #    endif
12265 #  endif
12266 #endif
12267
12268 void fnord() { int i=42;}
12269 int main ()
12270 {
12271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272   int status = $lt_dlunknown;
12273
12274   if (self)
12275     {
12276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278       /* dlclose (self); */
12279     }
12280   else
12281     puts (dlerror ());
12282
12283   return status;
12284 }
12285 _LT_EOF
12286   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287   (eval $ac_link) 2>&5
12288   ac_status=$?
12289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12291     (./conftest; exit; ) >&5 2>/dev/null
12292     lt_status=$?
12293     case x$lt_status in
12294       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12295       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12296       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12297     esac
12298   else :
12299     # compilation failed
12300     lt_cv_dlopen_self_static=no
12301   fi
12302 fi
12303 rm -fr conftest*
12304
12305
12306 fi
12307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12309     fi
12310
12311     CPPFLAGS="$save_CPPFLAGS"
12312     LDFLAGS="$save_LDFLAGS"
12313     LIBS="$save_LIBS"
12314     ;;
12315   esac
12316
12317   case $lt_cv_dlopen_self in
12318   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12319   *) enable_dlopen_self=unknown ;;
12320   esac
12321
12322   case $lt_cv_dlopen_self_static in
12323   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12324   *) enable_dlopen_self_static=unknown ;;
12325   esac
12326 fi
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344 striplib=
12345 old_striplib=
12346 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12349   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12350   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12351   { $as_echo "$as_me:$LINENO: result: yes" >&5
12352 $as_echo "yes" >&6; }
12353 else
12354 # FIXME - insert some real tests, host_os isn't really good enough
12355   case $host_os in
12356   darwin*)
12357     if test -n "$STRIP" ; then
12358       striplib="$STRIP -x"
12359       old_striplib="$STRIP -S"
12360       { $as_echo "$as_me:$LINENO: result: yes" >&5
12361 $as_echo "yes" >&6; }
12362     else
12363       { $as_echo "$as_me:$LINENO: result: no" >&5
12364 $as_echo "no" >&6; }
12365     fi
12366     ;;
12367   *)
12368     { $as_echo "$as_me:$LINENO: result: no" >&5
12369 $as_echo "no" >&6; }
12370     ;;
12371   esac
12372 fi
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385   # Report which library types will actually be built
12386   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12388   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12389 $as_echo "$can_build_shared" >&6; }
12390
12391   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12392 $as_echo_n "checking whether to build shared libraries... " >&6; }
12393   test "$can_build_shared" = "no" && enable_shared=no
12394
12395   # On AIX, shared libraries and static libraries use the same namespace, and
12396   # are all built from PIC.
12397   case $host_os in
12398   aix3*)
12399     test "$enable_shared" = yes && enable_static=no
12400     if test -n "$RANLIB"; then
12401       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12402       postinstall_cmds='$RANLIB $lib'
12403     fi
12404     ;;
12405
12406   aix[4-9]*)
12407     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12408       test "$enable_shared" = yes && enable_static=no
12409     fi
12410     ;;
12411   esac
12412   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12413 $as_echo "$enable_shared" >&6; }
12414
12415   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12416 $as_echo_n "checking whether to build static libraries... " >&6; }
12417   # Make sure either enable_shared or enable_static is yes.
12418   test "$enable_shared" = yes || enable_static=yes
12419   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12420 $as_echo "$enable_static" >&6; }
12421
12422
12423
12424
12425 fi
12426 ac_ext=c
12427 ac_cpp='$CPP $CPPFLAGS'
12428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431
12432 CC="$lt_save_CC"
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446         ac_config_commands="$ac_config_commands libtool"
12447
12448
12449
12450
12451 # Only expand once:
12452
12453
12454
12455 if test X"$GCC" = "Xyes"; then
12456     CFLAGS="$CFLAGS -Wall -W"
12457     TARGET="depend allprogs"
12458 else
12459     TARGET="everything"
12460             echo >.depend-done
12461 fi
12462
12463
12464 CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
12465
12466 if test $ac_cv_c_compiler_gnu = yes; then
12467     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12468 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
12469 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12470   $as_echo_n "(cached) " >&6
12471 else
12472     ac_pattern="Autoconf.*'x'"
12473   cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h.  */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h.  */
12479 #include <sgtty.h>
12480 Autoconf TIOCGETP
12481 _ACEOF
12482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12483   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12484   ac_cv_prog_gcc_traditional=yes
12485 else
12486   ac_cv_prog_gcc_traditional=no
12487 fi
12488 rm -f conftest*
12489
12490
12491   if test $ac_cv_prog_gcc_traditional = no; then
12492     cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <termio.h>
12499 Autoconf TCGETA
12500 _ACEOF
12501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12502   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12503   ac_cv_prog_gcc_traditional=yes
12504 fi
12505 rm -f conftest*
12506
12507   fi
12508 fi
12509 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12510 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
12511   if test $ac_cv_prog_gcc_traditional = yes; then
12512     CC="$CC -traditional"
12513   fi
12514 fi
12515
12516 # Check whether --enable-largefile was given.
12517 if test "${enable_largefile+set}" = set; then
12518   enableval=$enable_largefile;
12519 fi
12520
12521 if test "$enable_largefile" != no; then
12522
12523   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12524 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12525 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12526   $as_echo_n "(cached) " >&6
12527 else
12528   ac_cv_sys_largefile_CC=no
12529      if test "$GCC" != yes; then
12530        ac_save_CC=$CC
12531        while :; do
12532          # IRIX 6.2 and later do not support large files by default,
12533          # so use the C compiler's -n32 option if that helps.
12534          cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 #include <sys/types.h>
12541  /* Check that off_t can represent 2**63 - 1 correctly.
12542     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12543     since some C++ compilers masquerading as C compilers
12544     incorrectly reject 9223372036854775807.  */
12545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12546   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12547                        && LARGE_OFF_T % 2147483647 == 1)
12548                       ? 1 : -1];
12549 int
12550 main ()
12551 {
12552
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557          rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12564 $as_echo "$ac_try_echo") >&5
12565   (eval "$ac_compile") 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } && {
12572          test -z "$ac_c_werror_flag" ||
12573          test ! -s conftest.err
12574        } && test -s conftest.$ac_objext; then
12575   break
12576 else
12577   $as_echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext
12584          CC="$CC -n32"
12585          rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593   (eval "$ac_compile") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && {
12600          test -z "$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        } && test -s conftest.$ac_objext; then
12603   ac_cv_sys_largefile_CC=' -n32'; break
12604 else
12605   $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext
12612          break
12613        done
12614        CC=$ac_save_CC
12615        rm -f conftest.$ac_ext
12616     fi
12617 fi
12618 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12619 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12620   if test "$ac_cv_sys_largefile_CC" != no; then
12621     CC=$CC$ac_cv_sys_largefile_CC
12622   fi
12623
12624   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12625 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12627   $as_echo_n "(cached) " >&6
12628 else
12629   while :; do
12630   cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636 #include <sys/types.h>
12637  /* Check that off_t can represent 2**63 - 1 correctly.
12638     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12639     since some C++ compilers masquerading as C compilers
12640     incorrectly reject 9223372036854775807.  */
12641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12642   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12643                        && LARGE_OFF_T % 2147483647 == 1)
12644                       ? 1 : -1];
12645 int
12646 main ()
12647 {
12648
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12660 $as_echo "$ac_try_echo") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && {
12668          test -z "$ac_c_werror_flag" ||
12669          test ! -s conftest.err
12670        } && test -s conftest.$ac_objext; then
12671   ac_cv_sys_file_offset_bits=no; break
12672 else
12673   $as_echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676
12677 fi
12678
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680   cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686 #define _FILE_OFFSET_BITS 64
12687 #include <sys/types.h>
12688  /* Check that off_t can represent 2**63 - 1 correctly.
12689     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12690     since some C++ compilers masquerading as C compilers
12691     incorrectly reject 9223372036854775807.  */
12692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12693   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12694                        && LARGE_OFF_T % 2147483647 == 1)
12695                       ? 1 : -1];
12696 int
12697 main ()
12698 {
12699
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712   (eval "$ac_compile") 2>conftest.er1
12713   ac_status=$?
12714   grep -v '^ *+' conftest.er1 >conftest.err
12715   rm -f conftest.er1
12716   cat conftest.err >&5
12717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } && {
12719          test -z "$ac_c_werror_flag" ||
12720          test ! -s conftest.err
12721        } && test -s conftest.$ac_objext; then
12722   ac_cv_sys_file_offset_bits=64; break
12723 else
12724   $as_echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731   ac_cv_sys_file_offset_bits=unknown
12732   break
12733 done
12734 fi
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12736 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12737 case $ac_cv_sys_file_offset_bits in #(
12738   no | unknown) ;;
12739   *)
12740 cat >>confdefs.h <<_ACEOF
12741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12742 _ACEOF
12743 ;;
12744 esac
12745 rm -rf conftest*
12746   if test $ac_cv_sys_file_offset_bits = unknown; then
12747     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12748 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12749 if test "${ac_cv_sys_large_files+set}" = set; then
12750   $as_echo_n "(cached) " >&6
12751 else
12752   while :; do
12753   cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759 #include <sys/types.h>
12760  /* Check that off_t can represent 2**63 - 1 correctly.
12761     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12762     since some C++ compilers masquerading as C compilers
12763     incorrectly reject 9223372036854775807.  */
12764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12765   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12766                        && LARGE_OFF_T % 2147483647 == 1)
12767                       ? 1 : -1];
12768 int
12769 main ()
12770 {
12771
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12783 $as_echo "$ac_try_echo") >&5
12784   (eval "$ac_compile") 2>conftest.er1
12785   ac_status=$?
12786   grep -v '^ *+' conftest.er1 >conftest.err
12787   rm -f conftest.er1
12788   cat conftest.err >&5
12789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && {
12791          test -z "$ac_c_werror_flag" ||
12792          test ! -s conftest.err
12793        } && test -s conftest.$ac_objext; then
12794   ac_cv_sys_large_files=no; break
12795 else
12796   $as_echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803   cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809 #define _LARGE_FILES 1
12810 #include <sys/types.h>
12811  /* Check that off_t can represent 2**63 - 1 correctly.
12812     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12813     since some C++ compilers masquerading as C compilers
12814     incorrectly reject 9223372036854775807.  */
12815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12816   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12817                        && LARGE_OFF_T % 2147483647 == 1)
12818                       ? 1 : -1];
12819 int
12820 main ()
12821 {
12822
12823   ;
12824   return 0;
12825 }
12826 _ACEOF
12827 rm -f conftest.$ac_objext
12828 if { (ac_try="$ac_compile"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12834 $as_echo "$ac_try_echo") >&5
12835   (eval "$ac_compile") 2>conftest.er1
12836   ac_status=$?
12837   grep -v '^ *+' conftest.er1 >conftest.err
12838   rm -f conftest.er1
12839   cat conftest.err >&5
12840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } && {
12842          test -z "$ac_c_werror_flag" ||
12843          test ! -s conftest.err
12844        } && test -s conftest.$ac_objext; then
12845   ac_cv_sys_large_files=1; break
12846 else
12847   $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12849
12850
12851 fi
12852
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854   ac_cv_sys_large_files=unknown
12855   break
12856 done
12857 fi
12858 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12859 $as_echo "$ac_cv_sys_large_files" >&6; }
12860 case $ac_cv_sys_large_files in #(
12861   no | unknown) ;;
12862   *)
12863 cat >>confdefs.h <<_ACEOF
12864 #define _LARGE_FILES $ac_cv_sys_large_files
12865 _ACEOF
12866 ;;
12867 esac
12868 rm -rf conftest*
12869   fi
12870 fi
12871
12872
12873 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
12874 $as_echo_n "checking for library containing strerror... " >&6; }
12875 if test "${ac_cv_search_strerror+set}" = set; then
12876   $as_echo_n "(cached) " >&6
12877 else
12878   ac_func_search_save_LIBS=$LIBS
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885
12886 /* Override any GCC internal prototype to avoid an error.
12887    Use char because int might match the return type of a GCC
12888    builtin and then its argument prototype would still apply.  */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char strerror ();
12893 int
12894 main ()
12895 {
12896 return strerror ();
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 for ac_lib in '' cposix; do
12902   if test -z "$ac_lib"; then
12903     ac_res="none required"
12904   else
12905     ac_res=-l$ac_lib
12906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12907   fi
12908   rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916   (eval "$ac_link") 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } && {
12923          test -z "$ac_c_werror_flag" ||
12924          test ! -s conftest.err
12925        } && test -s conftest$ac_exeext && {
12926          test "$cross_compiling" = yes ||
12927          $as_test_x conftest$ac_exeext
12928        }; then
12929   ac_cv_search_strerror=$ac_res
12930 else
12931   $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934
12935 fi
12936
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939       conftest$ac_exeext
12940   if test "${ac_cv_search_strerror+set}" = set; then
12941   break
12942 fi
12943 done
12944 if test "${ac_cv_search_strerror+set}" = set; then
12945   :
12946 else
12947   ac_cv_search_strerror=no
12948 fi
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12951 fi
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
12953 $as_echo "$ac_cv_search_strerror" >&6; }
12954 ac_res=$ac_cv_search_strerror
12955 if test "$ac_res" != no; then
12956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957
12958 fi
12959
12960 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
12961 $as_echo_n "checking for function prototypes... " >&6; }
12962 if test "$ac_cv_prog_cc_c89" != no; then
12963   { $as_echo "$as_me:$LINENO: result: yes" >&5
12964 $as_echo "yes" >&6; }
12965
12966 cat >>confdefs.h <<\_ACEOF
12967 #define PROTOTYPES 1
12968 _ACEOF
12969
12970
12971 cat >>confdefs.h <<\_ACEOF
12972 #define __PROTOTYPES 1
12973 _ACEOF
12974
12975 else
12976   { $as_echo "$as_me:$LINENO: result: no" >&5
12977 $as_echo "no" >&6; }
12978 fi
12979
12980
12981 if test "$ac_cv_prog_cc_stdc" != no; then
12982   U= ANSI2KNR=
12983 else
12984   U=_ ANSI2KNR=./ansi2knr
12985 fi
12986 # Ensure some checks needed by ansi2knr itself.
12987
12988
12989 for ac_header in string.h
12990 do
12991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12993   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12994 $as_echo_n "checking for $ac_header... " >&6; }
12995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12996   $as_echo_n "(cached) " >&6
12997 fi
12998 ac_res=`eval 'as_val=${'$as_ac_Header'}
12999                  $as_echo "$as_val"'`
13000                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13001 $as_echo "$ac_res" >&6; }
13002 else
13003   # Is the header compilable?
13004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13005 $as_echo_n "checking $ac_header usability... " >&6; }
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h.  */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h.  */
13012 $ac_includes_default
13013 #include <$ac_header>
13014 _ACEOF
13015 rm -f conftest.$ac_objext
13016 if { (ac_try="$ac_compile"
13017 case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13022 $as_echo "$ac_try_echo") >&5
13023   (eval "$ac_compile") 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } && {
13030          test -z "$ac_c_werror_flag" ||
13031          test ! -s conftest.err
13032        } && test -s conftest.$ac_objext; then
13033   ac_header_compiler=yes
13034 else
13035   $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038         ac_header_compiler=no
13039 fi
13040
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13043 $as_echo "$ac_header_compiler" >&6; }
13044
13045 # Is the header present?
13046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13047 $as_echo_n "checking $ac_header presence... " >&6; }
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054 #include <$ac_header>
13055 _ACEOF
13056 if { (ac_try="$ac_cpp conftest.$ac_ext"
13057 case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } >/dev/null && {
13070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13071          test ! -s conftest.err
13072        }; then
13073   ac_header_preproc=yes
13074 else
13075   $as_echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078   ac_header_preproc=no
13079 fi
13080
13081 rm -f conftest.err conftest.$ac_ext
13082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13083 $as_echo "$ac_header_preproc" >&6; }
13084
13085 # So?  What about this header?
13086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13087   yes:no: )
13088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13092     ac_header_preproc=yes
13093     ;;
13094   no:yes:* )
13095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13098 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13102 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13107     ( cat <<\_ASBOX
13108 ## ---------------------------------- ##
13109 ## Report this to popt-devel@rpm5.org ##
13110 ## ---------------------------------- ##
13111 _ASBOX
13112      ) | sed "s/^/$as_me: WARNING:     /" >&2
13113     ;;
13114 esac
13115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118   $as_echo_n "(cached) " >&6
13119 else
13120   eval "$as_ac_Header=\$ac_header_preproc"
13121 fi
13122 ac_res=`eval 'as_val=${'$as_ac_Header'}
13123                  $as_echo "$as_val"'`
13124                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13125 $as_echo "$ac_res" >&6; }
13126
13127 fi
13128 as_val=`eval 'as_val=${'$as_ac_Header'}
13129                  $as_echo "$as_val"'`
13130    if test "x$as_val" = x""yes; then
13131   cat >>confdefs.h <<_ACEOF
13132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13133 _ACEOF
13134
13135 fi
13136
13137 done
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 for ac_header in float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h
13149 do
13150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13152   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 $as_echo_n "checking for $ac_header... " >&6; }
13154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13155   $as_echo_n "(cached) " >&6
13156 fi
13157 ac_res=`eval 'as_val=${'$as_ac_Header'}
13158                  $as_echo "$as_val"'`
13159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13160 $as_echo "$ac_res" >&6; }
13161 else
13162   # Is the header compilable?
13163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13164 $as_echo_n "checking $ac_header usability... " >&6; }
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 $ac_includes_default
13172 #include <$ac_header>
13173 _ACEOF
13174 rm -f conftest.$ac_objext
13175 if { (ac_try="$ac_compile"
13176 case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182   (eval "$ac_compile") 2>conftest.er1
13183   ac_status=$?
13184   grep -v '^ *+' conftest.er1 >conftest.err
13185   rm -f conftest.er1
13186   cat conftest.err >&5
13187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } && {
13189          test -z "$ac_c_werror_flag" ||
13190          test ! -s conftest.err
13191        } && test -s conftest.$ac_objext; then
13192   ac_header_compiler=yes
13193 else
13194   $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13196
13197         ac_header_compiler=no
13198 fi
13199
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13202 $as_echo "$ac_header_compiler" >&6; }
13203
13204 # Is the header present?
13205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13206 $as_echo_n "checking $ac_header presence... " >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 #include <$ac_header>
13214 _ACEOF
13215 if { (ac_try="$ac_cpp conftest.$ac_ext"
13216 case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } >/dev/null && {
13229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13230          test ! -s conftest.err
13231        }; then
13232   ac_header_preproc=yes
13233 else
13234   $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237   ac_header_preproc=no
13238 fi
13239
13240 rm -f conftest.err conftest.$ac_ext
13241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13242 $as_echo "$ac_header_preproc" >&6; }
13243
13244 # So?  What about this header?
13245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13246   yes:no: )
13247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13251     ac_header_preproc=yes
13252     ;;
13253   no:yes:* )
13254     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13257 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13260     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13261 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13266     ( cat <<\_ASBOX
13267 ## ---------------------------------- ##
13268 ## Report this to popt-devel@rpm5.org ##
13269 ## ---------------------------------- ##
13270 _ASBOX
13271      ) | sed "s/^/$as_me: WARNING:     /" >&2
13272     ;;
13273 esac
13274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13275 $as_echo_n "checking for $ac_header... " >&6; }
13276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13277   $as_echo_n "(cached) " >&6
13278 else
13279   eval "$as_ac_Header=\$ac_header_preproc"
13280 fi
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282                  $as_echo "$as_val"'`
13283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285
13286 fi
13287 as_val=`eval 'as_val=${'$as_ac_Header'}
13288                  $as_echo "$as_val"'`
13289    if test "x$as_val" = x""yes; then
13290   cat >>confdefs.h <<_ACEOF
13291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13292 _ACEOF
13293
13294 fi
13295
13296 done
13297
13298
13299 # For some systems we know that we have ld_version scripts.
13300 # Use it then as default.
13301 have_ld_version_script=no
13302 case "${host}" in
13303     *-*-linux*)
13304         have_ld_version_script=yes
13305         ;;
13306     *-*-gnu*)
13307         have_ld_version_script=yes
13308         ;;
13309 esac
13310 # Check whether --enable-ld-version-script was given.
13311 if test "${enable_ld_version_script+set}" = set; then
13312   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13313 else
13314    :
13315 fi
13316
13317  if test "$have_ld_version_script" = "yes"; then
13318   HAVE_LD_VERSION_SCRIPT_TRUE=
13319   HAVE_LD_VERSION_SCRIPT_FALSE='#'
13320 else
13321   HAVE_LD_VERSION_SCRIPT_TRUE='#'
13322   HAVE_LD_VERSION_SCRIPT_FALSE=
13323 fi
13324
13325
13326 # Check whether --enable-build-gcov was given.
13327 if test "${enable_build_gcov+set}" = set; then
13328   enableval=$enable_build_gcov;     if test ".$enableval" = .yes; then
13329         if test ".`$CC --version 2>&1 | grep 'GCC'`" != .; then
13330                         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
13331         fi
13332     fi
13333
13334 fi
13335
13336
13337 { $as_echo "$as_me:$LINENO: checking for setreuid" >&5
13338 $as_echo_n "checking for setreuid... " >&6; }
13339 if test "${ac_cv_func_setreuid+set}" = set; then
13340   $as_echo_n "(cached) " >&6
13341 else
13342   cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 /* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
13349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13350 #define setreuid innocuous_setreuid
13351
13352 /* System header to define __stub macros and hopefully few prototypes,
13353     which can conflict with char setreuid (); below.
13354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355     <limits.h> exists even on freestanding compilers.  */
13356
13357 #ifdef __STDC__
13358 # include <limits.h>
13359 #else
13360 # include <assert.h>
13361 #endif
13362
13363 #undef setreuid
13364
13365 /* Override any GCC internal prototype to avoid an error.
13366    Use char because int might match the return type of a GCC
13367    builtin and then its argument prototype would still apply.  */
13368 #ifdef __cplusplus
13369 extern "C"
13370 #endif
13371 char setreuid ();
13372 /* The GNU C library defines this for functions which it implements
13373     to always fail with ENOSYS.  Some functions are actually named
13374     something starting with __ and the normal name is an alias.  */
13375 #if defined __stub_setreuid || defined __stub___setreuid
13376 choke me
13377 #endif
13378
13379 int
13380 main ()
13381 {
13382 return setreuid ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395   (eval "$ac_link") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_c_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest$ac_exeext && {
13405          test "$cross_compiling" = yes ||
13406          $as_test_x conftest$ac_exeext
13407        }; then
13408   ac_cv_func_setreuid=yes
13409 else
13410   $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413         ac_cv_func_setreuid=no
13414 fi
13415
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418       conftest$ac_exeext conftest.$ac_ext
13419 fi
13420 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
13421 $as_echo "$ac_cv_func_setreuid" >&6; }
13422 if test "x$ac_cv_func_setreuid" = x""yes; then
13423   :
13424 else
13425
13426     { $as_echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
13427 $as_echo_n "checking for setreuid in -lucb... " >&6; }
13428 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
13429   $as_echo_n "(cached) " >&6
13430 else
13431   ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lucb  $LIBS"
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439
13440 /* Override any GCC internal prototype to avoid an error.
13441    Use char because int might match the return type of a GCC
13442    builtin and then its argument prototype would still apply.  */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char setreuid ();
13447 int
13448 main ()
13449 {
13450 return setreuid ();
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463   (eval "$ac_link") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_c_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest$ac_exeext && {
13473          test "$cross_compiling" = yes ||
13474          $as_test_x conftest$ac_exeext
13475        }; then
13476   ac_cv_lib_ucb_setreuid=yes
13477 else
13478   $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481         ac_cv_lib_ucb_setreuid=no
13482 fi
13483
13484 rm -rf conftest.dSYM
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486       conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
13490 $as_echo "$ac_cv_lib_ucb_setreuid" >&6; }
13491 if test "x$ac_cv_lib_ucb_setreuid" = x""yes; then
13492   if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
13493 fi
13494
13495
13496 fi
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508 for ac_func in getuid geteuid iconv mtrace __secure_getenv setregid stpcpy strerror vasprintf srandom
13509 do
13510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13512 $as_echo_n "checking for $ac_func... " >&6; }
13513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13514   $as_echo_n "(cached) " >&6
13515 else
13516   cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13524 #define $ac_func innocuous_$ac_func
13525
13526 /* System header to define __stub macros and hopefully few prototypes,
13527     which can conflict with char $ac_func (); below.
13528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13529     <limits.h> exists even on freestanding compilers.  */
13530
13531 #ifdef __STDC__
13532 # include <limits.h>
13533 #else
13534 # include <assert.h>
13535 #endif
13536
13537 #undef $ac_func
13538
13539 /* Override any GCC internal prototype to avoid an error.
13540    Use char because int might match the return type of a GCC
13541    builtin and then its argument prototype would still apply.  */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char $ac_func ();
13546 /* The GNU C library defines this for functions which it implements
13547     to always fail with ENOSYS.  Some functions are actually named
13548     something starting with __ and the normal name is an alias.  */
13549 #if defined __stub_$ac_func || defined __stub___$ac_func
13550 choke me
13551 #endif
13552
13553 int
13554 main ()
13555 {
13556 return $ac_func ();
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569   (eval "$ac_link") 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } && {
13576          test -z "$ac_c_werror_flag" ||
13577          test ! -s conftest.err
13578        } && test -s conftest$ac_exeext && {
13579          test "$cross_compiling" = yes ||
13580          $as_test_x conftest$ac_exeext
13581        }; then
13582   eval "$as_ac_var=yes"
13583 else
13584   $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587         eval "$as_ac_var=no"
13588 fi
13589
13590 rm -rf conftest.dSYM
13591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592       conftest$ac_exeext conftest.$ac_ext
13593 fi
13594 ac_res=`eval 'as_val=${'$as_ac_var'}
13595                  $as_echo "$as_val"'`
13596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13597 $as_echo "$ac_res" >&6; }
13598 as_val=`eval 'as_val=${'$as_ac_var'}
13599                  $as_echo "$as_val"'`
13600    if test "x$as_val" = x""yes; then
13601   cat >>confdefs.h <<_ACEOF
13602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603 _ACEOF
13604
13605 fi
13606 done
13607
13608
13609
13610   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13611 $as_echo_n "checking whether NLS is requested... " >&6; }
13612     # Check whether --enable-nls was given.
13613 if test "${enable_nls+set}" = set; then
13614   enableval=$enable_nls; USE_NLS=$enableval
13615 else
13616   USE_NLS=yes
13617 fi
13618
13619   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
13620 $as_echo "$USE_NLS" >&6; }
13621
13622
13623
13624
13625       GETTEXT_MACRO_VERSION=0.17
13626
13627
13628
13629
13630 # Prepare PATH_SEPARATOR.
13631 # The user is always right.
13632 if test "${PATH_SEPARATOR+set}" != set; then
13633   echo "#! /bin/sh" >conf$$.sh
13634   echo  "exit 0"   >>conf$$.sh
13635   chmod +x conf$$.sh
13636   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13637     PATH_SEPARATOR=';'
13638   else
13639     PATH_SEPARATOR=:
13640   fi
13641   rm -f conf$$.sh
13642 fi
13643
13644 # Find out how to test for executable files. Don't use a zero-byte file,
13645 # as systems may use methods other than mode bits to determine executability.
13646 cat >conf$$.file <<_ASEOF
13647 #! /bin/sh
13648 exit 0
13649 _ASEOF
13650 chmod +x conf$$.file
13651 if test -x conf$$.file >/dev/null 2>&1; then
13652   ac_executable_p="test -x"
13653 else
13654   ac_executable_p="test -f"
13655 fi
13656 rm -f conf$$.file
13657
13658 # Extract the first word of "msgfmt", so it can be a program name with args.
13659 set dummy msgfmt; ac_word=$2
13660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if test "${ac_cv_path_MSGFMT+set}" = set; then
13663   $as_echo_n "(cached) " >&6
13664 else
13665   case "$MSGFMT" in
13666   [\\/]* | ?:[\\/]*)
13667     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13668     ;;
13669   *)
13670     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13671     for ac_dir in $PATH; do
13672       IFS="$ac_save_IFS"
13673       test -z "$ac_dir" && ac_dir=.
13674       for ac_exec_ext in '' $ac_executable_extensions; do
13675         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13676           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13677           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13678      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13679             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13680             break 2
13681           fi
13682         fi
13683       done
13684     done
13685     IFS="$ac_save_IFS"
13686   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13687     ;;
13688 esac
13689 fi
13690 MSGFMT="$ac_cv_path_MSGFMT"
13691 if test "$MSGFMT" != ":"; then
13692   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13693 $as_echo "$MSGFMT" >&6; }
13694 else
13695   { $as_echo "$as_me:$LINENO: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13700 set dummy gmsgfmt; ac_word=$2
13701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13702 $as_echo_n "checking for $ac_word... " >&6; }
13703 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13704   $as_echo_n "(cached) " >&6
13705 else
13706   case $GMSGFMT in
13707   [\\/]* | ?:[\\/]*)
13708   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13709   ;;
13710   *)
13711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13713 do
13714   IFS=$as_save_IFS
13715   test -z "$as_dir" && as_dir=.
13716   for ac_exec_ext in '' $ac_executable_extensions; do
13717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13718     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13719     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13720     break 2
13721   fi
13722 done
13723 done
13724 IFS=$as_save_IFS
13725
13726   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13727   ;;
13728 esac
13729 fi
13730 GMSGFMT=$ac_cv_path_GMSGFMT
13731 if test -n "$GMSGFMT"; then
13732   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13733 $as_echo "$GMSGFMT" >&6; }
13734 else
13735   { $as_echo "$as_me:$LINENO: result: no" >&5
13736 $as_echo "no" >&6; }
13737 fi
13738
13739
13740
13741     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13742     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13743     *) MSGFMT_015=$MSGFMT ;;
13744   esac
13745
13746   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13747     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13748     *) GMSGFMT_015=$GMSGFMT ;;
13749   esac
13750
13751
13752
13753 # Prepare PATH_SEPARATOR.
13754 # The user is always right.
13755 if test "${PATH_SEPARATOR+set}" != set; then
13756   echo "#! /bin/sh" >conf$$.sh
13757   echo  "exit 0"   >>conf$$.sh
13758   chmod +x conf$$.sh
13759   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13760     PATH_SEPARATOR=';'
13761   else
13762     PATH_SEPARATOR=:
13763   fi
13764   rm -f conf$$.sh
13765 fi
13766
13767 # Find out how to test for executable files. Don't use a zero-byte file,
13768 # as systems may use methods other than mode bits to determine executability.
13769 cat >conf$$.file <<_ASEOF
13770 #! /bin/sh
13771 exit 0
13772 _ASEOF
13773 chmod +x conf$$.file
13774 if test -x conf$$.file >/dev/null 2>&1; then
13775   ac_executable_p="test -x"
13776 else
13777   ac_executable_p="test -f"
13778 fi
13779 rm -f conf$$.file
13780
13781 # Extract the first word of "xgettext", so it can be a program name with args.
13782 set dummy xgettext; ac_word=$2
13783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13786   $as_echo_n "(cached) " >&6
13787 else
13788   case "$XGETTEXT" in
13789   [\\/]* | ?:[\\/]*)
13790     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13791     ;;
13792   *)
13793     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13794     for ac_dir in $PATH; do
13795       IFS="$ac_save_IFS"
13796       test -z "$ac_dir" && ac_dir=.
13797       for ac_exec_ext in '' $ac_executable_extensions; do
13798         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13799           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13800           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13801      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13802             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13803             break 2
13804           fi
13805         fi
13806       done
13807     done
13808     IFS="$ac_save_IFS"
13809   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13810     ;;
13811 esac
13812 fi
13813 XGETTEXT="$ac_cv_path_XGETTEXT"
13814 if test "$XGETTEXT" != ":"; then
13815   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13816 $as_echo "$XGETTEXT" >&6; }
13817 else
13818   { $as_echo "$as_me:$LINENO: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821
13822     rm -f messages.po
13823
13824     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13825     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13826     *) XGETTEXT_015=$XGETTEXT ;;
13827   esac
13828
13829
13830
13831 # Prepare PATH_SEPARATOR.
13832 # The user is always right.
13833 if test "${PATH_SEPARATOR+set}" != set; then
13834   echo "#! /bin/sh" >conf$$.sh
13835   echo  "exit 0"   >>conf$$.sh
13836   chmod +x conf$$.sh
13837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13838     PATH_SEPARATOR=';'
13839   else
13840     PATH_SEPARATOR=:
13841   fi
13842   rm -f conf$$.sh
13843 fi
13844
13845 # Find out how to test for executable files. Don't use a zero-byte file,
13846 # as systems may use methods other than mode bits to determine executability.
13847 cat >conf$$.file <<_ASEOF
13848 #! /bin/sh
13849 exit 0
13850 _ASEOF
13851 chmod +x conf$$.file
13852 if test -x conf$$.file >/dev/null 2>&1; then
13853   ac_executable_p="test -x"
13854 else
13855   ac_executable_p="test -f"
13856 fi
13857 rm -f conf$$.file
13858
13859 # Extract the first word of "msgmerge", so it can be a program name with args.
13860 set dummy msgmerge; ac_word=$2
13861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_path_MSGMERGE+set}" = set; then
13864   $as_echo_n "(cached) " >&6
13865 else
13866   case "$MSGMERGE" in
13867   [\\/]* | ?:[\\/]*)
13868     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13869     ;;
13870   *)
13871     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13872     for ac_dir in $PATH; do
13873       IFS="$ac_save_IFS"
13874       test -z "$ac_dir" && ac_dir=.
13875       for ac_exec_ext in '' $ac_executable_extensions; do
13876         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13877           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13878           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13879             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13880             break 2
13881           fi
13882         fi
13883       done
13884     done
13885     IFS="$ac_save_IFS"
13886   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13887     ;;
13888 esac
13889 fi
13890 MSGMERGE="$ac_cv_path_MSGMERGE"
13891 if test "$MSGMERGE" != ":"; then
13892   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
13893 $as_echo "$MSGMERGE" >&6; }
13894 else
13895   { $as_echo "$as_me:$LINENO: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898
13899
13900         test -n "$localedir" || localedir='${datadir}/locale'
13901
13902
13903     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13904
13905
13906   ac_config_commands="$ac_config_commands po-directories"
13907
13908
13909
13910       if test "X$prefix" = "XNONE"; then
13911     acl_final_prefix="$ac_default_prefix"
13912   else
13913     acl_final_prefix="$prefix"
13914   fi
13915   if test "X$exec_prefix" = "XNONE"; then
13916     acl_final_exec_prefix='${prefix}'
13917   else
13918     acl_final_exec_prefix="$exec_prefix"
13919   fi
13920   acl_save_prefix="$prefix"
13921   prefix="$acl_final_prefix"
13922   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13923   prefix="$acl_save_prefix"
13924
13925
13926 # Check whether --with-gnu-ld was given.
13927 if test "${with_gnu_ld+set}" = set; then
13928   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13929 else
13930   with_gnu_ld=no
13931 fi
13932
13933 # Prepare PATH_SEPARATOR.
13934 # The user is always right.
13935 if test "${PATH_SEPARATOR+set}" != set; then
13936   echo "#! /bin/sh" >conf$$.sh
13937   echo  "exit 0"   >>conf$$.sh
13938   chmod +x conf$$.sh
13939   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13940     PATH_SEPARATOR=';'
13941   else
13942     PATH_SEPARATOR=:
13943   fi
13944   rm -f conf$$.sh
13945 fi
13946 ac_prog=ld
13947 if test "$GCC" = yes; then
13948   # Check if gcc -print-prog-name=ld gives a path.
13949   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13950 $as_echo_n "checking for ld used by GCC... " >&6; }
13951   case $host in
13952   *-*-mingw*)
13953     # gcc leaves a trailing carriage return which upsets mingw
13954     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13955   *)
13956     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13957   esac
13958   case $ac_prog in
13959     # Accept absolute paths.
13960     [\\/]* | [A-Za-z]:[\\/]*)
13961       re_direlt='/[^/][^/]*/\.\./'
13962       # Canonicalize the path of ld
13963       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13964       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13965         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13966       done
13967       test -z "$LD" && LD="$ac_prog"
13968       ;;
13969   "")
13970     # If it fails, then pretend we aren't using GCC.
13971     ac_prog=ld
13972     ;;
13973   *)
13974     # If it is relative, then search for the first ld in PATH.
13975     with_gnu_ld=unknown
13976     ;;
13977   esac
13978 elif test "$with_gnu_ld" = yes; then
13979   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13980 $as_echo_n "checking for GNU ld... " >&6; }
13981 else
13982   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13983 $as_echo_n "checking for non-GNU ld... " >&6; }
13984 fi
13985 if test "${acl_cv_path_LD+set}" = set; then
13986   $as_echo_n "(cached) " >&6
13987 else
13988   if test -z "$LD"; then
13989   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13990   for ac_dir in $PATH; do
13991     test -z "$ac_dir" && ac_dir=.
13992     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13993       acl_cv_path_LD="$ac_dir/$ac_prog"
13994       # Check to see if the program is GNU ld.  I'd rather use --version,
13995       # but apparently some GNU ld's only accept -v.
13996       # Break only if it was the GNU/non-GNU ld that we prefer.
13997       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13998       *GNU* | *'with BFD'*)
13999         test "$with_gnu_ld" != no && break ;;
14000       *)
14001         test "$with_gnu_ld" != yes && break ;;
14002       esac
14003     fi
14004   done
14005   IFS="$ac_save_ifs"
14006 else
14007   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14008 fi
14009 fi
14010
14011 LD="$acl_cv_path_LD"
14012 if test -n "$LD"; then
14013   { $as_echo "$as_me:$LINENO: result: $LD" >&5
14014 $as_echo "$LD" >&6; }
14015 else
14016   { $as_echo "$as_me:$LINENO: result: no" >&5
14017 $as_echo "no" >&6; }
14018 fi
14019 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14020 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14021    { (exit 1); exit 1; }; }
14022 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14024 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14025   $as_echo_n "(cached) " >&6
14026 else
14027   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14028 case `$LD -v 2>&1 </dev/null` in
14029 *GNU* | *'with BFD'*)
14030   acl_cv_prog_gnu_ld=yes ;;
14031 *)
14032   acl_cv_prog_gnu_ld=no ;;
14033 esac
14034 fi
14035 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14036 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14037 with_gnu_ld=$acl_cv_prog_gnu_ld
14038
14039
14040
14041
14042                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14043 $as_echo_n "checking for shared library run path origin... " >&6; }
14044 if test "${acl_cv_rpath+set}" = set; then
14045   $as_echo_n "(cached) " >&6
14046 else
14047
14048     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14049     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14050     . ./conftest.sh
14051     rm -f ./conftest.sh
14052     acl_cv_rpath=done
14053
14054 fi
14055 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14056 $as_echo "$acl_cv_rpath" >&6; }
14057   wl="$acl_cv_wl"
14058   acl_libext="$acl_cv_libext"
14059   acl_shlibext="$acl_cv_shlibext"
14060   acl_libname_spec="$acl_cv_libname_spec"
14061   acl_library_names_spec="$acl_cv_library_names_spec"
14062   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14063   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14064   acl_hardcode_direct="$acl_cv_hardcode_direct"
14065   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14066     # Check whether --enable-rpath was given.
14067 if test "${enable_rpath+set}" = set; then
14068   enableval=$enable_rpath; :
14069 else
14070   enable_rpath=yes
14071 fi
14072
14073
14074
14075                   acl_libdirstem=lib
14076   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14077   if test -n "$searchpath"; then
14078     acl_save_IFS="${IFS=        }"; IFS=":"
14079     for searchdir in $searchpath; do
14080       if test -d "$searchdir"; then
14081         case "$searchdir" in
14082           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14083           *) searchdir=`cd "$searchdir" && pwd`
14084              case "$searchdir" in
14085                */lib64 ) acl_libdirstem=lib64 ;;
14086              esac ;;
14087         esac
14088       fi
14089     done
14090     IFS="$acl_save_IFS"
14091   fi
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101     use_additional=yes
14102
14103   acl_save_prefix="$prefix"
14104   prefix="$acl_final_prefix"
14105   acl_save_exec_prefix="$exec_prefix"
14106   exec_prefix="$acl_final_exec_prefix"
14107
14108     eval additional_includedir=\"$includedir\"
14109     eval additional_libdir=\"$libdir\"
14110
14111   exec_prefix="$acl_save_exec_prefix"
14112   prefix="$acl_save_prefix"
14113
14114
14115 # Check whether --with-libiconv-prefix was given.
14116 if test "${with_libiconv_prefix+set}" = set; then
14117   withval=$with_libiconv_prefix;
14118     if test "X$withval" = "Xno"; then
14119       use_additional=no
14120     else
14121       if test "X$withval" = "X"; then
14122
14123   acl_save_prefix="$prefix"
14124   prefix="$acl_final_prefix"
14125   acl_save_exec_prefix="$exec_prefix"
14126   exec_prefix="$acl_final_exec_prefix"
14127
14128           eval additional_includedir=\"$includedir\"
14129           eval additional_libdir=\"$libdir\"
14130
14131   exec_prefix="$acl_save_exec_prefix"
14132   prefix="$acl_save_prefix"
14133
14134       else
14135         additional_includedir="$withval/include"
14136         additional_libdir="$withval/$acl_libdirstem"
14137       fi
14138     fi
14139
14140 fi
14141
14142       LIBICONV=
14143   LTLIBICONV=
14144   INCICONV=
14145   LIBICONV_PREFIX=
14146   rpathdirs=
14147   ltrpathdirs=
14148   names_already_handled=
14149   names_next_round='iconv '
14150   while test -n "$names_next_round"; do
14151     names_this_round="$names_next_round"
14152     names_next_round=
14153     for name in $names_this_round; do
14154       already_handled=
14155       for n in $names_already_handled; do
14156         if test "$n" = "$name"; then
14157           already_handled=yes
14158           break
14159         fi
14160       done
14161       if test -z "$already_handled"; then
14162         names_already_handled="$names_already_handled $name"
14163                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14164         eval value=\"\$HAVE_LIB$uppername\"
14165         if test -n "$value"; then
14166           if test "$value" = yes; then
14167             eval value=\"\$LIB$uppername\"
14168             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14169             eval value=\"\$LTLIB$uppername\"
14170             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14171           else
14172                                     :
14173           fi
14174         else
14175                               found_dir=
14176           found_la=
14177           found_so=
14178           found_a=
14179           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14180           if test -n "$acl_shlibext"; then
14181             shrext=".$acl_shlibext"             # typically: shrext=.so
14182           else
14183             shrext=
14184           fi
14185           if test $use_additional = yes; then
14186             dir="$additional_libdir"
14187                                     if test -n "$acl_shlibext"; then
14188               if test -f "$dir/$libname$shrext"; then
14189                 found_dir="$dir"
14190                 found_so="$dir/$libname$shrext"
14191               else
14192                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14193                   ver=`(cd "$dir" && \
14194                         for f in "$libname$shrext".*; do echo "$f"; done \
14195                         | sed -e "s,^$libname$shrext\\\\.,," \
14196                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14197                         | sed 1q ) 2>/dev/null`
14198                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14199                     found_dir="$dir"
14200                     found_so="$dir/$libname$shrext.$ver"
14201                   fi
14202                 else
14203                   eval library_names=\"$acl_library_names_spec\"
14204                   for f in $library_names; do
14205                     if test -f "$dir/$f"; then
14206                       found_dir="$dir"
14207                       found_so="$dir/$f"
14208                       break
14209                     fi
14210                   done
14211                 fi
14212               fi
14213             fi
14214                         if test "X$found_dir" = "X"; then
14215               if test -f "$dir/$libname.$acl_libext"; then
14216                 found_dir="$dir"
14217                 found_a="$dir/$libname.$acl_libext"
14218               fi
14219             fi
14220             if test "X$found_dir" != "X"; then
14221               if test -f "$dir/$libname.la"; then
14222                 found_la="$dir/$libname.la"
14223               fi
14224             fi
14225           fi
14226           if test "X$found_dir" = "X"; then
14227             for x in $LDFLAGS $LTLIBICONV; do
14228
14229   acl_save_prefix="$prefix"
14230   prefix="$acl_final_prefix"
14231   acl_save_exec_prefix="$exec_prefix"
14232   exec_prefix="$acl_final_exec_prefix"
14233   eval x=\"$x\"
14234   exec_prefix="$acl_save_exec_prefix"
14235   prefix="$acl_save_prefix"
14236
14237               case "$x" in
14238                 -L*)
14239                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14240                                     if test -n "$acl_shlibext"; then
14241                     if test -f "$dir/$libname$shrext"; then
14242                       found_dir="$dir"
14243                       found_so="$dir/$libname$shrext"
14244                     else
14245                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14246                         ver=`(cd "$dir" && \
14247                               for f in "$libname$shrext".*; do echo "$f"; done \
14248                               | sed -e "s,^$libname$shrext\\\\.,," \
14249                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14250                               | sed 1q ) 2>/dev/null`
14251                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14252                           found_dir="$dir"
14253                           found_so="$dir/$libname$shrext.$ver"
14254                         fi
14255                       else
14256                         eval library_names=\"$acl_library_names_spec\"
14257                         for f in $library_names; do
14258                           if test -f "$dir/$f"; then
14259                             found_dir="$dir"
14260                             found_so="$dir/$f"
14261                             break
14262                           fi
14263                         done
14264                       fi
14265                     fi
14266                   fi
14267                                     if test "X$found_dir" = "X"; then
14268                     if test -f "$dir/$libname.$acl_libext"; then
14269                       found_dir="$dir"
14270                       found_a="$dir/$libname.$acl_libext"
14271                     fi
14272                   fi
14273                   if test "X$found_dir" != "X"; then
14274                     if test -f "$dir/$libname.la"; then
14275                       found_la="$dir/$libname.la"
14276                     fi
14277                   fi
14278                   ;;
14279               esac
14280               if test "X$found_dir" != "X"; then
14281                 break
14282               fi
14283             done
14284           fi
14285           if test "X$found_dir" != "X"; then
14286                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14287             if test "X$found_so" != "X"; then
14288                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14289                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14290               else
14291                                                                                 haveit=
14292                 for x in $ltrpathdirs; do
14293                   if test "X$x" = "X$found_dir"; then
14294                     haveit=yes
14295                     break
14296                   fi
14297                 done
14298                 if test -z "$haveit"; then
14299                   ltrpathdirs="$ltrpathdirs $found_dir"
14300                 fi
14301                                 if test "$acl_hardcode_direct" = yes; then
14302                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14303                 else
14304                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14305                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14306                                                             haveit=
14307                     for x in $rpathdirs; do
14308                       if test "X$x" = "X$found_dir"; then
14309                         haveit=yes
14310                         break
14311                       fi
14312                     done
14313                     if test -z "$haveit"; then
14314                       rpathdirs="$rpathdirs $found_dir"
14315                     fi
14316                   else
14317                                                                                 haveit=
14318                     for x in $LDFLAGS $LIBICONV; do
14319
14320   acl_save_prefix="$prefix"
14321   prefix="$acl_final_prefix"
14322   acl_save_exec_prefix="$exec_prefix"
14323   exec_prefix="$acl_final_exec_prefix"
14324   eval x=\"$x\"
14325   exec_prefix="$acl_save_exec_prefix"
14326   prefix="$acl_save_prefix"
14327
14328                       if test "X$x" = "X-L$found_dir"; then
14329                         haveit=yes
14330                         break
14331                       fi
14332                     done
14333                     if test -z "$haveit"; then
14334                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14335                     fi
14336                     if test "$acl_hardcode_minus_L" != no; then
14337                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14338                     else
14339                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14340                     fi
14341                   fi
14342                 fi
14343               fi
14344             else
14345               if test "X$found_a" != "X"; then
14346                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14347               else
14348                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14349               fi
14350             fi
14351                         additional_includedir=
14352             case "$found_dir" in
14353               */$acl_libdirstem | */$acl_libdirstem/)
14354                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14355                 LIBICONV_PREFIX="$basedir"
14356                 additional_includedir="$basedir/include"
14357                 ;;
14358             esac
14359             if test "X$additional_includedir" != "X"; then
14360                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14361                 haveit=
14362                 if test "X$additional_includedir" = "X/usr/local/include"; then
14363                   if test -n "$GCC"; then
14364                     case $host_os in
14365                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14366                     esac
14367                   fi
14368                 fi
14369                 if test -z "$haveit"; then
14370                   for x in $CPPFLAGS $INCICONV; do
14371
14372   acl_save_prefix="$prefix"
14373   prefix="$acl_final_prefix"
14374   acl_save_exec_prefix="$exec_prefix"
14375   exec_prefix="$acl_final_exec_prefix"
14376   eval x=\"$x\"
14377   exec_prefix="$acl_save_exec_prefix"
14378   prefix="$acl_save_prefix"
14379
14380                     if test "X$x" = "X-I$additional_includedir"; then
14381                       haveit=yes
14382                       break
14383                     fi
14384                   done
14385                   if test -z "$haveit"; then
14386                     if test -d "$additional_includedir"; then
14387                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14388                     fi
14389                   fi
14390                 fi
14391               fi
14392             fi
14393                         if test -n "$found_la"; then
14394                                                         save_libdir="$libdir"
14395               case "$found_la" in
14396                 */* | *\\*) . "$found_la" ;;
14397                 *) . "./$found_la" ;;
14398               esac
14399               libdir="$save_libdir"
14400                             for dep in $dependency_libs; do
14401                 case "$dep" in
14402                   -L*)
14403                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14404                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14405                       haveit=
14406                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14407                         if test -n "$GCC"; then
14408                           case $host_os in
14409                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14410                           esac
14411                         fi
14412                       fi
14413                       if test -z "$haveit"; then
14414                         haveit=
14415                         for x in $LDFLAGS $LIBICONV; do
14416
14417   acl_save_prefix="$prefix"
14418   prefix="$acl_final_prefix"
14419   acl_save_exec_prefix="$exec_prefix"
14420   exec_prefix="$acl_final_exec_prefix"
14421   eval x=\"$x\"
14422   exec_prefix="$acl_save_exec_prefix"
14423   prefix="$acl_save_prefix"
14424
14425                           if test "X$x" = "X-L$additional_libdir"; then
14426                             haveit=yes
14427                             break
14428                           fi
14429                         done
14430                         if test -z "$haveit"; then
14431                           if test -d "$additional_libdir"; then
14432                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14433                           fi
14434                         fi
14435                         haveit=
14436                         for x in $LDFLAGS $LTLIBICONV; do
14437
14438   acl_save_prefix="$prefix"
14439   prefix="$acl_final_prefix"
14440   acl_save_exec_prefix="$exec_prefix"
14441   exec_prefix="$acl_final_exec_prefix"
14442   eval x=\"$x\"
14443   exec_prefix="$acl_save_exec_prefix"
14444   prefix="$acl_save_prefix"
14445
14446                           if test "X$x" = "X-L$additional_libdir"; then
14447                             haveit=yes
14448                             break
14449                           fi
14450                         done
14451                         if test -z "$haveit"; then
14452                           if test -d "$additional_libdir"; then
14453                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14454                           fi
14455                         fi
14456                       fi
14457                     fi
14458                     ;;
14459                   -R*)
14460                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14461                     if test "$enable_rpath" != no; then
14462                                                                   haveit=
14463                       for x in $rpathdirs; do
14464                         if test "X$x" = "X$dir"; then
14465                           haveit=yes
14466                           break
14467                         fi
14468                       done
14469                       if test -z "$haveit"; then
14470                         rpathdirs="$rpathdirs $dir"
14471                       fi
14472                                                                   haveit=
14473                       for x in $ltrpathdirs; do
14474                         if test "X$x" = "X$dir"; then
14475                           haveit=yes
14476                           break
14477                         fi
14478                       done
14479                       if test -z "$haveit"; then
14480                         ltrpathdirs="$ltrpathdirs $dir"
14481                       fi
14482                     fi
14483                     ;;
14484                   -l*)
14485                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14486                     ;;
14487                   *.la)
14488                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14489                     ;;
14490                   *)
14491                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14492                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14493                     ;;
14494                 esac
14495               done
14496             fi
14497           else
14498                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14499             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14500           fi
14501         fi
14502       fi
14503     done
14504   done
14505   if test "X$rpathdirs" != "X"; then
14506     if test -n "$acl_hardcode_libdir_separator"; then
14507                         alldirs=
14508       for found_dir in $rpathdirs; do
14509         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14510       done
14511             acl_save_libdir="$libdir"
14512       libdir="$alldirs"
14513       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14514       libdir="$acl_save_libdir"
14515       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14516     else
14517             for found_dir in $rpathdirs; do
14518         acl_save_libdir="$libdir"
14519         libdir="$found_dir"
14520         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14521         libdir="$acl_save_libdir"
14522         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14523       done
14524     fi
14525   fi
14526   if test "X$ltrpathdirs" != "X"; then
14527             for found_dir in $ltrpathdirs; do
14528       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14529     done
14530   fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
14557 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14558 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
14559   $as_echo_n "(cached) " >&6
14560 else
14561   gt_save_LIBS="$LIBS"
14562      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14563      cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 #include <CoreFoundation/CFPreferences.h>
14570 int
14571 main ()
14572 {
14573 CFPreferencesCopyAppValue(NULL, NULL)
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14585 $as_echo "$ac_try_echo") >&5
14586   (eval "$ac_link") 2>conftest.er1
14587   ac_status=$?
14588   grep -v '^ *+' conftest.er1 >conftest.err
14589   rm -f conftest.er1
14590   cat conftest.err >&5
14591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } && {
14593          test -z "$ac_c_werror_flag" ||
14594          test ! -s conftest.err
14595        } && test -s conftest$ac_exeext && {
14596          test "$cross_compiling" = yes ||
14597          $as_test_x conftest$ac_exeext
14598        }; then
14599   gt_cv_func_CFPreferencesCopyAppValue=yes
14600 else
14601   $as_echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604         gt_cv_func_CFPreferencesCopyAppValue=no
14605 fi
14606
14607 rm -rf conftest.dSYM
14608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14609       conftest$ac_exeext conftest.$ac_ext
14610      LIBS="$gt_save_LIBS"
14611 fi
14612 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14613 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14614   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14615
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
14618 _ACEOF
14619
14620   fi
14621     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
14622 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14623 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
14624   $as_echo_n "(cached) " >&6
14625 else
14626   gt_save_LIBS="$LIBS"
14627      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14628      cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634 #include <CoreFoundation/CFLocale.h>
14635 int
14636 main ()
14637 {
14638 CFLocaleCopyCurrent();
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14650 $as_echo "$ac_try_echo") >&5
14651   (eval "$ac_link") 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } && {
14658          test -z "$ac_c_werror_flag" ||
14659          test ! -s conftest.err
14660        } && test -s conftest$ac_exeext && {
14661          test "$cross_compiling" = yes ||
14662          $as_test_x conftest$ac_exeext
14663        }; then
14664   gt_cv_func_CFLocaleCopyCurrent=yes
14665 else
14666   $as_echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669         gt_cv_func_CFLocaleCopyCurrent=no
14670 fi
14671
14672 rm -rf conftest.dSYM
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674       conftest$ac_exeext conftest.$ac_ext
14675      LIBS="$gt_save_LIBS"
14676 fi
14677 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14678 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14679   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14680
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_CFLOCALECOPYCURRENT 1
14683 _ACEOF
14684
14685   fi
14686   INTL_MACOSX_LIBS=
14687   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14688     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14689   fi
14690
14691
14692
14693
14694
14695
14696   LIBINTL=
14697   LTLIBINTL=
14698   POSUB=
14699
14700     case " $gt_needs " in
14701     *" need-formatstring-macros "*) gt_api_version=3 ;;
14702     *" need-ngettext "*) gt_api_version=2 ;;
14703     *) gt_api_version=1 ;;
14704   esac
14705   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14706   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14707
14708     if test "$USE_NLS" = "yes"; then
14709     gt_use_preinstalled_gnugettext=no
14710
14711
14712         if test $gt_api_version -ge 3; then
14713           gt_revision_test_code='
14714 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14715 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14716 #endif
14717 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14718 '
14719         else
14720           gt_revision_test_code=
14721         fi
14722         if test $gt_api_version -ge 2; then
14723           gt_expression_test_code=' + * ngettext ("", "", 0)'
14724         else
14725           gt_expression_test_code=
14726         fi
14727
14728         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14729 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14730 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
14731   $as_echo_n "(cached) " >&6
14732 else
14733   cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 #include <libintl.h>
14740 $gt_revision_test_code
14741 extern int _nl_msg_cat_cntr;
14742 extern int *_nl_domain_bindings;
14743 int
14744 main ()
14745 {
14746 bindtextdomain ("", "");
14747 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (ac_try="$ac_link"
14754 case "(($ac_try" in
14755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756   *) ac_try_echo=$ac_try;;
14757 esac
14758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14759 $as_echo "$ac_try_echo") >&5
14760   (eval "$ac_link") 2>conftest.er1
14761   ac_status=$?
14762   grep -v '^ *+' conftest.er1 >conftest.err
14763   rm -f conftest.er1
14764   cat conftest.err >&5
14765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } && {
14767          test -z "$ac_c_werror_flag" ||
14768          test ! -s conftest.err
14769        } && test -s conftest$ac_exeext && {
14770          test "$cross_compiling" = yes ||
14771          $as_test_x conftest$ac_exeext
14772        }; then
14773   eval "$gt_func_gnugettext_libc=yes"
14774 else
14775   $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778         eval "$gt_func_gnugettext_libc=no"
14779 fi
14780
14781 rm -rf conftest.dSYM
14782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783       conftest$ac_exeext conftest.$ac_ext
14784 fi
14785 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
14786                  $as_echo "$as_val"'`
14787                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14788 $as_echo "$ac_res" >&6; }
14789
14790         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14791
14792
14793
14794
14795
14796           am_save_CPPFLAGS="$CPPFLAGS"
14797
14798   for element in $INCICONV; do
14799     haveit=
14800     for x in $CPPFLAGS; do
14801
14802   acl_save_prefix="$prefix"
14803   prefix="$acl_final_prefix"
14804   acl_save_exec_prefix="$exec_prefix"
14805   exec_prefix="$acl_final_exec_prefix"
14806   eval x=\"$x\"
14807   exec_prefix="$acl_save_exec_prefix"
14808   prefix="$acl_save_prefix"
14809
14810       if test "X$x" = "X$element"; then
14811         haveit=yes
14812         break
14813       fi
14814     done
14815     if test -z "$haveit"; then
14816       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14817     fi
14818   done
14819
14820
14821   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
14822 $as_echo_n "checking for iconv... " >&6; }
14823 if test "${am_cv_func_iconv+set}" = set; then
14824   $as_echo_n "(cached) " >&6
14825 else
14826
14827     am_cv_func_iconv="no, consider installing GNU libiconv"
14828     am_cv_lib_iconv=no
14829     cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 #include <stdlib.h>
14836 #include <iconv.h>
14837 int
14838 main ()
14839 {
14840 iconv_t cd = iconv_open("","");
14841        iconv(cd,NULL,NULL,NULL,NULL);
14842        iconv_close(cd);
14843   ;
14844   return 0;
14845 }
14846 _ACEOF
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (ac_try="$ac_link"
14849 case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14854 $as_echo "$ac_try_echo") >&5
14855   (eval "$ac_link") 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } && {
14862          test -z "$ac_c_werror_flag" ||
14863          test ! -s conftest.err
14864        } && test -s conftest$ac_exeext && {
14865          test "$cross_compiling" = yes ||
14866          $as_test_x conftest$ac_exeext
14867        }; then
14868   am_cv_func_iconv=yes
14869 else
14870   $as_echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873
14874 fi
14875
14876 rm -rf conftest.dSYM
14877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14878       conftest$ac_exeext conftest.$ac_ext
14879     if test "$am_cv_func_iconv" != yes; then
14880       am_save_LIBS="$LIBS"
14881       LIBS="$LIBS $LIBICONV"
14882       cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 #include <stdlib.h>
14889 #include <iconv.h>
14890 int
14891 main ()
14892 {
14893 iconv_t cd = iconv_open("","");
14894          iconv(cd,NULL,NULL,NULL,NULL);
14895          iconv_close(cd);
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904   *) ac_try_echo=$ac_try;;
14905 esac
14906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14907 $as_echo "$ac_try_echo") >&5
14908   (eval "$ac_link") 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } && {
14915          test -z "$ac_c_werror_flag" ||
14916          test ! -s conftest.err
14917        } && test -s conftest$ac_exeext && {
14918          test "$cross_compiling" = yes ||
14919          $as_test_x conftest$ac_exeext
14920        }; then
14921   am_cv_lib_iconv=yes
14922         am_cv_func_iconv=yes
14923 else
14924   $as_echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927
14928 fi
14929
14930 rm -rf conftest.dSYM
14931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14932       conftest$ac_exeext conftest.$ac_ext
14933       LIBS="$am_save_LIBS"
14934     fi
14935
14936 fi
14937 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14938 $as_echo "$am_cv_func_iconv" >&6; }
14939   if test "$am_cv_func_iconv" = yes; then
14940     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
14941 $as_echo_n "checking for working iconv... " >&6; }
14942 if test "${am_cv_func_iconv_works+set}" = set; then
14943   $as_echo_n "(cached) " >&6
14944 else
14945
14946             am_save_LIBS="$LIBS"
14947       if test $am_cv_lib_iconv = yes; then
14948         LIBS="$LIBS $LIBICONV"
14949       fi
14950       if test "$cross_compiling" = yes; then
14951   case "$host_os" in
14952            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14953            *)            am_cv_func_iconv_works="guessing yes" ;;
14954          esac
14955 else
14956   cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962
14963 #include <iconv.h>
14964 #include <string.h>
14965 int main ()
14966 {
14967   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14968      returns.  */
14969   {
14970     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14971     if (cd_utf8_to_88591 != (iconv_t)(-1))
14972       {
14973         static const char input[] = "\342\202\254"; /* EURO SIGN */
14974         char buf[10];
14975         const char *inptr = input;
14976         size_t inbytesleft = strlen (input);
14977         char *outptr = buf;
14978         size_t outbytesleft = sizeof (buf);
14979         size_t res = iconv (cd_utf8_to_88591,
14980                             (char **) &inptr, &inbytesleft,
14981                             &outptr, &outbytesleft);
14982         if (res == 0)
14983           return 1;
14984       }
14985   }
14986 #if 0 /* This bug could be worked around by the caller.  */
14987   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14988   {
14989     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14990     if (cd_88591_to_utf8 != (iconv_t)(-1))
14991       {
14992         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14993         char buf[50];
14994         const char *inptr = input;
14995         size_t inbytesleft = strlen (input);
14996         char *outptr = buf;
14997         size_t outbytesleft = sizeof (buf);
14998         size_t res = iconv (cd_88591_to_utf8,
14999                             (char **) &inptr, &inbytesleft,
15000                             &outptr, &outbytesleft);
15001         if ((int)res > 0)
15002           return 1;
15003       }
15004   }
15005 #endif
15006   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15007      provided.  */
15008   if (/* Try standardized names.  */
15009       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15010       /* Try IRIX, OSF/1 names.  */
15011       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15012       /* Try AIX names.  */
15013       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15014       /* Try HP-UX names.  */
15015       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15016     return 1;
15017   return 0;
15018 }
15019 _ACEOF
15020 rm -f conftest$ac_exeext
15021 if { (ac_try="$ac_link"
15022 case "(($ac_try" in
15023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024   *) ac_try_echo=$ac_try;;
15025 esac
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028   (eval "$ac_link") 2>&5
15029   ac_status=$?
15030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15032   { (case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037 $as_echo "$ac_try_echo") >&5
15038   (eval "$ac_try") 2>&5
15039   ac_status=$?
15040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042   am_cv_func_iconv_works=yes
15043 else
15044   $as_echo "$as_me: program exited with status $ac_status" >&5
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ( exit $ac_status )
15049 am_cv_func_iconv_works=no
15050 fi
15051 rm -rf conftest.dSYM
15052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15053 fi
15054
15055
15056       LIBS="$am_save_LIBS"
15057
15058 fi
15059 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
15060 $as_echo "$am_cv_func_iconv_works" >&6; }
15061     case "$am_cv_func_iconv_works" in
15062       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15063       *)   am_func_iconv=yes ;;
15064     esac
15065   else
15066     am_func_iconv=no am_cv_lib_iconv=no
15067   fi
15068   if test "$am_func_iconv" = yes; then
15069
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_ICONV 1
15072 _ACEOF
15073
15074   fi
15075   if test "$am_cv_lib_iconv" = yes; then
15076     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15077 $as_echo_n "checking how to link with libiconv... " >&6; }
15078     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15079 $as_echo "$LIBICONV" >&6; }
15080   else
15081             CPPFLAGS="$am_save_CPPFLAGS"
15082     LIBICONV=
15083     LTLIBICONV=
15084   fi
15085
15086
15087
15088
15089
15090
15091
15092
15093     use_additional=yes
15094
15095   acl_save_prefix="$prefix"
15096   prefix="$acl_final_prefix"
15097   acl_save_exec_prefix="$exec_prefix"
15098   exec_prefix="$acl_final_exec_prefix"
15099
15100     eval additional_includedir=\"$includedir\"
15101     eval additional_libdir=\"$libdir\"
15102
15103   exec_prefix="$acl_save_exec_prefix"
15104   prefix="$acl_save_prefix"
15105
15106
15107 # Check whether --with-libintl-prefix was given.
15108 if test "${with_libintl_prefix+set}" = set; then
15109   withval=$with_libintl_prefix;
15110     if test "X$withval" = "Xno"; then
15111       use_additional=no
15112     else
15113       if test "X$withval" = "X"; then
15114
15115   acl_save_prefix="$prefix"
15116   prefix="$acl_final_prefix"
15117   acl_save_exec_prefix="$exec_prefix"
15118   exec_prefix="$acl_final_exec_prefix"
15119
15120           eval additional_includedir=\"$includedir\"
15121           eval additional_libdir=\"$libdir\"
15122
15123   exec_prefix="$acl_save_exec_prefix"
15124   prefix="$acl_save_prefix"
15125
15126       else
15127         additional_includedir="$withval/include"
15128         additional_libdir="$withval/$acl_libdirstem"
15129       fi
15130     fi
15131
15132 fi
15133
15134       LIBINTL=
15135   LTLIBINTL=
15136   INCINTL=
15137   LIBINTL_PREFIX=
15138   rpathdirs=
15139   ltrpathdirs=
15140   names_already_handled=
15141   names_next_round='intl '
15142   while test -n "$names_next_round"; do
15143     names_this_round="$names_next_round"
15144     names_next_round=
15145     for name in $names_this_round; do
15146       already_handled=
15147       for n in $names_already_handled; do
15148         if test "$n" = "$name"; then
15149           already_handled=yes
15150           break
15151         fi
15152       done
15153       if test -z "$already_handled"; then
15154         names_already_handled="$names_already_handled $name"
15155                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15156         eval value=\"\$HAVE_LIB$uppername\"
15157         if test -n "$value"; then
15158           if test "$value" = yes; then
15159             eval value=\"\$LIB$uppername\"
15160             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15161             eval value=\"\$LTLIB$uppername\"
15162             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15163           else
15164                                     :
15165           fi
15166         else
15167                               found_dir=
15168           found_la=
15169           found_so=
15170           found_a=
15171           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15172           if test -n "$acl_shlibext"; then
15173             shrext=".$acl_shlibext"             # typically: shrext=.so
15174           else
15175             shrext=
15176           fi
15177           if test $use_additional = yes; then
15178             dir="$additional_libdir"
15179                                     if test -n "$acl_shlibext"; then
15180               if test -f "$dir/$libname$shrext"; then
15181                 found_dir="$dir"
15182                 found_so="$dir/$libname$shrext"
15183               else
15184                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15185                   ver=`(cd "$dir" && \
15186                         for f in "$libname$shrext".*; do echo "$f"; done \
15187                         | sed -e "s,^$libname$shrext\\\\.,," \
15188                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15189                         | sed 1q ) 2>/dev/null`
15190                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15191                     found_dir="$dir"
15192                     found_so="$dir/$libname$shrext.$ver"
15193                   fi
15194                 else
15195                   eval library_names=\"$acl_library_names_spec\"
15196                   for f in $library_names; do
15197                     if test -f "$dir/$f"; then
15198                       found_dir="$dir"
15199                       found_so="$dir/$f"
15200                       break
15201                     fi
15202                   done
15203                 fi
15204               fi
15205             fi
15206                         if test "X$found_dir" = "X"; then
15207               if test -f "$dir/$libname.$acl_libext"; then
15208                 found_dir="$dir"
15209                 found_a="$dir/$libname.$acl_libext"
15210               fi
15211             fi
15212             if test "X$found_dir" != "X"; then
15213               if test -f "$dir/$libname.la"; then
15214                 found_la="$dir/$libname.la"
15215               fi
15216             fi
15217           fi
15218           if test "X$found_dir" = "X"; then
15219             for x in $LDFLAGS $LTLIBINTL; do
15220
15221   acl_save_prefix="$prefix"
15222   prefix="$acl_final_prefix"
15223   acl_save_exec_prefix="$exec_prefix"
15224   exec_prefix="$acl_final_exec_prefix"
15225   eval x=\"$x\"
15226   exec_prefix="$acl_save_exec_prefix"
15227   prefix="$acl_save_prefix"
15228
15229               case "$x" in
15230                 -L*)
15231                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15232                                     if test -n "$acl_shlibext"; then
15233                     if test -f "$dir/$libname$shrext"; then
15234                       found_dir="$dir"
15235                       found_so="$dir/$libname$shrext"
15236                     else
15237                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15238                         ver=`(cd "$dir" && \
15239                               for f in "$libname$shrext".*; do echo "$f"; done \
15240                               | sed -e "s,^$libname$shrext\\\\.,," \
15241                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15242                               | sed 1q ) 2>/dev/null`
15243                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15244                           found_dir="$dir"
15245                           found_so="$dir/$libname$shrext.$ver"
15246                         fi
15247                       else
15248                         eval library_names=\"$acl_library_names_spec\"
15249                         for f in $library_names; do
15250                           if test -f "$dir/$f"; then
15251                             found_dir="$dir"
15252                             found_so="$dir/$f"
15253                             break
15254                           fi
15255                         done
15256                       fi
15257                     fi
15258                   fi
15259                                     if test "X$found_dir" = "X"; then
15260                     if test -f "$dir/$libname.$acl_libext"; then
15261                       found_dir="$dir"
15262                       found_a="$dir/$libname.$acl_libext"
15263                     fi
15264                   fi
15265                   if test "X$found_dir" != "X"; then
15266                     if test -f "$dir/$libname.la"; then
15267                       found_la="$dir/$libname.la"
15268                     fi
15269                   fi
15270                   ;;
15271               esac
15272               if test "X$found_dir" != "X"; then
15273                 break
15274               fi
15275             done
15276           fi
15277           if test "X$found_dir" != "X"; then
15278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15279             if test "X$found_so" != "X"; then
15280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15281                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15282               else
15283                                                                                 haveit=
15284                 for x in $ltrpathdirs; do
15285                   if test "X$x" = "X$found_dir"; then
15286                     haveit=yes
15287                     break
15288                   fi
15289                 done
15290                 if test -z "$haveit"; then
15291                   ltrpathdirs="$ltrpathdirs $found_dir"
15292                 fi
15293                                 if test "$acl_hardcode_direct" = yes; then
15294                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15295                 else
15296                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15297                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15298                                                             haveit=
15299                     for x in $rpathdirs; do
15300                       if test "X$x" = "X$found_dir"; then
15301                         haveit=yes
15302                         break
15303                       fi
15304                     done
15305                     if test -z "$haveit"; then
15306                       rpathdirs="$rpathdirs $found_dir"
15307                     fi
15308                   else
15309                                                                                 haveit=
15310                     for x in $LDFLAGS $LIBINTL; do
15311
15312   acl_save_prefix="$prefix"
15313   prefix="$acl_final_prefix"
15314   acl_save_exec_prefix="$exec_prefix"
15315   exec_prefix="$acl_final_exec_prefix"
15316   eval x=\"$x\"
15317   exec_prefix="$acl_save_exec_prefix"
15318   prefix="$acl_save_prefix"
15319
15320                       if test "X$x" = "X-L$found_dir"; then
15321                         haveit=yes
15322                         break
15323                       fi
15324                     done
15325                     if test -z "$haveit"; then
15326                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15327                     fi
15328                     if test "$acl_hardcode_minus_L" != no; then
15329                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15330                     else
15331                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15332                     fi
15333                   fi
15334                 fi
15335               fi
15336             else
15337               if test "X$found_a" != "X"; then
15338                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15339               else
15340                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15341               fi
15342             fi
15343                         additional_includedir=
15344             case "$found_dir" in
15345               */$acl_libdirstem | */$acl_libdirstem/)
15346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15347                 LIBINTL_PREFIX="$basedir"
15348                 additional_includedir="$basedir/include"
15349                 ;;
15350             esac
15351             if test "X$additional_includedir" != "X"; then
15352                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15353                 haveit=
15354                 if test "X$additional_includedir" = "X/usr/local/include"; then
15355                   if test -n "$GCC"; then
15356                     case $host_os in
15357                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15358                     esac
15359                   fi
15360                 fi
15361                 if test -z "$haveit"; then
15362                   for x in $CPPFLAGS $INCINTL; do
15363
15364   acl_save_prefix="$prefix"
15365   prefix="$acl_final_prefix"
15366   acl_save_exec_prefix="$exec_prefix"
15367   exec_prefix="$acl_final_exec_prefix"
15368   eval x=\"$x\"
15369   exec_prefix="$acl_save_exec_prefix"
15370   prefix="$acl_save_prefix"
15371
15372                     if test "X$x" = "X-I$additional_includedir"; then
15373                       haveit=yes
15374                       break
15375                     fi
15376                   done
15377                   if test -z "$haveit"; then
15378                     if test -d "$additional_includedir"; then
15379                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15380                     fi
15381                   fi
15382                 fi
15383               fi
15384             fi
15385                         if test -n "$found_la"; then
15386                                                         save_libdir="$libdir"
15387               case "$found_la" in
15388                 */* | *\\*) . "$found_la" ;;
15389                 *) . "./$found_la" ;;
15390               esac
15391               libdir="$save_libdir"
15392                             for dep in $dependency_libs; do
15393                 case "$dep" in
15394                   -L*)
15395                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15396                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15397                       haveit=
15398                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15399                         if test -n "$GCC"; then
15400                           case $host_os in
15401                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15402                           esac
15403                         fi
15404                       fi
15405                       if test -z "$haveit"; then
15406                         haveit=
15407                         for x in $LDFLAGS $LIBINTL; do
15408
15409   acl_save_prefix="$prefix"
15410   prefix="$acl_final_prefix"
15411   acl_save_exec_prefix="$exec_prefix"
15412   exec_prefix="$acl_final_exec_prefix"
15413   eval x=\"$x\"
15414   exec_prefix="$acl_save_exec_prefix"
15415   prefix="$acl_save_prefix"
15416
15417                           if test "X$x" = "X-L$additional_libdir"; then
15418                             haveit=yes
15419                             break
15420                           fi
15421                         done
15422                         if test -z "$haveit"; then
15423                           if test -d "$additional_libdir"; then
15424                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15425                           fi
15426                         fi
15427                         haveit=
15428                         for x in $LDFLAGS $LTLIBINTL; do
15429
15430   acl_save_prefix="$prefix"
15431   prefix="$acl_final_prefix"
15432   acl_save_exec_prefix="$exec_prefix"
15433   exec_prefix="$acl_final_exec_prefix"
15434   eval x=\"$x\"
15435   exec_prefix="$acl_save_exec_prefix"
15436   prefix="$acl_save_prefix"
15437
15438                           if test "X$x" = "X-L$additional_libdir"; then
15439                             haveit=yes
15440                             break
15441                           fi
15442                         done
15443                         if test -z "$haveit"; then
15444                           if test -d "$additional_libdir"; then
15445                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15446                           fi
15447                         fi
15448                       fi
15449                     fi
15450                     ;;
15451                   -R*)
15452                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15453                     if test "$enable_rpath" != no; then
15454                                                                   haveit=
15455                       for x in $rpathdirs; do
15456                         if test "X$x" = "X$dir"; then
15457                           haveit=yes
15458                           break
15459                         fi
15460                       done
15461                       if test -z "$haveit"; then
15462                         rpathdirs="$rpathdirs $dir"
15463                       fi
15464                                                                   haveit=
15465                       for x in $ltrpathdirs; do
15466                         if test "X$x" = "X$dir"; then
15467                           haveit=yes
15468                           break
15469                         fi
15470                       done
15471                       if test -z "$haveit"; then
15472                         ltrpathdirs="$ltrpathdirs $dir"
15473                       fi
15474                     fi
15475                     ;;
15476                   -l*)
15477                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15478                     ;;
15479                   *.la)
15480                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15481                     ;;
15482                   *)
15483                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15484                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15485                     ;;
15486                 esac
15487               done
15488             fi
15489           else
15490                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15491             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15492           fi
15493         fi
15494       fi
15495     done
15496   done
15497   if test "X$rpathdirs" != "X"; then
15498     if test -n "$acl_hardcode_libdir_separator"; then
15499                         alldirs=
15500       for found_dir in $rpathdirs; do
15501         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15502       done
15503             acl_save_libdir="$libdir"
15504       libdir="$alldirs"
15505       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15506       libdir="$acl_save_libdir"
15507       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15508     else
15509             for found_dir in $rpathdirs; do
15510         acl_save_libdir="$libdir"
15511         libdir="$found_dir"
15512         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15513         libdir="$acl_save_libdir"
15514         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15515       done
15516     fi
15517   fi
15518   if test "X$ltrpathdirs" != "X"; then
15519             for found_dir in $ltrpathdirs; do
15520       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15521     done
15522   fi
15523
15524           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15525 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15526 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
15527   $as_echo_n "(cached) " >&6
15528 else
15529   gt_save_CPPFLAGS="$CPPFLAGS"
15530             CPPFLAGS="$CPPFLAGS $INCINTL"
15531             gt_save_LIBS="$LIBS"
15532             LIBS="$LIBS $LIBINTL"
15533                         cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539 #include <libintl.h>
15540 $gt_revision_test_code
15541 extern int _nl_msg_cat_cntr;
15542 extern
15543 #ifdef __cplusplus
15544 "C"
15545 #endif
15546 const char *_nl_expand_alias (const char *);
15547 int
15548 main ()
15549 {
15550 bindtextdomain ("", "");
15551 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15563 $as_echo "$ac_try_echo") >&5
15564   (eval "$ac_link") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } && {
15571          test -z "$ac_c_werror_flag" ||
15572          test ! -s conftest.err
15573        } && test -s conftest$ac_exeext && {
15574          test "$cross_compiling" = yes ||
15575          $as_test_x conftest$ac_exeext
15576        }; then
15577   eval "$gt_func_gnugettext_libintl=yes"
15578 else
15579   $as_echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582         eval "$gt_func_gnugettext_libintl=no"
15583 fi
15584
15585 rm -rf conftest.dSYM
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587       conftest$ac_exeext conftest.$ac_ext
15588                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15589               LIBS="$LIBS $LIBICONV"
15590               cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h.  */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h.  */
15596 #include <libintl.h>
15597 $gt_revision_test_code
15598 extern int _nl_msg_cat_cntr;
15599 extern
15600 #ifdef __cplusplus
15601 "C"
15602 #endif
15603 const char *_nl_expand_alias (const char *);
15604 int
15605 main ()
15606 {
15607 bindtextdomain ("", "");
15608 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621   (eval "$ac_link") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } && {
15628          test -z "$ac_c_werror_flag" ||
15629          test ! -s conftest.err
15630        } && test -s conftest$ac_exeext && {
15631          test "$cross_compiling" = yes ||
15632          $as_test_x conftest$ac_exeext
15633        }; then
15634   LIBINTL="$LIBINTL $LIBICONV"
15635                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15636                 eval "$gt_func_gnugettext_libintl=yes"
15637
15638 else
15639   $as_echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642
15643 fi
15644
15645 rm -rf conftest.dSYM
15646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15647       conftest$ac_exeext conftest.$ac_ext
15648             fi
15649             CPPFLAGS="$gt_save_CPPFLAGS"
15650             LIBS="$gt_save_LIBS"
15651 fi
15652 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
15653                  $as_echo "$as_val"'`
15654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655 $as_echo "$ac_res" >&6; }
15656         fi
15657
15658                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15659            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15660                 && test "$PACKAGE" != gettext-runtime \
15661                 && test "$PACKAGE" != gettext-tools; }; then
15662           gt_use_preinstalled_gnugettext=yes
15663         else
15664                     LIBINTL=
15665           LTLIBINTL=
15666           INCINTL=
15667         fi
15668
15669
15670
15671     if test -n "$INTL_MACOSX_LIBS"; then
15672       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15673          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15674                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15675         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15676       fi
15677     fi
15678
15679     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15680        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15681
15682 cat >>confdefs.h <<\_ACEOF
15683 #define ENABLE_NLS 1
15684 _ACEOF
15685
15686     else
15687       USE_NLS=no
15688     fi
15689   fi
15690
15691   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
15692 $as_echo_n "checking whether to use NLS... " >&6; }
15693   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15694 $as_echo "$USE_NLS" >&6; }
15695   if test "$USE_NLS" = "yes"; then
15696     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
15697 $as_echo_n "checking where the gettext function comes from... " >&6; }
15698     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15699       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15700         gt_source="external libintl"
15701       else
15702         gt_source="libc"
15703       fi
15704     else
15705       gt_source="included intl directory"
15706     fi
15707     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
15708 $as_echo "$gt_source" >&6; }
15709   fi
15710
15711   if test "$USE_NLS" = "yes"; then
15712
15713     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15714       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15715         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
15716 $as_echo_n "checking how to link with libintl... " >&6; }
15717         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
15718 $as_echo "$LIBINTL" >&6; }
15719
15720   for element in $INCINTL; do
15721     haveit=
15722     for x in $CPPFLAGS; do
15723
15724   acl_save_prefix="$prefix"
15725   prefix="$acl_final_prefix"
15726   acl_save_exec_prefix="$exec_prefix"
15727   exec_prefix="$acl_final_exec_prefix"
15728   eval x=\"$x\"
15729   exec_prefix="$acl_save_exec_prefix"
15730   prefix="$acl_save_prefix"
15731
15732       if test "X$x" = "X$element"; then
15733         haveit=yes
15734         break
15735       fi
15736     done
15737     if test -z "$haveit"; then
15738       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15739     fi
15740   done
15741
15742       fi
15743
15744
15745 cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_GETTEXT 1
15747 _ACEOF
15748
15749
15750 cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_DCGETTEXT 1
15752 _ACEOF
15753
15754     fi
15755
15756         POSUB=po
15757   fi
15758
15759
15760
15761     INTLLIBS="$LIBINTL"
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772           am_save_CPPFLAGS="$CPPFLAGS"
15773
15774   for element in $INCICONV; do
15775     haveit=
15776     for x in $CPPFLAGS; do
15777
15778   acl_save_prefix="$prefix"
15779   prefix="$acl_final_prefix"
15780   acl_save_exec_prefix="$exec_prefix"
15781   exec_prefix="$acl_final_exec_prefix"
15782   eval x=\"$x\"
15783   exec_prefix="$acl_save_exec_prefix"
15784   prefix="$acl_save_prefix"
15785
15786       if test "X$x" = "X$element"; then
15787         haveit=yes
15788         break
15789       fi
15790     done
15791     if test -z "$haveit"; then
15792       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15793     fi
15794   done
15795
15796
15797   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
15798 $as_echo_n "checking for iconv... " >&6; }
15799 if test "${am_cv_func_iconv+set}" = set; then
15800   $as_echo_n "(cached) " >&6
15801 else
15802
15803     am_cv_func_iconv="no, consider installing GNU libiconv"
15804     am_cv_lib_iconv=no
15805     cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <stdlib.h>
15812 #include <iconv.h>
15813 int
15814 main ()
15815 {
15816 iconv_t cd = iconv_open("","");
15817        iconv(cd,NULL,NULL,NULL,NULL);
15818        iconv_close(cd);
15819   ;
15820   return 0;
15821 }
15822 _ACEOF
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827   *) ac_try_echo=$ac_try;;
15828 esac
15829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831   (eval "$ac_link") 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } && {
15838          test -z "$ac_c_werror_flag" ||
15839          test ! -s conftest.err
15840        } && test -s conftest$ac_exeext && {
15841          test "$cross_compiling" = yes ||
15842          $as_test_x conftest$ac_exeext
15843        }; then
15844   am_cv_func_iconv=yes
15845 else
15846   $as_echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849
15850 fi
15851
15852 rm -rf conftest.dSYM
15853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15854       conftest$ac_exeext conftest.$ac_ext
15855     if test "$am_cv_func_iconv" != yes; then
15856       am_save_LIBS="$LIBS"
15857       LIBS="$LIBS $LIBICONV"
15858       cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 #include <stdlib.h>
15865 #include <iconv.h>
15866 int
15867 main ()
15868 {
15869 iconv_t cd = iconv_open("","");
15870          iconv(cd,NULL,NULL,NULL,NULL);
15871          iconv_close(cd);
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15883 $as_echo "$ac_try_echo") >&5
15884   (eval "$ac_link") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } && {
15891          test -z "$ac_c_werror_flag" ||
15892          test ! -s conftest.err
15893        } && test -s conftest$ac_exeext && {
15894          test "$cross_compiling" = yes ||
15895          $as_test_x conftest$ac_exeext
15896        }; then
15897   am_cv_lib_iconv=yes
15898         am_cv_func_iconv=yes
15899 else
15900   $as_echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903
15904 fi
15905
15906 rm -rf conftest.dSYM
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908       conftest$ac_exeext conftest.$ac_ext
15909       LIBS="$am_save_LIBS"
15910     fi
15911
15912 fi
15913 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15914 $as_echo "$am_cv_func_iconv" >&6; }
15915   if test "$am_cv_func_iconv" = yes; then
15916     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
15917 $as_echo_n "checking for working iconv... " >&6; }
15918 if test "${am_cv_func_iconv_works+set}" = set; then
15919   $as_echo_n "(cached) " >&6
15920 else
15921
15922             am_save_LIBS="$LIBS"
15923       if test $am_cv_lib_iconv = yes; then
15924         LIBS="$LIBS $LIBICONV"
15925       fi
15926       if test "$cross_compiling" = yes; then
15927   case "$host_os" in
15928            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15929            *)            am_cv_func_iconv_works="guessing yes" ;;
15930          esac
15931 else
15932   cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h.  */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h.  */
15938
15939 #include <iconv.h>
15940 #include <string.h>
15941 int main ()
15942 {
15943   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15944      returns.  */
15945   {
15946     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15947     if (cd_utf8_to_88591 != (iconv_t)(-1))
15948       {
15949         static const char input[] = "\342\202\254"; /* EURO SIGN */
15950         char buf[10];
15951         const char *inptr = input;
15952         size_t inbytesleft = strlen (input);
15953         char *outptr = buf;
15954         size_t outbytesleft = sizeof (buf);
15955         size_t res = iconv (cd_utf8_to_88591,
15956                             (char **) &inptr, &inbytesleft,
15957                             &outptr, &outbytesleft);
15958         if (res == 0)
15959           return 1;
15960       }
15961   }
15962 #if 0 /* This bug could be worked around by the caller.  */
15963   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15964   {
15965     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15966     if (cd_88591_to_utf8 != (iconv_t)(-1))
15967       {
15968         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15969         char buf[50];
15970         const char *inptr = input;
15971         size_t inbytesleft = strlen (input);
15972         char *outptr = buf;
15973         size_t outbytesleft = sizeof (buf);
15974         size_t res = iconv (cd_88591_to_utf8,
15975                             (char **) &inptr, &inbytesleft,
15976                             &outptr, &outbytesleft);
15977         if ((int)res > 0)
15978           return 1;
15979       }
15980   }
15981 #endif
15982   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15983      provided.  */
15984   if (/* Try standardized names.  */
15985       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15986       /* Try IRIX, OSF/1 names.  */
15987       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15988       /* Try AIX names.  */
15989       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15990       /* Try HP-UX names.  */
15991       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15992     return 1;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16003 $as_echo "$ac_try_echo") >&5
16004   (eval "$ac_link") 2>&5
16005   ac_status=$?
16006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16008   { (case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16013 $as_echo "$ac_try_echo") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   am_cv_func_iconv_works=yes
16019 else
16020   $as_echo "$as_me: program exited with status $ac_status" >&5
16021 $as_echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ( exit $ac_status )
16025 am_cv_func_iconv_works=no
16026 fi
16027 rm -rf conftest.dSYM
16028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16029 fi
16030
16031
16032       LIBS="$am_save_LIBS"
16033
16034 fi
16035 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
16036 $as_echo "$am_cv_func_iconv_works" >&6; }
16037     case "$am_cv_func_iconv_works" in
16038       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16039       *)   am_func_iconv=yes ;;
16040     esac
16041   else
16042     am_func_iconv=no am_cv_lib_iconv=no
16043   fi
16044   if test "$am_func_iconv" = yes; then
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_ICONV 1
16048 _ACEOF
16049
16050   fi
16051   if test "$am_cv_lib_iconv" = yes; then
16052     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16053 $as_echo_n "checking how to link with libiconv... " >&6; }
16054     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16055 $as_echo "$LIBICONV" >&6; }
16056   else
16057             CPPFLAGS="$am_save_CPPFLAGS"
16058     LIBICONV=
16059     LTLIBICONV=
16060   fi
16061
16062
16063
16064
16065 popt_sysconfdir="${sysconfdir}"
16066 eval "popt_sysconfdir=\"${popt_sysconfdir}\"" # expand contained ${prefix}
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define POPT_SYSCONFDIR "$popt_sysconfdir"
16070 _ACEOF
16071
16072
16073
16074 # Define a (hope) portable Libs pkgconfig directive that
16075 # - Don't harm if the default library search path include ${libdir}
16076 #   (https://bugzilla.novell.com/show_bug.cgi?id=529921)
16077 # - Don't require a not upstream patch to pkgconfig
16078 #   (https://bugs.freedesktop.org/show_bug.cgi?id=16095)
16079 popt_pkgconfig_libs='-L${libdir} -lpopt'
16080 case "${host}" in
16081     *-*-linux*)
16082         case "${libdir}" in
16083             /usr/lib|/usr/lib64|/lib|/lib64)
16084                    popt_pkgconfig_libs='-lpopt'
16085                 ;;
16086                 *)
16087                 popt_pkgconfig_libs='-L${libdir} -lpopt'
16088         ;;
16089         esac
16090       ;;
16091     *-*-gnu*)
16092         case "${libdir}" in
16093             /usr/lib|/usr/lib64|/lib|/lib64)
16094                    popt_pkgconfig_libs='-lpopt'
16095                 ;;
16096                 *)
16097                 popt_pkgconfig_libs='-L${libdir} -lpopt'
16098         ;;
16099         esac
16100       ;;
16101 esac
16102 POPT_PKGCONFIG_LIBS="$popt_pkgconfig_libs"
16103
16104
16105 POPT_SOURCE_PATH="`pwd`"
16106
16107 cat >>confdefs.h <<_ACEOF
16108 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
16109 _ACEOF
16110
16111
16112
16113
16114
16115 subdirs="$subdirs "
16116
16117 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile Doxyfile Makefile popt.pc popt.spec test-poptrc auto/Makefile auto/desc auto/types"
16118
16119 cat >confcache <<\_ACEOF
16120 # This file is a shell script that caches the results of configure
16121 # tests run on this system so they can be shared between configure
16122 # scripts and configure runs, see configure's option --config-cache.
16123 # It is not useful on other systems.  If it contains results you don't
16124 # want to keep, you may remove or edit it.
16125 #
16126 # config.status only pays attention to the cache file if you give it
16127 # the --recheck option to rerun configure.
16128 #
16129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16131 # following values.
16132
16133 _ACEOF
16134
16135 # The following way of writing the cache mishandles newlines in values,
16136 # but we know of no workaround that is simple, portable, and efficient.
16137 # So, we kill variables containing newlines.
16138 # Ultrix sh set writes to stderr and can't be redirected directly,
16139 # and sets the high bit in the cache file unless we assign to the vars.
16140 (
16141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16142     eval ac_val=\$$ac_var
16143     case $ac_val in #(
16144     *${as_nl}*)
16145       case $ac_var in #(
16146       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16148       esac
16149       case $ac_var in #(
16150       _ | IFS | as_nl) ;; #(
16151       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16152       *) $as_unset $ac_var ;;
16153       esac ;;
16154     esac
16155   done
16156
16157   (set) 2>&1 |
16158     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16159     *${as_nl}ac_space=\ *)
16160       # `set' does not quote correctly, so add quotes (double-quote
16161       # substitution turns \\\\ into \\, and sed turns \\ into \).
16162       sed -n \
16163         "s/'/'\\\\''/g;
16164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16165       ;; #(
16166     *)
16167       # `set' quotes correctly as required by POSIX, so do not add quotes.
16168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16169       ;;
16170     esac |
16171     sort
16172 ) |
16173   sed '
16174      /^ac_cv_env_/b end
16175      t clear
16176      :clear
16177      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16178      t end
16179      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16180      :end' >>confcache
16181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16182   if test -w "$cache_file"; then
16183     test "x$cache_file" != "x/dev/null" &&
16184       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16185 $as_echo "$as_me: updating cache $cache_file" >&6;}
16186     cat confcache >$cache_file
16187   else
16188     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16190   fi
16191 fi
16192 rm -f confcache
16193
16194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16195 # Let make expand exec_prefix.
16196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16197
16198 DEFS=-DHAVE_CONFIG_H
16199
16200 ac_libobjs=
16201 ac_ltlibobjs=
16202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16203   # 1. Remove the extension, and $U if already installed.
16204   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16205   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16206   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16207   #    will be set to the directory where LIBOBJS objects are built.
16208   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16209   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16210 done
16211 LIBOBJS=$ac_libobjs
16212
16213 LTLIBOBJS=$ac_ltlibobjs
16214
16215
16216  if test -n "$EXEEXT"; then
16217   am__EXEEXT_TRUE=
16218   am__EXEEXT_FALSE='#'
16219 else
16220   am__EXEEXT_TRUE='#'
16221   am__EXEEXT_FALSE=
16222 fi
16223
16224 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16225   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16226 Usually this means the macro was only invoked conditionally." >&5
16227 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16228 Usually this means the macro was only invoked conditionally." >&2;}
16229    { (exit 1); exit 1; }; }
16230 fi
16231 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16232   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16233 Usually this means the macro was only invoked conditionally." >&5
16234 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16235 Usually this means the macro was only invoked conditionally." >&2;}
16236    { (exit 1); exit 1; }; }
16237 fi
16238 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16239   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16240 Usually this means the macro was only invoked conditionally." >&5
16241 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16242 Usually this means the macro was only invoked conditionally." >&2;}
16243    { (exit 1); exit 1; }; }
16244 fi
16245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16246   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16247 Usually this means the macro was only invoked conditionally." >&5
16248 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16249 Usually this means the macro was only invoked conditionally." >&2;}
16250    { (exit 1); exit 1; }; }
16251 fi
16252 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16253   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16254 Usually this means the macro was only invoked conditionally." >&5
16255 $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16256 Usually this means the macro was only invoked conditionally." >&2;}
16257    { (exit 1); exit 1; }; }
16258 fi
16259
16260 : ${CONFIG_STATUS=./config.status}
16261 ac_write_fail=0
16262 ac_clean_files_save=$ac_clean_files
16263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16264 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16266 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 #! $SHELL
16268 # Generated by $as_me.
16269 # Run this file to recreate the current configuration.
16270 # Compiler output produced by configure, useful for debugging
16271 # configure, is in config.log if it exists.
16272
16273 debug=false
16274 ac_cs_recheck=false
16275 ac_cs_silent=false
16276 SHELL=\${CONFIG_SHELL-$SHELL}
16277 _ACEOF
16278
16279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 ## --------------------- ##
16281 ## M4sh Initialization.  ##
16282 ## --------------------- ##
16283
16284 # Be more Bourne compatible
16285 DUALCASE=1; export DUALCASE # for MKS sh
16286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16287   emulate sh
16288   NULLCMD=:
16289   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16290   # is contrary to our usage.  Disable this feature.
16291   alias -g '${1+"$@"}'='"$@"'
16292   setopt NO_GLOB_SUBST
16293 else
16294   case `(set -o) 2>/dev/null` in
16295   *posix*) set -o posix ;;
16296 esac
16297
16298 fi
16299
16300
16301
16302
16303 # PATH needs CR
16304 # Avoid depending upon Character Ranges.
16305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16308 as_cr_digits='0123456789'
16309 as_cr_alnum=$as_cr_Letters$as_cr_digits
16310
16311 as_nl='
16312 '
16313 export as_nl
16314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16318 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16319   as_echo='printf %s\n'
16320   as_echo_n='printf %s'
16321 else
16322   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16323     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16324     as_echo_n='/usr/ucb/echo -n'
16325   else
16326     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16327     as_echo_n_body='eval
16328       arg=$1;
16329       case $arg in
16330       *"$as_nl"*)
16331         expr "X$arg" : "X\\(.*\\)$as_nl";
16332         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16333       esac;
16334       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16335     '
16336     export as_echo_n_body
16337     as_echo_n='sh -c $as_echo_n_body as_echo'
16338   fi
16339   export as_echo_body
16340   as_echo='sh -c $as_echo_body as_echo'
16341 fi
16342
16343 # The user is always right.
16344 if test "${PATH_SEPARATOR+set}" != set; then
16345   PATH_SEPARATOR=:
16346   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16347     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16348       PATH_SEPARATOR=';'
16349   }
16350 fi
16351
16352 # Support unset when possible.
16353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16354   as_unset=unset
16355 else
16356   as_unset=false
16357 fi
16358
16359
16360 # IFS
16361 # We need space, tab and new line, in precisely that order.  Quoting is
16362 # there to prevent editors from complaining about space-tab.
16363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16364 # splitting by setting IFS to empty value.)
16365 IFS=" ""        $as_nl"
16366
16367 # Find who we are.  Look in the path if we contain no directory separator.
16368 case $0 in
16369   *[\\/]* ) as_myself=$0 ;;
16370   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16371 for as_dir in $PATH
16372 do
16373   IFS=$as_save_IFS
16374   test -z "$as_dir" && as_dir=.
16375   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16376 done
16377 IFS=$as_save_IFS
16378
16379      ;;
16380 esac
16381 # We did not find ourselves, most probably we were run as `sh COMMAND'
16382 # in which case we are not to be found in the path.
16383 if test "x$as_myself" = x; then
16384   as_myself=$0
16385 fi
16386 if test ! -f "$as_myself"; then
16387   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16388   { (exit 1); exit 1; }
16389 fi
16390
16391 # Work around bugs in pre-3.0 UWIN ksh.
16392 for as_var in ENV MAIL MAILPATH
16393 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16394 done
16395 PS1='$ '
16396 PS2='> '
16397 PS4='+ '
16398
16399 # NLS nuisances.
16400 LC_ALL=C
16401 export LC_ALL
16402 LANGUAGE=C
16403 export LANGUAGE
16404
16405 # Required to use basename.
16406 if expr a : '\(a\)' >/dev/null 2>&1 &&
16407    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16408   as_expr=expr
16409 else
16410   as_expr=false
16411 fi
16412
16413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16414   as_basename=basename
16415 else
16416   as_basename=false
16417 fi
16418
16419
16420 # Name of the executable.
16421 as_me=`$as_basename -- "$0" ||
16422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16423          X"$0" : 'X\(//\)$' \| \
16424          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16425 $as_echo X/"$0" |
16426     sed '/^.*\/\([^/][^/]*\)\/*$/{
16427             s//\1/
16428             q
16429           }
16430           /^X\/\(\/\/\)$/{
16431             s//\1/
16432             q
16433           }
16434           /^X\/\(\/\).*/{
16435             s//\1/
16436             q
16437           }
16438           s/.*/./; q'`
16439
16440 # CDPATH.
16441 $as_unset CDPATH
16442
16443
16444
16445   as_lineno_1=$LINENO
16446   as_lineno_2=$LINENO
16447   test "x$as_lineno_1" != "x$as_lineno_2" &&
16448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16449
16450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16451   # uniformly replaced by the line number.  The first 'sed' inserts a
16452   # line-number line after each line using $LINENO; the second 'sed'
16453   # does the real work.  The second script uses 'N' to pair each
16454   # line-number line with the line containing $LINENO, and appends
16455   # trailing '-' during substitution so that $LINENO is not a special
16456   # case at line end.
16457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16459   # E. McMahon (1931-1989) for sed's syntax.  :-)
16460   sed -n '
16461     p
16462     /[$]LINENO/=
16463   ' <$as_myself |
16464     sed '
16465       s/[$]LINENO.*/&-/
16466       t lineno
16467       b
16468       :lineno
16469       N
16470       :loop
16471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16472       t loop
16473       s/-\n.*//
16474     ' >$as_me.lineno &&
16475   chmod +x "$as_me.lineno" ||
16476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16477    { (exit 1); exit 1; }; }
16478
16479   # Don't try to exec as it changes $[0], causing all sort of problems
16480   # (the dirname of $[0] is not the place where we might find the
16481   # original and so on.  Autoconf is especially sensitive to this).
16482   . "./$as_me.lineno"
16483   # Exit status is that of the last command.
16484   exit
16485 }
16486
16487
16488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16489   as_dirname=dirname
16490 else
16491   as_dirname=false
16492 fi
16493
16494 ECHO_C= ECHO_N= ECHO_T=
16495 case `echo -n x` in
16496 -n*)
16497   case `echo 'x\c'` in
16498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16499   *)   ECHO_C='\c';;
16500   esac;;
16501 *)
16502   ECHO_N='-n';;
16503 esac
16504 if expr a : '\(a\)' >/dev/null 2>&1 &&
16505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16506   as_expr=expr
16507 else
16508   as_expr=false
16509 fi
16510
16511 rm -f conf$$ conf$$.exe conf$$.file
16512 if test -d conf$$.dir; then
16513   rm -f conf$$.dir/conf$$.file
16514 else
16515   rm -f conf$$.dir
16516   mkdir conf$$.dir 2>/dev/null
16517 fi
16518 if (echo >conf$$.file) 2>/dev/null; then
16519   if ln -s conf$$.file conf$$ 2>/dev/null; then
16520     as_ln_s='ln -s'
16521     # ... but there are two gotchas:
16522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16524     # In both cases, we have to default to `cp -p'.
16525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16526       as_ln_s='cp -p'
16527   elif ln conf$$.file conf$$ 2>/dev/null; then
16528     as_ln_s=ln
16529   else
16530     as_ln_s='cp -p'
16531   fi
16532 else
16533   as_ln_s='cp -p'
16534 fi
16535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16536 rmdir conf$$.dir 2>/dev/null
16537
16538 if mkdir -p . 2>/dev/null; then
16539   as_mkdir_p=:
16540 else
16541   test -d ./-p && rmdir ./-p
16542   as_mkdir_p=false
16543 fi
16544
16545 if test -x / >/dev/null 2>&1; then
16546   as_test_x='test -x'
16547 else
16548   if ls -dL / >/dev/null 2>&1; then
16549     as_ls_L_option=L
16550   else
16551     as_ls_L_option=
16552   fi
16553   as_test_x='
16554     eval sh -c '\''
16555       if test -d "$1"; then
16556         test -d "$1/.";
16557       else
16558         case $1 in
16559         -*)set "./$1";;
16560         esac;
16561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16562         ???[sx]*):;;*)false;;esac;fi
16563     '\'' sh
16564   '
16565 fi
16566 as_executable_p=$as_test_x
16567
16568 # Sed expression to map a string onto a valid CPP name.
16569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16570
16571 # Sed expression to map a string onto a valid variable name.
16572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16573
16574
16575 exec 6>&1
16576
16577 # Save the log message, to keep $[0] and so on meaningful, and to
16578 # report actual input values of CONFIG_FILES etc. instead of their
16579 # values after options handling.
16580 ac_log="
16581 This file was extended by popt $as_me 1.16, which was
16582 generated by GNU Autoconf 2.63.  Invocation command line was
16583
16584   CONFIG_FILES    = $CONFIG_FILES
16585   CONFIG_HEADERS  = $CONFIG_HEADERS
16586   CONFIG_LINKS    = $CONFIG_LINKS
16587   CONFIG_COMMANDS = $CONFIG_COMMANDS
16588   $ $0 $@
16589
16590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16591 "
16592
16593 _ACEOF
16594
16595 case $ac_config_files in *"
16596 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16597 esac
16598
16599 case $ac_config_headers in *"
16600 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16601 esac
16602
16603
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 # Files that config.status was made for.
16606 config_files="$ac_config_files"
16607 config_headers="$ac_config_headers"
16608 config_commands="$ac_config_commands"
16609
16610 _ACEOF
16611
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16613 ac_cs_usage="\
16614 \`$as_me' instantiates files from templates according to the
16615 current configuration.
16616
16617 Usage: $0 [OPTION]... [FILE]...
16618
16619   -h, --help       print this help, then exit
16620   -V, --version    print version number and configuration settings, then exit
16621   -q, --quiet, --silent
16622                    do not print progress messages
16623   -d, --debug      don't remove temporary files
16624       --recheck    update $as_me by reconfiguring in the same conditions
16625       --file=FILE[:TEMPLATE]
16626                    instantiate the configuration file FILE
16627       --header=FILE[:TEMPLATE]
16628                    instantiate the configuration header FILE
16629
16630 Configuration files:
16631 $config_files
16632
16633 Configuration headers:
16634 $config_headers
16635
16636 Configuration commands:
16637 $config_commands
16638
16639 Report bugs to <bug-autoconf@gnu.org>."
16640
16641 _ACEOF
16642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643 ac_cs_version="\\
16644 popt config.status 1.16
16645 configured by $0, generated by GNU Autoconf 2.63,
16646   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16647
16648 Copyright (C) 2008 Free Software Foundation, Inc.
16649 This config.status script is free software; the Free Software Foundation
16650 gives unlimited permission to copy, distribute and modify it."
16651
16652 ac_pwd='$ac_pwd'
16653 srcdir='$srcdir'
16654 INSTALL='$INSTALL'
16655 MKDIR_P='$MKDIR_P'
16656 AWK='$AWK'
16657 test -n "\$AWK" || AWK=awk
16658 _ACEOF
16659
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16661 # The default lists apply if the user does not specify any file.
16662 ac_need_defaults=:
16663 while test $# != 0
16664 do
16665   case $1 in
16666   --*=*)
16667     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16668     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16669     ac_shift=:
16670     ;;
16671   *)
16672     ac_option=$1
16673     ac_optarg=$2
16674     ac_shift=shift
16675     ;;
16676   esac
16677
16678   case $ac_option in
16679   # Handling of the options.
16680   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16681     ac_cs_recheck=: ;;
16682   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16683     $as_echo "$ac_cs_version"; exit ;;
16684   --debug | --debu | --deb | --de | --d | -d )
16685     debug=: ;;
16686   --file | --fil | --fi | --f )
16687     $ac_shift
16688     case $ac_optarg in
16689     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16690     esac
16691     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16692     ac_need_defaults=false;;
16693   --header | --heade | --head | --hea )
16694     $ac_shift
16695     case $ac_optarg in
16696     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16697     esac
16698     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16699     ac_need_defaults=false;;
16700   --he | --h)
16701     # Conflict between --help and --header
16702     { $as_echo "$as_me: error: ambiguous option: $1
16703 Try \`$0 --help' for more information." >&2
16704    { (exit 1); exit 1; }; };;
16705   --help | --hel | -h )
16706     $as_echo "$ac_cs_usage"; exit ;;
16707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16709     ac_cs_silent=: ;;
16710
16711   # This is an error.
16712   -*) { $as_echo "$as_me: error: unrecognized option: $1
16713 Try \`$0 --help' for more information." >&2
16714    { (exit 1); exit 1; }; } ;;
16715
16716   *) ac_config_targets="$ac_config_targets $1"
16717      ac_need_defaults=false ;;
16718
16719   esac
16720   shift
16721 done
16722
16723 ac_configure_extra_args=
16724
16725 if $ac_cs_silent; then
16726   exec 6>/dev/null
16727   ac_configure_extra_args="$ac_configure_extra_args --silent"
16728 fi
16729
16730 _ACEOF
16731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16732 if \$ac_cs_recheck; then
16733   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16734   shift
16735   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16736   CONFIG_SHELL='$SHELL'
16737   export CONFIG_SHELL
16738   exec "\$@"
16739 fi
16740
16741 _ACEOF
16742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16743 exec 5>>config.log
16744 {
16745   echo
16746   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16747 ## Running $as_me. ##
16748 _ASBOX
16749   $as_echo "$ac_log"
16750 } >&5
16751
16752 _ACEOF
16753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16754 #
16755 # INIT-COMMANDS
16756 #
16757 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16758
16759
16760 # The HP-UX ksh and POSIX shell print the target directory to stdout
16761 # if CDPATH is set.
16762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16763
16764 sed_quote_subst='$sed_quote_subst'
16765 double_quote_subst='$double_quote_subst'
16766 delay_variable_subst='$delay_variable_subst'
16767 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16768 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16769 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16770 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16771 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16772 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16773 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16774 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16775 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16776 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16777 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16778 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16779 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16780 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16781 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16782 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16783 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16784 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16785 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16786 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16787 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16788 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16789 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16790 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16791 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16792 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16793 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16794 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16795 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16796 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16797 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16798 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16799 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16800 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16801 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16802 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16803 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16804 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16805 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16806 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16807 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16808 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16809 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16810 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16813 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16814 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16815 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16816 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16817 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16818 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16819 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16820 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16821 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16822 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16823 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16824 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16825 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16826 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16827 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16828 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16829 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16830 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16831 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16832 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16833 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16834 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16835 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16836 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16837 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16838 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16839 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16840 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16841 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16842 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16843 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16844 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16845 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16846 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16847 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16848 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16849 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16850 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16851 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16852 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16853 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16854 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16855 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16856 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16857 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16858 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16859 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16860 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16861 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16862 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16863 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16864 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16865 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16866 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16867 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16868 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16869 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16870 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16871 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16872 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16873 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16874 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16875 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16876 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16877 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16878 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16879 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16880 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16881 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16882 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16883 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16884 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16885
16886 LTCC='$LTCC'
16887 LTCFLAGS='$LTCFLAGS'
16888 compiler='$compiler_DEFAULT'
16889
16890 # Quote evaled strings.
16891 for var in SED \
16892 GREP \
16893 EGREP \
16894 FGREP \
16895 LD \
16896 NM \
16897 LN_S \
16898 lt_SP2NL \
16899 lt_NL2SP \
16900 reload_flag \
16901 OBJDUMP \
16902 deplibs_check_method \
16903 file_magic_cmd \
16904 AR \
16905 AR_FLAGS \
16906 STRIP \
16907 RANLIB \
16908 CC \
16909 CFLAGS \
16910 compiler \
16911 lt_cv_sys_global_symbol_pipe \
16912 lt_cv_sys_global_symbol_to_cdecl \
16913 lt_cv_sys_global_symbol_to_c_name_address \
16914 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16915 SHELL \
16916 ECHO \
16917 lt_prog_compiler_no_builtin_flag \
16918 lt_prog_compiler_wl \
16919 lt_prog_compiler_pic \
16920 lt_prog_compiler_static \
16921 lt_cv_prog_compiler_c_o \
16922 need_locks \
16923 DSYMUTIL \
16924 NMEDIT \
16925 LIPO \
16926 OTOOL \
16927 OTOOL64 \
16928 shrext_cmds \
16929 export_dynamic_flag_spec \
16930 whole_archive_flag_spec \
16931 compiler_needs_object \
16932 with_gnu_ld \
16933 allow_undefined_flag \
16934 no_undefined_flag \
16935 hardcode_libdir_flag_spec \
16936 hardcode_libdir_flag_spec_ld \
16937 hardcode_libdir_separator \
16938 fix_srcfile_path \
16939 exclude_expsyms \
16940 include_expsyms \
16941 file_list_spec \
16942 variables_saved_for_relink \
16943 libname_spec \
16944 library_names_spec \
16945 soname_spec \
16946 finish_eval \
16947 old_striplib \
16948 striplib; do
16949     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16950     *[\\\\\\\`\\"\\\$]*)
16951       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16952       ;;
16953     *)
16954       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16955       ;;
16956     esac
16957 done
16958
16959 # Double-quote double-evaled strings.
16960 for var in reload_cmds \
16961 old_postinstall_cmds \
16962 old_postuninstall_cmds \
16963 old_archive_cmds \
16964 extract_expsyms_cmds \
16965 old_archive_from_new_cmds \
16966 old_archive_from_expsyms_cmds \
16967 archive_cmds \
16968 archive_expsym_cmds \
16969 module_cmds \
16970 module_expsym_cmds \
16971 export_symbols_cmds \
16972 prelink_cmds \
16973 postinstall_cmds \
16974 postuninstall_cmds \
16975 finish_cmds \
16976 sys_lib_search_path_spec \
16977 sys_lib_dlsearch_path_spec; do
16978     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16979     *[\\\\\\\`\\"\\\$]*)
16980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16981       ;;
16982     *)
16983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16984       ;;
16985     esac
16986 done
16987
16988 # Fix-up fallback echo if it was mangled by the above quoting rules.
16989 case \$lt_ECHO in
16990 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16991   ;;
16992 esac
16993
16994 ac_aux_dir='$ac_aux_dir'
16995 xsi_shell='$xsi_shell'
16996 lt_shell_append='$lt_shell_append'
16997
16998 # See if we are running on zsh, and set the options which allow our
16999 # commands through without removal of \ escapes INIT.
17000 if test -n "\${ZSH_VERSION+set}" ; then
17001    setopt NO_GLOB_SUBST
17002 fi
17003
17004
17005     PACKAGE='$PACKAGE'
17006     VERSION='$VERSION'
17007     TIMESTAMP='$TIMESTAMP'
17008     RM='$RM'
17009     ofile='$ofile'
17010
17011
17012
17013 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17014     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17015     # from automake < 1.5.
17016     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17017     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17018     LINGUAS="${LINGUAS-%UNSET%}"
17019
17020
17021 _ACEOF
17022
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17024
17025 # Handling of arguments.
17026 for ac_config_target in $ac_config_targets
17027 do
17028   case $ac_config_target in
17029     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17030     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17031     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17032     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17033     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17034     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17035     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
17036     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17037     "popt.pc") CONFIG_FILES="$CONFIG_FILES popt.pc" ;;
17038     "popt.spec") CONFIG_FILES="$CONFIG_FILES popt.spec" ;;
17039     "test-poptrc") CONFIG_FILES="$CONFIG_FILES test-poptrc" ;;
17040     "auto/Makefile") CONFIG_FILES="$CONFIG_FILES auto/Makefile" ;;
17041     "auto/desc") CONFIG_FILES="$CONFIG_FILES auto/desc" ;;
17042     "auto/types") CONFIG_FILES="$CONFIG_FILES auto/types" ;;
17043
17044   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17045 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17046    { (exit 1); exit 1; }; };;
17047   esac
17048 done
17049
17050
17051 # If the user did not use the arguments to specify the items to instantiate,
17052 # then the envvar interface is used.  Set only those that are not.
17053 # We use the long form for the default assignment because of an extremely
17054 # bizarre bug on SunOS 4.1.3.
17055 if $ac_need_defaults; then
17056   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17057   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17058   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17059 fi
17060
17061 # Have a temporary directory for convenience.  Make it in the build tree
17062 # simply because there is no reason against having it here, and in addition,
17063 # creating and moving files from /tmp can sometimes cause problems.
17064 # Hook for its removal unless debugging.
17065 # Note that there is a small window in which the directory will not be cleaned:
17066 # after its creation but before its name has been assigned to `$tmp'.
17067 $debug ||
17068 {
17069   tmp=
17070   trap 'exit_status=$?
17071   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17072 ' 0
17073   trap '{ (exit 1); exit 1; }' 1 2 13 15
17074 }
17075 # Create a (secure) tmp directory for tmp files.
17076
17077 {
17078   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17079   test -n "$tmp" && test -d "$tmp"
17080 }  ||
17081 {
17082   tmp=./conf$$-$RANDOM
17083   (umask 077 && mkdir "$tmp")
17084 } ||
17085 {
17086    $as_echo "$as_me: cannot create a temporary directory in ." >&2
17087    { (exit 1); exit 1; }
17088 }
17089
17090 # Set up the scripts for CONFIG_FILES section.
17091 # No need to generate them if there are no CONFIG_FILES.
17092 # This happens for instance with `./config.status config.h'.
17093 if test -n "$CONFIG_FILES"; then
17094
17095
17096 ac_cr='\r'
17097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17099   ac_cs_awk_cr='\\r'
17100 else
17101   ac_cs_awk_cr=$ac_cr
17102 fi
17103
17104 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17105 _ACEOF
17106
17107
17108 {
17109   echo "cat >conf$$subs.awk <<_ACEOF" &&
17110   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17111   echo "_ACEOF"
17112 } >conf$$subs.sh ||
17113   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17114 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17115    { (exit 1); exit 1; }; }
17116 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17117 ac_delim='%!_!# '
17118 for ac_last_try in false false false false false :; do
17119   . ./conf$$subs.sh ||
17120     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17121 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17122    { (exit 1); exit 1; }; }
17123
17124   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17125   if test $ac_delim_n = $ac_delim_num; then
17126     break
17127   elif $ac_last_try; then
17128     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17130    { (exit 1); exit 1; }; }
17131   else
17132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17133   fi
17134 done
17135 rm -f conf$$subs.sh
17136
17137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17139 _ACEOF
17140 sed -n '
17141 h
17142 s/^/S["/; s/!.*/"]=/
17143 p
17144 g
17145 s/^[^!]*!//
17146 :repl
17147 t repl
17148 s/'"$ac_delim"'$//
17149 t delim
17150 :nl
17151 h
17152 s/\(.\{148\}\).*/\1/
17153 t more1
17154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17155 p
17156 n
17157 b repl
17158 :more1
17159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17160 p
17161 g
17162 s/.\{148\}//
17163 t nl
17164 :delim
17165 h
17166 s/\(.\{148\}\).*/\1/
17167 t more2
17168 s/["\\]/\\&/g; s/^/"/; s/$/"/
17169 p
17170 b
17171 :more2
17172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17173 p
17174 g
17175 s/.\{148\}//
17176 t delim
17177 ' <conf$$subs.awk | sed '
17178 /^[^""]/{
17179   N
17180   s/\n//
17181 }
17182 ' >>$CONFIG_STATUS || ac_write_fail=1
17183 rm -f conf$$subs.awk
17184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17185 _ACAWK
17186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17187   for (key in S) S_is_set[key] = 1
17188   FS = "\a"
17189
17190 }
17191 {
17192   line = $ 0
17193   nfields = split(line, field, "@")
17194   substed = 0
17195   len = length(field[1])
17196   for (i = 2; i < nfields; i++) {
17197     key = field[i]
17198     keylen = length(key)
17199     if (S_is_set[key]) {
17200       value = S[key]
17201       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17202       len += length(value) + length(field[++i])
17203       substed = 1
17204     } else
17205       len += 1 + keylen
17206   }
17207
17208   print line
17209 }
17210
17211 _ACAWK
17212 _ACEOF
17213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17215   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17216 else
17217   cat
17218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17219   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17220 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17221    { (exit 1); exit 1; }; }
17222 _ACEOF
17223
17224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17226 # trailing colons and then remove the whole line if VPATH becomes empty
17227 # (actually we leave an empty line to preserve line numbers).
17228 if test "x$srcdir" = x.; then
17229   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17230 s/:*\$(srcdir):*/:/
17231 s/:*\${srcdir}:*/:/
17232 s/:*@srcdir@:*/:/
17233 s/^\([^=]*=[     ]*\):*/\1/
17234 s/:*$//
17235 s/^[^=]*=[       ]*$//
17236 }'
17237 fi
17238
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240 fi # test -n "$CONFIG_FILES"
17241
17242 # Set up the scripts for CONFIG_HEADERS section.
17243 # No need to generate them if there are no CONFIG_HEADERS.
17244 # This happens for instance with `./config.status Makefile'.
17245 if test -n "$CONFIG_HEADERS"; then
17246 cat >"$tmp/defines.awk" <<\_ACAWK ||
17247 BEGIN {
17248 _ACEOF
17249
17250 # Transform confdefs.h into an awk script `defines.awk', embedded as
17251 # here-document in config.status, that substitutes the proper values into
17252 # config.h.in to produce config.h.
17253
17254 # Create a delimiter string that does not exist in confdefs.h, to ease
17255 # handling of long lines.
17256 ac_delim='%!_!# '
17257 for ac_last_try in false false :; do
17258   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17259   if test -z "$ac_t"; then
17260     break
17261   elif $ac_last_try; then
17262     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17263 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17264    { (exit 1); exit 1; }; }
17265   else
17266     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17267   fi
17268 done
17269
17270 # For the awk script, D is an array of macro values keyed by name,
17271 # likewise P contains macro parameters if any.  Preserve backslash
17272 # newline sequences.
17273
17274 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17275 sed -n '
17276 s/.\{148\}/&'"$ac_delim"'/g
17277 t rset
17278 :rset
17279 s/^[     ]*#[    ]*define[       ][      ]*/ /
17280 t def
17281 d
17282 :def
17283 s/\\$//
17284 t bsnl
17285 s/["\\]/\\&/g
17286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17287 D["\1"]=" \3"/p
17288 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17289 d
17290 :bsnl
17291 s/["\\]/\\&/g
17292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17293 D["\1"]=" \3\\\\\\n"\\/p
17294 t cont
17295 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17296 t cont
17297 d
17298 :cont
17299 n
17300 s/.\{148\}/&'"$ac_delim"'/g
17301 t clear
17302 :clear
17303 s/\\$//
17304 t bsnlc
17305 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17306 d
17307 :bsnlc
17308 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17309 b cont
17310 ' <confdefs.h | sed '
17311 s/'"$ac_delim"'/"\\\
17312 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17313
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315   for (key in D) D_is_set[key] = 1
17316   FS = "\a"
17317 }
17318 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17319   line = \$ 0
17320   split(line, arg, " ")
17321   if (arg[1] == "#") {
17322     defundef = arg[2]
17323     mac1 = arg[3]
17324   } else {
17325     defundef = substr(arg[1], 2)
17326     mac1 = arg[2]
17327   }
17328   split(mac1, mac2, "(") #)
17329   macro = mac2[1]
17330   prefix = substr(line, 1, index(line, defundef) - 1)
17331   if (D_is_set[macro]) {
17332     # Preserve the white space surrounding the "#".
17333     print prefix "define", macro P[macro] D[macro]
17334     next
17335   } else {
17336     # Replace #undef with comments.  This is necessary, for example,
17337     # in the case of _POSIX_SOURCE, which is predefined and required
17338     # on some systems where configure will not decide to define it.
17339     if (defundef == "undef") {
17340       print "/*", prefix defundef, macro, "*/"
17341       next
17342     }
17343   }
17344 }
17345 { print }
17346 _ACAWK
17347 _ACEOF
17348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17349   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17350 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17351    { (exit 1); exit 1; }; }
17352 fi # test -n "$CONFIG_HEADERS"
17353
17354
17355 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17356 shift
17357 for ac_tag
17358 do
17359   case $ac_tag in
17360   :[FHLC]) ac_mode=$ac_tag; continue;;
17361   esac
17362   case $ac_mode$ac_tag in
17363   :[FHL]*:*);;
17364   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17365 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17366    { (exit 1); exit 1; }; };;
17367   :[FH]-) ac_tag=-:-;;
17368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17369   esac
17370   ac_save_IFS=$IFS
17371   IFS=:
17372   set x $ac_tag
17373   IFS=$ac_save_IFS
17374   shift
17375   ac_file=$1
17376   shift
17377
17378   case $ac_mode in
17379   :L) ac_source=$1;;
17380   :[FH])
17381     ac_file_inputs=
17382     for ac_f
17383     do
17384       case $ac_f in
17385       -) ac_f="$tmp/stdin";;
17386       *) # Look for the file first in the build tree, then in the source tree
17387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17388          # because $ac_f cannot contain `:'.
17389          test -f "$ac_f" ||
17390            case $ac_f in
17391            [\\/$]*) false;;
17392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17393            esac ||
17394            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17395 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17396    { (exit 1); exit 1; }; };;
17397       esac
17398       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17399       ac_file_inputs="$ac_file_inputs '$ac_f'"
17400     done
17401
17402     # Let's still pretend it is `configure' which instantiates (i.e., don't
17403     # use $as_me), people would be surprised to read:
17404     #    /* config.h.  Generated by config.status.  */
17405     configure_input='Generated from '`
17406           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17407         `' by configure.'
17408     if test x"$ac_file" != x-; then
17409       configure_input="$ac_file.  $configure_input"
17410       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17411 $as_echo "$as_me: creating $ac_file" >&6;}
17412     fi
17413     # Neutralize special characters interpreted by sed in replacement strings.
17414     case $configure_input in #(
17415     *\&* | *\|* | *\\* )
17416        ac_sed_conf_input=`$as_echo "$configure_input" |
17417        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17418     *) ac_sed_conf_input=$configure_input;;
17419     esac
17420
17421     case $ac_tag in
17422     *:-:* | *:-) cat >"$tmp/stdin" \
17423       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17424 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17425    { (exit 1); exit 1; }; } ;;
17426     esac
17427     ;;
17428   esac
17429
17430   ac_dir=`$as_dirname -- "$ac_file" ||
17431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17432          X"$ac_file" : 'X\(//\)[^/]' \| \
17433          X"$ac_file" : 'X\(//\)$' \| \
17434          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17435 $as_echo X"$ac_file" |
17436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17437             s//\1/
17438             q
17439           }
17440           /^X\(\/\/\)[^/].*/{
17441             s//\1/
17442             q
17443           }
17444           /^X\(\/\/\)$/{
17445             s//\1/
17446             q
17447           }
17448           /^X\(\/\).*/{
17449             s//\1/
17450             q
17451           }
17452           s/.*/./; q'`
17453   { as_dir="$ac_dir"
17454   case $as_dir in #(
17455   -*) as_dir=./$as_dir;;
17456   esac
17457   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17458     as_dirs=
17459     while :; do
17460       case $as_dir in #(
17461       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17462       *) as_qdir=$as_dir;;
17463       esac
17464       as_dirs="'$as_qdir' $as_dirs"
17465       as_dir=`$as_dirname -- "$as_dir" ||
17466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467          X"$as_dir" : 'X\(//\)[^/]' \| \
17468          X"$as_dir" : 'X\(//\)$' \| \
17469          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17470 $as_echo X"$as_dir" |
17471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17472             s//\1/
17473             q
17474           }
17475           /^X\(\/\/\)[^/].*/{
17476             s//\1/
17477             q
17478           }
17479           /^X\(\/\/\)$/{
17480             s//\1/
17481             q
17482           }
17483           /^X\(\/\).*/{
17484             s//\1/
17485             q
17486           }
17487           s/.*/./; q'`
17488       test -d "$as_dir" && break
17489     done
17490     test -z "$as_dirs" || eval "mkdir $as_dirs"
17491   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17492 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17493    { (exit 1); exit 1; }; }; }
17494   ac_builddir=.
17495
17496 case "$ac_dir" in
17497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17498 *)
17499   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17500   # A ".." for each directory in $ac_dir_suffix.
17501   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17502   case $ac_top_builddir_sub in
17503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17505   esac ;;
17506 esac
17507 ac_abs_top_builddir=$ac_pwd
17508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17509 # for backward compatibility:
17510 ac_top_builddir=$ac_top_build_prefix
17511
17512 case $srcdir in
17513   .)  # We are building in place.
17514     ac_srcdir=.
17515     ac_top_srcdir=$ac_top_builddir_sub
17516     ac_abs_top_srcdir=$ac_pwd ;;
17517   [\\/]* | ?:[\\/]* )  # Absolute name.
17518     ac_srcdir=$srcdir$ac_dir_suffix;
17519     ac_top_srcdir=$srcdir
17520     ac_abs_top_srcdir=$srcdir ;;
17521   *) # Relative name.
17522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17523     ac_top_srcdir=$ac_top_build_prefix$srcdir
17524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17525 esac
17526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17527
17528
17529   case $ac_mode in
17530   :F)
17531   #
17532   # CONFIG_FILE
17533   #
17534
17535   case $INSTALL in
17536   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17537   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17538   esac
17539   ac_MKDIR_P=$MKDIR_P
17540   case $MKDIR_P in
17541   [\\/$]* | ?:[\\/]* ) ;;
17542   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17543   esac
17544 _ACEOF
17545
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 # If the template does not know about datarootdir, expand it.
17548 # FIXME: This hack should be removed a few years after 2.60.
17549 ac_datarootdir_hack=; ac_datarootdir_seen=
17550
17551 ac_sed_dataroot='
17552 /datarootdir/ {
17553   p
17554   q
17555 }
17556 /@datadir@/p
17557 /@docdir@/p
17558 /@infodir@/p
17559 /@localedir@/p
17560 /@mandir@/p
17561 '
17562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17563 *datarootdir*) ac_datarootdir_seen=yes;;
17564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17565   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17567 _ACEOF
17568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569   ac_datarootdir_hack='
17570   s&@datadir@&$datadir&g
17571   s&@docdir@&$docdir&g
17572   s&@infodir@&$infodir&g
17573   s&@localedir@&$localedir&g
17574   s&@mandir@&$mandir&g
17575     s&\\\${datarootdir}&$datarootdir&g' ;;
17576 esac
17577 _ACEOF
17578
17579 # Neutralize VPATH when `$srcdir' = `.'.
17580 # Shell code in configure.ac might set extrasub.
17581 # FIXME: do we really want to maintain this feature?
17582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17583 ac_sed_extra="$ac_vpsub
17584 $extrasub
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587 :t
17588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17589 s|@configure_input@|$ac_sed_conf_input|;t t
17590 s&@top_builddir@&$ac_top_builddir_sub&;t t
17591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17592 s&@srcdir@&$ac_srcdir&;t t
17593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17594 s&@top_srcdir@&$ac_top_srcdir&;t t
17595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17596 s&@builddir@&$ac_builddir&;t t
17597 s&@abs_builddir@&$ac_abs_builddir&;t t
17598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17599 s&@INSTALL@&$ac_INSTALL&;t t
17600 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17601 $ac_datarootdir_hack
17602 "
17603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17604   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17606    { (exit 1); exit 1; }; }
17607
17608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17609   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17610   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17611   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17612 which seems to be undefined.  Please make sure it is defined." >&5
17613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17614 which seems to be undefined.  Please make sure it is defined." >&2;}
17615
17616   rm -f "$tmp/stdin"
17617   case $ac_file in
17618   -) cat "$tmp/out" && rm -f "$tmp/out";;
17619   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17620   esac \
17621   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17622 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17623    { (exit 1); exit 1; }; }
17624  ;;
17625   :H)
17626   #
17627   # CONFIG_HEADER
17628   #
17629   if test x"$ac_file" != x-; then
17630     {
17631       $as_echo "/* $configure_input  */" \
17632       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17633     } >"$tmp/config.h" \
17634       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17635 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17636    { (exit 1); exit 1; }; }
17637     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17638       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17639 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17640     else
17641       rm -f "$ac_file"
17642       mv "$tmp/config.h" "$ac_file" \
17643         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17644 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17645    { (exit 1); exit 1; }; }
17646     fi
17647   else
17648     $as_echo "/* $configure_input  */" \
17649       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17650       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17651 $as_echo "$as_me: error: could not create -" >&2;}
17652    { (exit 1); exit 1; }; }
17653   fi
17654 # Compute "$ac_file"'s index in $config_headers.
17655 _am_arg="$ac_file"
17656 _am_stamp_count=1
17657 for _am_header in $config_headers :; do
17658   case $_am_header in
17659     $_am_arg | $_am_arg:* )
17660       break ;;
17661     * )
17662       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17663   esac
17664 done
17665 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17666 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17667          X"$_am_arg" : 'X\(//\)[^/]' \| \
17668          X"$_am_arg" : 'X\(//\)$' \| \
17669          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17670 $as_echo X"$_am_arg" |
17671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17672             s//\1/
17673             q
17674           }
17675           /^X\(\/\/\)[^/].*/{
17676             s//\1/
17677             q
17678           }
17679           /^X\(\/\/\)$/{
17680             s//\1/
17681             q
17682           }
17683           /^X\(\/\).*/{
17684             s//\1/
17685             q
17686           }
17687           s/.*/./; q'`/stamp-h$_am_stamp_count
17688  ;;
17689
17690   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17691 $as_echo "$as_me: executing $ac_file commands" >&6;}
17692  ;;
17693   esac
17694
17695
17696   case $ac_file$ac_mode in
17697     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17698   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17699   # are listed without --file.  Let's play safe and only enable the eval
17700   # if we detect the quoting.
17701   case $CONFIG_FILES in
17702   *\'*) eval set x "$CONFIG_FILES" ;;
17703   *)   set x $CONFIG_FILES ;;
17704   esac
17705   shift
17706   for mf
17707   do
17708     # Strip MF so we end up with the name of the file.
17709     mf=`echo "$mf" | sed -e 's/:.*$//'`
17710     # Check whether this is an Automake generated Makefile or not.
17711     # We used to match only the files named `Makefile.in', but
17712     # some people rename them; so instead we look at the file content.
17713     # Grep'ing the first line is not enough: some people post-process
17714     # each Makefile.in and add a new line on top of each file to say so.
17715     # Grep'ing the whole file is not good either: AIX grep has a line
17716     # limit of 2048, but all sed's we know have understand at least 4000.
17717     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17718       dirpart=`$as_dirname -- "$mf" ||
17719 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17720          X"$mf" : 'X\(//\)[^/]' \| \
17721          X"$mf" : 'X\(//\)$' \| \
17722          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17723 $as_echo X"$mf" |
17724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17725             s//\1/
17726             q
17727           }
17728           /^X\(\/\/\)[^/].*/{
17729             s//\1/
17730             q
17731           }
17732           /^X\(\/\/\)$/{
17733             s//\1/
17734             q
17735           }
17736           /^X\(\/\).*/{
17737             s//\1/
17738             q
17739           }
17740           s/.*/./; q'`
17741     else
17742       continue
17743     fi
17744     # Extract the definition of DEPDIR, am__include, and am__quote
17745     # from the Makefile without running `make'.
17746     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17747     test -z "$DEPDIR" && continue
17748     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17749     test -z "am__include" && continue
17750     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17751     # When using ansi2knr, U may be empty or an underscore; expand it
17752     U=`sed -n 's/^U = //p' < "$mf"`
17753     # Find all dependency output files, they are included files with
17754     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17755     # simplest approach to changing $(DEPDIR) to its actual value in the
17756     # expansion.
17757     for file in `sed -n "
17758       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17759          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17760       # Make sure the directory exists.
17761       test -f "$dirpart/$file" && continue
17762       fdir=`$as_dirname -- "$file" ||
17763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17764          X"$file" : 'X\(//\)[^/]' \| \
17765          X"$file" : 'X\(//\)$' \| \
17766          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17767 $as_echo X"$file" |
17768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17769             s//\1/
17770             q
17771           }
17772           /^X\(\/\/\)[^/].*/{
17773             s//\1/
17774             q
17775           }
17776           /^X\(\/\/\)$/{
17777             s//\1/
17778             q
17779           }
17780           /^X\(\/\).*/{
17781             s//\1/
17782             q
17783           }
17784           s/.*/./; q'`
17785       { as_dir=$dirpart/$fdir
17786   case $as_dir in #(
17787   -*) as_dir=./$as_dir;;
17788   esac
17789   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17790     as_dirs=
17791     while :; do
17792       case $as_dir in #(
17793       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17794       *) as_qdir=$as_dir;;
17795       esac
17796       as_dirs="'$as_qdir' $as_dirs"
17797       as_dir=`$as_dirname -- "$as_dir" ||
17798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17799          X"$as_dir" : 'X\(//\)[^/]' \| \
17800          X"$as_dir" : 'X\(//\)$' \| \
17801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17802 $as_echo X"$as_dir" |
17803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17804             s//\1/
17805             q
17806           }
17807           /^X\(\/\/\)[^/].*/{
17808             s//\1/
17809             q
17810           }
17811           /^X\(\/\/\)$/{
17812             s//\1/
17813             q
17814           }
17815           /^X\(\/\).*/{
17816             s//\1/
17817             q
17818           }
17819           s/.*/./; q'`
17820       test -d "$as_dir" && break
17821     done
17822     test -z "$as_dirs" || eval "mkdir $as_dirs"
17823   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17824 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17825    { (exit 1); exit 1; }; }; }
17826       # echo "creating $dirpart/$file"
17827       echo '# dummy' > "$dirpart/$file"
17828     done
17829   done
17830 }
17831  ;;
17832     "libtool":C)
17833
17834     # See if we are running on zsh, and set the options which allow our
17835     # commands through without removal of \ escapes.
17836     if test -n "${ZSH_VERSION+set}" ; then
17837       setopt NO_GLOB_SUBST
17838     fi
17839
17840     cfgfile="${ofile}T"
17841     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17842     $RM "$cfgfile"
17843
17844     cat <<_LT_EOF >> "$cfgfile"
17845 #! $SHELL
17846
17847 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17848 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17851 #
17852 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17853 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17854 #   Written by Gordon Matzigkeit, 1996
17855 #
17856 #   This file is part of GNU Libtool.
17857 #
17858 # GNU Libtool is free software; you can redistribute it and/or
17859 # modify it under the terms of the GNU General Public License as
17860 # published by the Free Software Foundation; either version 2 of
17861 # the License, or (at your option) any later version.
17862 #
17863 # As a special exception to the GNU General Public License,
17864 # if you distribute this file as part of a program or library that
17865 # is built using GNU Libtool, you may include this file under the
17866 # same distribution terms that you use for the rest of that program.
17867 #
17868 # GNU Libtool is distributed in the hope that it will be useful,
17869 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17870 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17871 # GNU General Public License for more details.
17872 #
17873 # You should have received a copy of the GNU General Public License
17874 # along with GNU Libtool; see the file COPYING.  If not, a copy
17875 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17876 # obtained by writing to the Free Software Foundation, Inc.,
17877 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17878
17879
17880 # The names of the tagged configurations supported by this script.
17881 available_tags=""
17882
17883 # ### BEGIN LIBTOOL CONFIG
17884
17885 # Which release of libtool.m4 was used?
17886 macro_version=$macro_version
17887 macro_revision=$macro_revision
17888
17889 # Whether or not to build shared libraries.
17890 build_libtool_libs=$enable_shared
17891
17892 # Whether or not to build static libraries.
17893 build_old_libs=$enable_static
17894
17895 # What type of objects to build.
17896 pic_mode=$pic_mode
17897
17898 # Whether or not to optimize for fast installation.
17899 fast_install=$enable_fast_install
17900
17901 # The host system.
17902 host_alias=$host_alias
17903 host=$host
17904 host_os=$host_os
17905
17906 # The build system.
17907 build_alias=$build_alias
17908 build=$build
17909 build_os=$build_os
17910
17911 # A sed program that does not truncate output.
17912 SED=$lt_SED
17913
17914 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17915 Xsed="\$SED -e 1s/^X//"
17916
17917 # A grep program that handles long lines.
17918 GREP=$lt_GREP
17919
17920 # An ERE matcher.
17921 EGREP=$lt_EGREP
17922
17923 # A literal string matcher.
17924 FGREP=$lt_FGREP
17925
17926 # A BSD- or MS-compatible name lister.
17927 NM=$lt_NM
17928
17929 # Whether we need soft or hard links.
17930 LN_S=$lt_LN_S
17931
17932 # What is the maximum length of a command?
17933 max_cmd_len=$max_cmd_len
17934
17935 # Object file suffix (normally "o").
17936 objext=$ac_objext
17937
17938 # Executable file suffix (normally "").
17939 exeext=$exeext
17940
17941 # whether the shell understands "unset".
17942 lt_unset=$lt_unset
17943
17944 # turn spaces into newlines.
17945 SP2NL=$lt_lt_SP2NL
17946
17947 # turn newlines into spaces.
17948 NL2SP=$lt_lt_NL2SP
17949
17950 # How to create reloadable object files.
17951 reload_flag=$lt_reload_flag
17952 reload_cmds=$lt_reload_cmds
17953
17954 # An object symbol dumper.
17955 OBJDUMP=$lt_OBJDUMP
17956
17957 # Method to check whether dependent libraries are shared objects.
17958 deplibs_check_method=$lt_deplibs_check_method
17959
17960 # Command to use when deplibs_check_method == "file_magic".
17961 file_magic_cmd=$lt_file_magic_cmd
17962
17963 # The archiver.
17964 AR=$lt_AR
17965 AR_FLAGS=$lt_AR_FLAGS
17966
17967 # A symbol stripping program.
17968 STRIP=$lt_STRIP
17969
17970 # Commands used to install an old-style archive.
17971 RANLIB=$lt_RANLIB
17972 old_postinstall_cmds=$lt_old_postinstall_cmds
17973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17974
17975 # A C compiler.
17976 LTCC=$lt_CC
17977
17978 # LTCC compiler flags.
17979 LTCFLAGS=$lt_CFLAGS
17980
17981 # Take the output of nm and produce a listing of raw symbols and C names.
17982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17983
17984 # Transform the output of nm in a proper C declaration.
17985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17986
17987 # Transform the output of nm in a C name address pair.
17988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17989
17990 # Transform the output of nm in a C name address pair when lib prefix is needed.
17991 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17992
17993 # The name of the directory that contains temporary libtool files.
17994 objdir=$objdir
17995
17996 # Shell to use when invoking shell scripts.
17997 SHELL=$lt_SHELL
17998
17999 # An echo program that does not interpret backslashes.
18000 ECHO=$lt_ECHO
18001
18002 # Used to examine libraries when file_magic_cmd begins with "file".
18003 MAGIC_CMD=$MAGIC_CMD
18004
18005 # Must we lock files when doing compilation?
18006 need_locks=$lt_need_locks
18007
18008 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18009 DSYMUTIL=$lt_DSYMUTIL
18010
18011 # Tool to change global to local symbols on Mac OS X.
18012 NMEDIT=$lt_NMEDIT
18013
18014 # Tool to manipulate fat objects and archives on Mac OS X.
18015 LIPO=$lt_LIPO
18016
18017 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18018 OTOOL=$lt_OTOOL
18019
18020 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18021 OTOOL64=$lt_OTOOL64
18022
18023 # Old archive suffix (normally "a").
18024 libext=$libext
18025
18026 # Shared library suffix (normally ".so").
18027 shrext_cmds=$lt_shrext_cmds
18028
18029 # The commands to extract the exported symbol list from a shared archive.
18030 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18031
18032 # Variables whose values should be saved in libtool wrapper scripts and
18033 # restored at link time.
18034 variables_saved_for_relink=$lt_variables_saved_for_relink
18035
18036 # Do we need the "lib" prefix for modules?
18037 need_lib_prefix=$need_lib_prefix
18038
18039 # Do we need a version for libraries?
18040 need_version=$need_version
18041
18042 # Library versioning type.
18043 version_type=$version_type
18044
18045 # Shared library runtime path variable.
18046 runpath_var=$runpath_var
18047
18048 # Shared library path variable.
18049 shlibpath_var=$shlibpath_var
18050
18051 # Is shlibpath searched before the hard-coded library search path?
18052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18053
18054 # Format of library name prefix.
18055 libname_spec=$lt_libname_spec
18056
18057 # List of archive names.  First name is the real one, the rest are links.
18058 # The last name is the one that the linker finds with -lNAME
18059 library_names_spec=$lt_library_names_spec
18060
18061 # The coded name of the library, if different from the real name.
18062 soname_spec=$lt_soname_spec
18063
18064 # Command to use after installation of a shared archive.
18065 postinstall_cmds=$lt_postinstall_cmds
18066
18067 # Command to use after uninstallation of a shared archive.
18068 postuninstall_cmds=$lt_postuninstall_cmds
18069
18070 # Commands used to finish a libtool library installation in a directory.
18071 finish_cmds=$lt_finish_cmds
18072
18073 # As "finish_cmds", except a single script fragment to be evaled but
18074 # not shown.
18075 finish_eval=$lt_finish_eval
18076
18077 # Whether we should hardcode library paths into libraries.
18078 hardcode_into_libs=$hardcode_into_libs
18079
18080 # Compile-time system search path for libraries.
18081 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18082
18083 # Run-time system search path for libraries.
18084 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18085
18086 # Whether dlopen is supported.
18087 dlopen_support=$enable_dlopen
18088
18089 # Whether dlopen of programs is supported.
18090 dlopen_self=$enable_dlopen_self
18091
18092 # Whether dlopen of statically linked programs is supported.
18093 dlopen_self_static=$enable_dlopen_self_static
18094
18095 # Commands to strip libraries.
18096 old_striplib=$lt_old_striplib
18097 striplib=$lt_striplib
18098
18099
18100 # The linker used to build libraries.
18101 LD=$lt_LD
18102
18103 # Commands used to build an old-style archive.
18104 old_archive_cmds=$lt_old_archive_cmds
18105
18106 # A language specific compiler.
18107 CC=$lt_compiler
18108
18109 # Is the compiler the GNU compiler?
18110 with_gcc=$GCC
18111
18112 # Compiler flag to turn off builtin functions.
18113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18114
18115 # How to pass a linker flag through the compiler.
18116 wl=$lt_lt_prog_compiler_wl
18117
18118 # Additional compiler flags for building library objects.
18119 pic_flag=$lt_lt_prog_compiler_pic
18120
18121 # Compiler flag to prevent dynamic linking.
18122 link_static_flag=$lt_lt_prog_compiler_static
18123
18124 # Does compiler simultaneously support -c and -o options?
18125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18126
18127 # Whether or not to add -lc for building shared libraries.
18128 build_libtool_need_lc=$archive_cmds_need_lc
18129
18130 # Whether or not to disallow shared libs when runtime libs are static.
18131 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18132
18133 # Compiler flag to allow reflexive dlopens.
18134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18135
18136 # Compiler flag to generate shared objects directly from archives.
18137 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18138
18139 # Whether the compiler copes with passing no objects directly.
18140 compiler_needs_object=$lt_compiler_needs_object
18141
18142 # Create an old-style archive from a shared archive.
18143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18144
18145 # Create a temporary old-style archive to link instead of a shared archive.
18146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18147
18148 # Commands used to build a shared archive.
18149 archive_cmds=$lt_archive_cmds
18150 archive_expsym_cmds=$lt_archive_expsym_cmds
18151
18152 # Commands used to build a loadable module if different from building
18153 # a shared archive.
18154 module_cmds=$lt_module_cmds
18155 module_expsym_cmds=$lt_module_expsym_cmds
18156
18157 # Whether we are building with GNU ld or not.
18158 with_gnu_ld=$lt_with_gnu_ld
18159
18160 # Flag that allows shared libraries with undefined symbols to be built.
18161 allow_undefined_flag=$lt_allow_undefined_flag
18162
18163 # Flag that enforces no undefined symbols.
18164 no_undefined_flag=$lt_no_undefined_flag
18165
18166 # Flag to hardcode \$libdir into a binary during linking.
18167 # This must work even if \$libdir does not exist
18168 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18169
18170 # If ld is used when linking, flag to hardcode \$libdir into a binary
18171 # during linking.  This must work even if \$libdir does not exist.
18172 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18173
18174 # Whether we need a single "-rpath" flag with a separated argument.
18175 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18176
18177 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18178 # DIR into the resulting binary.
18179 hardcode_direct=$hardcode_direct
18180
18181 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18182 # DIR into the resulting binary and the resulting library dependency is
18183 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18184 # library is relocated.
18185 hardcode_direct_absolute=$hardcode_direct_absolute
18186
18187 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18188 # into the resulting binary.
18189 hardcode_minus_L=$hardcode_minus_L
18190
18191 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18192 # into the resulting binary.
18193 hardcode_shlibpath_var=$hardcode_shlibpath_var
18194
18195 # Set to "yes" if building a shared library automatically hardcodes DIR
18196 # into the library and all subsequent libraries and executables linked
18197 # against it.
18198 hardcode_automatic=$hardcode_automatic
18199
18200 # Set to yes if linker adds runtime paths of dependent libraries
18201 # to runtime path list.
18202 inherit_rpath=$inherit_rpath
18203
18204 # Whether libtool must link a program against all its dependency libraries.
18205 link_all_deplibs=$link_all_deplibs
18206
18207 # Fix the shell variable \$srcfile for the compiler.
18208 fix_srcfile_path=$lt_fix_srcfile_path
18209
18210 # Set to "yes" if exported symbols are required.
18211 always_export_symbols=$always_export_symbols
18212
18213 # The commands to list exported symbols.
18214 export_symbols_cmds=$lt_export_symbols_cmds
18215
18216 # Symbols that should not be listed in the preloaded symbols.
18217 exclude_expsyms=$lt_exclude_expsyms
18218
18219 # Symbols that must always be exported.
18220 include_expsyms=$lt_include_expsyms
18221
18222 # Commands necessary for linking programs (against libraries) with templates.
18223 prelink_cmds=$lt_prelink_cmds
18224
18225 # Specify filename containing input files.
18226 file_list_spec=$lt_file_list_spec
18227
18228 # How to hardcode a shared library path into an executable.
18229 hardcode_action=$hardcode_action
18230
18231 # ### END LIBTOOL CONFIG
18232
18233 _LT_EOF
18234
18235   case $host_os in
18236   aix3*)
18237     cat <<\_LT_EOF >> "$cfgfile"
18238 # AIX sometimes has problems with the GCC collect2 program.  For some
18239 # reason, if we set the COLLECT_NAMES environment variable, the problems
18240 # vanish in a puff of smoke.
18241 if test "X${COLLECT_NAMES+set}" != Xset; then
18242   COLLECT_NAMES=
18243   export COLLECT_NAMES
18244 fi
18245 _LT_EOF
18246     ;;
18247   esac
18248
18249
18250 ltmain="$ac_aux_dir/ltmain.sh"
18251
18252
18253   # We use sed instead of cat because bash on DJGPP gets confused if
18254   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18255   # text mode, it properly converts lines to CR/LF.  This bash problem
18256   # is reportedly fixed, but why not run on old versions too?
18257   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18258     || (rm -f "$cfgfile"; exit 1)
18259
18260   case $xsi_shell in
18261   yes)
18262     cat << \_LT_EOF >> "$cfgfile"
18263
18264 # func_dirname file append nondir_replacement
18265 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18266 # otherwise set result to NONDIR_REPLACEMENT.
18267 func_dirname ()
18268 {
18269   case ${1} in
18270     */*) func_dirname_result="${1%/*}${2}" ;;
18271     *  ) func_dirname_result="${3}" ;;
18272   esac
18273 }
18274
18275 # func_basename file
18276 func_basename ()
18277 {
18278   func_basename_result="${1##*/}"
18279 }
18280
18281 # func_dirname_and_basename file append nondir_replacement
18282 # perform func_basename and func_dirname in a single function
18283 # call:
18284 #   dirname:  Compute the dirname of FILE.  If nonempty,
18285 #             add APPEND to the result, otherwise set result
18286 #             to NONDIR_REPLACEMENT.
18287 #             value returned in "$func_dirname_result"
18288 #   basename: Compute filename of FILE.
18289 #             value retuned in "$func_basename_result"
18290 # Implementation must be kept synchronized with func_dirname
18291 # and func_basename. For efficiency, we do not delegate to
18292 # those functions but instead duplicate the functionality here.
18293 func_dirname_and_basename ()
18294 {
18295   case ${1} in
18296     */*) func_dirname_result="${1%/*}${2}" ;;
18297     *  ) func_dirname_result="${3}" ;;
18298   esac
18299   func_basename_result="${1##*/}"
18300 }
18301
18302 # func_stripname prefix suffix name
18303 # strip PREFIX and SUFFIX off of NAME.
18304 # PREFIX and SUFFIX must not contain globbing or regex special
18305 # characters, hashes, percent signs, but SUFFIX may contain a leading
18306 # dot (in which case that matches only a dot).
18307 func_stripname ()
18308 {
18309   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18310   # positional parameters, so assign one to ordinary parameter first.
18311   func_stripname_result=${3}
18312   func_stripname_result=${func_stripname_result#"${1}"}
18313   func_stripname_result=${func_stripname_result%"${2}"}
18314 }
18315
18316 # func_opt_split
18317 func_opt_split ()
18318 {
18319   func_opt_split_opt=${1%%=*}
18320   func_opt_split_arg=${1#*=}
18321 }
18322
18323 # func_lo2o object
18324 func_lo2o ()
18325 {
18326   case ${1} in
18327     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18328     *)    func_lo2o_result=${1} ;;
18329   esac
18330 }
18331
18332 # func_xform libobj-or-source
18333 func_xform ()
18334 {
18335   func_xform_result=${1%.*}.lo
18336 }
18337
18338 # func_arith arithmetic-term...
18339 func_arith ()
18340 {
18341   func_arith_result=$(( $* ))
18342 }
18343
18344 # func_len string
18345 # STRING may not start with a hyphen.
18346 func_len ()
18347 {
18348   func_len_result=${#1}
18349 }
18350
18351 _LT_EOF
18352     ;;
18353   *) # Bourne compatible functions.
18354     cat << \_LT_EOF >> "$cfgfile"
18355
18356 # func_dirname file append nondir_replacement
18357 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18358 # otherwise set result to NONDIR_REPLACEMENT.
18359 func_dirname ()
18360 {
18361   # Extract subdirectory from the argument.
18362   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18363   if test "X$func_dirname_result" = "X${1}"; then
18364     func_dirname_result="${3}"
18365   else
18366     func_dirname_result="$func_dirname_result${2}"
18367   fi
18368 }
18369
18370 # func_basename file
18371 func_basename ()
18372 {
18373   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18374 }
18375
18376
18377 # func_stripname prefix suffix name
18378 # strip PREFIX and SUFFIX off of NAME.
18379 # PREFIX and SUFFIX must not contain globbing or regex special
18380 # characters, hashes, percent signs, but SUFFIX may contain a leading
18381 # dot (in which case that matches only a dot).
18382 # func_strip_suffix prefix name
18383 func_stripname ()
18384 {
18385   case ${2} in
18386     .*) func_stripname_result=`$ECHO "X${3}" \
18387            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18388     *)  func_stripname_result=`$ECHO "X${3}" \
18389            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18390   esac
18391 }
18392
18393 # sed scripts:
18394 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18395 my_sed_long_arg='1s/^-[^=]*=//'
18396
18397 # func_opt_split
18398 func_opt_split ()
18399 {
18400   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18401   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18402 }
18403
18404 # func_lo2o object
18405 func_lo2o ()
18406 {
18407   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18408 }
18409
18410 # func_xform libobj-or-source
18411 func_xform ()
18412 {
18413   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18414 }
18415
18416 # func_arith arithmetic-term...
18417 func_arith ()
18418 {
18419   func_arith_result=`expr "$@"`
18420 }
18421
18422 # func_len string
18423 # STRING may not start with a hyphen.
18424 func_len ()
18425 {
18426   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18427 }
18428
18429 _LT_EOF
18430 esac
18431
18432 case $lt_shell_append in
18433   yes)
18434     cat << \_LT_EOF >> "$cfgfile"
18435
18436 # func_append var value
18437 # Append VALUE to the end of shell variable VAR.
18438 func_append ()
18439 {
18440   eval "$1+=\$2"
18441 }
18442 _LT_EOF
18443     ;;
18444   *)
18445     cat << \_LT_EOF >> "$cfgfile"
18446
18447 # func_append var value
18448 # Append VALUE to the end of shell variable VAR.
18449 func_append ()
18450 {
18451   eval "$1=\$$1\$2"
18452 }
18453
18454 _LT_EOF
18455     ;;
18456   esac
18457
18458
18459   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18460     || (rm -f "$cfgfile"; exit 1)
18461
18462   mv -f "$cfgfile" "$ofile" ||
18463     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18464   chmod +x "$ofile"
18465
18466  ;;
18467     "po-directories":C)
18468     for ac_file in $CONFIG_FILES; do
18469       # Support "outfile[:infile[:infile...]]"
18470       case "$ac_file" in
18471         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18472       esac
18473       # PO directories have a Makefile.in generated from Makefile.in.in.
18474       case "$ac_file" in */Makefile.in)
18475         # Adjust a relative srcdir.
18476         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18477         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18478         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18479         # In autoconf-2.13 it is called $ac_given_srcdir.
18480         # In autoconf-2.50 it is called $srcdir.
18481         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18482         case "$ac_given_srcdir" in
18483           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18484           /*) top_srcdir="$ac_given_srcdir" ;;
18485           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18486         esac
18487         # Treat a directory as a PO directory if and only if it has a
18488         # POTFILES.in file. This allows packages to have multiple PO
18489         # directories under different names or in different locations.
18490         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18491           rm -f "$ac_dir/POTFILES"
18492           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18493           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18494           POMAKEFILEDEPS="POTFILES.in"
18495           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18496           # on $ac_dir but don't depend on user-specified configuration
18497           # parameters.
18498           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18499             # The LINGUAS file contains the set of available languages.
18500             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18501               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18502             fi
18503             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18504             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18505             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18506             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18507           else
18508             # The set of available languages was given in configure.in.
18509             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18510             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18511           fi
18512           # Compute POFILES
18513           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18514           # Compute UPDATEPOFILES
18515           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18516           # Compute DUMMYPOFILES
18517           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18518           # Compute GMOFILES
18519           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18520           case "$ac_given_srcdir" in
18521             .) srcdirpre= ;;
18522             *) srcdirpre='$(srcdir)/' ;;
18523           esac
18524           POFILES=
18525           UPDATEPOFILES=
18526           DUMMYPOFILES=
18527           GMOFILES=
18528           for lang in $ALL_LINGUAS; do
18529             POFILES="$POFILES $srcdirpre$lang.po"
18530             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18531             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18532             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18533           done
18534           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18535           # environment variable.
18536           INST_LINGUAS=
18537           if test -n "$ALL_LINGUAS"; then
18538             for presentlang in $ALL_LINGUAS; do
18539               useit=no
18540               if test "%UNSET%" != "$LINGUAS"; then
18541                 desiredlanguages="$LINGUAS"
18542               else
18543                 desiredlanguages="$ALL_LINGUAS"
18544               fi
18545               for desiredlang in $desiredlanguages; do
18546                 # Use the presentlang catalog if desiredlang is
18547                 #   a. equal to presentlang, or
18548                 #   b. a variant of presentlang (because in this case,
18549                 #      presentlang can be used as a fallback for messages
18550                 #      which are not translated in the desiredlang catalog).
18551                 case "$desiredlang" in
18552                   "$presentlang"*) useit=yes;;
18553                 esac
18554               done
18555               if test $useit = yes; then
18556                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18557               fi
18558             done
18559           fi
18560           CATALOGS=
18561           if test -n "$INST_LINGUAS"; then
18562             for lang in $INST_LINGUAS; do
18563               CATALOGS="$CATALOGS $lang.gmo"
18564             done
18565           fi
18566           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18567           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18568           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18569             if test -f "$f"; then
18570               case "$f" in
18571                 *.orig | *.bak | *~) ;;
18572                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18573               esac
18574             fi
18575           done
18576         fi
18577         ;;
18578       esac
18579     done ;;
18580
18581   esac
18582 done # for ac_tag
18583
18584
18585 { (exit 0); exit 0; }
18586 _ACEOF
18587 chmod +x $CONFIG_STATUS
18588 ac_clean_files=$ac_clean_files_save
18589
18590 test $ac_write_fail = 0 ||
18591   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18592 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18593    { (exit 1); exit 1; }; }
18594
18595
18596 # configure is writing to config.log, and then calls config.status.
18597 # config.status does its own redirection, appending to config.log.
18598 # Unfortunately, on DOS this fails, as config.log is still kept open
18599 # by configure, so config.status won't be able to write to it; its
18600 # output is simply discarded.  So we exec the FD to /dev/null,
18601 # effectively closing config.log, so it can be properly (re)opened and
18602 # appended to by config.status.  When coming back to configure, we
18603 # need to make the FD available again.
18604 if test "$no_create" != yes; then
18605   ac_cs_success=:
18606   ac_config_status_args=
18607   test "$silent" = yes &&
18608     ac_config_status_args="$ac_config_status_args --quiet"
18609   exec 5>/dev/null
18610   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18611   exec 5>>config.log
18612   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18613   # would make configure fail if this is the last instruction.
18614   $ac_cs_success || { (exit 1); exit 1; }
18615 fi
18616
18617 #
18618 # CONFIG_SUBDIRS section.
18619 #
18620 if test "$no_recursion" != yes; then
18621
18622   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18623   # so they do not pile up.
18624   ac_sub_configure_args=
18625   ac_prev=
18626   eval "set x $ac_configure_args"
18627   shift
18628   for ac_arg
18629   do
18630     if test -n "$ac_prev"; then
18631       ac_prev=
18632       continue
18633     fi
18634     case $ac_arg in
18635     -cache-file | --cache-file | --cache-fil | --cache-fi \
18636     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18637       ac_prev=cache_file ;;
18638     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18639     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18640     | --c=*)
18641       ;;
18642     --config-cache | -C)
18643       ;;
18644     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18645       ac_prev=srcdir ;;
18646     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18647       ;;
18648     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18649       ac_prev=prefix ;;
18650     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18651       ;;
18652     --disable-option-checking)
18653       ;;
18654     *)
18655       case $ac_arg in
18656       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18657       esac
18658       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18659     esac
18660   done
18661
18662   # Always prepend --prefix to ensure using the same prefix
18663   # in subdir configurations.
18664   ac_arg="--prefix=$prefix"
18665   case $ac_arg in
18666   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18667   esac
18668   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18669
18670   # Pass --silent
18671   if test "$silent" = yes; then
18672     ac_sub_configure_args="--silent $ac_sub_configure_args"
18673   fi
18674
18675   # Always prepend --disable-option-checking to silence warnings, since
18676   # different subdirs can have different --enable and --with options.
18677   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18678
18679   ac_popdir=`pwd`
18680   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18681
18682     # Do not complain, so a configure script can configure whichever
18683     # parts of a large source tree are present.
18684     test -d "$srcdir/$ac_dir" || continue
18685
18686     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18687     $as_echo "$as_me:$LINENO: $ac_msg" >&5
18688     $as_echo "$ac_msg" >&6
18689     { as_dir="$ac_dir"
18690   case $as_dir in #(
18691   -*) as_dir=./$as_dir;;
18692   esac
18693   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18694     as_dirs=
18695     while :; do
18696       case $as_dir in #(
18697       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18698       *) as_qdir=$as_dir;;
18699       esac
18700       as_dirs="'$as_qdir' $as_dirs"
18701       as_dir=`$as_dirname -- "$as_dir" ||
18702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18703          X"$as_dir" : 'X\(//\)[^/]' \| \
18704          X"$as_dir" : 'X\(//\)$' \| \
18705          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18706 $as_echo X"$as_dir" |
18707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18708             s//\1/
18709             q
18710           }
18711           /^X\(\/\/\)[^/].*/{
18712             s//\1/
18713             q
18714           }
18715           /^X\(\/\/\)$/{
18716             s//\1/
18717             q
18718           }
18719           /^X\(\/\).*/{
18720             s//\1/
18721             q
18722           }
18723           s/.*/./; q'`
18724       test -d "$as_dir" && break
18725     done
18726     test -z "$as_dirs" || eval "mkdir $as_dirs"
18727   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18728 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18729    { (exit 1); exit 1; }; }; }
18730     ac_builddir=.
18731
18732 case "$ac_dir" in
18733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18734 *)
18735   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18736   # A ".." for each directory in $ac_dir_suffix.
18737   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18738   case $ac_top_builddir_sub in
18739   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18740   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18741   esac ;;
18742 esac
18743 ac_abs_top_builddir=$ac_pwd
18744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18745 # for backward compatibility:
18746 ac_top_builddir=$ac_top_build_prefix
18747
18748 case $srcdir in
18749   .)  # We are building in place.
18750     ac_srcdir=.
18751     ac_top_srcdir=$ac_top_builddir_sub
18752     ac_abs_top_srcdir=$ac_pwd ;;
18753   [\\/]* | ?:[\\/]* )  # Absolute name.
18754     ac_srcdir=$srcdir$ac_dir_suffix;
18755     ac_top_srcdir=$srcdir
18756     ac_abs_top_srcdir=$srcdir ;;
18757   *) # Relative name.
18758     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18759     ac_top_srcdir=$ac_top_build_prefix$srcdir
18760     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18761 esac
18762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18763
18764
18765     cd "$ac_dir"
18766
18767     # Check for guested configure; otherwise get Cygnus style configure.
18768     if test -f "$ac_srcdir/configure.gnu"; then
18769       ac_sub_configure=$ac_srcdir/configure.gnu
18770     elif test -f "$ac_srcdir/configure"; then
18771       ac_sub_configure=$ac_srcdir/configure
18772     elif test -f "$ac_srcdir/configure.in"; then
18773       # This should be Cygnus configure.
18774       ac_sub_configure=$ac_aux_dir/configure
18775     else
18776       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18778       ac_sub_configure=
18779     fi
18780
18781     # The recursion is here.
18782     if test -n "$ac_sub_configure"; then
18783       # Make the cache file name correct relative to the subdirectory.
18784       case $cache_file in
18785       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18786       *) # Relative name.
18787         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18788       esac
18789
18790       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18791 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18792       # The eval makes quoting arguments work.
18793       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18794            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18795         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18796 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18797    { (exit 1); exit 1; }; }
18798     fi
18799
18800     cd "$ac_popdir"
18801   done
18802 fi
18803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18804   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18806 fi
18807