Ticket #60: zzuf-0.12.patch

File zzuf-0.12.patch, 343.7 KB (added by guest, 15 years ago)

Patch is attached.

Line 
1Only in /root/fuzz/zzuf-0.12: abc
2Only in /root/fuzz/zzuf-0.12: abc~
3Only in /root/project/zzuf-0.12: aclocal.m4
4Only in /root/fuzz/zzuf-0.12: authors
5diff -crB /root/project/zzuf-0.12/.auto/config.guess /root/fuzz/zzuf-0.12/.auto/config.guess
6*** /root/project/zzuf-0.12/.auto/config.guess  2008-02-18 01:40:30.000000000 +0530
7--- /root/fuzz/zzuf-0.12/.auto/config.guess     2007-04-05 19:50:16.000000000 +0530
8***************
9*** 1,10 ****
10  #! /bin/sh
11  # Attempt to guess a canonical system name.
12  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
13! #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
14! #   Free Software Foundation, Inc.
15 
16! timestamp='2008-01-23'
17 
18  # This file is free software; you can redistribute it and/or modify it
19  # under the terms of the GNU General Public License as published by
20--- 1,10 ----
21  #! /bin/sh
22  # Attempt to guess a canonical system name.
23  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
24! #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
25! #   Inc.
26 
27! timestamp='2006-07-02'
28 
29  # This file is free software; you can redistribute it and/or modify it
30  # under the terms of the GNU General Public License as published by
31***************
32*** 56,63 ****
33  GNU config.guess ($timestamp)
34 
35  Originally written by Per Bothner.
36! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
37! 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
38 
39  This is free software; see the source for copying conditions.  There is NO
40  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
41--- 56,63 ----
42  GNU config.guess ($timestamp)
43 
44  Originally written by Per Bothner.
45! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
46! Free Software Foundation, Inc.
47 
48  This is free software; see the source for copying conditions.  There is NO
49  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
50***************
51*** 161,167 ****
52            arm*) machine=arm-unknown ;;
53            sh3el) machine=shl-unknown ;;
54            sh3eb) machine=sh-unknown ;;
55-           sh5el) machine=sh5le-unknown ;;
56            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
57        esac
58        # The Operating System including object format, if it has switched
59--- 161,166 ----
60***************
61*** 330,336 ****
62      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
63        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
64        exit ;;
65!     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
66        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
67        exit ;;
68      sun4*:SunOS:6*:*)
69--- 329,335 ----
70      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
71        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
72        exit ;;
73!     i86pc:SunOS:5.*:*)
74        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
75        exit ;;
76      sun4*:SunOS:6*:*)
77***************
78*** 532,538 ****
79                echo rs6000-ibm-aix3.2
80        fi
81        exit ;;
82!     *:AIX:*:[456])
83        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
84        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
85                IBM_ARCH=rs6000
86--- 531,537 ----
87                echo rs6000-ibm-aix3.2
88        fi
89        exit ;;
90!     *:AIX:*:[45])
91        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
92        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
93                IBM_ARCH=rs6000
94***************
95*** 781,787 ****
96      i*:CYGWIN*:*)
97        echo ${UNAME_MACHINE}-pc-cygwin
98        exit ;;
99!     *:MINGW*:*)
100        echo ${UNAME_MACHINE}-pc-mingw32
101        exit ;;
102      i*:windows32*:*)
103--- 780,786 ----
104      i*:CYGWIN*:*)
105        echo ${UNAME_MACHINE}-pc-cygwin
106        exit ;;
107!     i*:MINGW*:*)
108        echo ${UNAME_MACHINE}-pc-mingw32
109        exit ;;
110      i*:windows32*:*)
111***************
112*** 791,808 ****
113      i*:PW*:*)
114        echo ${UNAME_MACHINE}-pc-pw32
115        exit ;;
116!     *:Interix*:[3456]*)
117!       case ${UNAME_MACHINE} in
118!           x86)
119!               echo i586-pc-interix${UNAME_RELEASE}
120!               exit ;;
121!           EM64T | authenticamd)
122!               echo x86_64-unknown-interix${UNAME_RELEASE}
123!               exit ;;
124!           IA64)
125!               echo ia64-unknown-interix${UNAME_RELEASE}
126!               exit ;;
127!       esac ;;
128      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
129        echo i${UNAME_MACHINE}-pc-mks
130        exit ;;
131--- 790,801 ----
132      i*:PW*:*)
133        echo ${UNAME_MACHINE}-pc-pw32
134        exit ;;
135!     x86:Interix*:[3456]*)
136!       echo i586-pc-interix${UNAME_RELEASE}
137!       exit ;;
138!     EM64T:Interix*:[3456]*)
139!       echo x86_64-unknown-interix${UNAME_RELEASE}
140!       exit ;;
141      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
142        echo i${UNAME_MACHINE}-pc-mks
143        exit ;;
144***************
145*** 836,849 ****
146        echo ${UNAME_MACHINE}-pc-minix
147        exit ;;
148      arm*:Linux:*:*)
149!       eval $set_cc_for_build
150!       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
151!           | grep -q __ARM_EABI__
152!       then
153!           echo ${UNAME_MACHINE}-unknown-linux-gnu
154!       else
155!           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
156!       fi
157        exit ;;
158      avr32*:Linux:*:*)
159        echo ${UNAME_MACHINE}-unknown-linux-gnu
160--- 829,835 ----
161        echo ${UNAME_MACHINE}-pc-minix
162        exit ;;
163      arm*:Linux:*:*)
164!       echo ${UNAME_MACHINE}-unknown-linux-gnu
165        exit ;;
166      avr32*:Linux:*:*)
167        echo ${UNAME_MACHINE}-unknown-linux-gnu
168***************
169*** 964,972 ****
170      x86_64:Linux:*:*)
171        echo x86_64-unknown-linux-gnu
172        exit ;;
173-     xtensa*:Linux:*:*)
174-       echo ${UNAME_MACHINE}-unknown-linux-gnu
175-       exit ;;
176      i*86:Linux:*:*)
177        # The BFD linker knows what the default object file format is, so
178        # first see if it will tell us. cd to the root directory to prevent
179--- 950,955 ----
180***************
181*** 1225,1239 ****
182      SX-6:SUPER-UX:*:*)
183        echo sx6-nec-superux${UNAME_RELEASE}
184        exit ;;
185-     SX-7:SUPER-UX:*:*)
186-       echo sx7-nec-superux${UNAME_RELEASE}
187-       exit ;;
188-     SX-8:SUPER-UX:*:*)
189-       echo sx8-nec-superux${UNAME_RELEASE}
190-       exit ;;
191-     SX-8R:SUPER-UX:*:*)
192-       echo sx8r-nec-superux${UNAME_RELEASE}
193-       exit ;;
194      Power*:Rhapsody:*:*)
195        echo powerpc-apple-rhapsody${UNAME_RELEASE}
196        exit ;;
197--- 1208,1213 ----
198***************
199*** 1484,1492 ****
200  the operating system you are using. It is advised that you
201  download the most up to date version of the config scripts from
202 
203!   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
204  and
205!   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
206 
207  If the version you run ($0) is already up to date, please
208  send the following data and any information you think might be
209--- 1458,1466 ----
210  the operating system you are using. It is advised that you
211  download the most up to date version of the config scripts from
212 
213!   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
214  and
215!   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
216 
217  If the version you run ($0) is already up to date, please
218  send the following data and any information you think might be
219diff -crB /root/project/zzuf-0.12/.auto/config.sub /root/fuzz/zzuf-0.12/.auto/config.sub
220*** /root/project/zzuf-0.12/.auto/config.sub    2008-02-18 01:40:30.000000000 +0530
221--- /root/fuzz/zzuf-0.12/.auto/config.sub       2007-04-05 19:50:16.000000000 +0530
222***************
223*** 1,10 ****
224  #! /bin/sh
225  # Configuration validation subroutine script.
226  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
227! #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
228! #   Free Software Foundation, Inc.
229 
230! timestamp='2008-01-16'
231 
232  # This file is (in principle) common to ALL GNU software.
233  # The presence of a machine in this file suggests that SOME GNU software
234--- 1,10 ----
235  #! /bin/sh
236  # Configuration validation subroutine script.
237  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
238! #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
239! #   Inc.
240 
241! timestamp='2006-09-20'
242 
243  # This file is (in principle) common to ALL GNU software.
244  # The presence of a machine in this file suggests that SOME GNU software
245***************
246*** 72,79 ****
247  version="\
248  GNU config.sub ($timestamp)
249 
250! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
251! 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
252 
253  This is free software; see the source for copying conditions.  There is NO
254  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
255--- 72,79 ----
256  version="\
257  GNU config.sub ($timestamp)
258 
259! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
260! Free Software Foundation, Inc.
261 
262  This is free software; see the source for copying conditions.  There is NO
263  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
264***************
265*** 245,256 ****
266        | bfin \
267        | c4x | clipper \
268        | d10v | d30v | dlx | dsp16xx \
269!       | fido | fr30 | frv \
270        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
271        | i370 | i860 | i960 | ia64 \
272        | ip2k | iq2000 \
273        | m32c | m32r | m32rle | m68000 | m68k | m88k \
274!       | maxq | mb | microblaze | mcore | mep \
275        | mips | mipsbe | mipseb | mipsel | mipsle \
276        | mips16 \
277        | mips64 | mips64el \
278--- 245,256 ----
279        | bfin \
280        | c4x | clipper \
281        | d10v | d30v | dlx | dsp16xx \
282!       | fr30 | frv \
283        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
284        | i370 | i860 | i960 | ia64 \
285        | ip2k | iq2000 \
286        | m32c | m32r | m32rle | m68000 | m68k | m88k \
287!       | maxq | mb | microblaze | mcore \
288        | mips | mipsbe | mipseb | mipsel | mipsle \
289        | mips16 \
290        | mips64 | mips64el \
291***************
292*** 324,330 ****
293        | clipper-* | craynv-* | cydra-* \
294        | d10v-* | d30v-* | dlx-* \
295        | elxsi-* \
296!       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
297        | h8300-* | h8500-* \
298        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
299        | i*86-* | i860-* | i960-* | ia64-* \
300--- 324,330 ----
301        | clipper-* | craynv-* | cydra-* \
302        | d10v-* | d30v-* | dlx-* \
303        | elxsi-* \
304!       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
305        | h8300-* | h8500-* \
306        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
307        | i*86-* | i860-* | i960-* | ia64-* \
308***************
309*** 369,382 ****
310        | v850-* | v850e-* | vax-* \
311        | we32k-* \
312        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
313!       | xstormy16-* | xtensa*-* \
314        | ymp-* \
315        | z8k-*)
316                ;;
317-       # Recognize the basic CPU types without company name, with glob match.
318-       xtensa*)
319-               basic_machine=$basic_machine-unknown
320-               ;;
321        # Recognize the various machine names and aliases which stand
322        # for a CPU type and a company and sometimes even an OS.
323        386bsd)
324--- 369,378 ----
325        | v850-* | v850e-* | vax-* \
326        | we32k-* \
327        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
328!       | xstormy16-* | xtensa-* \
329        | ymp-* \
330        | z8k-*)
331                ;;
332        # Recognize the various machine names and aliases which stand
333        # for a CPU type and a company and sometimes even an OS.
334        386bsd)
335***************
336*** 447,460 ****
337                basic_machine=ns32k-sequent
338                os=-dynix
339                ;;
340-       blackfin)
341-               basic_machine=bfin-unknown
342-               os=-linux
343-               ;;
344-       blackfin-*)
345-               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
346-               os=-linux
347-               ;;
348        c90)
349                basic_machine=c90-cray
350                os=-unicos
351--- 443,448 ----
352***************
353*** 487,494 ****
354                basic_machine=craynv-cray
355                os=-unicosmp
356                ;;
357!       cr16)
358!               basic_machine=cr16-unknown
359                os=-elf
360                ;;
361        crds | unos)
362--- 475,482 ----
363                basic_machine=craynv-cray
364                os=-unicosmp
365                ;;
366!       cr16c)
367!               basic_machine=cr16c-unknown
368                os=-elf
369                ;;
370        crds | unos)
371***************
372*** 680,693 ****
373                basic_machine=m68k-isi
374                os=-sysv
375                ;;
376-       m68knommu)
377-               basic_machine=m68k-unknown
378-               os=-linux
379-               ;;
380-       m68knommu-*)
381-               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
382-               os=-linux
383-               ;;
384        m88k-omron*)
385                basic_machine=m88k-omron
386                ;;
387--- 668,673 ----
388***************
389*** 703,712 ****
390                basic_machine=i386-pc
391                os=-mingw32
392                ;;
393-       mingw32ce)
394-               basic_machine=arm-unknown
395-               os=-mingw32ce
396-               ;;
397        miniframe)
398                basic_machine=m68000-convergent
399                ;;
400--- 683,688 ----
401***************
402*** 833,846 ****
403                basic_machine=i860-intel
404                os=-osf
405                ;;
406-       parisc)
407-               basic_machine=hppa-unknown
408-               os=-linux
409-               ;;
410-       parisc-*)
411-               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
412-               os=-linux
413-               ;;
414        pbd)
415                basic_machine=sparc-tti
416                ;;
417--- 809,814 ----
418***************
419*** 957,965 ****
420                basic_machine=sh-hitachi
421                os=-hms
422                ;;
423-       sh5el)
424-               basic_machine=sh5le-unknown
425-               ;;
426        sh64)
427                basic_machine=sh64-unknown
428                ;;
429--- 925,930 ----
430***************
431*** 1049,1058 ****
432                basic_machine=tic6x-unknown
433                os=-coff
434                ;;
435-       tile*)
436-               basic_machine=tile-unknown
437-               os=-linux-gnu
438-               ;;
439        tx39)
440                basic_machine=mipstx39-unknown
441                ;;
442--- 1014,1019 ----
443***************
444*** 1258,1264 ****
445              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
446              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
447              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
448!             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
449        # Remember, each alternative MUST END IN *, to match a version number.
450                ;;
451        -qnx*)
452--- 1219,1225 ----
453              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
454              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
455              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
456!             | -skyos* | -haiku* | -rdos* | -toppers*)
457        # Remember, each alternative MUST END IN *, to match a version number.
458                ;;
459        -qnx*)
460***************
461*** 1453,1461 ****
462        m68*-cisco)
463                os=-aout
464                ;;
465-         mep-*)
466-               os=-elf
467-               ;;
468        mips*-cisco)
469                os=-elf
470                ;;
471--- 1414,1419 ----
472diff -crB /root/project/zzuf-0.12/.auto/depcomp /root/fuzz/zzuf-0.12/.auto/depcomp
473*** /root/project/zzuf-0.12/.auto/depcomp       2008-06-13 16:39:30.000000000 +0530
474--- /root/fuzz/zzuf-0.12/.auto/depcomp  2009-01-13 03:20:20.000000000 +0530
475***************
476*** 1,9 ****
477  #! /bin/sh
478  # depcomp - compile a program generating dependencies as side-effects
479 
480! scriptversion=2007-03-29.01
481 
482! # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
483  # Foundation, Inc.
484 
485  # This program is free software; you can redistribute it and/or modify
486--- 1,9 ----
487  #! /bin/sh
488  # depcomp - compile a program generating dependencies as side-effects
489 
490! scriptversion=2006-10-15.18
491 
492! # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
493  # Foundation, Inc.
494 
495  # This program is free software; you can redistribute it and/or modify
496***************
497*** 215,253 ****
498    # current directory.  Also, the AIX compiler puts `$object:' at the
499    # start of each line; $object doesn't have directory information.
500    # Version 6 uses the directory in both cases.
501!   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
502!   test "x$dir" = "x$object" && dir=
503!   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
504    if test "$libtool" = yes; then
505-     tmpdepfile1=$dir$base.u
506-     tmpdepfile2=$base.u
507-     tmpdepfile3=$dir.libs/$base.u
508      "$@" -Wc,-M
509    else
510-     tmpdepfile1=$dir$base.u
511-     tmpdepfile2=$dir$base.u
512-     tmpdepfile3=$dir$base.u
513      "$@" -M
514    fi
515    stat=$?
516 
517    if test $stat -eq 0; then :
518    else
519!     rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
520      exit $stat
521    fi
522 
523-   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
524-   do
525-     test -f "$tmpdepfile" && break
526-   done
527    if test -f "$tmpdepfile"; then
528      # Each line is of the form `foo.o: dependent.h'.
529      # Do two passes, one to just change these to
530      # `$object: dependent.h' and one to simply `dependent.h:'.
531!     sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
532!     # That's a tab and a space in the [].
533!     sed -e 's,^.*\.[a-z]*:[    ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
534    else
535      # The sourcefile does not contain any dependencies, so just
536      # store a dummy comment line, to avoid errors with the Makefile
537--- 215,248 ----
538    # current directory.  Also, the AIX compiler puts `$object:' at the
539    # start of each line; $object doesn't have directory information.
540    # Version 6 uses the directory in both cases.
541!   stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
542!   tmpdepfile="$stripped.u"
543    if test "$libtool" = yes; then
544      "$@" -Wc,-M
545    else
546      "$@" -M
547    fi
548    stat=$?
549 
550+   if test -f "$tmpdepfile"; then :
551+   else
552+     stripped=`echo "$stripped" | sed 's,^.*/,,'`
553+     tmpdepfile="$stripped.u"
554+   fi
555+
556    if test $stat -eq 0; then :
557    else
558!     rm -f "$tmpdepfile"
559      exit $stat
560    fi
561 
562    if test -f "$tmpdepfile"; then
563+     outname="$stripped.o"
564      # Each line is of the form `foo.o: dependent.h'.
565      # Do two passes, one to just change these to
566      # `$object: dependent.h' and one to simply `dependent.h:'.
567!     sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
568!     sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
569    else
570      # The sourcefile does not contain any dependencies, so just
571      # store a dummy comment line, to avoid errors with the Makefile
572diff -crB /root/project/zzuf-0.12/.auto/install-sh /root/fuzz/zzuf-0.12/.auto/install-sh
573*** /root/project/zzuf-0.12/.auto/install-sh    2008-06-13 16:39:30.000000000 +0530
574--- /root/fuzz/zzuf-0.12/.auto/install-sh       2009-01-13 03:20:20.000000000 +0530
575***************
576*** 1,7 ****
577  #!/bin/sh
578  # install - install a program, script, or datafile
579 
580! scriptversion=2006-12-25.00
581 
582  # This originates from X11R5 (mit/util/scripts/install.sh), which was
583  # later released in X11R6 (xc/config/util/install.sh) with the
584--- 1,7 ----
585  #!/bin/sh
586  # install - install a program, script, or datafile
587 
588! scriptversion=2006-10-14.15
589 
590  # This originates from X11R5 (mit/util/scripts/install.sh), which was
591  # later released in X11R6 (xc/config/util/install.sh) with the
592***************
593*** 48,54 ****
594  # set DOITPROG to echo to test this script
595 
596  # Don't use :- since 4.3BSD and earlier shells don't like it.
597! doit=${DOITPROG-}
598  if test -z "$doit"; then
599    doit_exec=exec
600  else
601--- 48,54 ----
602  # set DOITPROG to echo to test this script
603 
604  # Don't use :- since 4.3BSD and earlier shells don't like it.
605! doit="${DOITPROG-}"
606  if test -z "$doit"; then
607    doit_exec=exec
608  else
609***************
610*** 58,106 ****
611  # Put in absolute file names if you don't have them in your path;
612  # or use environment vars.
613 
614! chgrpprog=${CHGRPPROG-chgrp}
615! chmodprog=${CHMODPROG-chmod}
616! chownprog=${CHOWNPROG-chown}
617! cmpprog=${CMPPROG-cmp}
618! cpprog=${CPPROG-cp}
619! mkdirprog=${MKDIRPROG-mkdir}
620! mvprog=${MVPROG-mv}
621! rmprog=${RMPROG-rm}
622! stripprog=${STRIPPROG-strip}
623!
624! posix_glob='?'
625! initialize_posix_glob='
626!   test "$posix_glob" != "?" || {
627!     if (set -f) 2>/dev/null; then
628!       posix_glob=
629!     else
630!       posix_glob=:
631!     fi
632!   }
633! '
634 
635  posix_mkdir=
636 
637  # Desired mode of installed file.
638  mode=0755
639 
640- chgrpcmd=
641  chmodcmd=$chmodprog
642  chowncmd=
643! mvcmd=$mvprog
644! rmcmd="$rmprog -f"
645  stripcmd=
646!
647  src=
648  dst=
649  dir_arg=
650! dst_arg=
651!
652! copy_on_change=false
653  no_target_directory=
654 
655! usage="\
656! Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
657     or: $0 [OPTION]... SRCFILES... DIRECTORY
658     or: $0 [OPTION]... -t DIRECTORY SRCFILES...
659     or: $0 [OPTION]... -d DIRECTORIES...
660--- 58,91 ----
661  # Put in absolute file names if you don't have them in your path;
662  # or use environment vars.
663 
664! mvprog="${MVPROG-mv}"
665! cpprog="${CPPROG-cp}"
666! chmodprog="${CHMODPROG-chmod}"
667! chownprog="${CHOWNPROG-chown}"
668! chgrpprog="${CHGRPPROG-chgrp}"
669! stripprog="${STRIPPROG-strip}"
670! rmprog="${RMPROG-rm}"
671! mkdirprog="${MKDIRPROG-mkdir}"
672 
673+ posix_glob=
674  posix_mkdir=
675 
676  # Desired mode of installed file.
677  mode=0755
678 
679  chmodcmd=$chmodprog
680  chowncmd=
681! chgrpcmd=
682  stripcmd=
683! rmcmd="$rmprog -f"
684! mvcmd="$mvprog"
685  src=
686  dst=
687  dir_arg=
688! dstarg=
689  no_target_directory=
690 
691! usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
692     or: $0 [OPTION]... SRCFILES... DIRECTORY
693     or: $0 [OPTION]... -t DIRECTORY SRCFILES...
694     or: $0 [OPTION]... -d DIRECTORIES...
695***************
696*** 110,164 ****
697  In the 4th, create DIRECTORIES.
698 
699  Options:
700!      --help     display this help and exit.
701!      --version  display version info and exit.
702!
703!   -c            (ignored)
704!   -C            install only if different (preserve the last data modification time)
705!   -d            create directories instead of installing files.
706!   -g GROUP      $chgrpprog installed files to GROUP.
707!   -m MODE       $chmodprog installed files to MODE.
708!   -o USER       $chownprog installed files to USER.
709!   -s            $stripprog installed files.
710!   -t DIRECTORY  install into DIRECTORY.
711!   -T            report an error if DSTFILE is a directory.
712 
713  Environment variables override the default commands:
714!   CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
715!   RMPROG STRIPPROG
716  "
717 
718  while test $# -ne 0; do
719    case $1 in
720!     -c) ;;
721!
722!     -C) copy_on_change=true;;
723 
724!     -d) dir_arg=true;;
725 
726      -g) chgrpcmd="$chgrpprog $2"
727!       shift;;
728 
729      --help) echo "$usage"; exit $?;;
730 
731      -m) mode=$2
732        case $mode in
733          *' '* | *'    '* | *'
734  '*      | *'*'* | *'?'* | *'['*)
735            echo "$0: invalid mode: $mode" >&2
736            exit 1;;
737        esac
738!       shift;;
739 
740      -o) chowncmd="$chownprog $2"
741!       shift;;
742!
743!     -s) stripcmd=$stripprog;;
744!
745!     -t) dst_arg=$2
746!       shift;;
747!
748!     -T) no_target_directory=true;;
749 
750      --version) echo "$0 $scriptversion"; exit $?;;
751 
752--- 95,159 ----
753  In the 4th, create DIRECTORIES.
754 
755  Options:
756! -c         (ignored)
757! -d         create directories instead of installing files.
758! -g GROUP   $chgrpprog installed files to GROUP.
759! -m MODE    $chmodprog installed files to MODE.
760! -o USER    $chownprog installed files to USER.
761! -s         $stripprog installed files.
762! -t DIRECTORY  install into DIRECTORY.
763! -T         report an error if DSTFILE is a directory.
764! --help     display this help and exit.
765! --version  display version info and exit.
766 
767  Environment variables override the default commands:
768!   CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
769  "
770 
771  while test $# -ne 0; do
772    case $1 in
773!     -c) shift
774!         continue;;
775 
776!     -d) dir_arg=true
777!         shift
778!         continue;;
779 
780      -g) chgrpcmd="$chgrpprog $2"
781!         shift
782!         shift
783!         continue;;
784 
785      --help) echo "$usage"; exit $?;;
786 
787      -m) mode=$2
788+         shift
789+         shift
790        case $mode in
791          *' '* | *'    '* | *'
792  '*      | *'*'* | *'?'* | *'['*)
793            echo "$0: invalid mode: $mode" >&2
794            exit 1;;
795        esac
796!         continue;;
797 
798      -o) chowncmd="$chownprog $2"
799!         shift
800!         shift
801!         continue;;
802!
803!     -s) stripcmd=$stripprog
804!         shift
805!         continue;;
806!
807!     -t) dstarg=$2
808!       shift
809!       shift
810!       continue;;
811!
812!     -T) no_target_directory=true
813!       shift
814!       continue;;
815 
816      --version) echo "$0 $scriptversion"; exit $?;;
817 
818***************
819*** 170,191 ****
820 
821      *)  break;;
822    esac
823-   shift
824  done
825 
826! if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
827    # When -d is used, all remaining arguments are directories to create.
828    # When -t is used, the destination is already specified.
829    # Otherwise, the last argument is the destination.  Remove it from $@.
830    for arg
831    do
832!     if test -n "$dst_arg"; then
833        # $@ is not empty: it contains at least $arg.
834!       set fnord "$@" "$dst_arg"
835        shift # fnord
836      fi
837      shift # arg
838!     dst_arg=$arg
839    done
840  fi
841 
842--- 165,185 ----
843 
844      *)  break;;
845    esac
846  done
847 
848! if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
849    # When -d is used, all remaining arguments are directories to create.
850    # When -t is used, the destination is already specified.
851    # Otherwise, the last argument is the destination.  Remove it from $@.
852    for arg
853    do
854!     if test -n "$dstarg"; then
855        # $@ is not empty: it contains at least $arg.
856!       set fnord "$@" "$dstarg"
857        shift # fnord
858      fi
859      shift # arg
860!     dstarg=$arg
861    done
862  fi
863 
864***************
865*** 230,236 ****
866  do
867    # Protect names starting with `-'.
868    case $src in
869!     -*) src=./$src;;
870    esac
871 
872    if test -n "$dir_arg"; then
873--- 224,230 ----
874  do
875    # Protect names starting with `-'.
876    case $src in
877!     -*) src=./$src ;;
878    esac
879 
880    if test -n "$dir_arg"; then
881***************
882*** 248,269 ****
883        exit 1
884      fi
885 
886!     if test -z "$dst_arg"; then
887        echo "$0: no destination specified." >&2
888        exit 1
889      fi
890 
891!     dst=$dst_arg
892      # Protect names starting with `-'.
893      case $dst in
894!       -*) dst=./$dst;;
895      esac
896 
897      # If destination is a directory, append the input filename; won't work
898      # if double slashes aren't ignored.
899      if test -d "$dst"; then
900        if test -n "$no_target_directory"; then
901!       echo "$0: $dst_arg: Is a directory" >&2
902        exit 1
903        fi
904        dstdir=$dst
905--- 242,263 ----
906        exit 1
907      fi
908 
909!     if test -z "$dstarg"; then
910        echo "$0: no destination specified." >&2
911        exit 1
912      fi
913 
914!     dst=$dstarg
915      # Protect names starting with `-'.
916      case $dst in
917!       -*) dst=./$dst ;;
918      esac
919 
920      # If destination is a directory, append the input filename; won't work
921      # if double slashes aren't ignored.
922      if test -d "$dst"; then
923        if test -n "$no_target_directory"; then
924!       echo "$0: $dstarg: Is a directory" >&2
925        exit 1
926        fi
927        dstdir=$dst
928***************
929*** 384,402 ****
930        # directory the slow way, step by step, checking for races as we go.
931 
932        case $dstdir in
933!       /*) prefix='/';;
934!       -*) prefix='./';;
935!       *)  prefix='';;
936        esac
937 
938!       eval "$initialize_posix_glob"
939 
940        oIFS=$IFS
941        IFS=/
942!       $posix_glob set -f
943        set fnord $dstdir
944        shift
945!       $posix_glob set +f
946        IFS=$oIFS
947 
948        prefixes=
949--- 378,403 ----
950        # directory the slow way, step by step, checking for races as we go.
951 
952        case $dstdir in
953!       /*) prefix=/ ;;
954!       -*) prefix=./ ;;
955!       *)  prefix= ;;
956        esac
957 
958!       case $posix_glob in
959!         '')
960!         if (set -f) 2>/dev/null; then
961!           posix_glob=true
962!         else
963!           posix_glob=false
964!         fi ;;
965!       esac
966 
967        oIFS=$IFS
968        IFS=/
969!       $posix_glob && set -f
970        set fnord $dstdir
971        shift
972!       $posix_glob && set +f
973        IFS=$oIFS
974 
975        prefixes=
976***************
977*** 458,511 ****
978      # ignore errors from any of these, just make sure not to ignore
979      # errors from the above "$doit $cpprog $src $dsttmp" command.
980      #
981!     { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
982!     { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
983!     { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
984!     { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
985!
986!     # If -C, don't bother to copy if it wouldn't change the file.
987!     if $copy_on_change &&
988!        old=`LC_ALL=C ls -dlL "$dst"   2>/dev/null` &&
989!        new=`LC_ALL=C ls -dlL "$dsttmp"        2>/dev/null` &&
990!
991!        eval "$initialize_posix_glob" &&
992!        $posix_glob set -f &&
993!        set X $old && old=:$2:$4:$5:$6 &&
994!        set X $new && new=:$2:$4:$5:$6 &&
995!        $posix_glob set +f &&
996!
997!        test "$old" = "$new" &&
998!        $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
999!     then
1000!       rm -f "$dsttmp"
1001!     else
1002!       # Rename the file to the real destination.
1003!       $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
1004!
1005!       # The rename failed, perhaps because mv can't rename something else
1006!       # to itself, or perhaps because mv is so ancient that it does not
1007!       # support -f.
1008!       {
1009!       # Now remove or move aside any old file at destination location.
1010!       # We try this two ways since rm can't unlink itself on some
1011!       # systems and the destination file might be busy for other
1012!       # reasons.  In this case, the final cleanup might fail but the new
1013!       # file should still install successfully.
1014!       {
1015!         test ! -f "$dst" ||
1016!         $doit $rmcmd -f "$dst" 2>/dev/null ||
1017!         { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
1018!           { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
1019!         } ||
1020!         { echo "$0: cannot unlink or rename $dst" >&2
1021!           (exit 1); exit 1
1022!         }
1023!       } &&
1024!
1025!       # Now rename the file to the real destination.
1026!       $doit $mvcmd "$dsttmp" "$dst"
1027!       }
1028!     fi || exit 1
1029 
1030      trap '' 0
1031    fi
1032--- 459,499 ----
1033      # ignore errors from any of these, just make sure not to ignore
1034      # errors from the above "$doit $cpprog $src $dsttmp" command.
1035      #
1036!     { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
1037!       && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
1038!       && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
1039!       && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
1040!
1041!     # Now rename the file to the real destination.
1042!     { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
1043!       || {
1044!          # The rename failed, perhaps because mv can't rename something else
1045!          # to itself, or perhaps because mv is so ancient that it does not
1046!          # support -f.
1047!
1048!          # Now remove or move aside any old file at destination location.
1049!          # We try this two ways since rm can't unlink itself on some
1050!          # systems and the destination file might be busy for other
1051!          # reasons.  In this case, the final cleanup might fail but the new
1052!          # file should still install successfully.
1053!          {
1054!            if test -f "$dst"; then
1055!              $doit $rmcmd -f "$dst" 2>/dev/null \
1056!              || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
1057!                    && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
1058!              || {
1059!                echo "$0: cannot unlink or rename $dst" >&2
1060!                (exit 1); exit 1
1061!              }
1062!            else
1063!              :
1064!            fi
1065!          } &&
1066!
1067!          # Now rename the file to the real destination.
1068!          $doit $mvcmd "$dsttmp" "$dst"
1069!        }
1070!     } || exit 1
1071 
1072      trap '' 0
1073    fi
1074diff -crB /root/project/zzuf-0.12/.auto/ltmain.sh /root/fuzz/zzuf-0.12/.auto/ltmain.sh
1075*** /root/project/zzuf-0.12/.auto/ltmain.sh     2008-04-30 01:51:21.000000000 +0530
1076--- /root/fuzz/zzuf-0.12/.auto/ltmain.sh        2007-04-05 19:50:16.000000000 +0530
1077***************
1078*** 1,8 ****
1079  # ltmain.sh - Provide generalized library-building support services.
1080  # NOTE: Changing this file will not affect anything until you rerun configure.
1081  #
1082! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
1083! # 2007, 2008  Free Software Foundation, Inc.
1084  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1085  #
1086  # This program is free software; you can redistribute it and/or modify
1087--- 1,8 ----
1088  # ltmain.sh - Provide generalized library-building support services.
1089  # NOTE: Changing this file will not affect anything until you rerun configure.
1090  #
1091! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
1092! # Free Software Foundation, Inc.
1093  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1094  #
1095  # This program is free software; you can redistribute it and/or modify
1096***************
1097*** 43,50 ****
1098 
1099  PROGRAM=ltmain.sh
1100  PACKAGE=libtool
1101! VERSION="1.5.26 Debian 1.5.26-4"
1102! TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
1103 
1104  # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
1105  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1106--- 43,50 ----
1107 
1108  PROGRAM=ltmain.sh
1109  PACKAGE=libtool
1110! VERSION=1.5.22
1111! TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
1112 
1113  # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
1114  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1115***************
1116*** 57,64 ****
1117  else
1118    case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
1119  fi
1120- BIN_SH=xpg4; export BIN_SH # for Tru64
1121- DUALCASE=1; export DUALCASE # for MKS sh
1122 
1123  # Check that we have a working $echo.
1124  if test "X$1" = X--no-reexec; then
1125--- 57,62 ----
1126***************
1127*** 113,133 ****
1128  # These must not be set unconditionally because not all systems understand
1129  # e.g. LANG=C (notably SCO).
1130  # We save the old values to restore during execute mode.
1131! lt_env=
1132! for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1133  do
1134    eval "if test \"\${$lt_var+set}\" = set; then
1135!         save_$lt_var=\$$lt_var
1136!         lt_env=\"$lt_var=\$$lt_var \$lt_env\"
1137!         $lt_var=C
1138!         export $lt_var
1139!       fi"
1140  done
1141 
1142- if test -n "$lt_env"; then
1143-   lt_env="env $lt_env"
1144- fi
1145-
1146  # Make sure IFS has a sensible default
1147  lt_nl='
1148  '
1149--- 111,125 ----
1150  # These must not be set unconditionally because not all systems understand
1151  # e.g. LANG=C (notably SCO).
1152  # We save the old values to restore during execute mode.
1153! for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1154  do
1155    eval "if test \"\${$lt_var+set}\" = set; then
1156!          save_$lt_var=\$$lt_var
1157!          $lt_var=C
1158!          export $lt_var
1159!        fi"
1160  done
1161 
1162  # Make sure IFS has a sensible default
1163  lt_nl='
1164  '
1165***************
1166*** 214,226 ****
1167      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
1168        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
1169        win32_nmres=`eval $NM -f posix -A $1 | \
1170!       $SED -n -e '1,100{
1171!               / I /{
1172!                       s,.*,import,
1173!                       p
1174!                       q
1175!                       }
1176!               }'`
1177        case $win32_nmres in
1178        import*)  win32_libid_type="x86 archive import";;
1179        *)        win32_libid_type="x86 archive static";;
1180--- 206,212 ----
1181      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
1182        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
1183        win32_nmres=`eval $NM -f posix -A $1 | \
1184!       $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
1185        case $win32_nmres in
1186        import*)  win32_libid_type="x86 archive import";;
1187        *)        win32_libid_type="x86 archive static";;
1188***************
1189*** 354,364 ****
1190        my_xlib_u=$my_xlib
1191        while :; do
1192          case " $extracted_archives " in
1193!       *" $my_xlib_u "*)
1194!         extracted_serial=`expr $extracted_serial + 1`
1195!         my_xlib_u=lt$extracted_serial-$my_xlib ;;
1196!       *) break ;;
1197!       esac
1198        done
1199        extracted_archives="$extracted_archives $my_xlib_u"
1200        my_xdir="$my_gentop/$my_xlib_u"
1201--- 340,350 ----
1202        my_xlib_u=$my_xlib
1203        while :; do
1204          case " $extracted_archives " in
1205!        *" $my_xlib_u "*)
1206!          extracted_serial=`expr $extracted_serial + 1`
1207!          my_xlib_u=lt$extracted_serial-$my_xlib ;;
1208!        *) break ;;
1209!        esac
1210        done
1211        extracted_archives="$extracted_archives $my_xlib_u"
1212        my_xdir="$my_gentop/$my_xlib_u"
1213***************
1214*** 488,499 ****
1215      ;;
1216 
1217    --version)
1218!     echo "\
1219! $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
1220!
1221! Copyright (C) 2008  Free Software Foundation, Inc.
1222! This is free software; see the source for copying conditions.  There is NO
1223! warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1224      exit $?
1225      ;;
1226 
1227--- 474,484 ----
1228      ;;
1229 
1230    --version)
1231!     $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
1232!     $echo
1233!     $echo "Copyright (C) 2005  Free Software Foundation, Inc."
1234!     $echo "This is free software; see the source for copying conditions.  There is NO"
1235!     $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1236      exit $?
1237      ;;
1238 
1239***************
1240*** 790,800 ****
1241      *.class) xform=class ;;
1242      *.cpp) xform=cpp ;;
1243      *.cxx) xform=cxx ;;
1244!     *.[fF][09]?) xform=[fF][09]. ;;
1245      *.for) xform=for ;;
1246      *.java) xform=java ;;
1247      *.obj) xform=obj ;;
1248-     *.sx) xform=sx ;;
1249      esac
1250 
1251      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1252--- 775,784 ----
1253      *.class) xform=class ;;
1254      *.cpp) xform=cpp ;;
1255      *.cxx) xform=cxx ;;
1256!     *.f90) xform=f90 ;;
1257      *.for) xform=for ;;
1258      *.java) xform=java ;;
1259      *.obj) xform=obj ;;
1260      esac
1261 
1262      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1263***************
1264*** 963,969 ****
1265        $run $rm "$lobj" "$output_obj"
1266 
1267        $show "$command"
1268!       if $run eval $lt_env "$command"; then :
1269        else
1270        test -n "$output_obj" && $run $rm $removelist
1271        exit $EXIT_FAILURE
1272--- 947,953 ----
1273        $run $rm "$lobj" "$output_obj"
1274 
1275        $show "$command"
1276!       if $run eval "$command"; then :
1277        else
1278        test -n "$output_obj" && $run $rm $removelist
1279        exit $EXIT_FAILURE
1280***************
1281*** 1035,1041 ****
1282        command="$command$suppress_output"
1283        $run $rm "$obj" "$output_obj"
1284        $show "$command"
1285!       if $run eval $lt_env "$command"; then :
1286        else
1287        $run $rm $removelist
1288        exit $EXIT_FAILURE
1289--- 1019,1025 ----
1290        command="$command$suppress_output"
1291        $run $rm "$obj" "$output_obj"
1292        $show "$command"
1293!       if $run eval "$command"; then :
1294        else
1295        $run $rm $removelist
1296        exit $EXIT_FAILURE
1297***************
1298*** 1168,1174 ****
1299      thread_safe=no
1300      vinfo=
1301      vinfo_number=no
1302-     single_module="${wl}-single_module"
1303 
1304      func_infer_tag $base_compile
1305 
1306--- 1152,1157 ----
1307***************
1308*** 1177,1184 ****
1309      do
1310        case $arg in
1311        -all-static | -static | -static-libtool-libs)
1312!       case $arg in
1313!       -all-static)
1314          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1315            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1316          fi
1317--- 1160,1167 ----
1318      do
1319        case $arg in
1320        -all-static | -static | -static-libtool-libs)
1321!     case $arg in
1322!     -all-static)
1323          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1324            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1325          fi
1326***************
1327*** 1187,1205 ****
1328          fi
1329          prefer_static_libs=yes
1330          ;;
1331!       -static)
1332          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1333            dlopen_self=$dlopen_self_static
1334          fi
1335          prefer_static_libs=built
1336          ;;
1337!       -static-libtool-libs)
1338!         if test -z "$pic_flag" && test -n "$link_static_flag"; then
1339!           dlopen_self=$dlopen_self_static
1340!         fi
1341!         prefer_static_libs=yes
1342!         ;;
1343!       esac
1344        build_libtool_libs=no
1345        build_old_libs=yes
1346        break
1347--- 1170,1188 ----
1348          fi
1349          prefer_static_libs=yes
1350          ;;
1351!     -static)
1352          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1353            dlopen_self=$dlopen_self_static
1354          fi
1355          prefer_static_libs=built
1356          ;;
1357!     -static-libtool-libs)
1358!       if test -z "$pic_flag" && test -n "$link_static_flag"; then
1359!         dlopen_self=$dlopen_self_static
1360!       fi
1361!       prefer_static_libs=yes
1362!       ;;
1363!     esac
1364        build_libtool_libs=no
1365        build_old_libs=yes
1366        break
1367***************
1368*** 1647,1664 ****
1369        continue
1370        ;;
1371 
1372!      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1373        compiler_flags="$compiler_flags $arg"
1374        compile_command="$compile_command $arg"
1375        finalize_command="$finalize_command $arg"
1376        continue
1377        ;;
1378 
1379-       -multi_module)
1380-       single_module="${wl}-multi_module"
1381-       continue
1382-       ;;
1383-
1384        -module)
1385        module=yes
1386        continue
1387--- 1630,1642 ----
1388        continue
1389        ;;
1390 
1391!      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1392        compiler_flags="$compiler_flags $arg"
1393        compile_command="$compile_command $arg"
1394        finalize_command="$finalize_command $arg"
1395        continue
1396        ;;
1397 
1398        -module)
1399        module=yes
1400        continue
1401***************
1402*** 1672,1682 ****
1403        # -m* pass through architecture-specific compiler args for GCC
1404        # -m*, -t[45]*, -txscale* pass through architecture-specific
1405        # compiler args for GCC
1406!       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1407!       # -F/path gives path to uninstalled frameworks, gcc on darwin
1408        # @file GCC response files
1409!       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1410!       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1411 
1412        # Unknown arguments in both finalize_command and compile_command need
1413        # to be aesthetically quoted because they are evaled later.
1414--- 1650,1659 ----
1415        # -m* pass through architecture-specific compiler args for GCC
1416        # -m*, -t[45]*, -txscale* pass through architecture-specific
1417        # compiler args for GCC
1418!       # -pg pass through profiling flag for GCC
1419        # @file GCC response files
1420!       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1421!       -t[45]*|-txscale*|@*)
1422 
1423        # Unknown arguments in both finalize_command and compile_command need
1424        # to be aesthetically quoted because they are evaled later.
1425***************
1426*** 1704,1712 ****
1427 
1428        -no-install)
1429        case $host in
1430!       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1431          # The PATH hackery in wrapper scripts is required on Windows
1432!         # and Darwin in order for the loader to find any dlls it needs.
1433          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1434          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1435          fast_install=no
1436--- 1681,1689 ----
1437 
1438        -no-install)
1439        case $host in
1440!       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1441          # The PATH hackery in wrapper scripts is required on Windows
1442!         # in order for the loader to find any dlls it needs.
1443          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1444          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1445          fast_install=no
1446***************
1447*** 2135,2144 ****
1448        case $pass in
1449        dlopen) libs="$dlfiles" ;;
1450        dlpreopen) libs="$dlprefiles" ;;
1451!       link)
1452!         libs="$deplibs %DEPLIBS%"
1453!         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
1454!         ;;
1455        esac
1456        fi
1457        if test "$pass" = dlopen; then
1458--- 2112,2118 ----
1459        case $pass in
1460        dlopen) libs="$dlfiles" ;;
1461        dlpreopen) libs="$dlprefiles" ;;
1462!       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
1463        esac
1464        fi
1465        if test "$pass" = dlopen; then
1466***************
1467*** 2150,2156 ****
1468        lib=
1469        found=no
1470        case $deplib in
1471!       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1472          if test "$linkmode,$pass" = "prog,link"; then
1473            compile_deplibs="$deplib $compile_deplibs"
1474            finalize_deplibs="$deplib $finalize_deplibs"
1475--- 2124,2130 ----
1476        lib=
1477        found=no
1478        case $deplib in
1479!       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1480          if test "$linkmode,$pass" = "prog,link"; then
1481            compile_deplibs="$deplib $compile_deplibs"
1482            finalize_deplibs="$deplib $finalize_deplibs"
1483***************
1484*** 2165,2176 ****
1485            continue
1486          fi
1487          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1488!         if test "$linkmode" = lib; then
1489!           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
1490!         else
1491!           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
1492!         fi
1493!         for searchdir in $searchdirs; do
1494            for search_ext in .la $std_shrext .so .a; do
1495              # Search the libtool library
1496              lib="$searchdir/lib${name}${search_ext}"
1497--- 2139,2145 ----
1498            continue
1499          fi
1500          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1501!         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1502            for search_ext in .la $std_shrext .so .a; do
1503              # Search the libtool library
1504              lib="$searchdir/lib${name}${search_ext}"
1505***************
1506*** 2551,2559 ****
1507 
1508        if test "$linkmode,$pass" = "prog,link"; then
1509          if test -n "$library_names" &&
1510!            { { test "$prefer_static_libs" = no ||
1511!                test "$prefer_static_libs,$installed" = "built,yes"; } ||
1512!              test -z "$old_library"; }; then
1513            # We need to hardcode the library path
1514            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
1515              # Make sure the rpath contains only unique directories.
1516--- 2520,2528 ----
1517 
1518        if test "$linkmode,$pass" = "prog,link"; then
1519          if test -n "$library_names" &&
1520!          { { test "$prefer_static_libs" = no ||
1521!              test "$prefer_static_libs,$installed" = "built,yes"; } ||
1522!            test -z "$old_library"; }; then
1523            # We need to hardcode the library path
1524            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
1525              # Make sure the rpath contains only unique directories.
1526***************
1527*** 2966,2983 ****
1528                  # we do not want to link against static libs,
1529                  # but need to link against shared
1530                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
1531-                 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
1532                  if test -n "$deplibrary_names" ; then
1533                    for tmp in $deplibrary_names ; do
1534                      depdepl=$tmp
1535                    done
1536!                   if test -f "$deplibdir/$depdepl" ; then
1537!                     depdepl="$deplibdir/$depdepl"
1538!                   elif test -f "$path/$depdepl" ; then
1539                      depdepl="$path/$depdepl"
1540-                   else
1541-                     # Can't find it, oh well...
1542-                     depdepl=
1543                    fi
1544                    # do not add paths which are already there
1545                    case " $newlib_search_path " in
1546--- 2935,2946 ----
1547                  # we do not want to link against static libs,
1548                  # but need to link against shared
1549                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
1550                  if test -n "$deplibrary_names" ; then
1551                    for tmp in $deplibrary_names ; do
1552                      depdepl=$tmp
1553                    done
1554!                   if test -f "$path/$depdepl" ; then
1555                      depdepl="$path/$depdepl"
1556                    fi
1557                    # do not add paths which are already there
1558                    case " $newlib_search_path " in
1559***************
1560*** 3125,3134 ****
1561 
1562      case $linkmode in
1563      oldlib)
1564!       case " $deplibs" in
1565!       *\ -l* | *\ -L*)
1566!       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
1567!       esac
1568 
1569        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1570        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
1571--- 3088,3096 ----
1572 
1573      case $linkmode in
1574      oldlib)
1575!       if test -n "$deplibs"; then
1576!       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
1577!       fi
1578 
1579        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1580        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
1581***************
1582*** 3267,3281 ****
1583            age="0"
1584            ;;
1585          irix|nonstopux)
1586!           current=`expr $number_major + $number_minor`
1587            age="$number_minor"
1588            revision="$number_minor"
1589-           lt_irix_increment=no
1590-           ;;
1591-         *)
1592-           $echo "$modename: unknown library version type \`$version_type'" 1>&2
1593-           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
1594-           exit $EXIT_FAILURE
1595            ;;
1596          esac
1597          ;;
1598--- 3229,3237 ----
1599            age="0"
1600            ;;
1601          irix|nonstopux)
1602!           current=`expr $number_major + $number_minor - 1`
1603            age="$number_minor"
1604            revision="$number_minor"
1605            ;;
1606          esac
1607          ;;
1608***************
1609*** 3334,3341 ****
1610          versuffix="$major.$age.$revision"
1611          # Darwin ld doesn't like 0 for these options...
1612          minor_current=`expr $current + 1`
1613!         xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
1614!         verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
1615          ;;
1616 
1617        freebsd-aout)
1618--- 3290,3296 ----
1619          versuffix="$major.$age.$revision"
1620          # Darwin ld doesn't like 0 for these options...
1621          minor_current=`expr $current + 1`
1622!         verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
1623          ;;
1624 
1625        freebsd-aout)
1626***************
1627*** 3349,3359 ****
1628          ;;
1629 
1630        irix | nonstopux)
1631!         if test "X$lt_irix_increment" = "Xno"; then
1632!           major=`expr $current - $age`
1633!         else
1634!           major=`expr $current - $age + 1`
1635!         fi
1636          case $version_type in
1637            nonstopux) verstring_prefix=nonstopux ;;
1638            *)         verstring_prefix=sgi ;;
1639--- 3304,3311 ----
1640          ;;
1641 
1642        irix | nonstopux)
1643!         major=`expr $current - $age + 1`
1644!
1645          case $version_type in
1646            nonstopux) verstring_prefix=nonstopux ;;
1647            *)         verstring_prefix=sgi ;;
1648***************
1649*** 3490,3500 ****
1650        fi
1651 
1652        # Eliminate all temporary directories.
1653!       #for path in $notinst_path; do
1654!       #       lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
1655!       #       deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
1656!       #       dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
1657!       #done
1658 
1659        if test -n "$xrpath"; then
1660        # If the user specified any rpath flags, then add them.
1661--- 3442,3452 ----
1662        fi
1663 
1664        # Eliminate all temporary directories.
1665! #      for path in $notinst_path; do
1666! #     lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
1667! #     deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
1668! #     dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
1669! #      done
1670 
1671        if test -n "$xrpath"; then
1672        # If the user specified any rpath flags, then add them.
1673***************
1674*** 3595,3601 ****
1675          int main() { return 0; }
1676  EOF
1677          $rm conftest
1678!         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
1679            ldd_output=`ldd conftest`
1680            for i in $deplibs; do
1681              name=`expr $i : '-l\(.*\)'`
1682--- 3547,3553 ----
1683          int main() { return 0; }
1684  EOF
1685          $rm conftest
1686!       if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
1687            ldd_output=`ldd conftest`
1688            for i in $deplibs; do
1689              name=`expr $i : '-l\(.*\)'`
1690***************
1691*** 3957,3966 ****
1692             test -n "$hardcode_libdirs"; then
1693            libdir="$hardcode_libdirs"
1694            if test -n "$hardcode_libdir_flag_spec_ld"; then
1695!             case $archive_cmds in
1696!             *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
1697!             *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
1698!             esac
1699            else
1700              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
1701            fi
1702--- 3909,3915 ----
1703             test -n "$hardcode_libdirs"; then
1704            libdir="$hardcode_libdirs"
1705            if test -n "$hardcode_libdir_flag_spec_ld"; then
1706!             eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
1707            else
1708              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
1709            fi
1710***************
1711*** 4270,4279 ****
1712        ;;
1713 
1714      obj)
1715!       case " $deplibs" in
1716!       *\ -l* | *\ -L*)
1717!       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
1718!       esac
1719 
1720        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1721        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
1722--- 4219,4227 ----
1723        ;;
1724 
1725      obj)
1726!       if test -n "$deplibs"; then
1727!       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
1728!       fi
1729 
1730        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1731        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
1732***************
1733*** 4327,4333 ****
1734        if test -n "$convenience"; then
1735        if test -n "$whole_archive_flag_spec"; then
1736          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
1737!         reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
1738        else
1739          gentop="$output_objdir/${obj}x"
1740          generated="$generated $gentop"
1741--- 4275,4281 ----
1742        if test -n "$convenience"; then
1743        if test -n "$whole_archive_flag_spec"; then
1744          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
1745!       reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
1746        else
1747          gentop="$output_objdir/${obj}x"
1748          generated="$generated $gentop"
1749***************
1750*** 5347,5354 ****
1751  else
1752    case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
1753  fi
1754- BIN_SH=xpg4; export BIN_SH # for Tru64
1755- DUALCASE=1; export DUALCASE # for MKS sh
1756 
1757  # The HP-UX ksh and POSIX shell print the target directory to stdout
1758  # if CDPATH is set.
1759--- 5295,5300 ----
1760***************
1761*** 6445,6454 ****
1762        if test -f "$dir/$objdir/$dlname"; then
1763          dir="$dir/$objdir"
1764        else
1765!         if test ! -f "$dir/$dlname"; then
1766!           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
1767!           exit $EXIT_FAILURE
1768!         fi
1769        fi
1770        ;;
1771 
1772--- 6391,6398 ----
1773        if test -f "$dir/$objdir/$dlname"; then
1774          dir="$dir/$objdir"
1775        else
1776!         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
1777!         exit $EXIT_FAILURE
1778        fi
1779        ;;
1780 
1781***************
1782*** 6512,6524 ****
1783        fi
1784 
1785        # Restore saved environment variables
1786!       for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1787        do
1788!       eval "if test \"\${save_$lt_var+set}\" = set; then
1789!               $lt_var=\$save_$lt_var; export $lt_var
1790!             fi"
1791        done
1792 
1793        # Now prepare to actually exec the command.
1794        exec_cmd="\$cmd$args"
1795      else
1796--- 6456,6469 ----
1797        fi
1798 
1799        # Restore saved environment variables
1800!       for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1801        do
1802!        eval "if test \"\${save_$lt_var+set}\" = set; then
1803!                $lt_var=\$save_$lt_var; export $lt_var
1804!              fi"
1805        done
1806 
1807+
1808        # Now prepare to actually exec the command.
1809        exec_cmd="\$cmd$args"
1810      else
1811Only in /root/fuzz/zzuf-0.12: autom4te.cache
1812Only in /root/fuzz/zzuf-0.12: config.h
1813Only in /root/fuzz/zzuf-0.12: config.log
1814Only in /root/fuzz/zzuf-0.12: config.status
1815diff -crB /root/project/zzuf-0.12/configure /root/fuzz/zzuf-0.12/configure
1816*** /root/project/zzuf-0.12/configure   2008-06-13 16:39:29.000000000 +0530
1817--- /root/fuzz/zzuf-0.12/configure      2009-02-27 01:14:47.000000000 +0530
1818***************
1819*** 857,864 ****
1820  ECHO
1821  AR
1822  RANLIB
1823- DSYMUTIL
1824- NMEDIT
1825  CXX
1826  CXXFLAGS
1827  ac_ct_CXX
1828--- 857,862 ----
1829***************
1830*** 4109,4115 ****
1831    test -z "$as_dir" && as_dir=.
1832    for lt_ac_prog in sed gsed; do
1833      for ac_exec_ext in '' $ac_executable_extensions; do
1834!       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1835          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
1836        fi
1837      done
1838--- 4107,4113 ----
1839    test -z "$as_dir" && as_dir=.
1840    for lt_ac_prog in sed gsed; do
1841      for ac_exec_ext in '' $ac_executable_extensions; do
1842!       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
1843          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
1844        fi
1845      done
1846***************
1847*** 4512,4519 ****
1848  echo "${ECHO_T}no, using $LN_S" >&6; }
1849  fi
1850 
1851! { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
1852! echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1853  if test "${lt_cv_deplibs_check_method+set}" = set; then
1854    echo $ECHO_N "(cached) $ECHO_C" >&6
1855  else
1856--- 4510,4517 ----
1857  echo "${ECHO_T}no, using $LN_S" >&6; }
1858  fi
1859 
1860! { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
1861! echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
1862  if test "${lt_cv_deplibs_check_method+set}" = set; then
1863    echo $ECHO_N "(cached) $ECHO_C" >&6
1864  else
1865***************
1866*** 4532,4538 ****
1867  # whether `pass_all' will *always* work, you probably want this one.
1868 
1869  case $host_os in
1870! aix[4-9]*)
1871    lt_cv_deplibs_check_method=pass_all
1872    ;;
1873 
1874--- 4530,4536 ----
1875  # whether `pass_all' will *always* work, you probably want this one.
1876 
1877  case $host_os in
1878! aix4* | aix5*)
1879    lt_cv_deplibs_check_method=pass_all
1880    ;;
1881 
1882***************
1883*** 4554,4575 ****
1884 
1885  mingw* | pw32*)
1886    # Base MSYS/MinGW do not provide the 'file' command needed by
1887!   # func_win32_libid shell function, so use a weaker test based on 'objdump',
1888!   # unless we find 'file', for example because we are cross-compiling.
1889!   if ( file / ) >/dev/null 2>&1; then
1890!     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1891!     lt_cv_file_magic_cmd='func_win32_libid'
1892!   else
1893!     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1894!     lt_cv_file_magic_cmd='$OBJDUMP -f'
1895!   fi
1896    ;;
1897 
1898  darwin* | rhapsody*)
1899    lt_cv_deplibs_check_method=pass_all
1900    ;;
1901 
1902! freebsd* | dragonfly*)
1903    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1904      case $host_cpu in
1905      i*86 )
1906--- 4552,4567 ----
1907 
1908  mingw* | pw32*)
1909    # Base MSYS/MinGW do not provide the 'file' command needed by
1910!   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1911!   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1912!   lt_cv_file_magic_cmd='$OBJDUMP -f'
1913    ;;
1914 
1915  darwin* | rhapsody*)
1916    lt_cv_deplibs_check_method=pass_all
1917    ;;
1918 
1919! freebsd* | kfreebsd*-gnu | dragonfly*)
1920    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1921      case $host_cpu in
1922      i*86 )
1923***************
1924*** 4607,4613 ****
1925    esac
1926    ;;
1927 
1928! interix[3-9]*)
1929    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
1931    ;;
1932--- 4599,4605 ----
1933    esac
1934    ;;
1935 
1936! interix3*)
1937    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1938    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
1939    ;;
1940***************
1941*** 4623,4633 ****
1942    ;;
1943 
1944  # This must be Linux ELF.
1945! linux* | k*bsd*-gnu)
1946    lt_cv_deplibs_check_method=pass_all
1947    ;;
1948 
1949! netbsd* | netbsdelf*-gnu)
1950    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1951      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1952    else
1953--- 4615,4625 ----
1954    ;;
1955 
1956  # This must be Linux ELF.
1957! linux*)
1958    lt_cv_deplibs_check_method=pass_all
1959    ;;
1960 
1961! netbsd*)
1962    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1963      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1964    else
1965***************
1966*** 4657,4666 ****
1967    lt_cv_deplibs_check_method=pass_all
1968    ;;
1969 
1970- rdos*)
1971-   lt_cv_deplibs_check_method=pass_all
1972-   ;;
1973-
1974  solaris*)
1975    lt_cv_deplibs_check_method=pass_all
1976    ;;
1977--- 4649,4654 ----
1978***************
1979*** 4748,4754 ****
1980    ;;
1981  *-*-irix6*)
1982    # Find out which ABI we are using.
1983!   echo '#line 4751 "configure"' > conftest.$ac_ext
1984    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985    (eval $ac_compile) 2>&5
1986    ac_status=$?
1987--- 4736,4742 ----
1988    ;;
1989  *-*-irix6*)
1990    # Find out which ABI we are using.
1991!   echo '#line 4739 "configure"' > conftest.$ac_ext
1992    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993    (eval $ac_compile) 2>&5
1994    ac_status=$?
1995***************
1996*** 4783,4790 ****
1997    rm -rf conftest*
1998    ;;
1999 
2000! x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2001! s390*-*linux*|sparc*-*linux*)
2002    # Find out which ABI we are using.
2003    echo 'int i;' > conftest.$ac_ext
2004    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005--- 4771,4777 ----
2006    rm -rf conftest*
2007    ;;
2008 
2009! x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2010    # Find out which ABI we are using.
2011    echo 'int i;' > conftest.$ac_ext
2012    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2013***************
2014*** 4795,4803 ****
2015      case `/usr/bin/file conftest.o` in
2016      *32-bit*)
2017        case $host in
2018-         x86_64-*kfreebsd*-gnu)
2019-           LD="${LD-ld} -m elf_i386_fbsd"
2020-           ;;
2021          x86_64-*linux*)
2022            LD="${LD-ld} -m elf_i386"
2023            ;;
2024--- 4782,4787 ----
2025***************
2026*** 4814,4822 ****
2027        ;;
2028      *64-bit*)
2029        case $host in
2030-         x86_64-*kfreebsd*-gnu)
2031-           LD="${LD-ld} -m elf_x86_64_fbsd"
2032-           ;;
2033          x86_64-*linux*)
2034            LD="${LD-ld} -m elf_x86_64"
2035            ;;
2036--- 4798,4803 ----
2037***************
2038*** 4920,4930 ****
2039      *64-bit*)
2040        case $lt_cv_prog_gnu_ld in
2041        yes*) LD="${LD-ld} -m elf64_sparc" ;;
2042!       *)
2043!         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2044!         LD="${LD-ld} -64"
2045!       fi
2046!       ;;
2047        esac
2048        ;;
2049      esac
2050--- 4901,4907 ----
2051      *64-bit*)
2052        case $lt_cv_prog_gnu_ld in
2053        yes*) LD="${LD-ld} -m elf64_sparc" ;;
2054!       *)    LD="${LD-ld} -64" ;;
2055        esac
2056        ;;
2057      esac
2058***************
2059*** 6377,6403 ****
2060      fi
2061      ;;
2062    *)
2063!     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2064!     if test -n "$lt_cv_sys_max_cmd_len"; then
2065!       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2066!       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2067!     else
2068!       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2069!       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
2070               = "XX$teststring") >/dev/null 2>&1 &&
2071!             new_result=`expr "X$teststring" : ".*" 2>&1` &&
2072!             lt_cv_sys_max_cmd_len=$new_result &&
2073!             test $i != 17 # 1/2 MB should be enough
2074!       do
2075!         i=`expr $i + 1`
2076!         teststring=$teststring$teststring
2077!       done
2078!       teststring=
2079!       # Add a significant safety factor because C++ compilers can tack on massive
2080!       # amounts of additional arguments before passing them to the linker.
2081!       # It appears as though 1/2 is a usable value.
2082!       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2083!     fi
2084      ;;
2085    esac
2086 
2087--- 6355,6378 ----
2088      fi
2089      ;;
2090    *)
2091!     # If test is not a shell built-in, we'll probably end up computing a
2092!     # maximum length that is only half of the actual maximum length, but
2093!     # we can't tell.
2094!     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2095!     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
2096               = "XX$teststring") >/dev/null 2>&1 &&
2097!           new_result=`expr "X$teststring" : ".*" 2>&1` &&
2098!           lt_cv_sys_max_cmd_len=$new_result &&
2099!           test $i != 17 # 1/2 MB should be enough
2100!     do
2101!       i=`expr $i + 1`
2102!       teststring=$teststring$teststring
2103!     done
2104!     teststring=
2105!     # Add a significant safety factor because C++ compilers can tack on massive
2106!     # amounts of additional arguments before passing them to the linker.
2107!     # It appears as though 1/2 is a usable value.
2108!     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2109      ;;
2110    esac
2111 
2112***************
2113*** 6452,6458 ****
2114    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2115    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2116    ;;
2117! linux* | k*bsd*-gnu)
2118    if test "$host_cpu" = ia64; then
2119      symcode='[ABCDGIRSTW]'
2120      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2121--- 6426,6432 ----
2122    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2123    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2124    ;;
2125! linux*)
2126    if test "$host_cpu" = ia64; then
2127      symcode='[ABCDGIRSTW]'
2128      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2129***************
2130*** 6605,6611 ****
2131      echo "$progname: failed program was:" >&5
2132      cat conftest.$ac_ext >&5
2133    fi
2134!   rm -rf conftest* conftst*
2135 
2136    # Do not use the global_symbol_pipe unless it works.
2137    if test "$pipe_works" = yes; then
2138--- 6579,6585 ----
2139      echo "$progname: failed program was:" >&5
2140      cat conftest.$ac_ext >&5
2141    fi
2142!   rm -f conftest* conftst*
2143 
2144    # Do not use the global_symbol_pipe unless it works.
2145    if test "$pipe_works" = yes; then
2146***************
2147*** 7003,7009 ****
2148  test -z "$ac_objext" && ac_objext=o
2149 
2150  # Determine commands to create old-style static archives.
2151! old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2152  old_postinstall_cmds='chmod 644 $oldlib'
2153  old_postuninstall_cmds=
2154 
2155--- 6977,6983 ----
2156  test -z "$ac_objext" && ac_objext=o
2157 
2158  # Determine commands to create old-style static archives.
2159! old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2160  old_postinstall_cmds='chmod 644 $oldlib'
2161  old_postuninstall_cmds=
2162 
2163***************
2164*** 7165,7482 ****
2165    ;;
2166  esac
2167 
2168-
2169-   case $host_os in
2170-     rhapsody* | darwin*)
2171-     if test -n "$ac_tool_prefix"; then
2172-   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
2173- set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
2174- { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176- if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
2177-   echo $ECHO_N "(cached) $ECHO_C" >&6
2178- else
2179-   if test -n "$DSYMUTIL"; then
2180-   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
2181- else
2182- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183- for as_dir in $PATH
2184- do
2185-   IFS=$as_save_IFS
2186-   test -z "$as_dir" && as_dir=.
2187-   for ac_exec_ext in '' $ac_executable_extensions; do
2188-   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189-     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
2190-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191-     break 2
2192-   fi
2193- done
2194- done
2195- IFS=$as_save_IFS
2196-
2197- fi
2198- fi
2199- DSYMUTIL=$ac_cv_prog_DSYMUTIL
2200- if test -n "$DSYMUTIL"; then
2201-   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
2202- echo "${ECHO_T}$DSYMUTIL" >&6; }
2203- else
2204-   { echo "$as_me:$LINENO: result: no" >&5
2205- echo "${ECHO_T}no" >&6; }
2206- fi
2207-
2208-
2209- fi
2210- if test -z "$ac_cv_prog_DSYMUTIL"; then
2211-   ac_ct_DSYMUTIL=$DSYMUTIL
2212-   # Extract the first word of "dsymutil", so it can be a program name with args.
2213- set dummy dsymutil; ac_word=$2
2214- { echo "$as_me:$LINENO: checking for $ac_word" >&5
2215- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216- if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
2217-   echo $ECHO_N "(cached) $ECHO_C" >&6
2218- else
2219-   if test -n "$ac_ct_DSYMUTIL"; then
2220-   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
2221- else
2222- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223- for as_dir in $PATH
2224- do
2225-   IFS=$as_save_IFS
2226-   test -z "$as_dir" && as_dir=.
2227-   for ac_exec_ext in '' $ac_executable_extensions; do
2228-   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229-     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
2230-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231-     break 2
2232-   fi
2233- done
2234- done
2235- IFS=$as_save_IFS
2236-
2237- fi
2238- fi
2239- ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
2240- if test -n "$ac_ct_DSYMUTIL"; then
2241-   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
2242- echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
2243- else
2244-   { echo "$as_me:$LINENO: result: no" >&5
2245- echo "${ECHO_T}no" >&6; }
2246- fi
2247-
2248-   if test "x$ac_ct_DSYMUTIL" = x; then
2249-     DSYMUTIL=":"
2250-   else
2251-     case $cross_compiling:$ac_tool_warned in
2252- yes:)
2253- { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2254- whose name does not start with the host triplet.  If you think this
2255- configuration is useful to you, please write to autoconf@gnu.org." >&5
2256- echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2257- whose name does not start with the host triplet.  If you think this
2258- configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2259- ac_tool_warned=yes ;;
2260- esac
2261-     DSYMUTIL=$ac_ct_DSYMUTIL
2262-   fi
2263- else
2264-   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
2265- fi
2266-
2267-     if test -n "$ac_tool_prefix"; then
2268-   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
2269- set dummy ${ac_tool_prefix}nmedit; ac_word=$2
2270- { echo "$as_me:$LINENO: checking for $ac_word" >&5
2271- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272- if test "${ac_cv_prog_NMEDIT+set}" = set; then
2273-   echo $ECHO_N "(cached) $ECHO_C" >&6
2274- else
2275-   if test -n "$NMEDIT"; then
2276-   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
2277- else
2278- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279- for as_dir in $PATH
2280- do
2281-   IFS=$as_save_IFS
2282-   test -z "$as_dir" && as_dir=.
2283-   for ac_exec_ext in '' $ac_executable_extensions; do
2284-   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285-     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
2286-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287-     break 2
2288-   fi
2289- done
2290- done
2291- IFS=$as_save_IFS
2292-
2293- fi
2294- fi
2295- NMEDIT=$ac_cv_prog_NMEDIT
2296- if test -n "$NMEDIT"; then
2297-   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
2298- echo "${ECHO_T}$NMEDIT" >&6; }
2299- else
2300-   { echo "$as_me:$LINENO: result: no" >&5
2301- echo "${ECHO_T}no" >&6; }
2302- fi
2303-
2304-
2305- fi
2306- if test -z "$ac_cv_prog_NMEDIT"; then
2307-   ac_ct_NMEDIT=$NMEDIT
2308-   # Extract the first word of "nmedit", so it can be a program name with args.
2309- set dummy nmedit; ac_word=$2
2310- { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312- if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
2313-   echo $ECHO_N "(cached) $ECHO_C" >&6
2314- else
2315-   if test -n "$ac_ct_NMEDIT"; then
2316-   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
2317- else
2318- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319- for as_dir in $PATH
2320- do
2321-   IFS=$as_save_IFS
2322-   test -z "$as_dir" && as_dir=.
2323-   for ac_exec_ext in '' $ac_executable_extensions; do
2324-   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325-     ac_cv_prog_ac_ct_NMEDIT="nmedit"
2326-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327-     break 2
2328-   fi
2329- done
2330- done
2331- IFS=$as_save_IFS
2332-
2333- fi
2334- fi
2335- ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
2336- if test -n "$ac_ct_NMEDIT"; then
2337-   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
2338- echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
2339- else
2340-   { echo "$as_me:$LINENO: result: no" >&5
2341- echo "${ECHO_T}no" >&6; }
2342- fi
2343-
2344-   if test "x$ac_ct_NMEDIT" = x; then
2345-     NMEDIT=":"
2346-   else
2347-     case $cross_compiling:$ac_tool_warned in
2348- yes:)
2349- { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2350- whose name does not start with the host triplet.  If you think this
2351- configuration is useful to you, please write to autoconf@gnu.org." >&5
2352- echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2353- whose name does not start with the host triplet.  If you think this
2354- configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2355- ac_tool_warned=yes ;;
2356- esac
2357-     NMEDIT=$ac_ct_NMEDIT
2358-   fi
2359- else
2360-   NMEDIT="$ac_cv_prog_NMEDIT"
2361- fi
2362-
2363-
2364-     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
2365- echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
2366- if test "${lt_cv_apple_cc_single_mod+set}" = set; then
2367-   echo $ECHO_N "(cached) $ECHO_C" >&6
2368- else
2369-   lt_cv_apple_cc_single_mod=no
2370-       if test -z "${LT_MULTI_MODULE}"; then
2371-    # By default we will add the -single_module flag. You can override
2372-    # by either setting the environment variable LT_MULTI_MODULE
2373-    # non-empty at configure time, or by adding -multi_module to the
2374-    # link flags.
2375-    echo "int foo(void){return 1;}" > conftest.c
2376-    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2377-      -dynamiclib ${wl}-single_module conftest.c
2378-    if test -f libconftest.dylib; then
2379-      lt_cv_apple_cc_single_mod=yes
2380-      rm -rf libconftest.dylib*
2381-    fi
2382-    rm conftest.c
2383-       fi
2384- fi
2385- { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
2386- echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
2387-     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
2388- echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
2389- if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
2390-   echo $ECHO_N "(cached) $ECHO_C" >&6
2391- else
2392-   lt_cv_ld_exported_symbols_list=no
2393-       save_LDFLAGS=$LDFLAGS
2394-       echo "_main" > conftest.sym
2395-       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2396-       cat >conftest.$ac_ext <<_ACEOF
2397- /* confdefs.h.  */
2398- _ACEOF
2399- cat confdefs.h >>conftest.$ac_ext
2400- cat >>conftest.$ac_ext <<_ACEOF
2401- /* end confdefs.h.  */
2402-
2403- int
2404- main ()
2405- {
2406-
2407-   ;
2408-   return 0;
2409- }
2410- _ACEOF
2411- rm -f conftest.$ac_objext conftest$ac_exeext
2412- if { (ac_try="$ac_link"
2413- case "(($ac_try" in
2414-   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415-   *) ac_try_echo=$ac_try;;
2416- esac
2417- eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418-   (eval "$ac_link") 2>conftest.er1
2419-   ac_status=$?
2420-   grep -v '^ *+' conftest.er1 >conftest.err
2421-   rm -f conftest.er1
2422-   cat conftest.err >&5
2423-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424-   (exit $ac_status); } && {
2425-        test -z "$ac_c_werror_flag" ||
2426-        test ! -s conftest.err
2427-        } && test -s conftest$ac_exeext &&
2428-        $as_test_x conftest$ac_exeext; then
2429-   lt_cv_ld_exported_symbols_list=yes
2430- else
2431-   echo "$as_me: failed program was:" >&5
2432- sed 's/^/| /' conftest.$ac_ext >&5
2433-
2434-       lt_cv_ld_exported_symbols_list=no
2435- fi
2436-
2437- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2438-       conftest$ac_exeext conftest.$ac_ext
2439-    LDFLAGS="$save_LDFLAGS"
2440-
2441- fi
2442- { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
2443- echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
2444-     case $host_os in
2445-     rhapsody* | darwin1.[0123])
2446-       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2447-     darwin1.*)
2448-      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2449-     darwin*)
2450-       # if running on 10.5 or later, the deployment target defaults
2451-       # to the OS version, if on x86, and 10.4, the deployment
2452-       # target defaults to 10.4. Don't you love it?
2453-       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2454-    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
2455-      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2456-    10.[012]*)
2457-      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2458-    10.*)
2459-      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2460-       esac
2461-     ;;
2462-   esac
2463-     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2464-       _lt_dar_single_mod='$single_module'
2465-     fi
2466-     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2467-       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2468-     else
2469-       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
2470-     fi
2471-     if test "$DSYMUTIL" != ":"; then
2472-       _lt_dsymutil="~$DSYMUTIL \$lib || :"
2473-     else
2474-       _lt_dsymutil=
2475-     fi
2476-     ;;
2477-   esac
2478-
2479-
2480  enable_dlopen=no
2481  enable_win32_dll=no
2482 
2483--- 7139,7144 ----
2484***************
2485*** 7515,7524 ****
2486  objext=$objext
2487 
2488  # Code to be used in simple compile tests
2489! lt_simple_compile_test_code="int some_variable = 0;"
2490 
2491  # Code to be used in simple link tests
2492! lt_simple_link_test_code='int main(){return(0);}'
2493 
2494 
2495  # If no C compiler was specified, use CC.
2496--- 7177,7186 ----
2497  objext=$objext
2498 
2499  # Code to be used in simple compile tests
2500! lt_simple_compile_test_code="int some_variable = 0;\n"
2501 
2502  # Code to be used in simple link tests
2503! lt_simple_link_test_code='int main(){return(0);}\n'
2504 
2505 
2506  # If no C compiler was specified, use CC.
2507***************
2508*** 7533,7548 ****
2509 
2510  # save warnings/boilerplate of simple test code
2511  ac_outfile=conftest.$ac_objext
2512! echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2513  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2514  _lt_compiler_boilerplate=`cat conftest.err`
2515  $rm conftest*
2516 
2517  ac_outfile=conftest.$ac_objext
2518! echo "$lt_simple_link_test_code" >conftest.$ac_ext
2519  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2520  _lt_linker_boilerplate=`cat conftest.err`
2521! $rm -r conftest*
2522 
2523 
2524 
2525--- 7195,7210 ----
2526 
2527  # save warnings/boilerplate of simple test code
2528  ac_outfile=conftest.$ac_objext
2529! printf "$lt_simple_compile_test_code" >conftest.$ac_ext
2530  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2531  _lt_compiler_boilerplate=`cat conftest.err`
2532  $rm conftest*
2533 
2534  ac_outfile=conftest.$ac_objext
2535! printf "$lt_simple_link_test_code" >conftest.$ac_ext
2536  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2537  _lt_linker_boilerplate=`cat conftest.err`
2538! $rm conftest*
2539 
2540 
2541 
2542***************
2543*** 7559,7565 ****
2544  else
2545    lt_cv_prog_compiler_rtti_exceptions=no
2546    ac_outfile=conftest.$ac_objext
2547!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2548     lt_compiler_flag="-fno-rtti -fno-exceptions"
2549     # Insert the option either (1) after the last *FLAGS variable, or
2550     # (2) before a word containing "conftest.", or (3) at the end.
2551--- 7221,7227 ----
2552  else
2553    lt_cv_prog_compiler_rtti_exceptions=no
2554    ac_outfile=conftest.$ac_objext
2555!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2556     lt_compiler_flag="-fno-rtti -fno-exceptions"
2557     # Insert the option either (1) after the last *FLAGS variable, or
2558     # (2) before a word containing "conftest.", or (3) at the end.
2559***************
2560*** 7570,7580 ****
2561     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2562     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2563     -e 's:$: $lt_compiler_flag:'`
2564!    (eval echo "\"\$as_me:7573: $lt_compile\"" >&5)
2565     (eval "$lt_compile" 2>conftest.err)
2566     ac_status=$?
2567     cat conftest.err >&5
2568!    echo "$as_me:7577: \$? = $ac_status" >&5
2569     if (exit $ac_status) && test -s "$ac_outfile"; then
2570       # The compiler can only warn and ignore the option if not recognized
2571       # So say no if there are warnings other than the usual output.
2572--- 7232,7242 ----
2573     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2574     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2575     -e 's:$: $lt_compiler_flag:'`
2576!    (eval echo "\"\$as_me:7235: $lt_compile\"" >&5)
2577     (eval "$lt_compile" 2>conftest.err)
2578     ac_status=$?
2579     cat conftest.err >&5
2580!    echo "$as_me:7239: \$? = $ac_status" >&5
2581     if (exit $ac_status) && test -s "$ac_outfile"; then
2582       # The compiler can only warn and ignore the option if not recognized
2583       # So say no if there are warnings other than the usual output.
2584***************
2585*** 7625,7639 ****
2586        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
2587        ;;
2588 
2589!     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2590        # PIC is the default for these OSes.
2591        ;;
2592 
2593!     mingw* | cygwin* | pw32* | os2*)
2594        # This hack is so that the source file can tell whether it is being
2595        # built for inclusion in a dll (and should export symbols for example).
2596-       # Although the cygwin gcc ignores -fPIC, still need this for old-style
2597-       # (--disable-auto-import) libraries
2598        lt_prog_compiler_pic='-DDLL_EXPORT'
2599        ;;
2600 
2601--- 7287,7299 ----
2602        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
2603        ;;
2604 
2605!     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2606        # PIC is the default for these OSes.
2607        ;;
2608 
2609!     mingw* | pw32* | os2*)
2610        # This hack is so that the source file can tell whether it is being
2611        # built for inclusion in a dll (and should export symbols for example).
2612        lt_prog_compiler_pic='-DDLL_EXPORT'
2613        ;;
2614 
2615***************
2616*** 7643,7649 ****
2617        lt_prog_compiler_pic='-fno-common'
2618        ;;
2619 
2620!     interix[3-9]*)
2621        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2622        # Instead, we relocate shared libraries at runtime.
2623        ;;
2624--- 7303,7309 ----
2625        lt_prog_compiler_pic='-fno-common'
2626        ;;
2627 
2628!     interix3*)
2629        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2630        # Instead, we relocate shared libraries at runtime.
2631        ;;
2632***************
2633*** 7701,7707 ****
2634         esac
2635         ;;
2636 
2637!     mingw* | cygwin* | pw32* | os2*)
2638        # This hack is so that the source file can tell whether it is being
2639        # built for inclusion in a dll (and should export symbols for example).
2640        lt_prog_compiler_pic='-DDLL_EXPORT'
2641--- 7361,7367 ----
2642         esac
2643         ;;
2644 
2645!     mingw* | pw32* | os2*)
2646        # This hack is so that the source file can tell whether it is being
2647        # built for inclusion in a dll (and should export symbols for example).
2648        lt_prog_compiler_pic='-DDLL_EXPORT'
2649***************
2650*** 7734,7740 ****
2651        lt_prog_compiler_static='-Bstatic'
2652        ;;
2653 
2654!     linux* | k*bsd*-gnu)
2655        case $cc_basename in
2656        icc* | ecc*)
2657        lt_prog_compiler_wl='-Wl,'
2658--- 7394,7400 ----
2659        lt_prog_compiler_static='-Bstatic'
2660        ;;
2661 
2662!     linux*)
2663        case $cc_basename in
2664        icc* | ecc*)
2665        lt_prog_compiler_wl='-Wl,'
2666***************
2667*** 7753,7774 ****
2668          # All Alpha code is PIC.
2669          lt_prog_compiler_static='-non_shared'
2670          ;;
2671-       *)
2672-         case `$CC -V 2>&1 | sed 5q` in
2673-       *Sun\ C*)
2674-         # Sun C 5.9
2675-         lt_prog_compiler_pic='-KPIC'
2676-         lt_prog_compiler_static='-Bstatic'
2677-         lt_prog_compiler_wl='-Wl,'
2678-         ;;
2679-       *Sun\ F*)
2680-         # Sun Fortran 8.3 passes all unrecognized flags to the linker
2681-         lt_prog_compiler_pic='-KPIC'
2682-         lt_prog_compiler_static='-Bstatic'
2683-         lt_prog_compiler_wl=''
2684-         ;;
2685-       esac
2686-       ;;
2687        esac
2688        ;;
2689 
2690--- 7413,7418 ----
2691***************
2692*** 7778,7787 ****
2693        lt_prog_compiler_static='-non_shared'
2694        ;;
2695 
2696-     rdos*)
2697-       lt_prog_compiler_static='-non_shared'
2698-       ;;
2699-
2700      solaris*)
2701        lt_prog_compiler_pic='-KPIC'
2702        lt_prog_compiler_static='-Bstatic'
2703--- 7422,7427 ----
2704***************
2705*** 7844,7855 ****
2706 
2707  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
2708  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
2709! if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
2710    echo $ECHO_N "(cached) $ECHO_C" >&6
2711  else
2712!   lt_cv_prog_compiler_pic_works=no
2713    ac_outfile=conftest.$ac_objext
2714!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2715     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
2716     # Insert the option either (1) after the last *FLAGS variable, or
2717     # (2) before a word containing "conftest.", or (3) at the end.
2718--- 7484,7495 ----
2719 
2720  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
2721  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
2722! if test "${lt_prog_compiler_pic_works+set}" = set; then
2723    echo $ECHO_N "(cached) $ECHO_C" >&6
2724  else
2725!   lt_prog_compiler_pic_works=no
2726    ac_outfile=conftest.$ac_objext
2727!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2728     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
2729     # Insert the option either (1) after the last *FLAGS variable, or
2730     # (2) before a word containing "conftest.", or (3) at the end.
2731***************
2732*** 7860,7886 ****
2733     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2734     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2735     -e 's:$: $lt_compiler_flag:'`
2736!    (eval echo "\"\$as_me:7863: $lt_compile\"" >&5)
2737     (eval "$lt_compile" 2>conftest.err)
2738     ac_status=$?
2739     cat conftest.err >&5
2740!    echo "$as_me:7867: \$? = $ac_status" >&5
2741     if (exit $ac_status) && test -s "$ac_outfile"; then
2742       # The compiler can only warn and ignore the option if not recognized
2743       # So say no if there are warnings other than the usual output.
2744       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2745       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2746       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2747!        lt_cv_prog_compiler_pic_works=yes
2748       fi
2749     fi
2750     $rm conftest*
2751 
2752  fi
2753! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
2754! echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
2755 
2756! if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
2757      case $lt_prog_compiler_pic in
2758       "" | " "*) ;;
2759       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
2760--- 7500,7526 ----
2761     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2762     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2763     -e 's:$: $lt_compiler_flag:'`
2764!    (eval echo "\"\$as_me:7503: $lt_compile\"" >&5)
2765     (eval "$lt_compile" 2>conftest.err)
2766     ac_status=$?
2767     cat conftest.err >&5
2768!    echo "$as_me:7507: \$? = $ac_status" >&5
2769     if (exit $ac_status) && test -s "$ac_outfile"; then
2770       # The compiler can only warn and ignore the option if not recognized
2771       # So say no if there are warnings other than the usual output.
2772       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2773       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2774       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2775!        lt_prog_compiler_pic_works=yes
2776       fi
2777     fi
2778     $rm conftest*
2779 
2780  fi
2781! { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
2782! echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
2783 
2784! if test x"$lt_prog_compiler_pic_works" = xyes; then
2785      case $lt_prog_compiler_pic in
2786       "" | " "*) ;;
2787       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
2788***************
2789*** 7907,7919 ****
2790  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
2791  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
2792  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
2793! if test "${lt_cv_prog_compiler_static_works+set}" = set; then
2794    echo $ECHO_N "(cached) $ECHO_C" >&6
2795  else
2796!   lt_cv_prog_compiler_static_works=no
2797     save_LDFLAGS="$LDFLAGS"
2798     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
2799!    echo "$lt_simple_link_test_code" > conftest.$ac_ext
2800     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2801       # The linker can only warn and ignore the option if not recognized
2802       # So say no if there are warnings
2803--- 7547,7559 ----
2804  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
2805  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
2806  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
2807! if test "${lt_prog_compiler_static_works+set}" = set; then
2808    echo $ECHO_N "(cached) $ECHO_C" >&6
2809  else
2810!   lt_prog_compiler_static_works=no
2811     save_LDFLAGS="$LDFLAGS"
2812     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
2813!    printf "$lt_simple_link_test_code" > conftest.$ac_ext
2814     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2815       # The linker can only warn and ignore the option if not recognized
2816       # So say no if there are warnings
2817***************
2818*** 7923,7942 ****
2819         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2820         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2821         if diff conftest.exp conftest.er2 >/dev/null; then
2822!          lt_cv_prog_compiler_static_works=yes
2823         fi
2824       else
2825!        lt_cv_prog_compiler_static_works=yes
2826       fi
2827     fi
2828!    $rm -r conftest*
2829     LDFLAGS="$save_LDFLAGS"
2830 
2831  fi
2832! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
2833! echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
2834 
2835! if test x"$lt_cv_prog_compiler_static_works" = xyes; then
2836      :
2837  else
2838      lt_prog_compiler_static=
2839--- 7563,7582 ----
2840         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2841         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2842         if diff conftest.exp conftest.er2 >/dev/null; then
2843!          lt_prog_compiler_static_works=yes
2844         fi
2845       else
2846!        lt_prog_compiler_static_works=yes
2847       fi
2848     fi
2849!    $rm conftest*
2850     LDFLAGS="$save_LDFLAGS"
2851 
2852  fi
2853! { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
2854! echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
2855 
2856! if test x"$lt_prog_compiler_static_works" = xyes; then
2857      :
2858  else
2859      lt_prog_compiler_static=
2860***************
2861*** 7953,7959 ****
2862     mkdir conftest
2863     cd conftest
2864     mkdir out
2865!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2866 
2867     lt_compiler_flag="-o out/conftest2.$ac_objext"
2868     # Insert the option either (1) after the last *FLAGS variable, or
2869--- 7593,7599 ----
2870     mkdir conftest
2871     cd conftest
2872     mkdir out
2873!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2874 
2875     lt_compiler_flag="-o out/conftest2.$ac_objext"
2876     # Insert the option either (1) after the last *FLAGS variable, or
2877***************
2878*** 7964,7974 ****
2879     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2880     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2881     -e 's:$: $lt_compiler_flag:'`
2882!    (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
2883     (eval "$lt_compile" 2>out/conftest.err)
2884     ac_status=$?
2885     cat out/conftest.err >&5
2886!    echo "$as_me:7971: \$? = $ac_status" >&5
2887     if (exit $ac_status) && test -s out/conftest2.$ac_objext
2888     then
2889       # The compiler can only warn and ignore the option if not recognized
2890--- 7604,7614 ----
2891     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2892     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2893     -e 's:$: $lt_compiler_flag:'`
2894!    (eval echo "\"\$as_me:7607: $lt_compile\"" >&5)
2895     (eval "$lt_compile" 2>out/conftest.err)
2896     ac_status=$?
2897     cat out/conftest.err >&5
2898!    echo "$as_me:7611: \$? = $ac_status" >&5
2899     if (exit $ac_status) && test -s out/conftest2.$ac_objext
2900     then
2901       # The compiler can only warn and ignore the option if not recognized
2902***************
2903*** 8048,8060 ****
2904    # it will be wrapped by ` (' and `)$', so one must not match beginning or
2905    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2906    # as well as any symbol that contains `d'.
2907!   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
2908    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2909    # platforms (ab)use it in PIC code, but their linkers get confused if
2910    # the symbol is explicitly referenced.  Since portable code cannot
2911    # rely on this symbol name, it's probably fine to never include it in
2912    # preloaded symbol tables.
2913-   # Exclude shared library initialization/finalization symbols.
2914    extract_expsyms_cmds=
2915    # Just being paranoid about ensuring that cc_basename is set.
2916    for cc_temp in $compiler""; do
2917--- 7688,7699 ----
2918    # it will be wrapped by ` (' and `)$', so one must not match beginning or
2919    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2920    # as well as any symbol that contains `d'.
2921!   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2922    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2923    # platforms (ab)use it in PIC code, but their linkers get confused if
2924    # the symbol is explicitly referenced.  Since portable code cannot
2925    # rely on this symbol name, it's probably fine to never include it in
2926    # preloaded symbol tables.
2927    extract_expsyms_cmds=
2928    # Just being paranoid about ensuring that cc_basename is set.
2929    for cc_temp in $compiler""; do
2930***************
2931*** 8113,8119 ****
2932 
2933      # See if GNU ld supports shared libraries.
2934      case $host_os in
2935!     aix[3-9]*)
2936        # On AIX/PPC, the GNU linker is very broken
2937        if test "$host_cpu" != ia64; then
2938        ld_shlibs=no
2939--- 7752,7758 ----
2940 
2941      # See if GNU ld supports shared libraries.
2942      case $host_os in
2943!     aix3* | aix4* | aix5*)
2944        # On AIX/PPC, the GNU linker is very broken
2945        if test "$host_cpu" != ia64; then
2946        ld_shlibs=no
2947***************
2948*** 8161,8167 ****
2949        allow_undefined_flag=unsupported
2950        always_export_symbols=no
2951        enable_shared_with_static_runtimes=yes
2952!       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
2953 
2954        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2955          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2956--- 7800,7806 ----
2957        allow_undefined_flag=unsupported
2958        always_export_symbols=no
2959        enable_shared_with_static_runtimes=yes
2960!       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
2961 
2962        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2963          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2964***************
2965*** 8179,8185 ****
2966        fi
2967        ;;
2968 
2969!     interix[3-9]*)
2970        hardcode_direct=no
2971        hardcode_shlibpath_var=no
2972        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2973--- 7818,7824 ----
2974        fi
2975        ;;
2976 
2977!     interix3*)
2978        hardcode_direct=no
2979        hardcode_shlibpath_var=no
2980        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2981***************
2982*** 8194,8200 ****
2983        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'
2984        ;;
2985 
2986!     gnu* | linux* | k*bsd*-gnu)
2987        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2988        tmp_addflag=
2989        case $cc_basename,$host_cpu in
2990--- 7833,7839 ----
2991        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'
2992        ;;
2993 
2994!     linux*)
2995        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2996        tmp_addflag=
2997        case $cc_basename,$host_cpu in
2998***************
2999*** 8212,8241 ****
3000        ifc* | ifort*)                  # Intel Fortran compiler
3001          tmp_addflag=' -nofor_main' ;;
3002        esac
3003!       case `$CC -V 2>&1 | sed 5q` in
3004!       *Sun\ C*)                       # Sun C 5.9
3005!         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'
3006!         tmp_sharedflag='-G' ;;
3007!       *Sun\ F*)                       # Sun Fortran 8.3
3008!         tmp_sharedflag='-G' ;;
3009!       *)
3010!         tmp_sharedflag='-shared' ;;
3011!       esac
3012!       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3013 
3014        if test $supports_anon_versioning = yes; then
3015          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
3016    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3017    $echo "local: *; };" >> $output_objdir/$libname.ver~
3018!         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3019        fi
3020-       link_all_deplibs=no
3021        else
3022        ld_shlibs=no
3023        fi
3024        ;;
3025 
3026!     netbsd* | netbsdelf*-gnu)
3027        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3028        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3029        wlarc=
3030--- 7851,7870 ----
3031        ifc* | ifort*)                  # Intel Fortran compiler
3032          tmp_addflag=' -nofor_main' ;;
3033        esac
3034!       archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3035 
3036        if test $supports_anon_versioning = yes; then
3037          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
3038    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3039    $echo "local: *; };" >> $output_objdir/$libname.ver~
3040!         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3041        fi
3042        else
3043        ld_shlibs=no
3044        fi
3045        ;;
3046 
3047!     netbsd*)
3048        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3049        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3050        wlarc=
3051***************
3052*** 8333,8339 ****
3053        fi
3054        ;;
3055 
3056!     aix[4-9]*)
3057        if test "$host_cpu" = ia64; then
3058        # On IA64, the linker does run time linking by default, so we don't
3059        # have to do anything special.
3060--- 7962,7968 ----
3061        fi
3062        ;;
3063 
3064!     aix4* | aix5*)
3065        if test "$host_cpu" = ia64; then
3066        # On IA64, the linker does run time linking by default, so we don't
3067        # have to do anything special.
3068***************
3069*** 8353,8359 ****
3070        # Test if we are trying to use run time linking or normal
3071        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3072        # need to do runtime linking.
3073!       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
3074          for ld_flag in $LDFLAGS; do
3075          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3076            aix_use_runtimelinking=yes
3077--- 7982,7988 ----
3078        # Test if we are trying to use run time linking or normal
3079        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3080        # need to do runtime linking.
3081!       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3082          for ld_flag in $LDFLAGS; do
3083          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3084            aix_use_runtimelinking=yes
3085***************
3086*** 8387,8393 ****
3087           strings "$collect2name" | grep resolve_lib_name >/dev/null
3088          then
3089          # We have reworked collect2
3090!         :
3091          else
3092          # We have old collect2
3093          hardcode_direct=unsupported
3094--- 8016,8022 ----
3095           strings "$collect2name" | grep resolve_lib_name >/dev/null
3096          then
3097          # We have reworked collect2
3098!         hardcode_direct=yes
3099          else
3100          # We have old collect2
3101          hardcode_direct=unsupported
3102***************
3103*** 8461,8478 ****
3104         } && test -s conftest$ac_exeext &&
3105         $as_test_x conftest$ac_exeext; then
3106 
3107! lt_aix_libpath_sed='
3108!     /Import File Strings/,/^$/ {
3109!       /^0/ {
3110!           s/^0  *\(.*\)$/\1/
3111!           p
3112!       }
3113!     }'
3114! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3115  # Check for a 64-bit object if we didn't find anything.
3116! if test -z "$aix_libpath"; then
3117!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3118! fi
3119  else
3120    echo "$as_me: failed program was:" >&5
3121  sed 's/^/| /' conftest.$ac_ext >&5
3122--- 8090,8100 ----
3123         } && test -s conftest$ac_exeext &&
3124         $as_test_x conftest$ac_exeext; then
3125 
3126! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3127! }'`
3128  # Check for a 64-bit object if we didn't find anything.
3129! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3130! }'`; fi
3131  else
3132    echo "$as_me: failed program was:" >&5
3133  sed 's/^/| /' conftest.$ac_ext >&5
3134***************
3135*** 8527,8544 ****
3136         } && test -s conftest$ac_exeext &&
3137         $as_test_x conftest$ac_exeext; then
3138 
3139! lt_aix_libpath_sed='
3140!     /Import File Strings/,/^$/ {
3141!       /^0/ {
3142!           s/^0  *\(.*\)$/\1/
3143!           p
3144!       }
3145!     }'
3146! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3147  # Check for a 64-bit object if we didn't find anything.
3148! if test -z "$aix_libpath"; then
3149!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3150! fi
3151  else
3152    echo "$as_me: failed program was:" >&5
3153  sed 's/^/| /' conftest.$ac_ext >&5
3154--- 8149,8159 ----
3155         } && test -s conftest$ac_exeext &&
3156         $as_test_x conftest$ac_exeext; then
3157 
3158! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3159! }'`
3160  # Check for a 64-bit object if we didn't find anything.
3161! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3162! }'`; fi
3163  else
3164    echo "$as_me: failed program was:" >&5
3165  sed 's/^/| /' conftest.$ac_ext >&5
3166***************
3167*** 8592,8598 ****
3168        # The linker will automatically build a .lib file if we build a DLL.
3169        old_archive_From_new_cmds='true'
3170        # FIXME: Should let the user specify the lib program.
3171!       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3172        fix_srcfile_path='`cygpath -w "$srcfile"`'
3173        enable_shared_with_static_runtimes=yes
3174        ;;
3175--- 8207,8213 ----
3176        # The linker will automatically build a .lib file if we build a DLL.
3177        old_archive_From_new_cmds='true'
3178        # FIXME: Should let the user specify the lib program.
3179!       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3180        fix_srcfile_path='`cygpath -w "$srcfile"`'
3181        enable_shared_with_static_runtimes=yes
3182        ;;
3183***************
3184*** 8625,8642 ****
3185        link_all_deplibs=yes
3186      if test "$GCC" = yes ; then
3187        output_verbose_link_cmd='echo'
3188!         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3189!         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3190!         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}"
3191!         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}"
3192      else
3193        case $cc_basename in
3194          xlc*)
3195           output_verbose_link_cmd='echo'
3196!          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3197           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3198            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3199!          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3200            module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3201            ;;
3202         *)
3203--- 8240,8258 ----
3204        link_all_deplibs=yes
3205      if test "$GCC" = yes ; then
3206        output_verbose_link_cmd='echo'
3207!         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3208!       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209!       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210!       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3211!       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3212      else
3213        case $cc_basename in
3214          xlc*)
3215           output_verbose_link_cmd='echo'
3216!          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3217           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3218            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3219!          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3220            module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3221            ;;
3222         *)
3223***************
3224*** 8676,8682 ****
3225        ;;
3226 
3227      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3228!     freebsd* | dragonfly*)
3229        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3230        hardcode_libdir_flag_spec='-R$libdir'
3231        hardcode_direct=yes
3232--- 8292,8298 ----
3233        ;;
3234 
3235      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3236!     freebsd* | kfreebsd*-gnu | dragonfly*)
3237        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3238        hardcode_libdir_flag_spec='-R$libdir'
3239        hardcode_direct=yes
3240***************
3241*** 8778,8784 ****
3242        link_all_deplibs=yes
3243        ;;
3244 
3245!     netbsd* | netbsdelf*-gnu)
3246        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3247        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3248        else
3249--- 8394,8400 ----
3250        link_all_deplibs=yes
3251        ;;
3252 
3253!     netbsd*)
3254        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3255        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3256        else
3257***************
3258*** 8798,8825 ****
3259        ;;
3260 
3261      openbsd*)
3262!       if test -f /usr/libexec/ld.so; then
3263!       hardcode_direct=yes
3264!       hardcode_shlibpath_var=no
3265!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3266!         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3267!         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3268!         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3269!         export_dynamic_flag_spec='${wl}-E'
3270!       else
3271!         case $host_os in
3272!          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3273!            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3274!            hardcode_libdir_flag_spec='-R$libdir'
3275!            ;;
3276!          *)
3277!            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3278!            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3279!            ;;
3280!         esac
3281!         fi
3282        else
3283!       ld_shlibs=no
3284        fi
3285        ;;
3286 
3287--- 8414,8437 ----
3288        ;;
3289 
3290      openbsd*)
3291!       hardcode_direct=yes
3292!       hardcode_shlibpath_var=no
3293!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3294!       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3295!       archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3296!       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3297!       export_dynamic_flag_spec='${wl}-E'
3298        else
3299!        case $host_os in
3300!        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3301!          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3302!          hardcode_libdir_flag_spec='-R$libdir'
3303!          ;;
3304!        *)
3305!          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3306!          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3307!          ;;
3308!        esac
3309        fi
3310        ;;
3311 
3312***************
3313*** 8878,8893 ****
3314        case $host_os in
3315        solaris2.[0-5] | solaris2.[0-5].*) ;;
3316        *)
3317!       # The compiler driver will combine and reorder linker options,
3318!       # but understands `-z linker_flag'.  GCC discards it without `$wl',
3319!       # but is careful enough not to reorder.
3320        # Supported since Solaris 2.6 (maybe 2.5.1?)
3321!       if test "$GCC" = yes; then
3322!         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3323!       else
3324!         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
3325!       fi
3326!       ;;
3327        esac
3328        link_all_deplibs=yes
3329        ;;
3330--- 8490,8506 ----
3331        case $host_os in
3332        solaris2.[0-5] | solaris2.[0-5].*) ;;
3333        *)
3334!       # The compiler driver will combine linker options so we
3335!       # cannot just pass the convience library names through
3336!       # without $wl, iff we do not link with $LD.
3337!       # Luckily, gcc supports the same syntax we need for Sun Studio.
3338        # Supported since Solaris 2.6 (maybe 2.5.1?)
3339!       case $wlarc in
3340!       '')
3341!         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3342!       *)
3343!         whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
3344!       esac ;;
3345        esac
3346        link_all_deplibs=yes
3347        ;;
3348***************
3349*** 8944,8950 ****
3350        fi
3351        ;;
3352 
3353!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
3354        no_undefined_flag='${wl}-z,text'
3355        archive_cmds_need_lc=no
3356        hardcode_shlibpath_var=no
3357--- 8557,8563 ----
3358        fi
3359        ;;
3360 
3361!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
3362        no_undefined_flag='${wl}-z,text'
3363        archive_cmds_need_lc=no
3364        hardcode_shlibpath_var=no
3365***************
3366*** 9021,9027 ****
3367        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
3368  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
3369        $rm conftest*
3370!       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3371 
3372        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373    (eval $ac_compile) 2>&5
3374--- 8634,8640 ----
3375        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
3376  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
3377        $rm conftest*
3378!       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3379 
3380        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381    (eval $ac_compile) 2>&5
3382***************
3383*** 9079,9133 ****
3384  version_type=none
3385  dynamic_linker="$host_os ld.so"
3386  sys_lib_dlsearch_path_spec="/lib /usr/lib"
3387-
3388  if test "$GCC" = yes; then
3389!   case $host_os in
3390!     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3391!     *) lt_awk_arg="/^libraries:/" ;;
3392!   esac
3393!   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3394!   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
3395      # if the path contains ";" then we assume it to be the separator
3396      # otherwise default to the standard path separator (i.e. ":") - it is
3397      # assumed that no part of a normal pathname contains ";" but that should
3398      # okay in the real world where ";" in dirpaths is itself problematic.
3399!     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3400    else
3401!     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3402    fi
3403-   # Ok, now we have the path, separated by spaces, we can step through it
3404-   # and add multilib dir if necessary.
3405-   lt_tmp_lt_search_path_spec=
3406-   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3407-   for lt_sys_path in $lt_search_path_spec; do
3408-     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3409-       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3410-     else
3411-       test -d "$lt_sys_path" && \
3412-       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3413-     fi
3414-   done
3415-   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
3416- BEGIN {RS=" "; FS="/|\n";} {
3417-   lt_foo="";
3418-   lt_count=0;
3419-   for (lt_i = NF; lt_i > 0; lt_i--) {
3420-     if ($lt_i != "" && $lt_i != ".") {
3421-       if ($lt_i == "..") {
3422-         lt_count++;
3423-       } else {
3424-         if (lt_count == 0) {
3425-           lt_foo="/" $lt_i lt_foo;
3426-         } else {
3427-           lt_count--;
3428-         }
3429-       }
3430-     }
3431-   }
3432-   if (lt_foo != "") { lt_freq[lt_foo]++; }
3433-   if (lt_freq[lt_foo] == 1) { print lt_foo; }
3434- }'`
3435-   sys_lib_search_path_spec=`echo $lt_search_path_spec`
3436  else
3437    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3438  fi
3439--- 8692,8708 ----
3440  version_type=none
3441  dynamic_linker="$host_os ld.so"
3442  sys_lib_dlsearch_path_spec="/lib /usr/lib"
3443  if test "$GCC" = yes; then
3444!   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3445!   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
3446      # if the path contains ";" then we assume it to be the separator
3447      # otherwise default to the standard path separator (i.e. ":") - it is
3448      # assumed that no part of a normal pathname contains ";" but that should
3449      # okay in the real world where ";" in dirpaths is itself problematic.
3450!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3451    else
3452!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3453    fi
3454  else
3455    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3456  fi
3457***************
3458*** 9148,9154 ****
3459    soname_spec='${libname}${release}${shared_ext}$major'
3460    ;;
3461 
3462! aix[4-9]*)
3463    version_type=linux
3464    need_lib_prefix=no
3465    need_version=no
3466--- 8723,8729 ----
3467    soname_spec='${libname}${release}${shared_ext}$major'
3468    ;;
3469 
3470! aix4* | aix5*)
3471    version_type=linux
3472    need_lib_prefix=no
3473    need_version=no
3474***************
3475*** 9287,9294 ****
3476    shlibpath_overrides_runpath=yes
3477    shlibpath_var=DYLD_LIBRARY_PATH
3478    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3479!
3480!   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
3481    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3482    ;;
3483 
3484--- 8862,8873 ----
3485    shlibpath_overrides_runpath=yes
3486    shlibpath_var=DYLD_LIBRARY_PATH
3487    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3488!   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3489!   if test "$GCC" = yes; then
3490!     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3491!   else
3492!     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3493!   fi
3494    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3495    ;;
3496 
3497***************
3498*** 9305,9310 ****
3499--- 8884,8901 ----
3500    dynamic_linker=no
3501    ;;
3502 
3503+ kfreebsd*-gnu)
3504+   version_type=linux
3505+   need_lib_prefix=no
3506+   need_version=no
3507+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3508+   soname_spec='${libname}${release}${shared_ext}$major'
3509+   shlibpath_var=LD_LIBRARY_PATH
3510+   shlibpath_overrides_runpath=no
3511+   hardcode_into_libs=yes
3512+   dynamic_linker='GNU ld.so'
3513+   ;;
3514+
3515  freebsd* | dragonfly*)
3516    # DragonFly does not have aout.  When/if they implement a new
3517    # versioning mechanism, adjust this.
3518***************
3519*** 9342,9348 ****
3520      shlibpath_overrides_runpath=no
3521      hardcode_into_libs=yes
3522      ;;
3523!   *) # from 4.6 on, and DragonFly
3524      shlibpath_overrides_runpath=yes
3525      hardcode_into_libs=yes
3526      ;;
3527--- 8933,8939 ----
3528      shlibpath_overrides_runpath=no
3529      hardcode_into_libs=yes
3530      ;;
3531!   freebsd*) # from 4.6 on
3532      shlibpath_overrides_runpath=yes
3533      hardcode_into_libs=yes
3534      ;;
3535***************
3536*** 9405,9411 ****
3537    postinstall_cmds='chmod 555 $lib'
3538    ;;
3539 
3540! interix[3-9]*)
3541    version_type=linux
3542    need_lib_prefix=no
3543    need_version=no
3544--- 8996,9002 ----
3545    postinstall_cmds='chmod 555 $lib'
3546    ;;
3547 
3548! interix3*)
3549    version_type=linux
3550    need_lib_prefix=no
3551    need_version=no
3552***************
3553*** 9460,9466 ****
3554    ;;
3555 
3556  # This must be Linux ELF.
3557! linux* | k*bsd*-gnu)
3558    version_type=linux
3559    need_lib_prefix=no
3560    need_version=no
3561--- 9051,9057 ----
3562    ;;
3563 
3564  # This must be Linux ELF.
3565! linux*)
3566    version_type=linux
3567    need_lib_prefix=no
3568    need_version=no
3569***************
3570*** 9474,9483 ****
3571    # before this can be enabled.
3572    hardcode_into_libs=yes
3573 
3574    # Append ld.so.conf contents to the search path
3575    if test -f /etc/ld.so.conf; then
3576!     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' ' '`
3577!     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3578    fi
3579 
3580    # We used to test for /lib/ld.so.1 and disable shared libraries on
3581--- 9065,9095 ----
3582    # before this can be enabled.
3583    hardcode_into_libs=yes
3584 
3585+   # find out which ABI we are using
3586+   libsuff=
3587+   case "$host_cpu" in
3588+   x86_64*|s390x*|powerpc64*)
3589+     echo '#line 9072 "configure"' > conftest.$ac_ext
3590+     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591+   (eval $ac_compile) 2>&5
3592+   ac_status=$?
3593+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594+   (exit $ac_status); }; then
3595+       case `/usr/bin/file conftest.$ac_objext` in
3596+       *64-bit*)
3597+         libsuff=64
3598+         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
3599+         ;;
3600+       esac
3601+     fi
3602+     rm -rf conftest*
3603+     ;;
3604+   esac
3605+
3606    # Append ld.so.conf contents to the search path
3607    if test -f /etc/ld.so.conf; then
3608!     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/^     *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3609!     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
3610    fi
3611 
3612    # We used to test for /lib/ld.so.1 and disable shared libraries on
3613***************
3614*** 9489,9495 ****
3615    dynamic_linker='GNU/Linux ld.so'
3616    ;;
3617 
3618! netbsdelf*-gnu)
3619    version_type=linux
3620    need_lib_prefix=no
3621    need_version=no
3622--- 9101,9107 ----
3623    dynamic_linker='GNU/Linux ld.so'
3624    ;;
3625 
3626! knetbsd*-gnu)
3627    version_type=linux
3628    need_lib_prefix=no
3629    need_version=no
3630***************
3631*** 9498,9504 ****
3632    shlibpath_var=LD_LIBRARY_PATH
3633    shlibpath_overrides_runpath=no
3634    hardcode_into_libs=yes
3635!   dynamic_linker='NetBSD ld.elf_so'
3636    ;;
3637 
3638  netbsd*)
3639--- 9110,9116 ----
3640    shlibpath_var=LD_LIBRARY_PATH
3641    shlibpath_overrides_runpath=no
3642    hardcode_into_libs=yes
3643!   dynamic_linker='GNU ld.so'
3644    ;;
3645 
3646  netbsd*)
3647***************
3648*** 9582,9591 ****
3649    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3650    ;;
3651 
3652- rdos*)
3653-   dynamic_linker=no
3654-   ;;
3655-
3656  solaris*)
3657    version_type=linux
3658    need_lib_prefix=no
3659--- 9194,9199 ----
3660***************
3661*** 9682,9702 ****
3662  echo "${ECHO_T}$dynamic_linker" >&6; }
3663  test "$dynamic_linker" = no && can_build_shared=no
3664 
3665- if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3666-   echo $ECHO_N "(cached) $ECHO_C" >&6
3667- else
3668-   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
3669- fi
3670-
3671- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3672- if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3673-   echo $ECHO_N "(cached) $ECHO_C" >&6
3674- else
3675-   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
3676- fi
3677-
3678- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3679-
3680  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3681  if test "$GCC" = yes; then
3682    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3683--- 9290,9295 ----
3684***************
3685*** 9754,9760 ****
3686     darwin*)
3687         if test -n "$STRIP" ; then
3688           striplib="$STRIP -x"
3689-          old_striplib="$STRIP -S"
3690           { echo "$as_me:$LINENO: result: yes" >&5
3691  echo "${ECHO_T}yes" >&6; }
3692         else
3693--- 9347,9352 ----
3694***************
3695*** 10016,10022 ****
3696  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
3697  echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
3698  if test $ac_cv_lib_dld_shl_load = yes; then
3699!   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
3700  else
3701    { echo "$as_me:$LINENO: checking for dlopen" >&5
3702  echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
3703--- 9608,9614 ----
3704  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
3705  echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
3706  if test $ac_cv_lib_dld_shl_load = yes; then
3707!   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
3708  else
3709    { echo "$as_me:$LINENO: checking for dlopen" >&5
3710  echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
3711***************
3712*** 10292,10298 ****
3713  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
3714  echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
3715  if test $ac_cv_lib_dld_dld_link = yes; then
3716!   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
3717  fi
3718 
3719 
3720--- 9884,9890 ----
3721  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
3722  echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
3723  if test $ac_cv_lib_dld_dld_link = yes; then
3724!   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
3725  fi
3726 
3727 
3728***************
3729*** 10341,10347 ****
3730    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3731    lt_status=$lt_dlunknown
3732    cat > conftest.$ac_ext <<EOF
3733! #line 10344 "configure"
3734  #include "confdefs.h"
3735 
3736  #if HAVE_DLFCN_H
3737--- 9933,9939 ----
3738    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3739    lt_status=$lt_dlunknown
3740    cat > conftest.$ac_ext <<EOF
3741! #line 9936 "configure"
3742  #include "confdefs.h"
3743 
3744  #if HAVE_DLFCN_H
3745***************
3746*** 10441,10447 ****
3747    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3748    lt_status=$lt_dlunknown
3749    cat > conftest.$ac_ext <<EOF
3750! #line 10444 "configure"
3751  #include "confdefs.h"
3752 
3753  #if HAVE_DLFCN_H
3754--- 10033,10039 ----
3755    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3756    lt_status=$lt_dlunknown
3757    cat > conftest.$ac_ext <<EOF
3758! #line 10036 "configure"
3759  #include "confdefs.h"
3760 
3761  #if HAVE_DLFCN_H
3762***************
3763*** 10568,10574 ****
3764    fi
3765    ;;
3766 
3767! aix[4-9]*)
3768    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3769      test "$enable_shared" = yes && enable_static=no
3770    fi
3771--- 10160,10166 ----
3772    fi
3773    ;;
3774 
3775! aix4* | aix5*)
3776    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3777      test "$enable_shared" = yes && enable_static=no
3778    fi
3779***************
3780*** 10624,10630 ****
3781      predeps \
3782      postdeps \
3783      compiler_lib_search_path \
3784-     compiler_lib_search_dirs \
3785      archive_cmds \
3786      archive_expsym_cmds \
3787      postinstall_cmds \
3788--- 10216,10221 ----
3789***************
3790*** 10640,10646 ****
3791      module_cmds \
3792      module_expsym_cmds \
3793      lt_cv_prog_compiler_c_o \
3794-     fix_srcfile_path \
3795      exclude_expsyms \
3796      include_expsyms; do
3797 
3798--- 10231,10236 ----
3799***************
3800*** 10685,10691 ****
3801  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3802  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3803  #
3804! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3805  # Free Software Foundation, Inc.
3806  #
3807  # This file is part of GNU Libtool:
3808--- 10275,10281 ----
3809  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3810  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3811  #
3812! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3813  # Free Software Foundation, Inc.
3814  #
3815  # This file is part of GNU Libtool:
3816***************
3817*** 10921,10930 ****
3818  # shared library.
3819  postdeps=$lt_postdeps
3820 
3821- # The directories searched by this compiler when creating a shared
3822- # library
3823- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
3824-
3825  # The library search path used internally by the compiler when linking
3826  # a shared library.
3827  compiler_lib_search_path=$lt_compiler_lib_search_path
3828--- 10511,10516 ----
3829***************
3830*** 11013,11019 ****
3831  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3832 
3833  # Fix the shell variable \$srcfile for the compiler.
3834! fix_srcfile_path=$lt_fix_srcfile_path
3835 
3836  # Set to yes if exported symbols are required.
3837  always_export_symbols=$always_export_symbols
3838--- 10599,10605 ----
3839  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3840 
3841  # Fix the shell variable \$srcfile for the compiler.
3842! fix_srcfile_path="$fix_srcfile_path"
3843 
3844  # Set to yes if exported symbols are required.
3845  always_export_symbols=$always_export_symbols
3846***************
3847*** 11173,11179 ****
3848  predeps_CXX=
3849  postdeps_CXX=
3850  compiler_lib_search_path_CXX=
3851- compiler_lib_search_dirs_CXX=
3852 
3853  # Source file extension for C++ test sources.
3854  ac_ext=cpp
3855--- 10759,10764 ----
3856***************
3857*** 11183,11192 ****
3858  objext_CXX=$objext
3859 
3860  # Code to be used in simple compile tests
3861! lt_simple_compile_test_code="int some_variable = 0;"
3862 
3863  # Code to be used in simple link tests
3864! lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
3865 
3866  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3867 
3868--- 10768,10777 ----
3869  objext_CXX=$objext
3870 
3871  # Code to be used in simple compile tests
3872! lt_simple_compile_test_code="int some_variable = 0;\n"
3873 
3874  # Code to be used in simple link tests
3875! lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3876 
3877  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3878 
3879***************
3880*** 11202,11217 ****
3881 
3882  # save warnings/boilerplate of simple test code
3883  ac_outfile=conftest.$ac_objext
3884! echo "$lt_simple_compile_test_code" >conftest.$ac_ext
3885  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3886  _lt_compiler_boilerplate=`cat conftest.err`
3887  $rm conftest*
3888 
3889  ac_outfile=conftest.$ac_objext
3890! echo "$lt_simple_link_test_code" >conftest.$ac_ext
3891  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3892  _lt_linker_boilerplate=`cat conftest.err`
3893! $rm -r conftest*
3894 
3895 
3896  # Allow CC to be a program name with arguments.
3897--- 10787,10802 ----
3898 
3899  # save warnings/boilerplate of simple test code
3900  ac_outfile=conftest.$ac_objext
3901! printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3902  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3903  _lt_compiler_boilerplate=`cat conftest.err`
3904  $rm conftest*
3905 
3906  ac_outfile=conftest.$ac_objext
3907! printf "$lt_simple_link_test_code" >conftest.$ac_ext
3908  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3909  _lt_linker_boilerplate=`cat conftest.err`
3910! $rm conftest*
3911 
3912 
3913  # Allow CC to be a program name with arguments.
3914***************
3915*** 11418,11424 ****
3916      # FIXME: insert proper C++ library support
3917      ld_shlibs_CXX=no
3918      ;;
3919!   aix[4-9]*)
3920      if test "$host_cpu" = ia64; then
3921        # On IA64, the linker does run time linking by default, so we don't
3922        # have to do anything special.
3923--- 11003,11009 ----
3924      # FIXME: insert proper C++ library support
3925      ld_shlibs_CXX=no
3926      ;;
3927!   aix4* | aix5*)
3928      if test "$host_cpu" = ia64; then
3929        # On IA64, the linker does run time linking by default, so we don't
3930        # have to do anything special.
3931***************
3932*** 11431,11437 ****
3933        # Test if we are trying to use run time linking or normal
3934        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3935        # need to do runtime linking.
3936!       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
3937        for ld_flag in $LDFLAGS; do
3938          case $ld_flag in
3939          *-brtl*)
3940--- 11016,11022 ----
3941        # Test if we are trying to use run time linking or normal
3942        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3943        # need to do runtime linking.
3944!       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3945        for ld_flag in $LDFLAGS; do
3946          case $ld_flag in
3947          *-brtl*)
3948***************
3949*** 11467,11473 ****
3950           strings "$collect2name" | grep resolve_lib_name >/dev/null
3951        then
3952          # We have reworked collect2
3953!         :
3954        else
3955          # We have old collect2
3956          hardcode_direct_CXX=unsupported
3957--- 11052,11058 ----
3958           strings "$collect2name" | grep resolve_lib_name >/dev/null
3959        then
3960          # We have reworked collect2
3961!         hardcode_direct_CXX=yes
3962        else
3963          # We have old collect2
3964          hardcode_direct_CXX=unsupported
3965***************
3966*** 11541,11558 ****
3967         } && test -s conftest$ac_exeext &&
3968         $as_test_x conftest$ac_exeext; then
3969 
3970! lt_aix_libpath_sed='
3971!     /Import File Strings/,/^$/ {
3972!       /^0/ {
3973!           s/^0  *\(.*\)$/\1/
3974!           p
3975!       }
3976!     }'
3977! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3978  # Check for a 64-bit object if we didn't find anything.
3979! if test -z "$aix_libpath"; then
3980!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3981! fi
3982  else
3983    echo "$as_me: failed program was:" >&5
3984  sed 's/^/| /' conftest.$ac_ext >&5
3985--- 11126,11136 ----
3986         } && test -s conftest$ac_exeext &&
3987         $as_test_x conftest$ac_exeext; then
3988 
3989! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3990! }'`
3991  # Check for a 64-bit object if we didn't find anything.
3992! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3993! }'`; fi
3994  else
3995    echo "$as_me: failed program was:" >&5
3996  sed 's/^/| /' conftest.$ac_ext >&5
3997***************
3998*** 11608,11625 ****
3999         } && test -s conftest$ac_exeext &&
4000         $as_test_x conftest$ac_exeext; then
4001 
4002! lt_aix_libpath_sed='
4003!     /Import File Strings/,/^$/ {
4004!       /^0/ {
4005!           s/^0  *\(.*\)$/\1/
4006!           p
4007!       }
4008!     }'
4009! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4010  # Check for a 64-bit object if we didn't find anything.
4011! if test -z "$aix_libpath"; then
4012!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4013! fi
4014  else
4015    echo "$as_me: failed program was:" >&5
4016  sed 's/^/| /' conftest.$ac_ext >&5
4017--- 11186,11196 ----
4018         } && test -s conftest$ac_exeext &&
4019         $as_test_x conftest$ac_exeext; then
4020 
4021! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
4022! }'`
4023  # Check for a 64-bit object if we didn't find anything.
4024! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
4025! }'`; fi
4026  else
4027    echo "$as_me: failed program was:" >&5
4028  sed 's/^/| /' conftest.$ac_ext >&5
4029***************
4030*** 11689,11719 ****
4031      fi
4032    ;;
4033        darwin* | rhapsody*)
4034        archive_cmds_need_lc_CXX=no
4035        hardcode_direct_CXX=no
4036        hardcode_automatic_CXX=yes
4037        hardcode_shlibpath_var_CXX=unsupported
4038        whole_archive_flag_spec_CXX=''
4039        link_all_deplibs_CXX=yes
4040!       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
4041!       if test "$GXX" = yes ; then
4042        output_verbose_link_cmd='echo'
4043!       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
4044!       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4045!       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
4046!       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
4047!       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4048!         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4049!         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4050        fi
4051        else
4052        case $cc_basename in
4053          xlc*)
4054           output_verbose_link_cmd='echo'
4055!           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
4056            module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4057            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4058!           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4059            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4060            ;;
4061         *)
4062--- 11260,11318 ----
4063      fi
4064    ;;
4065        darwin* | rhapsody*)
4066+         case $host_os in
4067+         rhapsody* | darwin1.[012])
4068+          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
4069+          ;;
4070+        *) # Darwin 1.3 on
4071+          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4072+            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4073+          else
4074+            case ${MACOSX_DEPLOYMENT_TARGET} in
4075+              10.[012])
4076+                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4077+                ;;
4078+              10.*)
4079+                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
4080+                ;;
4081+            esac
4082+          fi
4083+          ;;
4084+         esac
4085        archive_cmds_need_lc_CXX=no
4086        hardcode_direct_CXX=no
4087        hardcode_automatic_CXX=yes
4088        hardcode_shlibpath_var_CXX=unsupported
4089        whole_archive_flag_spec_CXX=''
4090        link_all_deplibs_CXX=yes
4091!
4092!     if test "$GXX" = yes ; then
4093!       lt_int_apple_cc_single_mod=no
4094        output_verbose_link_cmd='echo'
4095!       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4096!        lt_int_apple_cc_single_mod=yes
4097        fi
4098+       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4099+        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4100+       else
4101+           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4102+         fi
4103+         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4104+         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4105+           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4106+             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4107+           else
4108+             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4109+           fi
4110+             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4111        else
4112        case $cc_basename in
4113          xlc*)
4114           output_verbose_link_cmd='echo'
4115!           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4116            module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4117            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4118!           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4119            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4120            ;;
4121         *)
4122***************
4123*** 11747,11753 ****
4124    freebsd-elf*)
4125      archive_cmds_need_lc_CXX=no
4126      ;;
4127!   freebsd* | dragonfly*)
4128      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4129      # conventions
4130      ld_shlibs_CXX=yes
4131--- 11346,11352 ----
4132    freebsd-elf*)
4133      archive_cmds_need_lc_CXX=no
4134      ;;
4135!   freebsd* | kfreebsd*-gnu | dragonfly*)
4136      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4137      # conventions
4138      ld_shlibs_CXX=yes
4139***************
4140*** 11796,11802 ****
4141        hardcode_libdir_separator_CXX=:
4142 
4143        case $host_cpu in
4144!       hppa*64*|ia64*) ;;
4145        *)
4146        export_dynamic_flag_spec_CXX='${wl}-E'
4147          ;;
4148--- 11395,11403 ----
4149        hardcode_libdir_separator_CXX=:
4150 
4151        case $host_cpu in
4152!       hppa*64*|ia64*)
4153!       hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
4154!         ;;
4155        *)
4156        export_dynamic_flag_spec_CXX='${wl}-E'
4157          ;;
4158***************
4159*** 11864,11870 ****
4160        ;;
4161      esac
4162      ;;
4163!   interix[3-9]*)
4164      hardcode_direct_CXX=no
4165      hardcode_shlibpath_var_CXX=no
4166      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
4167--- 11465,11471 ----
4168        ;;
4169      esac
4170      ;;
4171!   interix3*)
4172      hardcode_direct_CXX=no
4173      hardcode_shlibpath_var_CXX=no
4174      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
4175***************
4176*** 11904,11910 ****
4177      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
4178      hardcode_libdir_separator_CXX=:
4179      ;;
4180!   linux* | k*bsd*-gnu)
4181      case $cc_basename in
4182        KCC*)
4183        # Kuck and Associates, Inc. (KAI) C++ Compiler
4184--- 11505,11511 ----
4185      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
4186      hardcode_libdir_separator_CXX=:
4187      ;;
4188!   linux*)
4189      case $cc_basename in
4190        KCC*)
4191        # Kuck and Associates, Inc. (KAI) C++ Compiler
4192***************
4193*** 11956,11962 ****
4194        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
4195        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4196        ;;
4197!       pgCC* | pgcpp*)
4198          # Portland Group C++ compiler
4199        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4200        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4201--- 11557,11563 ----
4202        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
4203        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4204        ;;
4205!       pgCC*)
4206          # Portland Group C++ compiler
4207        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4208        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4209***************
4210*** 11984,12012 ****
4211        # dependencies.
4212        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4213        ;;
4214-       *)
4215-       case `$CC -V 2>&1 | sed 5q` in
4216-       *Sun\ C*)
4217-         # Sun C++ 5.9
4218-         no_undefined_flag_CXX=' -zdefs'
4219-         archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4220-         archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4221-         hardcode_libdir_flag_spec_CXX='-R$libdir'
4222-         whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4223-
4224-         # Not sure whether something based on
4225-         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4226-         # would be better.
4227-         output_verbose_link_cmd='echo'
4228-
4229-         # Archives containing C++ object files must be created using
4230-         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4231-         # necessary to make sure instantiated templates are included
4232-         # in the archive.
4233-         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
4234-         ;;
4235-       esac
4236-       ;;
4237      esac
4238      ;;
4239    lynxos*)
4240--- 11585,11590 ----
4241***************
4242*** 12029,12035 ****
4243        ;;
4244      esac
4245      ;;
4246!   netbsd* | netbsdelf*-gnu)
4247      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4248        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4249        wlarc=
4250--- 11607,11613 ----
4251        ;;
4252      esac
4253      ;;
4254!   netbsd*)
4255      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4256        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4257        wlarc=
4258***************
4259*** 12043,12064 ****
4260    openbsd2*)
4261      # C++ shared libraries are fairly broken
4262      ld_shlibs_CXX=no
4263!     ;;
4264!   openbsd*)
4265!     if test -f /usr/libexec/ld.so; then
4266!       hardcode_direct_CXX=yes
4267!       hardcode_shlibpath_var_CXX=no
4268!       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4269!       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
4270!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4271!       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4272!       export_dynamic_flag_spec_CXX='${wl}-E'
4273!       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4274!       fi
4275!       output_verbose_link_cmd='echo'
4276!     else
4277!       ld_shlibs_CXX=no
4278      fi
4279      ;;
4280    osf3*)
4281      case $cc_basename in
4282--- 11621,11638 ----
4283    openbsd2*)
4284      # C++ shared libraries are fairly broken
4285      ld_shlibs_CXX=no
4286!     ;;
4287!   openbsd*)
4288!     hardcode_direct_CXX=yes
4289!     hardcode_shlibpath_var_CXX=no
4290!     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4291!     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
4292!     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4293!       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4294!       export_dynamic_flag_spec_CXX='${wl}-E'
4295!       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4296      fi
4297+     output_verbose_link_cmd='echo'
4298      ;;
4299    osf3*)
4300      case $cc_basename in
4301***************
4302*** 12220,12229 ****
4303        case $host_os in
4304          solaris2.[0-5] | solaris2.[0-5].*) ;;
4305          *)
4306!           # The compiler driver will combine and reorder linker options,
4307!           # but understands `-z linker_flag'.
4308            # Supported since Solaris 2.6 (maybe 2.5.1?)
4309!           whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
4310            ;;
4311        esac
4312        link_all_deplibs_CXX=yes
4313--- 11794,11808 ----
4314        case $host_os in
4315          solaris2.[0-5] | solaris2.[0-5].*) ;;
4316          *)
4317!           # The C++ compiler is used as linker so we must use $wl
4318!           # flag to pass the commands to the underlying system
4319!           # linker. We must also pass each convience library through
4320!           # to the system linker between allextract/defaultextract.
4321!           # The C++ compiler will combine linker options so we
4322!           # cannot just pass the convience library names through
4323!           # without $wl.
4324            # Supported since Solaris 2.6 (maybe 2.5.1?)
4325!           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4326            ;;
4327        esac
4328        link_all_deplibs_CXX=yes
4329***************
4330*** 12270,12281 ****
4331          fi
4332 
4333          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
4334-         case $host_os in
4335-         solaris2.[0-5] | solaris2.[0-5].*) ;;
4336-         *)
4337-           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4338-           ;;
4339-         esac
4340        fi
4341        ;;
4342      esac
4343--- 11849,11854 ----
4344***************
4345*** 12464,12477 ****
4346 
4347  $rm -f confest.$objext
4348 
4349- compiler_lib_search_dirs_CXX=
4350- if test -n "$compiler_lib_search_path_CXX"; then
4351-   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4352- fi
4353-
4354  # PORTME: override above test on systems where it is broken
4355  case $host_os in
4356! interix[3-9]*)
4357    # Interix 3.5 installs completely hosed .la files for C++, so rather than
4358    # hack all around it, let's just trust "g++" to DTRT.
4359    predep_objects_CXX=
4360--- 12038,12046 ----
4361 
4362  $rm -f confest.$objext
4363 
4364  # PORTME: override above test on systems where it is broken
4365  case $host_os in
4366! interix3*)
4367    # Interix 3.5 installs completely hosed .la files for C++, so rather than
4368    # hack all around it, let's just trust "g++" to DTRT.
4369    predep_objects_CXX=
4370***************
4371*** 12479,12524 ****
4372    postdeps_CXX=
4373    ;;
4374 
4375- linux*)
4376-   case `$CC -V 2>&1 | sed 5q` in
4377-   *Sun\ C*)
4378-     # Sun C++ 5.9
4379-     #
4380-     # The more standards-conforming stlport4 library is
4381-     # incompatible with the Cstd library. Avoid specifying
4382-     # it if it's in CXXFLAGS. Ignore libCrun as
4383-     # -library=stlport4 depends on it.
4384-     case " $CXX $CXXFLAGS " in
4385-     *" -library=stlport4 "*)
4386-       solaris_use_stlport4=yes
4387-       ;;
4388-     esac
4389-     if test "$solaris_use_stlport4" != yes; then
4390-       postdeps_CXX='-library=Cstd -library=Crun'
4391-     fi
4392-     ;;
4393-   esac
4394-   ;;
4395-
4396  solaris*)
4397    case $cc_basename in
4398    CC*)
4399-     # The more standards-conforming stlport4 library is
4400-     # incompatible with the Cstd library. Avoid specifying
4401-     # it if it's in CXXFLAGS. Ignore libCrun as
4402-     # -library=stlport4 depends on it.
4403-     case " $CXX $CXXFLAGS " in
4404-     *" -library=stlport4 "*)
4405-       solaris_use_stlport4=yes
4406-       ;;
4407-     esac
4408-
4409      # Adding this requires a known-good setup of shared libraries for
4410      # Sun compiler versions before 5.6, else PIC objects from an old
4411      # archive will be linked into the output, leading to subtle bugs.
4412!     if test "$solaris_use_stlport4" != yes; then
4413!       postdeps_CXX='-library=Cstd -library=Crun'
4414!     fi
4415      ;;
4416    esac
4417    ;;
4418--- 12048,12060 ----
4419    postdeps_CXX=
4420    ;;
4421 
4422  solaris*)
4423    case $cc_basename in
4424    CC*)
4425      # Adding this requires a known-good setup of shared libraries for
4426      # Sun compiler versions before 5.6, else PIC objects from an old
4427      # archive will be linked into the output, leading to subtle bugs.
4428!     postdeps_CXX='-lCstd -lCrun'
4429      ;;
4430    esac
4431    ;;
4432***************
4433*** 12554,12567 ****
4434        # like `-m68040'.
4435        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
4436        ;;
4437!     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4438        # PIC is the default for these OSes.
4439        ;;
4440!     mingw* | cygwin* | os2* | pw32*)
4441        # This hack is so that the source file can tell whether it is being
4442        # built for inclusion in a dll (and should export symbols for example).
4443-       # Although the cygwin gcc ignores -fPIC, still need this for old-style
4444-       # (--disable-auto-import) libraries
4445        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
4446        ;;
4447      darwin* | rhapsody*)
4448--- 12091,12102 ----
4449        # like `-m68040'.
4450        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
4451        ;;
4452!     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4453        # PIC is the default for these OSes.
4454        ;;
4455!     mingw* | os2* | pw32*)
4456        # This hack is so that the source file can tell whether it is being
4457        # built for inclusion in a dll (and should export symbols for example).
4458        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
4459        ;;
4460      darwin* | rhapsody*)
4461***************
4462*** 12573,12579 ****
4463        # DJGPP does not support shared libraries at all
4464        lt_prog_compiler_pic_CXX=
4465        ;;
4466!     interix[3-9]*)
4467        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4468        # Instead, we relocate shared libraries at runtime.
4469        ;;
4470--- 12108,12114 ----
4471        # DJGPP does not support shared libraries at all
4472        lt_prog_compiler_pic_CXX=
4473        ;;
4474!     interix3*)
4475        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4476        # Instead, we relocate shared libraries at runtime.
4477        ;;
4478***************
4479*** 12599,12605 ****
4480      esac
4481    else
4482      case $host_os in
4483!       aix[4-9]*)
4484        # All AIX code is PIC.
4485        if test "$host_cpu" = ia64; then
4486          # AIX 5 now supports IA64 processor
4487--- 12134,12140 ----
4488      esac
4489    else
4490      case $host_os in
4491!       aix4* | aix5*)
4492        # All AIX code is PIC.
4493        if test "$host_cpu" = ia64; then
4494          # AIX 5 now supports IA64 processor
4495***************
4496*** 12639,12645 ****
4497            ;;
4498        esac
4499        ;;
4500!       freebsd* | dragonfly*)
4501        # FreeBSD uses GNU C++
4502        ;;
4503        hpux9* | hpux10* | hpux11*)
4504--- 12174,12180 ----
4505            ;;
4506        esac
4507        ;;
4508!       freebsd* | kfreebsd*-gnu | dragonfly*)
4509        # FreeBSD uses GNU C++
4510        ;;
4511        hpux9* | hpux10* | hpux11*)
4512***************
4513*** 12682,12688 ****
4514            ;;
4515        esac
4516        ;;
4517!       linux* | k*bsd*-gnu)
4518        case $cc_basename in
4519          KCC*)
4520            # KAI C++ Compiler
4521--- 12217,12223 ----
4522            ;;
4523        esac
4524        ;;
4525!       linux*)
4526        case $cc_basename in
4527          KCC*)
4528            # KAI C++ Compiler
4529***************
4530*** 12695,12701 ****
4531            lt_prog_compiler_pic_CXX='-KPIC'
4532            lt_prog_compiler_static_CXX='-static'
4533            ;;
4534!         pgCC* | pgcpp*)
4535            # Portland Group C++ compiler.
4536            lt_prog_compiler_wl_CXX='-Wl,'
4537            lt_prog_compiler_pic_CXX='-fpic'
4538--- 12230,12236 ----
4539            lt_prog_compiler_pic_CXX='-KPIC'
4540            lt_prog_compiler_static_CXX='-static'
4541            ;;
4542!         pgCC*)
4543            # Portland Group C++ compiler.
4544            lt_prog_compiler_wl_CXX='-Wl,'
4545            lt_prog_compiler_pic_CXX='-fpic'
4546***************
4547*** 12709,12722 ****
4548            lt_prog_compiler_static_CXX='-non_shared'
4549            ;;
4550          *)
4551-           case `$CC -V 2>&1 | sed 5q` in
4552-           *Sun\ C*)
4553-             # Sun C++ 5.9
4554-             lt_prog_compiler_pic_CXX='-KPIC'
4555-             lt_prog_compiler_static_CXX='-Bstatic'
4556-             lt_prog_compiler_wl_CXX='-Qoption ld '
4557-             ;;
4558-           esac
4559            ;;
4560        esac
4561        ;;
4562--- 12244,12249 ----
4563***************
4564*** 12733,12739 ****
4565            ;;
4566        esac
4567        ;;
4568!       netbsd* | netbsdelf*-gnu)
4569        ;;
4570        osf3* | osf4* | osf5*)
4571        case $cc_basename in
4572--- 12260,12266 ----
4573            ;;
4574        esac
4575        ;;
4576!       netbsd*)
4577        ;;
4578        osf3* | osf4* | osf5*)
4579        case $cc_basename in
4580***************
4581*** 12826,12837 ****
4582 
4583  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
4584  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
4585! if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
4586    echo $ECHO_N "(cached) $ECHO_C" >&6
4587  else
4588!   lt_cv_prog_compiler_pic_works_CXX=no
4589    ac_outfile=conftest.$ac_objext
4590!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4591     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
4592     # Insert the option either (1) after the last *FLAGS variable, or
4593     # (2) before a word containing "conftest.", or (3) at the end.
4594--- 12353,12364 ----
4595 
4596  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
4597  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
4598! if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
4599    echo $ECHO_N "(cached) $ECHO_C" >&6
4600  else
4601!   lt_prog_compiler_pic_works_CXX=no
4602    ac_outfile=conftest.$ac_objext
4603!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4604     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
4605     # Insert the option either (1) after the last *FLAGS variable, or
4606     # (2) before a word containing "conftest.", or (3) at the end.
4607***************
4608*** 12842,12868 ****
4609     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4610     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4611     -e 's:$: $lt_compiler_flag:'`
4612!    (eval echo "\"\$as_me:12845: $lt_compile\"" >&5)
4613     (eval "$lt_compile" 2>conftest.err)
4614     ac_status=$?
4615     cat conftest.err >&5
4616!    echo "$as_me:12849: \$? = $ac_status" >&5
4617     if (exit $ac_status) && test -s "$ac_outfile"; then
4618       # The compiler can only warn and ignore the option if not recognized
4619       # So say no if there are warnings other than the usual output.
4620       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
4621       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4622       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4623!        lt_cv_prog_compiler_pic_works_CXX=yes
4624       fi
4625     fi
4626     $rm conftest*
4627 
4628  fi
4629! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
4630! echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
4631 
4632! if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
4633      case $lt_prog_compiler_pic_CXX in
4634       "" | " "*) ;;
4635       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
4636--- 12369,12395 ----
4637     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4638     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4639     -e 's:$: $lt_compiler_flag:'`
4640!    (eval echo "\"\$as_me:12372: $lt_compile\"" >&5)
4641     (eval "$lt_compile" 2>conftest.err)
4642     ac_status=$?
4643     cat conftest.err >&5
4644!    echo "$as_me:12376: \$? = $ac_status" >&5
4645     if (exit $ac_status) && test -s "$ac_outfile"; then
4646       # The compiler can only warn and ignore the option if not recognized
4647       # So say no if there are warnings other than the usual output.
4648       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
4649       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4650       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4651!        lt_prog_compiler_pic_works_CXX=yes
4652       fi
4653     fi
4654     $rm conftest*
4655 
4656  fi
4657! { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
4658! echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
4659 
4660! if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
4661      case $lt_prog_compiler_pic_CXX in
4662       "" | " "*) ;;
4663       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
4664***************
4665*** 12889,12901 ****
4666  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
4667  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
4668  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
4669! if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
4670    echo $ECHO_N "(cached) $ECHO_C" >&6
4671  else
4672!   lt_cv_prog_compiler_static_works_CXX=no
4673     save_LDFLAGS="$LDFLAGS"
4674     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
4675!    echo "$lt_simple_link_test_code" > conftest.$ac_ext
4676     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4677       # The linker can only warn and ignore the option if not recognized
4678       # So say no if there are warnings
4679--- 12416,12428 ----
4680  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
4681  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
4682  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
4683! if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
4684    echo $ECHO_N "(cached) $ECHO_C" >&6
4685  else
4686!   lt_prog_compiler_static_works_CXX=no
4687     save_LDFLAGS="$LDFLAGS"
4688     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
4689!    printf "$lt_simple_link_test_code" > conftest.$ac_ext
4690     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4691       # The linker can only warn and ignore the option if not recognized
4692       # So say no if there are warnings
4693***************
4694*** 12905,12924 ****
4695         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
4696         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4697         if diff conftest.exp conftest.er2 >/dev/null; then
4698!          lt_cv_prog_compiler_static_works_CXX=yes
4699         fi
4700       else
4701!        lt_cv_prog_compiler_static_works_CXX=yes
4702       fi
4703     fi
4704!    $rm -r conftest*
4705     LDFLAGS="$save_LDFLAGS"
4706 
4707  fi
4708! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
4709! echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
4710 
4711! if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
4712      :
4713  else
4714      lt_prog_compiler_static_CXX=
4715--- 12432,12451 ----
4716         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
4717         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4718         if diff conftest.exp conftest.er2 >/dev/null; then
4719!          lt_prog_compiler_static_works_CXX=yes
4720         fi
4721       else
4722!        lt_prog_compiler_static_works_CXX=yes
4723       fi
4724     fi
4725!    $rm conftest*
4726     LDFLAGS="$save_LDFLAGS"
4727 
4728  fi
4729! { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
4730! echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
4731 
4732! if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
4733      :
4734  else
4735      lt_prog_compiler_static_CXX=
4736***************
4737*** 12935,12941 ****
4738     mkdir conftest
4739     cd conftest
4740     mkdir out
4741!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4742 
4743     lt_compiler_flag="-o out/conftest2.$ac_objext"
4744     # Insert the option either (1) after the last *FLAGS variable, or
4745--- 12462,12468 ----
4746     mkdir conftest
4747     cd conftest
4748     mkdir out
4749!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4750 
4751     lt_compiler_flag="-o out/conftest2.$ac_objext"
4752     # Insert the option either (1) after the last *FLAGS variable, or
4753***************
4754*** 12946,12956 ****
4755     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4756     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4757     -e 's:$: $lt_compiler_flag:'`
4758!    (eval echo "\"\$as_me:12949: $lt_compile\"" >&5)
4759     (eval "$lt_compile" 2>out/conftest.err)
4760     ac_status=$?
4761     cat out/conftest.err >&5
4762!    echo "$as_me:12953: \$? = $ac_status" >&5
4763     if (exit $ac_status) && test -s out/conftest2.$ac_objext
4764     then
4765       # The compiler can only warn and ignore the option if not recognized
4766--- 12473,12483 ----
4767     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4768     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4769     -e 's:$: $lt_compiler_flag:'`
4770!    (eval echo "\"\$as_me:12476: $lt_compile\"" >&5)
4771     (eval "$lt_compile" 2>out/conftest.err)
4772     ac_status=$?
4773     cat out/conftest.err >&5
4774!    echo "$as_me:12480: \$? = $ac_status" >&5
4775     if (exit $ac_status) && test -s out/conftest2.$ac_objext
4776     then
4777       # The compiler can only warn and ignore the option if not recognized
4778***************
4779*** 13003,13009 ****
4780 
4781    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4782    case $host_os in
4783!   aix[4-9]*)
4784      # If we're using GNU nm, then we don't want the "-C" option.
4785      # -C means demangle to AIX nm, but means don't demangle with GNU nm
4786      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4787--- 12530,12536 ----
4788 
4789    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4790    case $host_os in
4791!   aix4* | aix5*)
4792      # If we're using GNU nm, then we don't want the "-C" option.
4793      # -C means demangle to AIX nm, but means don't demangle with GNU nm
4794      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4795***************
4796*** 13016,13031 ****
4797      export_symbols_cmds_CXX="$ltdll_cmds"
4798    ;;
4799    cygwin* | mingw*)
4800!     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
4801!   ;;
4802!   linux* | k*bsd*-gnu)
4803!     link_all_deplibs_CXX=no
4804    ;;
4805    *)
4806      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4807    ;;
4808    esac
4809-   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
4810 
4811  { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
4812  echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
4813--- 12543,12554 ----
4814      export_symbols_cmds_CXX="$ltdll_cmds"
4815    ;;
4816    cygwin* | mingw*)
4817!     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
4818    ;;
4819    *)
4820      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4821    ;;
4822    esac
4823 
4824  { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
4825  echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
4826***************
4827*** 13051,13057 ****
4828        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
4829  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
4830        $rm conftest*
4831!       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4832 
4833        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834    (eval $ac_compile) 2>&5
4835--- 12574,12580 ----
4836        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
4837  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
4838        $rm conftest*
4839!       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4840 
4841        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842    (eval $ac_compile) 2>&5
4843***************
4844*** 13109,13115 ****
4845  version_type=none
4846  dynamic_linker="$host_os ld.so"
4847  sys_lib_dlsearch_path_spec="/lib /usr/lib"
4848!
4849  need_lib_prefix=unknown
4850  hardcode_into_libs=no
4851 
4852--- 12632,12651 ----
4853  version_type=none
4854  dynamic_linker="$host_os ld.so"
4855  sys_lib_dlsearch_path_spec="/lib /usr/lib"
4856! if test "$GCC" = yes; then
4857!   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4858!   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4859!     # if the path contains ";" then we assume it to be the separator
4860!     # otherwise default to the standard path separator (i.e. ":") - it is
4861!     # assumed that no part of a normal pathname contains ";" but that should
4862!     # okay in the real world where ";" in dirpaths is itself problematic.
4863!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4864!   else
4865!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4866!   fi
4867! else
4868!   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4869! fi
4870  need_lib_prefix=unknown
4871  hardcode_into_libs=no
4872 
4873***************
4874*** 13127,13133 ****
4875    soname_spec='${libname}${release}${shared_ext}$major'
4876    ;;
4877 
4878! aix[4-9]*)
4879    version_type=linux
4880    need_lib_prefix=no
4881    need_version=no
4882--- 12663,12669 ----
4883    soname_spec='${libname}${release}${shared_ext}$major'
4884    ;;
4885 
4886! aix4* | aix5*)
4887    version_type=linux
4888    need_lib_prefix=no
4889    need_version=no
4890***************
4891*** 13266,13272 ****
4892    shlibpath_overrides_runpath=yes
4893    shlibpath_var=DYLD_LIBRARY_PATH
4894    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4895!
4896    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4897    ;;
4898 
4899--- 12802,12813 ----
4900    shlibpath_overrides_runpath=yes
4901    shlibpath_var=DYLD_LIBRARY_PATH
4902    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4903!   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4904!   if test "$GCC" = yes; then
4905!     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4906!   else
4907!     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4908!   fi
4909    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4910    ;;
4911 
4912***************
4913*** 13283,13288 ****
4914--- 12824,12841 ----
4915    dynamic_linker=no
4916    ;;
4917 
4918+ kfreebsd*-gnu)
4919+   version_type=linux
4920+   need_lib_prefix=no
4921+   need_version=no
4922+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4923+   soname_spec='${libname}${release}${shared_ext}$major'
4924+   shlibpath_var=LD_LIBRARY_PATH
4925+   shlibpath_overrides_runpath=no
4926+   hardcode_into_libs=yes
4927+   dynamic_linker='GNU ld.so'
4928+   ;;
4929+
4930  freebsd* | dragonfly*)
4931    # DragonFly does not have aout.  When/if they implement a new
4932    # versioning mechanism, adjust this.
4933***************
4934*** 13320,13326 ****
4935      shlibpath_overrides_runpath=no
4936      hardcode_into_libs=yes
4937      ;;
4938!   *) # from 4.6 on, and DragonFly
4939      shlibpath_overrides_runpath=yes
4940      hardcode_into_libs=yes
4941      ;;
4942--- 12873,12879 ----
4943      shlibpath_overrides_runpath=no
4944      hardcode_into_libs=yes
4945      ;;
4946!   freebsd*) # from 4.6 on
4947      shlibpath_overrides_runpath=yes
4948      hardcode_into_libs=yes
4949      ;;
4950***************
4951*** 13383,13389 ****
4952    postinstall_cmds='chmod 555 $lib'
4953    ;;
4954 
4955! interix[3-9]*)
4956    version_type=linux
4957    need_lib_prefix=no
4958    need_version=no
4959--- 12936,12942 ----
4960    postinstall_cmds='chmod 555 $lib'
4961    ;;
4962 
4963! interix3*)
4964    version_type=linux
4965    need_lib_prefix=no
4966    need_version=no
4967***************
4968*** 13438,13444 ****
4969    ;;
4970 
4971  # This must be Linux ELF.
4972! linux* | k*bsd*-gnu)
4973    version_type=linux
4974    need_lib_prefix=no
4975    need_version=no
4976--- 12991,12997 ----
4977    ;;
4978 
4979  # This must be Linux ELF.
4980! linux*)
4981    version_type=linux
4982    need_lib_prefix=no
4983    need_version=no
4984***************
4985*** 13452,13461 ****
4986    # before this can be enabled.
4987    hardcode_into_libs=yes
4988 
4989    # Append ld.so.conf contents to the search path
4990    if test -f /etc/ld.so.conf; then
4991!     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' ' '`
4992!     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4993    fi
4994 
4995    # We used to test for /lib/ld.so.1 and disable shared libraries on
4996--- 13005,13035 ----
4997    # before this can be enabled.
4998    hardcode_into_libs=yes
4999 
5000+   # find out which ABI we are using
5001+   libsuff=
5002+   case "$host_cpu" in
5003+   x86_64*|s390x*|powerpc64*)
5004+     echo '#line 13012 "configure"' > conftest.$ac_ext
5005+     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006+   (eval $ac_compile) 2>&5
5007+   ac_status=$?
5008+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009+   (exit $ac_status); }; then
5010+       case `/usr/bin/file conftest.$ac_objext` in
5011+       *64-bit*)
5012+         libsuff=64
5013+         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
5014+         ;;
5015+       esac
5016+     fi
5017+     rm -rf conftest*
5018+     ;;
5019+   esac
5020+
5021    # Append ld.so.conf contents to the search path
5022    if test -f /etc/ld.so.conf; then
5023!     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/^     *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
5024!     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
5025    fi
5026 
5027    # We used to test for /lib/ld.so.1 and disable shared libraries on
5028***************
5029*** 13467,13473 ****
5030    dynamic_linker='GNU/Linux ld.so'
5031    ;;
5032 
5033! netbsdelf*-gnu)
5034    version_type=linux
5035    need_lib_prefix=no
5036    need_version=no
5037--- 13041,13047 ----
5038    dynamic_linker='GNU/Linux ld.so'
5039    ;;
5040 
5041! knetbsd*-gnu)
5042    version_type=linux
5043    need_lib_prefix=no
5044    need_version=no
5045***************
5046*** 13476,13482 ****
5047    shlibpath_var=LD_LIBRARY_PATH
5048    shlibpath_overrides_runpath=no
5049    hardcode_into_libs=yes
5050!   dynamic_linker='NetBSD ld.elf_so'
5051    ;;
5052 
5053  netbsd*)
5054--- 13050,13056 ----
5055    shlibpath_var=LD_LIBRARY_PATH
5056    shlibpath_overrides_runpath=no
5057    hardcode_into_libs=yes
5058!   dynamic_linker='GNU ld.so'
5059    ;;
5060 
5061  netbsd*)
5062***************
5063*** 13560,13569 ****
5064    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5065    ;;
5066 
5067- rdos*)
5068-   dynamic_linker=no
5069-   ;;
5070-
5071  solaris*)
5072    version_type=linux
5073    need_lib_prefix=no
5074--- 13134,13139 ----
5075***************
5076*** 13660,13680 ****
5077  echo "${ECHO_T}$dynamic_linker" >&6; }
5078  test "$dynamic_linker" = no && can_build_shared=no
5079 
5080- if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
5081-   echo $ECHO_N "(cached) $ECHO_C" >&6
5082- else
5083-   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
5084- fi
5085-
5086- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
5087- if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
5088-   echo $ECHO_N "(cached) $ECHO_C" >&6
5089- else
5090-   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
5091- fi
5092-
5093- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
5094-
5095  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5096  if test "$GCC" = yes; then
5097    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5098--- 13230,13235 ----
5099***************
5100*** 13758,13764 ****
5101      predeps_CXX \
5102      postdeps_CXX \
5103      compiler_lib_search_path_CXX \
5104-     compiler_lib_search_dirs_CXX \
5105      archive_cmds_CXX \
5106      archive_expsym_cmds_CXX \
5107      postinstall_cmds_CXX \
5108--- 13313,13318 ----
5109***************
5110*** 13774,13780 ****
5111      module_cmds_CXX \
5112      module_expsym_cmds_CXX \
5113      lt_cv_prog_compiler_c_o_CXX \
5114-     fix_srcfile_path_CXX \
5115      exclude_expsyms_CXX \
5116      include_expsyms_CXX; do
5117 
5118--- 13328,13333 ----
5119***************
5120*** 14007,14016 ****
5121  # shared library.
5122  postdeps=$lt_postdeps_CXX
5123 
5124- # The directories searched by this compiler when creating a shared
5125- # library
5126- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
5127-
5128  # The library search path used internally by the compiler when linking
5129  # a shared library.
5130  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
5131--- 13560,13565 ----
5132***************
5133*** 14099,14105 ****
5134  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5135 
5136  # Fix the shell variable \$srcfile for the compiler.
5137! fix_srcfile_path=$lt_fix_srcfile_path
5138 
5139  # Set to yes if exported symbols are required.
5140  always_export_symbols=$always_export_symbols_CXX
5141--- 13648,13654 ----
5142  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5143 
5144  # Fix the shell variable \$srcfile for the compiler.
5145! fix_srcfile_path="$fix_srcfile_path_CXX"
5146 
5147  # Set to yes if exported symbols are required.
5148  always_export_symbols=$always_export_symbols_CXX
5149***************
5150*** 14190,14206 ****
5151  objext_F77=$objext
5152 
5153  # Code to be used in simple compile tests
5154! lt_simple_compile_test_code="\
5155!       subroutine t
5156!       return
5157!       end
5158! "
5159 
5160  # Code to be used in simple link tests
5161! lt_simple_link_test_code="\
5162!       program t
5163!       end
5164! "
5165 
5166  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5167 
5168--- 13739,13748 ----
5169  objext_F77=$objext
5170 
5171  # Code to be used in simple compile tests
5172! lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
5173 
5174  # Code to be used in simple link tests
5175! lt_simple_link_test_code="      program t\n      end\n"
5176 
5177  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5178 
5179***************
5180*** 14216,14231 ****
5181 
5182  # save warnings/boilerplate of simple test code
5183  ac_outfile=conftest.$ac_objext
5184! echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5185  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5186  _lt_compiler_boilerplate=`cat conftest.err`
5187  $rm conftest*
5188 
5189  ac_outfile=conftest.$ac_objext
5190! echo "$lt_simple_link_test_code" >conftest.$ac_ext
5191  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5192  _lt_linker_boilerplate=`cat conftest.err`
5193! $rm -r conftest*
5194 
5195 
5196  # Allow CC to be a program name with arguments.
5197--- 13758,13773 ----
5198 
5199  # save warnings/boilerplate of simple test code
5200  ac_outfile=conftest.$ac_objext
5201! printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5202  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5203  _lt_compiler_boilerplate=`cat conftest.err`
5204  $rm conftest*
5205 
5206  ac_outfile=conftest.$ac_objext
5207! printf "$lt_simple_link_test_code" >conftest.$ac_ext
5208  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5209  _lt_linker_boilerplate=`cat conftest.err`
5210! $rm conftest*
5211 
5212 
5213  # Allow CC to be a program name with arguments.
5214***************
5215*** 14263,14269 ****
5216      postinstall_cmds='$RANLIB $lib'
5217    fi
5218    ;;
5219! aix[4-9]*)
5220    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5221      test "$enable_shared" = yes && enable_static=no
5222    fi
5223--- 13805,13811 ----
5224      postinstall_cmds='$RANLIB $lib'
5225    fi
5226    ;;
5227! aix4* | aix5*)
5228    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5229      test "$enable_shared" = yes && enable_static=no
5230    fi
5231***************
5232*** 14309,14323 ****
5233        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
5234        ;;
5235 
5236!     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5237        # PIC is the default for these OSes.
5238        ;;
5239 
5240!     mingw* | cygwin* | pw32* | os2*)
5241        # This hack is so that the source file can tell whether it is being
5242        # built for inclusion in a dll (and should export symbols for example).
5243-       # Although the cygwin gcc ignores -fPIC, still need this for old-style
5244-       # (--disable-auto-import) libraries
5245        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5246        ;;
5247 
5248--- 13851,13863 ----
5249        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
5250        ;;
5251 
5252!     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5253        # PIC is the default for these OSes.
5254        ;;
5255 
5256!     mingw* | pw32* | os2*)
5257        # This hack is so that the source file can tell whether it is being
5258        # built for inclusion in a dll (and should export symbols for example).
5259        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5260        ;;
5261 
5262***************
5263*** 14327,14333 ****
5264        lt_prog_compiler_pic_F77='-fno-common'
5265        ;;
5266 
5267!     interix[3-9]*)
5268        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5269        # Instead, we relocate shared libraries at runtime.
5270        ;;
5271--- 13867,13873 ----
5272        lt_prog_compiler_pic_F77='-fno-common'
5273        ;;
5274 
5275!     interix3*)
5276        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5277        # Instead, we relocate shared libraries at runtime.
5278        ;;
5279***************
5280*** 14385,14391 ****
5281         esac
5282         ;;
5283 
5284!     mingw* | cygwin* | pw32* | os2*)
5285        # This hack is so that the source file can tell whether it is being
5286        # built for inclusion in a dll (and should export symbols for example).
5287        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5288--- 13925,13931 ----
5289         esac
5290         ;;
5291 
5292!     mingw* | pw32* | os2*)
5293        # This hack is so that the source file can tell whether it is being
5294        # built for inclusion in a dll (and should export symbols for example).
5295        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
5296***************
5297*** 14418,14424 ****
5298        lt_prog_compiler_static_F77='-Bstatic'
5299        ;;
5300 
5301!     linux* | k*bsd*-gnu)
5302        case $cc_basename in
5303        icc* | ecc*)
5304        lt_prog_compiler_wl_F77='-Wl,'
5305--- 13958,13964 ----
5306        lt_prog_compiler_static_F77='-Bstatic'
5307        ;;
5308 
5309!     linux*)
5310        case $cc_basename in
5311        icc* | ecc*)
5312        lt_prog_compiler_wl_F77='-Wl,'
5313***************
5314*** 14437,14458 ****
5315          # All Alpha code is PIC.
5316          lt_prog_compiler_static_F77='-non_shared'
5317          ;;
5318-       *)
5319-         case `$CC -V 2>&1 | sed 5q` in
5320-       *Sun\ C*)
5321-         # Sun C 5.9
5322-         lt_prog_compiler_pic_F77='-KPIC'
5323-         lt_prog_compiler_static_F77='-Bstatic'
5324-         lt_prog_compiler_wl_F77='-Wl,'
5325-         ;;
5326-       *Sun\ F*)
5327-         # Sun Fortran 8.3 passes all unrecognized flags to the linker
5328-         lt_prog_compiler_pic_F77='-KPIC'
5329-         lt_prog_compiler_static_F77='-Bstatic'
5330-         lt_prog_compiler_wl_F77=''
5331-         ;;
5332-       esac
5333-       ;;
5334        esac
5335        ;;
5336 
5337--- 13977,13982 ----
5338***************
5339*** 14462,14471 ****
5340        lt_prog_compiler_static_F77='-non_shared'
5341        ;;
5342 
5343-     rdos*)
5344-       lt_prog_compiler_static_F77='-non_shared'
5345-       ;;
5346-
5347      solaris*)
5348        lt_prog_compiler_pic_F77='-KPIC'
5349        lt_prog_compiler_static_F77='-Bstatic'
5350--- 13986,13991 ----
5351***************
5352*** 14528,14539 ****
5353 
5354  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
5355  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
5356! if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
5357    echo $ECHO_N "(cached) $ECHO_C" >&6
5358  else
5359!   lt_cv_prog_compiler_pic_works_F77=no
5360    ac_outfile=conftest.$ac_objext
5361!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5362     lt_compiler_flag="$lt_prog_compiler_pic_F77"
5363     # Insert the option either (1) after the last *FLAGS variable, or
5364     # (2) before a word containing "conftest.", or (3) at the end.
5365--- 14048,14059 ----
5366 
5367  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
5368  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
5369! if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
5370    echo $ECHO_N "(cached) $ECHO_C" >&6
5371  else
5372!   lt_prog_compiler_pic_works_F77=no
5373    ac_outfile=conftest.$ac_objext
5374!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5375     lt_compiler_flag="$lt_prog_compiler_pic_F77"
5376     # Insert the option either (1) after the last *FLAGS variable, or
5377     # (2) before a word containing "conftest.", or (3) at the end.
5378***************
5379*** 14544,14570 ****
5380     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5381     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5382     -e 's:$: $lt_compiler_flag:'`
5383!    (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
5384     (eval "$lt_compile" 2>conftest.err)
5385     ac_status=$?
5386     cat conftest.err >&5
5387!    echo "$as_me:14551: \$? = $ac_status" >&5
5388     if (exit $ac_status) && test -s "$ac_outfile"; then
5389       # The compiler can only warn and ignore the option if not recognized
5390       # So say no if there are warnings other than the usual output.
5391       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5393       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5394!        lt_cv_prog_compiler_pic_works_F77=yes
5395       fi
5396     fi
5397     $rm conftest*
5398 
5399  fi
5400! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
5401! echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
5402 
5403! if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
5404      case $lt_prog_compiler_pic_F77 in
5405       "" | " "*) ;;
5406       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
5407--- 14064,14090 ----
5408     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5409     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5410     -e 's:$: $lt_compiler_flag:'`
5411!    (eval echo "\"\$as_me:14067: $lt_compile\"" >&5)
5412     (eval "$lt_compile" 2>conftest.err)
5413     ac_status=$?
5414     cat conftest.err >&5
5415!    echo "$as_me:14071: \$? = $ac_status" >&5
5416     if (exit $ac_status) && test -s "$ac_outfile"; then
5417       # The compiler can only warn and ignore the option if not recognized
5418       # So say no if there are warnings other than the usual output.
5419       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5420       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5421       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5422!        lt_prog_compiler_pic_works_F77=yes
5423       fi
5424     fi
5425     $rm conftest*
5426 
5427  fi
5428! { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
5429! echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
5430 
5431! if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
5432      case $lt_prog_compiler_pic_F77 in
5433       "" | " "*) ;;
5434       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
5435***************
5436*** 14591,14603 ****
5437  wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
5438  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5439  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5440! if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
5441    echo $ECHO_N "(cached) $ECHO_C" >&6
5442  else
5443!   lt_cv_prog_compiler_static_works_F77=no
5444     save_LDFLAGS="$LDFLAGS"
5445     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5446!    echo "$lt_simple_link_test_code" > conftest.$ac_ext
5447     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5448       # The linker can only warn and ignore the option if not recognized
5449       # So say no if there are warnings
5450--- 14111,14123 ----
5451  wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
5452  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5453  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
5454! if test "${lt_prog_compiler_static_works_F77+set}" = set; then
5455    echo $ECHO_N "(cached) $ECHO_C" >&6
5456  else
5457!   lt_prog_compiler_static_works_F77=no
5458     save_LDFLAGS="$LDFLAGS"
5459     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5460!    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5461     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5462       # The linker can only warn and ignore the option if not recognized
5463       # So say no if there are warnings
5464***************
5465*** 14607,14626 ****
5466         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5467         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5468         if diff conftest.exp conftest.er2 >/dev/null; then
5469!          lt_cv_prog_compiler_static_works_F77=yes
5470         fi
5471       else
5472!        lt_cv_prog_compiler_static_works_F77=yes
5473       fi
5474     fi
5475!    $rm -r conftest*
5476     LDFLAGS="$save_LDFLAGS"
5477 
5478  fi
5479! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
5480! echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
5481 
5482! if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
5483      :
5484  else
5485      lt_prog_compiler_static_F77=
5486--- 14127,14146 ----
5487         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5488         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5489         if diff conftest.exp conftest.er2 >/dev/null; then
5490!          lt_prog_compiler_static_works_F77=yes
5491         fi
5492       else
5493!        lt_prog_compiler_static_works_F77=yes
5494       fi
5495     fi
5496!    $rm conftest*
5497     LDFLAGS="$save_LDFLAGS"
5498 
5499  fi
5500! { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
5501! echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
5502 
5503! if test x"$lt_prog_compiler_static_works_F77" = xyes; then
5504      :
5505  else
5506      lt_prog_compiler_static_F77=
5507***************
5508*** 14637,14643 ****
5509     mkdir conftest
5510     cd conftest
5511     mkdir out
5512!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5513 
5514     lt_compiler_flag="-o out/conftest2.$ac_objext"
5515     # Insert the option either (1) after the last *FLAGS variable, or
5516--- 14157,14163 ----
5517     mkdir conftest
5518     cd conftest
5519     mkdir out
5520!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5521 
5522     lt_compiler_flag="-o out/conftest2.$ac_objext"
5523     # Insert the option either (1) after the last *FLAGS variable, or
5524***************
5525*** 14648,14658 ****
5526     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5527     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5528     -e 's:$: $lt_compiler_flag:'`
5529!    (eval echo "\"\$as_me:14651: $lt_compile\"" >&5)
5530     (eval "$lt_compile" 2>out/conftest.err)
5531     ac_status=$?
5532     cat out/conftest.err >&5
5533!    echo "$as_me:14655: \$? = $ac_status" >&5
5534     if (exit $ac_status) && test -s out/conftest2.$ac_objext
5535     then
5536       # The compiler can only warn and ignore the option if not recognized
5537--- 14168,14178 ----
5538     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5539     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5540     -e 's:$: $lt_compiler_flag:'`
5541!    (eval echo "\"\$as_me:14171: $lt_compile\"" >&5)
5542     (eval "$lt_compile" 2>out/conftest.err)
5543     ac_status=$?
5544     cat out/conftest.err >&5
5545!    echo "$as_me:14175: \$? = $ac_status" >&5
5546     if (exit $ac_status) && test -s out/conftest2.$ac_objext
5547     then
5548       # The compiler can only warn and ignore the option if not recognized
5549***************
5550*** 14732,14744 ****
5551    # it will be wrapped by ` (' and `)$', so one must not match beginning or
5552    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5553    # as well as any symbol that contains `d'.
5554!   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
5555    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5556    # platforms (ab)use it in PIC code, but their linkers get confused if
5557    # the symbol is explicitly referenced.  Since portable code cannot
5558    # rely on this symbol name, it's probably fine to never include it in
5559    # preloaded symbol tables.
5560-   # Exclude shared library initialization/finalization symbols.
5561    extract_expsyms_cmds=
5562    # Just being paranoid about ensuring that cc_basename is set.
5563    for cc_temp in $compiler""; do
5564--- 14252,14263 ----
5565    # it will be wrapped by ` (' and `)$', so one must not match beginning or
5566    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5567    # as well as any symbol that contains `d'.
5568!   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
5569    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5570    # platforms (ab)use it in PIC code, but their linkers get confused if
5571    # the symbol is explicitly referenced.  Since portable code cannot
5572    # rely on this symbol name, it's probably fine to never include it in
5573    # preloaded symbol tables.
5574    extract_expsyms_cmds=
5575    # Just being paranoid about ensuring that cc_basename is set.
5576    for cc_temp in $compiler""; do
5577***************
5578*** 14797,14803 ****
5579 
5580      # See if GNU ld supports shared libraries.
5581      case $host_os in
5582!     aix[3-9]*)
5583        # On AIX/PPC, the GNU linker is very broken
5584        if test "$host_cpu" != ia64; then
5585        ld_shlibs_F77=no
5586--- 14316,14322 ----
5587 
5588      # See if GNU ld supports shared libraries.
5589      case $host_os in
5590!     aix3* | aix4* | aix5*)
5591        # On AIX/PPC, the GNU linker is very broken
5592        if test "$host_cpu" != ia64; then
5593        ld_shlibs_F77=no
5594***************
5595*** 14845,14851 ****
5596        allow_undefined_flag_F77=unsupported
5597        always_export_symbols_F77=no
5598        enable_shared_with_static_runtimes_F77=yes
5599!       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5600 
5601        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5602          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5603--- 14364,14370 ----
5604        allow_undefined_flag_F77=unsupported
5605        always_export_symbols_F77=no
5606        enable_shared_with_static_runtimes_F77=yes
5607!       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5608 
5609        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5610          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5611***************
5612*** 14863,14869 ****
5613        fi
5614        ;;
5615 
5616!     interix[3-9]*)
5617        hardcode_direct_F77=no
5618        hardcode_shlibpath_var_F77=no
5619        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5620--- 14382,14388 ----
5621        fi
5622        ;;
5623 
5624!     interix3*)
5625        hardcode_direct_F77=no
5626        hardcode_shlibpath_var_F77=no
5627        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5628***************
5629*** 14878,14884 ****
5630        archive_expsym_cmds_F77='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'
5631        ;;
5632 
5633!     gnu* | linux* | k*bsd*-gnu)
5634        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5635        tmp_addflag=
5636        case $cc_basename,$host_cpu in
5637--- 14397,14403 ----
5638        archive_expsym_cmds_F77='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'
5639        ;;
5640 
5641!     linux*)
5642        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5643        tmp_addflag=
5644        case $cc_basename,$host_cpu in
5645***************
5646*** 14896,14925 ****
5647        ifc* | ifort*)                  # Intel Fortran compiler
5648          tmp_addflag=' -nofor_main' ;;
5649        esac
5650!       case `$CC -V 2>&1 | sed 5q` in
5651!       *Sun\ C*)                       # Sun C 5.9
5652!         whole_archive_flag_spec_F77='${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'
5653!         tmp_sharedflag='-G' ;;
5654!       *Sun\ F*)                       # Sun Fortran 8.3
5655!         tmp_sharedflag='-G' ;;
5656!       *)
5657!         tmp_sharedflag='-shared' ;;
5658!       esac
5659!       archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5660 
5661        if test $supports_anon_versioning = yes; then
5662          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
5663    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5664    $echo "local: *; };" >> $output_objdir/$libname.ver~
5665!         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5666        fi
5667-       link_all_deplibs_F77=no
5668        else
5669        ld_shlibs_F77=no
5670        fi
5671        ;;
5672 
5673!     netbsd* | netbsdelf*-gnu)
5674        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5675        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5676        wlarc=
5677--- 14415,14434 ----
5678        ifc* | ifort*)                  # Intel Fortran compiler
5679          tmp_addflag=' -nofor_main' ;;
5680        esac
5681!       archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5682 
5683        if test $supports_anon_versioning = yes; then
5684          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
5685    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5686    $echo "local: *; };" >> $output_objdir/$libname.ver~
5687!         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5688        fi
5689        else
5690        ld_shlibs_F77=no
5691        fi
5692        ;;
5693 
5694!     netbsd*)
5695        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5696        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5697        wlarc=
5698***************
5699*** 15017,15023 ****
5700        fi
5701        ;;
5702 
5703!     aix[4-9]*)
5704        if test "$host_cpu" = ia64; then
5705        # On IA64, the linker does run time linking by default, so we don't
5706        # have to do anything special.
5707--- 14526,14532 ----
5708        fi
5709        ;;
5710 
5711!     aix4* | aix5*)
5712        if test "$host_cpu" = ia64; then
5713        # On IA64, the linker does run time linking by default, so we don't
5714        # have to do anything special.
5715***************
5716*** 15037,15043 ****
5717        # Test if we are trying to use run time linking or normal
5718        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5719        # need to do runtime linking.
5720!       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
5721          for ld_flag in $LDFLAGS; do
5722          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5723            aix_use_runtimelinking=yes
5724--- 14546,14552 ----
5725        # Test if we are trying to use run time linking or normal
5726        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5727        # need to do runtime linking.
5728!       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5729          for ld_flag in $LDFLAGS; do
5730          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5731            aix_use_runtimelinking=yes
5732***************
5733*** 15071,15077 ****
5734           strings "$collect2name" | grep resolve_lib_name >/dev/null
5735          then
5736          # We have reworked collect2
5737!         :
5738          else
5739          # We have old collect2
5740          hardcode_direct_F77=unsupported
5741--- 14580,14586 ----
5742           strings "$collect2name" | grep resolve_lib_name >/dev/null
5743          then
5744          # We have reworked collect2
5745!         hardcode_direct_F77=yes
5746          else
5747          # We have old collect2
5748          hardcode_direct_F77=unsupported
5749***************
5750*** 15135,15152 ****
5751         } && test -s conftest$ac_exeext &&
5752         $as_test_x conftest$ac_exeext; then
5753 
5754! lt_aix_libpath_sed='
5755!     /Import File Strings/,/^$/ {
5756!       /^0/ {
5757!           s/^0  *\(.*\)$/\1/
5758!           p
5759!       }
5760!     }'
5761! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5762  # Check for a 64-bit object if we didn't find anything.
5763! if test -z "$aix_libpath"; then
5764!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5765! fi
5766  else
5767    echo "$as_me: failed program was:" >&5
5768  sed 's/^/| /' conftest.$ac_ext >&5
5769--- 14644,14654 ----
5770         } && test -s conftest$ac_exeext &&
5771         $as_test_x conftest$ac_exeext; then
5772 
5773! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
5774! }'`
5775  # Check for a 64-bit object if we didn't find anything.
5776! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
5777! }'`; fi
5778  else
5779    echo "$as_me: failed program was:" >&5
5780  sed 's/^/| /' conftest.$ac_ext >&5
5781***************
5782*** 15191,15208 ****
5783         } && test -s conftest$ac_exeext &&
5784         $as_test_x conftest$ac_exeext; then
5785 
5786! lt_aix_libpath_sed='
5787!     /Import File Strings/,/^$/ {
5788!       /^0/ {
5789!           s/^0  *\(.*\)$/\1/
5790!           p
5791!       }
5792!     }'
5793! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5794  # Check for a 64-bit object if we didn't find anything.
5795! if test -z "$aix_libpath"; then
5796!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5797! fi
5798  else
5799    echo "$as_me: failed program was:" >&5
5800  sed 's/^/| /' conftest.$ac_ext >&5
5801--- 14693,14703 ----
5802         } && test -s conftest$ac_exeext &&
5803         $as_test_x conftest$ac_exeext; then
5804 
5805! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
5806! }'`
5807  # Check for a 64-bit object if we didn't find anything.
5808! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
5809! }'`; fi
5810  else
5811    echo "$as_me: failed program was:" >&5
5812  sed 's/^/| /' conftest.$ac_ext >&5
5813***************
5814*** 15256,15262 ****
5815        # The linker will automatically build a .lib file if we build a DLL.
5816        old_archive_From_new_cmds_F77='true'
5817        # FIXME: Should let the user specify the lib program.
5818!       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
5819        fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
5820        enable_shared_with_static_runtimes_F77=yes
5821        ;;
5822--- 14751,14757 ----
5823        # The linker will automatically build a .lib file if we build a DLL.
5824        old_archive_From_new_cmds_F77='true'
5825        # FIXME: Should let the user specify the lib program.
5826!       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
5827        fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
5828        enable_shared_with_static_runtimes_F77=yes
5829        ;;
5830***************
5831*** 15289,15306 ****
5832        link_all_deplibs_F77=yes
5833      if test "$GCC" = yes ; then
5834        output_verbose_link_cmd='echo'
5835!         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
5836!         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
5837!         archive_expsym_cmds_F77="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}"
5838!         module_expsym_cmds_F77="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}"
5839      else
5840        case $cc_basename in
5841          xlc*)
5842           output_verbose_link_cmd='echo'
5843!          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5844           module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5845            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5846!          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5847            module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5848            ;;
5849         *)
5850--- 14784,14802 ----
5851        link_all_deplibs_F77=yes
5852      if test "$GCC" = yes ; then
5853        output_verbose_link_cmd='echo'
5854!         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5855!       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5856!       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5857!       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5858!       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5859      else
5860        case $cc_basename in
5861          xlc*)
5862           output_verbose_link_cmd='echo'
5863!          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5864           module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5865            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5866!          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5867            module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5868            ;;
5869         *)
5870***************
5871*** 15340,15346 ****
5872        ;;
5873 
5874      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5875!     freebsd* | dragonfly*)
5876        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5877        hardcode_libdir_flag_spec_F77='-R$libdir'
5878        hardcode_direct_F77=yes
5879--- 14836,14842 ----
5880        ;;
5881 
5882      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5883!     freebsd* | kfreebsd*-gnu | dragonfly*)
5884        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5885        hardcode_libdir_flag_spec_F77='-R$libdir'
5886        hardcode_direct_F77=yes
5887***************
5888*** 15442,15448 ****
5889        link_all_deplibs_F77=yes
5890        ;;
5891 
5892!     netbsd* | netbsdelf*-gnu)
5893        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5894        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5895        else
5896--- 14938,14944 ----
5897        link_all_deplibs_F77=yes
5898        ;;
5899 
5900!     netbsd*)
5901        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5902        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5903        else
5904***************
5905*** 15462,15489 ****
5906        ;;
5907 
5908      openbsd*)
5909!       if test -f /usr/libexec/ld.so; then
5910!       hardcode_direct_F77=yes
5911!       hardcode_shlibpath_var_F77=no
5912!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5913!         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5914!         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5915!         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5916!         export_dynamic_flag_spec_F77='${wl}-E'
5917!       else
5918!         case $host_os in
5919!          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5920!            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5921!            hardcode_libdir_flag_spec_F77='-R$libdir'
5922!            ;;
5923!          *)
5924!            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5925!            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5926!            ;;
5927!         esac
5928!         fi
5929        else
5930!       ld_shlibs_F77=no
5931        fi
5932        ;;
5933 
5934--- 14958,14981 ----
5935        ;;
5936 
5937      openbsd*)
5938!       hardcode_direct_F77=yes
5939!       hardcode_shlibpath_var_F77=no
5940!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5941!       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5942!       archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5943!       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5944!       export_dynamic_flag_spec_F77='${wl}-E'
5945        else
5946!        case $host_os in
5947!        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5948!          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5949!          hardcode_libdir_flag_spec_F77='-R$libdir'
5950!          ;;
5951!        *)
5952!          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5953!          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
5954!          ;;
5955!        esac
5956        fi
5957        ;;
5958 
5959***************
5960*** 15542,15557 ****
5961        case $host_os in
5962        solaris2.[0-5] | solaris2.[0-5].*) ;;
5963        *)
5964!       # The compiler driver will combine and reorder linker options,
5965!       # but understands `-z linker_flag'.  GCC discards it without `$wl',
5966!       # but is careful enough not to reorder.
5967        # Supported since Solaris 2.6 (maybe 2.5.1?)
5968!       if test "$GCC" = yes; then
5969!         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5970!       else
5971!         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
5972!       fi
5973!       ;;
5974        esac
5975        link_all_deplibs_F77=yes
5976        ;;
5977--- 15034,15050 ----
5978        case $host_os in
5979        solaris2.[0-5] | solaris2.[0-5].*) ;;
5980        *)
5981!       # The compiler driver will combine linker options so we
5982!       # cannot just pass the convience library names through
5983!       # without $wl, iff we do not link with $LD.
5984!       # Luckily, gcc supports the same syntax we need for Sun Studio.
5985        # Supported since Solaris 2.6 (maybe 2.5.1?)
5986!       case $wlarc in
5987!       '')
5988!         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
5989!       *)
5990!         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5991!       esac ;;
5992        esac
5993        link_all_deplibs_F77=yes
5994        ;;
5995***************
5996*** 15608,15614 ****
5997        fi
5998        ;;
5999 
6000!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
6001        no_undefined_flag_F77='${wl}-z,text'
6002        archive_cmds_need_lc_F77=no
6003        hardcode_shlibpath_var_F77=no
6004--- 15101,15107 ----
6005        fi
6006        ;;
6007 
6008!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
6009        no_undefined_flag_F77='${wl}-z,text'
6010        archive_cmds_need_lc_F77=no
6011        hardcode_shlibpath_var_F77=no
6012***************
6013*** 15685,15691 ****
6014        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6015  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
6016        $rm conftest*
6017!       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6018 
6019        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020    (eval $ac_compile) 2>&5
6021--- 15178,15184 ----
6022        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6023  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
6024        $rm conftest*
6025!       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6026 
6027        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028    (eval $ac_compile) 2>&5
6029***************
6030*** 15743,15749 ****
6031  version_type=none
6032  dynamic_linker="$host_os ld.so"
6033  sys_lib_dlsearch_path_spec="/lib /usr/lib"
6034!
6035  need_lib_prefix=unknown
6036  hardcode_into_libs=no
6037 
6038--- 15236,15255 ----
6039  version_type=none
6040  dynamic_linker="$host_os ld.so"
6041  sys_lib_dlsearch_path_spec="/lib /usr/lib"
6042! if test "$GCC" = yes; then
6043!   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6044!   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6045!     # if the path contains ";" then we assume it to be the separator
6046!     # otherwise default to the standard path separator (i.e. ":") - it is
6047!     # assumed that no part of a normal pathname contains ";" but that should
6048!     # okay in the real world where ";" in dirpaths is itself problematic.
6049!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6050!   else
6051!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6052!   fi
6053! else
6054!   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6055! fi
6056  need_lib_prefix=unknown
6057  hardcode_into_libs=no
6058 
6059***************
6060*** 15761,15767 ****
6061    soname_spec='${libname}${release}${shared_ext}$major'
6062    ;;
6063 
6064! aix[4-9]*)
6065    version_type=linux
6066    need_lib_prefix=no
6067    need_version=no
6068--- 15267,15273 ----
6069    soname_spec='${libname}${release}${shared_ext}$major'
6070    ;;
6071 
6072! aix4* | aix5*)
6073    version_type=linux
6074    need_lib_prefix=no
6075    need_version=no
6076***************
6077*** 15900,15906 ****
6078    shlibpath_overrides_runpath=yes
6079    shlibpath_var=DYLD_LIBRARY_PATH
6080    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
6081!
6082    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6083    ;;
6084 
6085--- 15406,15417 ----
6086    shlibpath_overrides_runpath=yes
6087    shlibpath_var=DYLD_LIBRARY_PATH
6088    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
6089!   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6090!   if test "$GCC" = yes; then
6091!     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6092!   else
6093!     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6094!   fi
6095    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6096    ;;
6097 
6098***************
6099*** 15917,15922 ****
6100--- 15428,15445 ----
6101    dynamic_linker=no
6102    ;;
6103 
6104+ kfreebsd*-gnu)
6105+   version_type=linux
6106+   need_lib_prefix=no
6107+   need_version=no
6108+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6109+   soname_spec='${libname}${release}${shared_ext}$major'
6110+   shlibpath_var=LD_LIBRARY_PATH
6111+   shlibpath_overrides_runpath=no
6112+   hardcode_into_libs=yes
6113+   dynamic_linker='GNU ld.so'
6114+   ;;
6115+
6116  freebsd* | dragonfly*)
6117    # DragonFly does not have aout.  When/if they implement a new
6118    # versioning mechanism, adjust this.
6119***************
6120*** 15954,15960 ****
6121      shlibpath_overrides_runpath=no
6122      hardcode_into_libs=yes
6123      ;;
6124!   *) # from 4.6 on, and DragonFly
6125      shlibpath_overrides_runpath=yes
6126      hardcode_into_libs=yes
6127      ;;
6128--- 15477,15483 ----
6129      shlibpath_overrides_runpath=no
6130      hardcode_into_libs=yes
6131      ;;
6132!   freebsd*) # from 4.6 on
6133      shlibpath_overrides_runpath=yes
6134      hardcode_into_libs=yes
6135      ;;
6136***************
6137*** 16017,16023 ****
6138    postinstall_cmds='chmod 555 $lib'
6139    ;;
6140 
6141! interix[3-9]*)
6142    version_type=linux
6143    need_lib_prefix=no
6144    need_version=no
6145--- 15540,15546 ----
6146    postinstall_cmds='chmod 555 $lib'
6147    ;;
6148 
6149! interix3*)
6150    version_type=linux
6151    need_lib_prefix=no
6152    need_version=no
6153***************
6154*** 16072,16078 ****
6155    ;;
6156 
6157  # This must be Linux ELF.
6158! linux* | k*bsd*-gnu)
6159    version_type=linux
6160    need_lib_prefix=no
6161    need_version=no
6162--- 15595,15601 ----
6163    ;;
6164 
6165  # This must be Linux ELF.
6166! linux*)
6167    version_type=linux
6168    need_lib_prefix=no
6169    need_version=no
6170***************
6171*** 16086,16095 ****
6172    # before this can be enabled.
6173    hardcode_into_libs=yes
6174 
6175    # Append ld.so.conf contents to the search path
6176    if test -f /etc/ld.so.conf; then
6177!     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' ' '`
6178!     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6179    fi
6180 
6181    # We used to test for /lib/ld.so.1 and disable shared libraries on
6182--- 15609,15639 ----
6183    # before this can be enabled.
6184    hardcode_into_libs=yes
6185 
6186+   # find out which ABI we are using
6187+   libsuff=
6188+   case "$host_cpu" in
6189+   x86_64*|s390x*|powerpc64*)
6190+     echo '#line 15616 "configure"' > conftest.$ac_ext
6191+     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192+   (eval $ac_compile) 2>&5
6193+   ac_status=$?
6194+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195+   (exit $ac_status); }; then
6196+       case `/usr/bin/file conftest.$ac_objext` in
6197+       *64-bit*)
6198+         libsuff=64
6199+         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6200+         ;;
6201+       esac
6202+     fi
6203+     rm -rf conftest*
6204+     ;;
6205+   esac
6206+
6207    # Append ld.so.conf contents to the search path
6208    if test -f /etc/ld.so.conf; then
6209!     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/^     *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
6210!     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
6211    fi
6212 
6213    # We used to test for /lib/ld.so.1 and disable shared libraries on
6214***************
6215*** 16101,16107 ****
6216    dynamic_linker='GNU/Linux ld.so'
6217    ;;
6218 
6219! netbsdelf*-gnu)
6220    version_type=linux
6221    need_lib_prefix=no
6222    need_version=no
6223--- 15645,15651 ----
6224    dynamic_linker='GNU/Linux ld.so'
6225    ;;
6226 
6227! knetbsd*-gnu)
6228    version_type=linux
6229    need_lib_prefix=no
6230    need_version=no
6231***************
6232*** 16110,16116 ****
6233    shlibpath_var=LD_LIBRARY_PATH
6234    shlibpath_overrides_runpath=no
6235    hardcode_into_libs=yes
6236!   dynamic_linker='NetBSD ld.elf_so'
6237    ;;
6238 
6239  netbsd*)
6240--- 15654,15660 ----
6241    shlibpath_var=LD_LIBRARY_PATH
6242    shlibpath_overrides_runpath=no
6243    hardcode_into_libs=yes
6244!   dynamic_linker='GNU ld.so'
6245    ;;
6246 
6247  netbsd*)
6248***************
6249*** 16194,16203 ****
6250    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6251    ;;
6252 
6253- rdos*)
6254-   dynamic_linker=no
6255-   ;;
6256-
6257  solaris*)
6258    version_type=linux
6259    need_lib_prefix=no
6260--- 15738,15743 ----
6261***************
6262*** 16294,16314 ****
6263  echo "${ECHO_T}$dynamic_linker" >&6; }
6264  test "$dynamic_linker" = no && can_build_shared=no
6265 
6266- if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
6267-   echo $ECHO_N "(cached) $ECHO_C" >&6
6268- else
6269-   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
6270- fi
6271-
6272- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
6273- if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
6274-   echo $ECHO_N "(cached) $ECHO_C" >&6
6275- else
6276-   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
6277- fi
6278-
6279- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
6280-
6281  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6282  if test "$GCC" = yes; then
6283    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6284--- 15834,15839 ----
6285***************
6286*** 16392,16398 ****
6287      predeps_F77 \
6288      postdeps_F77 \
6289      compiler_lib_search_path_F77 \
6290-     compiler_lib_search_dirs_F77 \
6291      archive_cmds_F77 \
6292      archive_expsym_cmds_F77 \
6293      postinstall_cmds_F77 \
6294--- 15917,15922 ----
6295***************
6296*** 16408,16414 ****
6297      module_cmds_F77 \
6298      module_expsym_cmds_F77 \
6299      lt_cv_prog_compiler_c_o_F77 \
6300-     fix_srcfile_path_F77 \
6301      exclude_expsyms_F77 \
6302      include_expsyms_F77; do
6303 
6304--- 15932,15937 ----
6305***************
6306*** 16641,16650 ****
6307  # shared library.
6308  postdeps=$lt_postdeps_F77
6309 
6310- # The directories searched by this compiler when creating a shared
6311- # library
6312- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
6313-
6314  # The library search path used internally by the compiler when linking
6315  # a shared library.
6316  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
6317--- 16164,16169 ----
6318***************
6319*** 16733,16739 ****
6320  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6321 
6322  # Fix the shell variable \$srcfile for the compiler.
6323! fix_srcfile_path=$lt_fix_srcfile_path
6324 
6325  # Set to yes if exported symbols are required.
6326  always_export_symbols=$always_export_symbols_F77
6327--- 16252,16258 ----
6328  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6329 
6330  # Fix the shell variable \$srcfile for the compiler.
6331! fix_srcfile_path="$fix_srcfile_path_F77"
6332 
6333  # Set to yes if exported symbols are required.
6334  always_export_symbols=$always_export_symbols_F77
6335***************
6336*** 16791,16800 ****
6337  objext_GCJ=$objext
6338 
6339  # Code to be used in simple compile tests
6340! lt_simple_compile_test_code="class foo {}"
6341 
6342  # Code to be used in simple link tests
6343! lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
6344 
6345  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6346 
6347--- 16310,16319 ----
6348  objext_GCJ=$objext
6349 
6350  # Code to be used in simple compile tests
6351! lt_simple_compile_test_code="class foo {}\n"
6352 
6353  # Code to be used in simple link tests
6354! lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6355 
6356  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6357 
6358***************
6359*** 16810,16825 ****
6360 
6361  # save warnings/boilerplate of simple test code
6362  ac_outfile=conftest.$ac_objext
6363! echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6364  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6365  _lt_compiler_boilerplate=`cat conftest.err`
6366  $rm conftest*
6367 
6368  ac_outfile=conftest.$ac_objext
6369! echo "$lt_simple_link_test_code" >conftest.$ac_ext
6370  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6371  _lt_linker_boilerplate=`cat conftest.err`
6372! $rm -r conftest*
6373 
6374 
6375  # Allow CC to be a program name with arguments.
6376--- 16329,16344 ----
6377 
6378  # save warnings/boilerplate of simple test code
6379  ac_outfile=conftest.$ac_objext
6380! printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6381  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6382  _lt_compiler_boilerplate=`cat conftest.err`
6383  $rm conftest*
6384 
6385  ac_outfile=conftest.$ac_objext
6386! printf "$lt_simple_link_test_code" >conftest.$ac_ext
6387  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6388  _lt_linker_boilerplate=`cat conftest.err`
6389! $rm conftest*
6390 
6391 
6392  # Allow CC to be a program name with arguments.
6393***************
6394*** 16857,16863 ****
6395  else
6396    lt_cv_prog_compiler_rtti_exceptions=no
6397    ac_outfile=conftest.$ac_objext
6398!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6399     lt_compiler_flag="-fno-rtti -fno-exceptions"
6400     # Insert the option either (1) after the last *FLAGS variable, or
6401     # (2) before a word containing "conftest.", or (3) at the end.
6402--- 16376,16382 ----
6403  else
6404    lt_cv_prog_compiler_rtti_exceptions=no
6405    ac_outfile=conftest.$ac_objext
6406!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6407     lt_compiler_flag="-fno-rtti -fno-exceptions"
6408     # Insert the option either (1) after the last *FLAGS variable, or
6409     # (2) before a word containing "conftest.", or (3) at the end.
6410***************
6411*** 16868,16878 ****
6412     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6413     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6414     -e 's:$: $lt_compiler_flag:'`
6415!    (eval echo "\"\$as_me:16871: $lt_compile\"" >&5)
6416     (eval "$lt_compile" 2>conftest.err)
6417     ac_status=$?
6418     cat conftest.err >&5
6419!    echo "$as_me:16875: \$? = $ac_status" >&5
6420     if (exit $ac_status) && test -s "$ac_outfile"; then
6421       # The compiler can only warn and ignore the option if not recognized
6422       # So say no if there are warnings other than the usual output.
6423--- 16387,16397 ----
6424     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6425     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6426     -e 's:$: $lt_compiler_flag:'`
6427!    (eval echo "\"\$as_me:16390: $lt_compile\"" >&5)
6428     (eval "$lt_compile" 2>conftest.err)
6429     ac_status=$?
6430     cat conftest.err >&5
6431!    echo "$as_me:16394: \$? = $ac_status" >&5
6432     if (exit $ac_status) && test -s "$ac_outfile"; then
6433       # The compiler can only warn and ignore the option if not recognized
6434       # So say no if there are warnings other than the usual output.
6435***************
6436*** 16923,16938 ****
6437        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
6438        ;;
6439 
6440!     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6441        # PIC is the default for these OSes.
6442        ;;
6443 
6444!     mingw* | cygwin* | pw32* | os2*)
6445        # This hack is so that the source file can tell whether it is being
6446        # built for inclusion in a dll (and should export symbols for example).
6447!       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6448!       # (--disable-auto-import) libraries
6449!
6450        ;;
6451 
6452      darwin* | rhapsody*)
6453--- 16442,16455 ----
6454        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
6455        ;;
6456 
6457!     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6458        # PIC is the default for these OSes.
6459        ;;
6460 
6461!     mingw* | pw32* | os2*)
6462        # This hack is so that the source file can tell whether it is being
6463        # built for inclusion in a dll (and should export symbols for example).
6464!       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
6465        ;;
6466 
6467      darwin* | rhapsody*)
6468***************
6469*** 16941,16947 ****
6470        lt_prog_compiler_pic_GCJ='-fno-common'
6471        ;;
6472 
6473!     interix[3-9]*)
6474        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6475        # Instead, we relocate shared libraries at runtime.
6476        ;;
6477--- 16458,16464 ----
6478        lt_prog_compiler_pic_GCJ='-fno-common'
6479        ;;
6480 
6481!     interix3*)
6482        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6483        # Instead, we relocate shared libraries at runtime.
6484        ;;
6485***************
6486*** 16999,17008 ****
6487         esac
6488         ;;
6489 
6490!     mingw* | cygwin* | pw32* | os2*)
6491        # This hack is so that the source file can tell whether it is being
6492        # built for inclusion in a dll (and should export symbols for example).
6493!
6494        ;;
6495 
6496      hpux9* | hpux10* | hpux11*)
6497--- 16516,16525 ----
6498         esac
6499         ;;
6500 
6501!     mingw* | pw32* | os2*)
6502        # This hack is so that the source file can tell whether it is being
6503        # built for inclusion in a dll (and should export symbols for example).
6504!       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
6505        ;;
6506 
6507      hpux9* | hpux10* | hpux11*)
6508***************
6509*** 17032,17038 ****
6510        lt_prog_compiler_static_GCJ='-Bstatic'
6511        ;;
6512 
6513!     linux* | k*bsd*-gnu)
6514        case $cc_basename in
6515        icc* | ecc*)
6516        lt_prog_compiler_wl_GCJ='-Wl,'
6517--- 16549,16555 ----
6518        lt_prog_compiler_static_GCJ='-Bstatic'
6519        ;;
6520 
6521!     linux*)
6522        case $cc_basename in
6523        icc* | ecc*)
6524        lt_prog_compiler_wl_GCJ='-Wl,'
6525***************
6526*** 17051,17072 ****
6527          # All Alpha code is PIC.
6528          lt_prog_compiler_static_GCJ='-non_shared'
6529          ;;
6530-       *)
6531-         case `$CC -V 2>&1 | sed 5q` in
6532-       *Sun\ C*)
6533-         # Sun C 5.9
6534-         lt_prog_compiler_pic_GCJ='-KPIC'
6535-         lt_prog_compiler_static_GCJ='-Bstatic'
6536-         lt_prog_compiler_wl_GCJ='-Wl,'
6537-         ;;
6538-       *Sun\ F*)
6539-         # Sun Fortran 8.3 passes all unrecognized flags to the linker
6540-         lt_prog_compiler_pic_GCJ='-KPIC'
6541-         lt_prog_compiler_static_GCJ='-Bstatic'
6542-         lt_prog_compiler_wl_GCJ=''
6543-         ;;
6544-       esac
6545-       ;;
6546        esac
6547        ;;
6548 
6549--- 16568,16573 ----
6550***************
6551*** 17076,17085 ****
6552        lt_prog_compiler_static_GCJ='-non_shared'
6553        ;;
6554 
6555-     rdos*)
6556-       lt_prog_compiler_static_GCJ='-non_shared'
6557-       ;;
6558-
6559      solaris*)
6560        lt_prog_compiler_pic_GCJ='-KPIC'
6561        lt_prog_compiler_static_GCJ='-Bstatic'
6562--- 16577,16582 ----
6563***************
6564*** 17142,17153 ****
6565 
6566  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
6567  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
6568! if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
6569    echo $ECHO_N "(cached) $ECHO_C" >&6
6570  else
6571!   lt_cv_prog_compiler_pic_works_GCJ=no
6572    ac_outfile=conftest.$ac_objext
6573!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6574     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
6575     # Insert the option either (1) after the last *FLAGS variable, or
6576     # (2) before a word containing "conftest.", or (3) at the end.
6577--- 16639,16650 ----
6578 
6579  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
6580  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
6581! if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
6582    echo $ECHO_N "(cached) $ECHO_C" >&6
6583  else
6584!   lt_prog_compiler_pic_works_GCJ=no
6585    ac_outfile=conftest.$ac_objext
6586!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6587     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
6588     # Insert the option either (1) after the last *FLAGS variable, or
6589     # (2) before a word containing "conftest.", or (3) at the end.
6590***************
6591*** 17158,17184 ****
6592     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6593     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6594     -e 's:$: $lt_compiler_flag:'`
6595!    (eval echo "\"\$as_me:17161: $lt_compile\"" >&5)
6596     (eval "$lt_compile" 2>conftest.err)
6597     ac_status=$?
6598     cat conftest.err >&5
6599!    echo "$as_me:17165: \$? = $ac_status" >&5
6600     if (exit $ac_status) && test -s "$ac_outfile"; then
6601       # The compiler can only warn and ignore the option if not recognized
6602       # So say no if there are warnings other than the usual output.
6603       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6604       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6605       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6606!        lt_cv_prog_compiler_pic_works_GCJ=yes
6607       fi
6608     fi
6609     $rm conftest*
6610 
6611  fi
6612! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
6613! echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
6614 
6615! if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
6616      case $lt_prog_compiler_pic_GCJ in
6617       "" | " "*) ;;
6618       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
6619--- 16655,16681 ----
6620     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6621     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6622     -e 's:$: $lt_compiler_flag:'`
6623!    (eval echo "\"\$as_me:16658: $lt_compile\"" >&5)
6624     (eval "$lt_compile" 2>conftest.err)
6625     ac_status=$?
6626     cat conftest.err >&5
6627!    echo "$as_me:16662: \$? = $ac_status" >&5
6628     if (exit $ac_status) && test -s "$ac_outfile"; then
6629       # The compiler can only warn and ignore the option if not recognized
6630       # So say no if there are warnings other than the usual output.
6631       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6632       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6633       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6634!        lt_prog_compiler_pic_works_GCJ=yes
6635       fi
6636     fi
6637     $rm conftest*
6638 
6639  fi
6640! { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
6641! echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
6642 
6643! if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
6644      case $lt_prog_compiler_pic_GCJ in
6645       "" | " "*) ;;
6646       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
6647***************
6648*** 17205,17217 ****
6649  wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
6650  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6651  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6652! if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
6653    echo $ECHO_N "(cached) $ECHO_C" >&6
6654  else
6655!   lt_cv_prog_compiler_static_works_GCJ=no
6656     save_LDFLAGS="$LDFLAGS"
6657     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6658!    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6659     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6660       # The linker can only warn and ignore the option if not recognized
6661       # So say no if there are warnings
6662--- 16702,16714 ----
6663  wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
6664  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6665  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6666! if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
6667    echo $ECHO_N "(cached) $ECHO_C" >&6
6668  else
6669!   lt_prog_compiler_static_works_GCJ=no
6670     save_LDFLAGS="$LDFLAGS"
6671     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6672!    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6673     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6674       # The linker can only warn and ignore the option if not recognized
6675       # So say no if there are warnings
6676***************
6677*** 17221,17240 ****
6678         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6679         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6680         if diff conftest.exp conftest.er2 >/dev/null; then
6681!          lt_cv_prog_compiler_static_works_GCJ=yes
6682         fi
6683       else
6684!        lt_cv_prog_compiler_static_works_GCJ=yes
6685       fi
6686     fi
6687!    $rm -r conftest*
6688     LDFLAGS="$save_LDFLAGS"
6689 
6690  fi
6691! { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
6692! echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
6693 
6694! if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
6695      :
6696  else
6697      lt_prog_compiler_static_GCJ=
6698--- 16718,16737 ----
6699         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6700         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6701         if diff conftest.exp conftest.er2 >/dev/null; then
6702!          lt_prog_compiler_static_works_GCJ=yes
6703         fi
6704       else
6705!        lt_prog_compiler_static_works_GCJ=yes
6706       fi
6707     fi
6708!    $rm conftest*
6709     LDFLAGS="$save_LDFLAGS"
6710 
6711  fi
6712! { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
6713! echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
6714 
6715! if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
6716      :
6717  else
6718      lt_prog_compiler_static_GCJ=
6719***************
6720*** 17251,17257 ****
6721     mkdir conftest
6722     cd conftest
6723     mkdir out
6724!    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6725 
6726     lt_compiler_flag="-o out/conftest2.$ac_objext"
6727     # Insert the option either (1) after the last *FLAGS variable, or
6728--- 16748,16754 ----
6729     mkdir conftest
6730     cd conftest
6731     mkdir out
6732!    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6733 
6734     lt_compiler_flag="-o out/conftest2.$ac_objext"
6735     # Insert the option either (1) after the last *FLAGS variable, or
6736***************
6737*** 17262,17272 ****
6738     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6739     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6740     -e 's:$: $lt_compiler_flag:'`
6741!    (eval echo "\"\$as_me:17265: $lt_compile\"" >&5)
6742     (eval "$lt_compile" 2>out/conftest.err)
6743     ac_status=$?
6744     cat out/conftest.err >&5
6745!    echo "$as_me:17269: \$? = $ac_status" >&5
6746     if (exit $ac_status) && test -s out/conftest2.$ac_objext
6747     then
6748       # The compiler can only warn and ignore the option if not recognized
6749--- 16759,16769 ----
6750     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6751     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6752     -e 's:$: $lt_compiler_flag:'`
6753!    (eval echo "\"\$as_me:16762: $lt_compile\"" >&5)
6754     (eval "$lt_compile" 2>out/conftest.err)
6755     ac_status=$?
6756     cat out/conftest.err >&5
6757!    echo "$as_me:16766: \$? = $ac_status" >&5
6758     if (exit $ac_status) && test -s out/conftest2.$ac_objext
6759     then
6760       # The compiler can only warn and ignore the option if not recognized
6761***************
6762*** 17346,17358 ****
6763    # it will be wrapped by ` (' and `)$', so one must not match beginning or
6764    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6765    # as well as any symbol that contains `d'.
6766!   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6767    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6768    # platforms (ab)use it in PIC code, but their linkers get confused if
6769    # the symbol is explicitly referenced.  Since portable code cannot
6770    # rely on this symbol name, it's probably fine to never include it in
6771    # preloaded symbol tables.
6772-   # Exclude shared library initialization/finalization symbols.
6773    extract_expsyms_cmds=
6774    # Just being paranoid about ensuring that cc_basename is set.
6775    for cc_temp in $compiler""; do
6776--- 16843,16854 ----
6777    # it will be wrapped by ` (' and `)$', so one must not match beginning or
6778    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6779    # as well as any symbol that contains `d'.
6780!   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
6781    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6782    # platforms (ab)use it in PIC code, but their linkers get confused if
6783    # the symbol is explicitly referenced.  Since portable code cannot
6784    # rely on this symbol name, it's probably fine to never include it in
6785    # preloaded symbol tables.
6786    extract_expsyms_cmds=
6787    # Just being paranoid about ensuring that cc_basename is set.
6788    for cc_temp in $compiler""; do
6789***************
6790*** 17411,17417 ****
6791 
6792      # See if GNU ld supports shared libraries.
6793      case $host_os in
6794!     aix[3-9]*)
6795        # On AIX/PPC, the GNU linker is very broken
6796        if test "$host_cpu" != ia64; then
6797        ld_shlibs_GCJ=no
6798--- 16907,16913 ----
6799 
6800      # See if GNU ld supports shared libraries.
6801      case $host_os in
6802!     aix3* | aix4* | aix5*)
6803        # On AIX/PPC, the GNU linker is very broken
6804        if test "$host_cpu" != ia64; then
6805        ld_shlibs_GCJ=no
6806***************
6807*** 17459,17465 ****
6808        allow_undefined_flag_GCJ=unsupported
6809        always_export_symbols_GCJ=no
6810        enable_shared_with_static_runtimes_GCJ=yes
6811!       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6812 
6813        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6814          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6815--- 16955,16961 ----
6816        allow_undefined_flag_GCJ=unsupported
6817        always_export_symbols_GCJ=no
6818        enable_shared_with_static_runtimes_GCJ=yes
6819!       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6820 
6821        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6822          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6823***************
6824*** 17477,17483 ****
6825        fi
6826        ;;
6827 
6828!     interix[3-9]*)
6829        hardcode_direct_GCJ=no
6830        hardcode_shlibpath_var_GCJ=no
6831        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
6832--- 16973,16979 ----
6833        fi
6834        ;;
6835 
6836!     interix3*)
6837        hardcode_direct_GCJ=no
6838        hardcode_shlibpath_var_GCJ=no
6839        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
6840***************
6841*** 17492,17498 ****
6842        archive_expsym_cmds_GCJ='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'
6843        ;;
6844 
6845!     gnu* | linux* | k*bsd*-gnu)
6846        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847        tmp_addflag=
6848        case $cc_basename,$host_cpu in
6849--- 16988,16994 ----
6850        archive_expsym_cmds_GCJ='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'
6851        ;;
6852 
6853!     linux*)
6854        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6855        tmp_addflag=
6856        case $cc_basename,$host_cpu in
6857***************
6858*** 17510,17539 ****
6859        ifc* | ifort*)                  # Intel Fortran compiler
6860          tmp_addflag=' -nofor_main' ;;
6861        esac
6862!       case `$CC -V 2>&1 | sed 5q` in
6863!       *Sun\ C*)                       # Sun C 5.9
6864!         whole_archive_flag_spec_GCJ='${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'
6865!         tmp_sharedflag='-G' ;;
6866!       *Sun\ F*)                       # Sun Fortran 8.3
6867!         tmp_sharedflag='-G' ;;
6868!       *)
6869!         tmp_sharedflag='-shared' ;;
6870!       esac
6871!       archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6872 
6873        if test $supports_anon_versioning = yes; then
6874          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
6875    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6876    $echo "local: *; };" >> $output_objdir/$libname.ver~
6877!         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6878        fi
6879-       link_all_deplibs_GCJ=no
6880        else
6881        ld_shlibs_GCJ=no
6882        fi
6883        ;;
6884 
6885!     netbsd* | netbsdelf*-gnu)
6886        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6887        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6888        wlarc=
6889--- 17006,17025 ----
6890        ifc* | ifort*)                  # Intel Fortran compiler
6891          tmp_addflag=' -nofor_main' ;;
6892        esac
6893!       archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6894 
6895        if test $supports_anon_versioning = yes; then
6896          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
6897    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6898    $echo "local: *; };" >> $output_objdir/$libname.ver~
6899!         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6900        fi
6901        else
6902        ld_shlibs_GCJ=no
6903        fi
6904        ;;
6905 
6906!     netbsd*)
6907        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6908        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6909        wlarc=
6910***************
6911*** 17631,17637 ****
6912        fi
6913        ;;
6914 
6915!     aix[4-9]*)
6916        if test "$host_cpu" = ia64; then
6917        # On IA64, the linker does run time linking by default, so we don't
6918        # have to do anything special.
6919--- 17117,17123 ----
6920        fi
6921        ;;
6922 
6923!     aix4* | aix5*)
6924        if test "$host_cpu" = ia64; then
6925        # On IA64, the linker does run time linking by default, so we don't
6926        # have to do anything special.
6927***************
6928*** 17651,17657 ****
6929        # Test if we are trying to use run time linking or normal
6930        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6931        # need to do runtime linking.
6932!       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6933          for ld_flag in $LDFLAGS; do
6934          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6935            aix_use_runtimelinking=yes
6936--- 17137,17143 ----
6937        # Test if we are trying to use run time linking or normal
6938        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6939        # need to do runtime linking.
6940!       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6941          for ld_flag in $LDFLAGS; do
6942          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6943            aix_use_runtimelinking=yes
6944***************
6945*** 17685,17691 ****
6946           strings "$collect2name" | grep resolve_lib_name >/dev/null
6947          then
6948          # We have reworked collect2
6949!         :
6950          else
6951          # We have old collect2
6952          hardcode_direct_GCJ=unsupported
6953--- 17171,17177 ----
6954           strings "$collect2name" | grep resolve_lib_name >/dev/null
6955          then
6956          # We have reworked collect2
6957!         hardcode_direct_GCJ=yes
6958          else
6959          # We have old collect2
6960          hardcode_direct_GCJ=unsupported
6961***************
6962*** 17759,17776 ****
6963         } && test -s conftest$ac_exeext &&
6964         $as_test_x conftest$ac_exeext; then
6965 
6966! lt_aix_libpath_sed='
6967!     /Import File Strings/,/^$/ {
6968!       /^0/ {
6969!           s/^0  *\(.*\)$/\1/
6970!           p
6971!       }
6972!     }'
6973! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6974  # Check for a 64-bit object if we didn't find anything.
6975! if test -z "$aix_libpath"; then
6976!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6977! fi
6978  else
6979    echo "$as_me: failed program was:" >&5
6980  sed 's/^/| /' conftest.$ac_ext >&5
6981--- 17245,17255 ----
6982         } && test -s conftest$ac_exeext &&
6983         $as_test_x conftest$ac_exeext; then
6984 
6985! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6986! }'`
6987  # Check for a 64-bit object if we didn't find anything.
6988! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6989! }'`; fi
6990  else
6991    echo "$as_me: failed program was:" >&5
6992  sed 's/^/| /' conftest.$ac_ext >&5
6993***************
6994*** 17825,17842 ****
6995         } && test -s conftest$ac_exeext &&
6996         $as_test_x conftest$ac_exeext; then
6997 
6998! lt_aix_libpath_sed='
6999!     /Import File Strings/,/^$/ {
7000!       /^0/ {
7001!           s/^0  *\(.*\)$/\1/
7002!           p
7003!       }
7004!     }'
7005! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7006  # Check for a 64-bit object if we didn't find anything.
7007! if test -z "$aix_libpath"; then
7008!   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7009! fi
7010  else
7011    echo "$as_me: failed program was:" >&5
7012  sed 's/^/| /' conftest.$ac_ext >&5
7013--- 17304,17314 ----
7014         } && test -s conftest$ac_exeext &&
7015         $as_test_x conftest$ac_exeext; then
7016 
7017! aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7018! }'`
7019  # Check for a 64-bit object if we didn't find anything.
7020! if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7021! }'`; fi
7022  else
7023    echo "$as_me: failed program was:" >&5
7024  sed 's/^/| /' conftest.$ac_ext >&5
7025***************
7026*** 17890,17896 ****
7027        # The linker will automatically build a .lib file if we build a DLL.
7028        old_archive_From_new_cmds_GCJ='true'
7029        # FIXME: Should let the user specify the lib program.
7030!       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
7031        fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
7032        enable_shared_with_static_runtimes_GCJ=yes
7033        ;;
7034--- 17362,17368 ----
7035        # The linker will automatically build a .lib file if we build a DLL.
7036        old_archive_From_new_cmds_GCJ='true'
7037        # FIXME: Should let the user specify the lib program.
7038!       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
7039        fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
7040        enable_shared_with_static_runtimes_GCJ=yes
7041        ;;
7042***************
7043*** 17923,17940 ****
7044        link_all_deplibs_GCJ=yes
7045      if test "$GCC" = yes ; then
7046        output_verbose_link_cmd='echo'
7047!         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7048!         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7049!         archive_expsym_cmds_GCJ="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}"
7050!         module_expsym_cmds_GCJ="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}"
7051      else
7052        case $cc_basename in
7053          xlc*)
7054           output_verbose_link_cmd='echo'
7055!          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7056           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7057            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7058!          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7059            module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060            ;;
7061         *)
7062--- 17395,17413 ----
7063        link_all_deplibs_GCJ=yes
7064      if test "$GCC" = yes ; then
7065        output_verbose_link_cmd='echo'
7066!         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7067!       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7068!       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7069!       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7070!       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7071      else
7072        case $cc_basename in
7073          xlc*)
7074           output_verbose_link_cmd='echo'
7075!          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7076           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7077            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7078!          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7079            module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7080            ;;
7081         *)
7082***************
7083*** 17974,17980 ****
7084        ;;
7085 
7086      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7087!     freebsd* | dragonfly*)
7088        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7089        hardcode_libdir_flag_spec_GCJ='-R$libdir'
7090        hardcode_direct_GCJ=yes
7091--- 17447,17453 ----
7092        ;;
7093 
7094      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7095!     freebsd* | kfreebsd*-gnu | dragonfly*)
7096        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7097        hardcode_libdir_flag_spec_GCJ='-R$libdir'
7098        hardcode_direct_GCJ=yes
7099***************
7100*** 18076,18082 ****
7101        link_all_deplibs_GCJ=yes
7102        ;;
7103 
7104!     netbsd* | netbsdelf*-gnu)
7105        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7106        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7107        else
7108--- 17549,17555 ----
7109        link_all_deplibs_GCJ=yes
7110        ;;
7111 
7112!     netbsd*)
7113        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7114        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7115        else
7116***************
7117*** 18096,18123 ****
7118        ;;
7119 
7120      openbsd*)
7121!       if test -f /usr/libexec/ld.so; then
7122!       hardcode_direct_GCJ=yes
7123!       hardcode_shlibpath_var_GCJ=no
7124!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7125!         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7126!         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7127!         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
7128!         export_dynamic_flag_spec_GCJ='${wl}-E'
7129!       else
7130!         case $host_os in
7131!          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7132!            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7133!            hardcode_libdir_flag_spec_GCJ='-R$libdir'
7134!            ;;
7135!          *)
7136!            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137!            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
7138!            ;;
7139!         esac
7140!         fi
7141        else
7142!       ld_shlibs_GCJ=no
7143        fi
7144        ;;
7145 
7146--- 17569,17592 ----
7147        ;;
7148 
7149      openbsd*)
7150!       hardcode_direct_GCJ=yes
7151!       hardcode_shlibpath_var_GCJ=no
7152!       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7153!       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7154!       archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7155!       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
7156!       export_dynamic_flag_spec_GCJ='${wl}-E'
7157        else
7158!        case $host_os in
7159!        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7160!          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7161!          hardcode_libdir_flag_spec_GCJ='-R$libdir'
7162!          ;;
7163!        *)
7164!          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7165!          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
7166!          ;;
7167!        esac
7168        fi
7169        ;;
7170 
7171***************
7172*** 18176,18191 ****
7173        case $host_os in
7174        solaris2.[0-5] | solaris2.[0-5].*) ;;
7175        *)
7176!       # The compiler driver will combine and reorder linker options,
7177!       # but understands `-z linker_flag'.  GCC discards it without `$wl',
7178!       # but is careful enough not to reorder.
7179        # Supported since Solaris 2.6 (maybe 2.5.1?)
7180!       if test "$GCC" = yes; then
7181!         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7182!       else
7183!         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
7184!       fi
7185!       ;;
7186        esac
7187        link_all_deplibs_GCJ=yes
7188        ;;
7189--- 17645,17661 ----
7190        case $host_os in
7191        solaris2.[0-5] | solaris2.[0-5].*) ;;
7192        *)
7193!       # The compiler driver will combine linker options so we
7194!       # cannot just pass the convience library names through
7195!       # without $wl, iff we do not link with $LD.
7196!       # Luckily, gcc supports the same syntax we need for Sun Studio.
7197        # Supported since Solaris 2.6 (maybe 2.5.1?)
7198!       case $wlarc in
7199!       '')
7200!         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
7201!       *)
7202!         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7203!       esac ;;
7204        esac
7205        link_all_deplibs_GCJ=yes
7206        ;;
7207***************
7208*** 18242,18248 ****
7209        fi
7210        ;;
7211 
7212!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7213        no_undefined_flag_GCJ='${wl}-z,text'
7214        archive_cmds_need_lc_GCJ=no
7215        hardcode_shlibpath_var_GCJ=no
7216--- 17712,17718 ----
7217        fi
7218        ;;
7219 
7220!     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7221        no_undefined_flag_GCJ='${wl}-z,text'
7222        archive_cmds_need_lc_GCJ=no
7223        hardcode_shlibpath_var_GCJ=no
7224***************
7225*** 18319,18325 ****
7226        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7227  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7228        $rm conftest*
7229!       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7230 
7231        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232    (eval $ac_compile) 2>&5
7233--- 17789,17795 ----
7234        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7235  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7236        $rm conftest*
7237!       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7238 
7239        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240    (eval $ac_compile) 2>&5
7241***************
7242*** 18377,18383 ****
7243  version_type=none
7244  dynamic_linker="$host_os ld.so"
7245  sys_lib_dlsearch_path_spec="/lib /usr/lib"
7246!
7247  need_lib_prefix=unknown
7248  hardcode_into_libs=no
7249 
7250--- 17847,17866 ----
7251  version_type=none
7252  dynamic_linker="$host_os ld.so"
7253  sys_lib_dlsearch_path_spec="/lib /usr/lib"
7254! if test "$GCC" = yes; then
7255!   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7256!   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7257!     # if the path contains ";" then we assume it to be the separator
7258!     # otherwise default to the standard path separator (i.e. ":") - it is
7259!     # assumed that no part of a normal pathname contains ";" but that should
7260!     # okay in the real world where ";" in dirpaths is itself problematic.
7261!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7262!   else
7263!     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7264!   fi
7265! else
7266!   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7267! fi
7268  need_lib_prefix=unknown
7269  hardcode_into_libs=no
7270 
7271***************
7272*** 18395,18401 ****
7273    soname_spec='${libname}${release}${shared_ext}$major'
7274    ;;
7275 
7276! aix[4-9]*)
7277    version_type=linux
7278    need_lib_prefix=no
7279    need_version=no
7280--- 17878,17884 ----
7281    soname_spec='${libname}${release}${shared_ext}$major'
7282    ;;
7283 
7284! aix4* | aix5*)
7285    version_type=linux
7286    need_lib_prefix=no
7287    need_version=no
7288***************
7289*** 18534,18540 ****
7290    shlibpath_overrides_runpath=yes
7291    shlibpath_var=DYLD_LIBRARY_PATH
7292    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7293!
7294    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7295    ;;
7296 
7297--- 18017,18028 ----
7298    shlibpath_overrides_runpath=yes
7299    shlibpath_var=DYLD_LIBRARY_PATH
7300    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7301!   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7302!   if test "$GCC" = yes; then
7303!     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7304!   else
7305!     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7306!   fi
7307    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7308    ;;
7309 
7310***************
7311*** 18551,18556 ****
7312--- 18039,18056 ----
7313    dynamic_linker=no
7314    ;;
7315 
7316+ kfreebsd*-gnu)
7317+   version_type=linux
7318+   need_lib_prefix=no
7319+   need_version=no
7320+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7321+   soname_spec='${libname}${release}${shared_ext}$major'
7322+   shlibpath_var=LD_LIBRARY_PATH
7323+   shlibpath_overrides_runpath=no
7324+   hardcode_into_libs=yes
7325+   dynamic_linker='GNU ld.so'
7326+   ;;
7327+
7328  freebsd* | dragonfly*)
7329    # DragonFly does not have aout.  When/if they implement a new
7330    # versioning mechanism, adjust this.
7331***************
7332*** 18588,18594 ****
7333      shlibpath_overrides_runpath=no
7334      hardcode_into_libs=yes
7335      ;;
7336!   *) # from 4.6 on, and DragonFly
7337      shlibpath_overrides_runpath=yes
7338      hardcode_into_libs=yes
7339      ;;
7340--- 18088,18094 ----
7341      shlibpath_overrides_runpath=no
7342      hardcode_into_libs=yes
7343      ;;
7344!   freebsd*) # from 4.6 on
7345      shlibpath_overrides_runpath=yes
7346      hardcode_into_libs=yes
7347      ;;
7348***************
7349*** 18651,18657 ****
7350    postinstall_cmds='chmod 555 $lib'
7351    ;;
7352 
7353! interix[3-9]*)
7354    version_type=linux
7355    need_lib_prefix=no
7356    need_version=no
7357--- 18151,18157 ----
7358    postinstall_cmds='chmod 555 $lib'
7359    ;;
7360 
7361! interix3*)
7362    version_type=linux
7363    need_lib_prefix=no
7364    need_version=no
7365***************
7366*** 18706,18712 ****
7367    ;;
7368 
7369  # This must be Linux ELF.
7370! linux* | k*bsd*-gnu)
7371    version_type=linux
7372    need_lib_prefix=no
7373    need_version=no
7374--- 18206,18212 ----
7375    ;;
7376 
7377  # This must be Linux ELF.
7378! linux*)
7379    version_type=linux
7380    need_lib_prefix=no
7381    need_version=no
7382***************
7383*** 18720,18729 ****
7384    # before this can be enabled.
7385    hardcode_into_libs=yes
7386 
7387    # Append ld.so.conf contents to the search path
7388    if test -f /etc/ld.so.conf; then
7389!     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' ' '`
7390!     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7391    fi
7392 
7393    # We used to test for /lib/ld.so.1 and disable shared libraries on
7394--- 18220,18250 ----
7395    # before this can be enabled.
7396    hardcode_into_libs=yes
7397 
7398+   # find out which ABI we are using
7399+   libsuff=
7400+   case "$host_cpu" in
7401+   x86_64*|s390x*|powerpc64*)
7402+     echo '#line 18227 "configure"' > conftest.$ac_ext
7403+     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404+   (eval $ac_compile) 2>&5
7405+   ac_status=$?
7406+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407+   (exit $ac_status); }; then
7408+       case `/usr/bin/file conftest.$ac_objext` in
7409+       *64-bit*)
7410+         libsuff=64
7411+         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7412+         ;;
7413+       esac
7414+     fi
7415+     rm -rf conftest*
7416+     ;;
7417+   esac
7418+
7419    # Append ld.so.conf contents to the search path
7420    if test -f /etc/ld.so.conf; then
7421!     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/^     *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7422!     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7423    fi
7424 
7425    # We used to test for /lib/ld.so.1 and disable shared libraries on
7426***************
7427*** 18735,18741 ****
7428    dynamic_linker='GNU/Linux ld.so'
7429    ;;
7430 
7431! netbsdelf*-gnu)
7432    version_type=linux
7433    need_lib_prefix=no
7434    need_version=no
7435--- 18256,18262 ----
7436    dynamic_linker='GNU/Linux ld.so'
7437    ;;
7438 
7439! knetbsd*-gnu)
7440    version_type=linux
7441    need_lib_prefix=no
7442    need_version=no
7443***************
7444*** 18744,18750 ****
7445    shlibpath_var=LD_LIBRARY_PATH
7446    shlibpath_overrides_runpath=no
7447    hardcode_into_libs=yes
7448!   dynamic_linker='NetBSD ld.elf_so'
7449    ;;
7450 
7451  netbsd*)
7452--- 18265,18271 ----
7453    shlibpath_var=LD_LIBRARY_PATH
7454    shlibpath_overrides_runpath=no
7455    hardcode_into_libs=yes
7456!   dynamic_linker='GNU ld.so'
7457    ;;
7458 
7459  netbsd*)
7460***************
7461*** 18828,18837 ****
7462    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7463    ;;
7464 
7465- rdos*)
7466-   dynamic_linker=no
7467-   ;;
7468-
7469  solaris*)
7470    version_type=linux
7471    need_lib_prefix=no
7472--- 18349,18354 ----
7473***************
7474*** 18928,18948 ****
7475  echo "${ECHO_T}$dynamic_linker" >&6; }
7476  test "$dynamic_linker" = no && can_build_shared=no
7477 
7478- if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
7479-   echo $ECHO_N "(cached) $ECHO_C" >&6
7480- else
7481-   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
7482- fi
7483-
7484- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
7485- if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
7486-   echo $ECHO_N "(cached) $ECHO_C" >&6
7487- else
7488-   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
7489- fi
7490-
7491- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
7492-
7493  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7494  if test "$GCC" = yes; then
7495    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7496--- 18445,18450 ----
7497***************
7498*** 19026,19032 ****
7499      predeps_GCJ \
7500      postdeps_GCJ \
7501      compiler_lib_search_path_GCJ \
7502-     compiler_lib_search_dirs_GCJ \
7503      archive_cmds_GCJ \
7504      archive_expsym_cmds_GCJ \
7505      postinstall_cmds_GCJ \
7506--- 18528,18533 ----
7507***************
7508*** 19042,19048 ****
7509      module_cmds_GCJ \
7510      module_expsym_cmds_GCJ \
7511      lt_cv_prog_compiler_c_o_GCJ \
7512-     fix_srcfile_path_GCJ \
7513      exclude_expsyms_GCJ \
7514      include_expsyms_GCJ; do
7515 
7516--- 18543,18548 ----
7517***************
7518*** 19275,19284 ****
7519  # shared library.
7520  postdeps=$lt_postdeps_GCJ
7521 
7522- # The directories searched by this compiler when creating a shared
7523- # library
7524- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
7525-
7526  # The library search path used internally by the compiler when linking
7527  # a shared library.
7528  compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
7529--- 18775,18780 ----
7530***************
7531*** 19367,19373 ****
7532  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7533 
7534  # Fix the shell variable \$srcfile for the compiler.
7535! fix_srcfile_path=$lt_fix_srcfile_path
7536 
7537  # Set to yes if exported symbols are required.
7538  always_export_symbols=$always_export_symbols_GCJ
7539--- 18863,18869 ----
7540  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7541 
7542  # Fix the shell variable \$srcfile for the compiler.
7543! fix_srcfile_path="$fix_srcfile_path_GCJ"
7544 
7545  # Set to yes if exported symbols are required.
7546  always_export_symbols=$always_export_symbols_GCJ
7547***************
7548*** 19424,19430 ****
7549  objext_RC=$objext
7550 
7551  # Code to be used in simple compile tests
7552! lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7553 
7554  # Code to be used in simple link tests
7555  lt_simple_link_test_code="$lt_simple_compile_test_code"
7556--- 18920,18926 ----
7557  objext_RC=$objext
7558 
7559  # Code to be used in simple compile tests
7560! lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7561 
7562  # Code to be used in simple link tests
7563  lt_simple_link_test_code="$lt_simple_compile_test_code"
7564***************
7565*** 19443,19458 ****
7566 
7567  # save warnings/boilerplate of simple test code
7568  ac_outfile=conftest.$ac_objext
7569! echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7570  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7571  _lt_compiler_boilerplate=`cat conftest.err`
7572  $rm conftest*
7573 
7574  ac_outfile=conftest.$ac_objext
7575! echo "$lt_simple_link_test_code" >conftest.$ac_ext
7576  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7577  _lt_linker_boilerplate=`cat conftest.err`
7578! $rm -r conftest*
7579 
7580 
7581  # Allow CC to be a program name with arguments.
7582--- 18939,18954 ----
7583 
7584  # save warnings/boilerplate of simple test code
7585  ac_outfile=conftest.$ac_objext
7586! printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7587  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588  _lt_compiler_boilerplate=`cat conftest.err`
7589  $rm conftest*
7590 
7591  ac_outfile=conftest.$ac_objext
7592! printf "$lt_simple_link_test_code" >conftest.$ac_ext
7593  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594  _lt_linker_boilerplate=`cat conftest.err`
7595! $rm conftest*
7596 
7597 
7598  # Allow CC to be a program name with arguments.
7599***************
7600*** 19512,19518 ****
7601      predeps_RC \
7602      postdeps_RC \
7603      compiler_lib_search_path_RC \
7604-     compiler_lib_search_dirs_RC \
7605      archive_cmds_RC \
7606      archive_expsym_cmds_RC \
7607      postinstall_cmds_RC \
7608--- 19008,19013 ----
7609***************
7610*** 19528,19534 ****
7611      module_cmds_RC \
7612      module_expsym_cmds_RC \
7613      lt_cv_prog_compiler_c_o_RC \
7614-     fix_srcfile_path_RC \
7615      exclude_expsyms_RC \
7616      include_expsyms_RC; do
7617 
7618--- 19023,19028 ----
7619***************
7620*** 19761,19770 ****
7621  # shared library.
7622  postdeps=$lt_postdeps_RC
7623 
7624- # The directories searched by this compiler when creating a shared
7625- # library
7626- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
7627-
7628  # The library search path used internally by the compiler when linking
7629  # a shared library.
7630  compiler_lib_search_path=$lt_compiler_lib_search_path_RC
7631--- 19255,19260 ----
7632***************
7633*** 19853,19859 ****
7634  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7635 
7636  # Fix the shell variable \$srcfile for the compiler.
7637! fix_srcfile_path=$lt_fix_srcfile_path
7638 
7639  # Set to yes if exported symbols are required.
7640  always_export_symbols=$always_export_symbols_RC
7641--- 19343,19349 ----
7642  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7643 
7644  # Fix the shell variable \$srcfile for the compiler.
7645! fix_srcfile_path="$fix_srcfile_path_RC"
7646 
7647  # Set to yes if exported symbols are required.
7648  always_export_symbols=$always_export_symbols_RC
7649***************
7650*** 21724,21735 ****
7651  ECHO!$ECHO$ac_delim
7652  AR!$AR$ac_delim
7653  RANLIB!$RANLIB$ac_delim
7654- DSYMUTIL!$DSYMUTIL$ac_delim
7655- NMEDIT!$NMEDIT$ac_delim
7656  CXX!$CXX$ac_delim
7657  CXXFLAGS!$CXXFLAGS$ac_delim
7658  ac_ct_CXX!$ac_ct_CXX$ac_delim
7659  CXXDEPMODE!$CXXDEPMODE$ac_delim
7660  _ACEOF
7661 
7662    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7663--- 21214,21225 ----
7664  ECHO!$ECHO$ac_delim
7665  AR!$AR$ac_delim
7666  RANLIB!$RANLIB$ac_delim
7667  CXX!$CXX$ac_delim
7668  CXXFLAGS!$CXXFLAGS$ac_delim
7669  ac_ct_CXX!$ac_ct_CXX$ac_delim
7670  CXXDEPMODE!$CXXDEPMODE$ac_delim
7671+ am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7672+ am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7673  _ACEOF
7674 
7675    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7676***************
7677*** 21771,21778 ****
7678  ac_delim='%!_!# '
7679  for ac_last_try in false false false false false :; do
7680    cat >conf$$subs.sed <<_ACEOF
7681- am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7682- am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7683  CXXCPP!$CXXCPP$ac_delim
7684  F77!$F77$ac_delim
7685  FFLAGS!$FFLAGS$ac_delim
7686--- 21261,21266 ----
7687***************
7688*** 21789,21795 ****
7689  LTLIBOBJS!$LTLIBOBJS$ac_delim
7690  _ACEOF
7691 
7692!   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
7693      break
7694    elif $ac_last_try; then
7695      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7696--- 21277,21283 ----
7697  LTLIBOBJS!$LTLIBOBJS$ac_delim
7698  _ACEOF
7699 
7700!   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
7701      break
7702    elif $ac_last_try; then
7703      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7704***************
7705*** 22190,22211 ****
7706    fi
7707    rm -f "$tmp/out12"
7708  # Compute $ac_file's index in $config_headers.
7709- _am_arg=$ac_file
7710  _am_stamp_count=1
7711  for _am_header in $config_headers :; do
7712    case $_am_header in
7713!     $_am_arg | $_am_arg:* )
7714        break ;;
7715      * )
7716        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7717    esac
7718  done
7719! echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7720! $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7721!        X"$_am_arg" : 'X\(//\)[^/]' \| \
7722!        X"$_am_arg" : 'X\(//\)$' \| \
7723!        X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7724! echo X"$_am_arg" |
7725      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7726            s//\1/
7727            q
7728--- 21678,21698 ----
7729    fi
7730    rm -f "$tmp/out12"
7731  # Compute $ac_file's index in $config_headers.
7732  _am_stamp_count=1
7733  for _am_header in $config_headers :; do
7734    case $_am_header in
7735!     $ac_file | $ac_file:* )
7736        break ;;
7737      * )
7738        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7739    esac
7740  done
7741! echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7742! $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7743!        X$ac_file : 'X\(//\)[^/]' \| \
7744!        X$ac_file : 'X\(//\)$' \| \
7745!        X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7746! echo X$ac_file |
7747      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7748            s//\1/
7749            q
7750***************
7751*** 22242,22248 ****
7752    # each Makefile.in and add a new line on top of each file to say so.
7753    # Grep'ing the whole file is not good either: AIX grep has a line
7754    # limit of 2048, but all sed's we know have understand at least 4000.
7755!   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7756      dirpart=`$as_dirname -- "$mf" ||
7757  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7758         X"$mf" : 'X\(//\)[^/]' \| \
7759--- 21729,21735 ----
7760    # each Makefile.in and add a new line on top of each file to say so.
7761    # Grep'ing the whole file is not good either: AIX grep has a line
7762    # limit of 2048, but all sed's we know have understand at least 4000.
7763!   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7764      dirpart=`$as_dirname -- "$mf" ||
7765  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7766         X"$mf" : 'X\(//\)[^/]' \| \
7767Only in /root/fuzz/zzuf-0.12: copying
7768Only in /root/fuzz/zzuf-0.12: cpos
7769Only in /root/fuzz/zzuf-0.12: crash_data
7770Only in /root/fuzz/zzuf-0.12: crash_report
7771Only in /root/fuzz/zzuf-0.12: cscope.out
7772Only in /root/fuzz/zzuf-0.12/doc: Makefile
7773diff -crB /root/project/zzuf-0.12/doc/Makefile.in /root/fuzz/zzuf-0.12/doc/Makefile.in
7774*** /root/project/zzuf-0.12/doc/Makefile.in     2008-06-13 16:39:30.000000000 +0530
7775--- /root/fuzz/zzuf-0.12/doc/Makefile.in        2009-02-26 22:39:06.000000000 +0530
7776***************
7777*** 1,8 ****
7778! # Makefile.in generated by automake 1.10.1 from Makefile.am.
7779  # @configure_input@
7780 
7781  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
7782! # 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7783  # This Makefile.in is free software; the Free Software Foundation
7784  # gives unlimited permission to copy and/or distribute it,
7785  # with or without modifications, as long as this notice is preserved.
7786--- 1,8 ----
7787! # Makefile.in generated by automake 1.10 from Makefile.am.
7788  # @configure_input@
7789 
7790  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
7791! # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7792  # This Makefile.in is free software; the Free Software Foundation
7793  # gives unlimited permission to copy and/or distribute it,
7794  # with or without modifications, as long as this notice is preserved.
7795***************
7796*** 71,77 ****
7797  DEPDIR = @DEPDIR@
7798  DLL_LDFLAGS = @DLL_LDFLAGS@
7799  DL_LIBS = @DL_LIBS@
7800- DSYMUTIL = @DSYMUTIL@
7801  ECHO = @ECHO@
7802  ECHO_C = @ECHO_C@
7803  ECHO_N = @ECHO_N@
7804--- 71,76 ----
7805***************
7806*** 96,102 ****
7807  MAKEINFO = @MAKEINFO@
7808  MATH_LIBS = @MATH_LIBS@
7809  MKDIR_P = @MKDIR_P@
7810- NMEDIT = @NMEDIT@
7811  OBJEXT = @OBJEXT@
7812  PACKAGE = @PACKAGE@
7813  PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
7814--- 95,100 ----
7815Only in /root/fuzz/zzuf-0.12: error
7816Only in /root/fuzz/zzuf-0.12: f1.txt
7817Only in /root/fuzz/zzuf-0.12: f2.txt
7818Only in /root/fuzz/zzuf-0.12: f3.txt
7819Only in /root/fuzz/zzuf-0.12: f4.txt
7820Only in /root/fuzz/zzuf-0.12: file1.txt
7821Only in /root/fuzz/zzuf-0.12: file1.txt~
7822Only in /root/fuzz/zzuf-0.12: file.txt
7823Only in /root/fuzz/zzuf-0.12: file.txt~
7824Only in /root/fuzz/zzuf-0.12: Hello
7825Only in /root/fuzz/zzuf-0.12: Hello.c
7826Only in /root/fuzz/zzuf-0.12: Hello.c~
7827Only in /root/fuzz/zzuf-0.12: Hello.s
7828Only in /root/fuzz/zzuf-0.12: libtool
7829Only in /root/fuzz/zzuf-0.12: libzzuf.so
7830Only in /root/fuzz/zzuf-0.12: log
7831Only in /root/fuzz/zzuf-0.12: Makefile
7832Only in /root/fuzz/zzuf-0.12: Makefile~
7833diff -crB /root/project/zzuf-0.12/Makefile.in /root/fuzz/zzuf-0.12/Makefile.in
7834*** /root/project/zzuf-0.12/Makefile.in 2008-06-13 16:39:31.000000000 +0530
7835--- /root/fuzz/zzuf-0.12/Makefile.in    2009-02-26 22:39:10.000000000 +0530
7836***************
7837*** 1,8 ****
7838! # Makefile.in generated by automake 1.10.1 from Makefile.am.
7839  # @configure_input@
7840 
7841  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
7842! # 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7843  # This Makefile.in is free software; the Free Software Foundation
7844  # gives unlimited permission to copy and/or distribute it,
7845  # with or without modifications, as long as this notice is preserved.
7846--- 1,8 ----
7847! # Makefile.in generated by automake 1.10 from Makefile.am.
7848  # @configure_input@
7849 
7850  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
7851! # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7852  # This Makefile.in is free software; the Free Software Foundation
7853  # gives unlimited permission to copy and/or distribute it,
7854  # with or without modifications, as long as this notice is preserved.
7855***************
7856*** 94,100 ****
7857  DEPDIR = @DEPDIR@
7858  DLL_LDFLAGS = @DLL_LDFLAGS@
7859  DL_LIBS = @DL_LIBS@
7860- DSYMUTIL = @DSYMUTIL@
7861  ECHO = @ECHO@
7862  ECHO_C = @ECHO_C@
7863  ECHO_N = @ECHO_N@
7864--- 94,99 ----
7865***************
7866*** 119,125 ****
7867  MAKEINFO = @MAKEINFO@
7868  MATH_LIBS = @MATH_LIBS@
7869  MKDIR_P = @MKDIR_P@
7870- NMEDIT = @NMEDIT@
7871  OBJEXT = @OBJEXT@
7872  PACKAGE = @PACKAGE@
7873  PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
7874--- 118,123 ----
7875***************
7876*** 329,336 ****
7877        unique=`for i in $$list; do \
7878            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7879          done | \
7880!         $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
7881!             END { if (nonempty) { for (i in files) print i; }; }'`; \
7882        mkid -fID $$unique
7883  tags: TAGS
7884 
7885--- 327,334 ----
7886        unique=`for i in $$list; do \
7887            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7888          done | \
7889!         $(AWK) '    { files[$$0] = 1; } \
7890!              END { for (i in files) print i; }'`; \
7891        mkid -fID $$unique
7892  tags: TAGS
7893 
7894***************
7895*** 355,362 ****
7896        unique=`for i in $$list; do \
7897            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7898          done | \
7899!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
7900!             END { if (nonempty) { for (i in files) print i; }; }'`; \
7901        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
7902          test -n "$$unique" || unique=$$empty_fix; \
7903          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
7904--- 353,360 ----
7905        unique=`for i in $$list; do \
7906            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7907          done | \
7908!         $(AWK) '    { files[$$0] = 1; } \
7909!              END { for (i in files) print i; }'`; \
7910        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
7911          test -n "$$unique" || unique=$$empty_fix; \
7912          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
7913***************
7914*** 366,377 ****
7915  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
7916                $(TAGS_FILES) $(LISP)
7917        tags=; \
7918        list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
7919        unique=`for i in $$list; do \
7920            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7921          done | \
7922!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
7923!             END { if (nonempty) { for (i in files) print i; }; }'`; \
7924        test -z "$(CTAGS_ARGS)$$tags$$unique" \
7925          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
7926             $$tags $$unique
7927--- 364,376 ----
7928  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
7929                $(TAGS_FILES) $(LISP)
7930        tags=; \
7931+       here=`pwd`; \
7932        list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
7933        unique=`for i in $$list; do \
7934            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
7935          done | \
7936!         $(AWK) '    { files[$$0] = 1; } \
7937!              END { for (i in files) print i; }'`; \
7938        test -z "$(CTAGS_ARGS)$$tags$$unique" \
7939          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
7940             $$tags $$unique
7941***************
7942*** 441,450 ****
7943        tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
7944        $(am__remove_distdir)
7945 
7946- dist-lzma: distdir
7947-       tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
7948-       $(am__remove_distdir)
7949-
7950  dist-tarZ: distdir
7951        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
7952        $(am__remove_distdir)
7953--- 440,445 ----
7954***************
7955*** 472,479 ****
7956          GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
7957        *.tar.bz2*) \
7958          bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
7959-       *.tar.lzma*) \
7960-         unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
7961        *.tar.Z*) \
7962          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
7963        *.shar.gz*) \
7964--- 467,472 ----
7965***************
7966*** 625,632 ****
7967  .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
7968        all all-am am--refresh check check-am clean clean-generic \
7969        clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
7970!       dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
7971!       distclean distclean-generic distclean-hdr distclean-libtool \
7972        distclean-tags distcleancheck distdir distuninstallcheck dvi \
7973        dvi-am html html-am info info-am install install-am \
7974        install-data install-data-am install-dvi install-dvi-am \
7975--- 618,625 ----
7976  .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
7977        all all-am am--refresh check check-am clean clean-generic \
7978        clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
7979!       dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
7980!       distclean-generic distclean-hdr distclean-libtool \
7981        distclean-tags distcleancheck distdir distuninstallcheck dvi \
7982        dvi-am html html-am info info-am install install-am \
7983        install-data install-data-am install-dvi install-dvi-am \
7984Only in /root/fuzz/zzuf-0.12: manual
7985Only in /root/fuzz/zzuf-0.12: manual~
7986Only in /root/fuzz/zzuf-0.12: mypgm
7987Only in /root/fuzz/zzuf-0.12: mypgm1
7988Only in /root/fuzz/zzuf-0.12: mypgm1.c
7989Only in /root/fuzz/zzuf-0.12: mypgm1.c~
7990Only in /root/fuzz/zzuf-0.12: mypgm2
7991Only in /root/fuzz/zzuf-0.12: mypgm2.c
7992Only in /root/fuzz/zzuf-0.12: mypgm2.c~
7993Only in /root/fuzz/zzuf-0.12: mypgm3
7994Only in /root/fuzz/zzuf-0.12: mypgm3.c
7995Only in /root/fuzz/zzuf-0.12: mypgm3.c~
7996Only in /root/fuzz/zzuf-0.12: mypgm.c
7997Only in /root/fuzz/zzuf-0.12: mypgm.c~
7998Only in /root/fuzz/zzuf-0.12: news
7999Only in /root/fuzz/zzuf-0.12: output
8000Only in /root/fuzz/zzuf-0.12: output_mypgm3
8001Only in /root/fuzz/zzuf-0.12: phone
8002Only in /root/fuzz/zzuf-0.12: phone~
8003Only in /root/fuzz/zzuf-0.12: pqr
8004Only in /root/fuzz/zzuf-0.12: readme
8005Only in /root/fuzz/zzuf-0.12: rules
8006Only in /root/fuzz/zzuf-0.12: sample
8007Only in /root/fuzz/zzuf-0.12: sample.c
8008Only in /root/fuzz/zzuf-0.12: sample.c~
8009Only in /root/fuzz/zzuf-0.12: single
8010Only in /root/fuzz/zzuf-0.12/src: abc
8011Only in /root/fuzz/zzuf-0.12/src: abc~
8012Only in /root/fuzz/zzuf-0.12/src: crash_handle.c
8013Only in /root/fuzz/zzuf-0.12/src: crash_handle.c~
8014Only in /root/fuzz/zzuf-0.12/src: crash_handle.h
8015Only in /root/fuzz/zzuf-0.12/src: crash_handle.h~
8016Only in /root/fuzz/zzuf-0.12/src: .deps
8017Only in /root/fuzz/zzuf-0.12/src: f1.txt
8018Only in /root/fuzz/zzuf-0.12/src: f1.txt~
8019Only in /root/fuzz/zzuf-0.12/src: f2.txt
8020Only in /root/fuzz/zzuf-0.12/src: f2.txt~
8021Only in /root/fuzz/zzuf-0.12/src: f3.txt
8022Only in /root/fuzz/zzuf-0.12/src: f3.txt~
8023Only in /root/fuzz/zzuf-0.12/src: f4.txt
8024Only in /root/fuzz/zzuf-0.12/src: f4.txt~
8025Only in /root/fuzz/zzuf-0.12/src: fd.c~
8026Only in /root/fuzz/zzuf-0.12/src: fd.h~
8027diff -crB /root/project/zzuf-0.12/src/fuzz.c /root/fuzz/zzuf-0.12/src/fuzz.c
8028*** /root/project/zzuf-0.12/src/fuzz.c  2008-06-13 14:33:08.000000000 +0530
8029--- /root/fuzz/zzuf-0.12/src/fuzz.c     2009-02-26 22:39:08.000000000 +0530
8030***************
8031*** 15,21 ****
8032  /*
8033   *  fuzz.c: fuzz functions
8034   */
8035!
8036  #include "config.h"
8037 
8038  #if defined HAVE_STDINT_H
8039--- 15,21 ----
8040  /*
8041   *  fuzz.c: fuzz functions
8042   */
8043
8044  #include "config.h"
8045 
8046  #if defined HAVE_STDINT_H
8047***************
8048*** 25,30 ****
8049--- 25,33 ----
8050  #endif
8051  #include <stdio.h>
8052  #include <stdlib.h>
8053+ #include <sys/types.h>
8054+ #include <unistd.h>
8055+
8056  #include <string.h>
8057 
8058  #include "libzzuf.h"
8059***************
8060*** 33,38 ****
8061--- 36,42 ----
8062  #include "fuzz.h"
8063  #include "fd.h"
8064  #include "ranges.h"
8065+ #include "crash_handle.h"
8066 
8067  #define MAGIC1 0x33ea84f7
8068  #define MAGIC2 0x783bc31f
8069***************
8070*** 90,96 ****
8071      volatile uint8_t *aligned_buf;
8072      int64_t i, j;
8073      int todo;
8074!
8075  #if 0
8076      debug("fuzz(%i, %lli@%lli)", fd, (long long int)len,
8077            (long long int)pos);
8078--- 94,102 ----
8079      volatile uint8_t *aligned_buf;
8080      int64_t i, j;
8081      int todo;
8082!     
8083
8084!     
8085  #if 0
8086      debug("fuzz(%i, %lli@%lli)", fd, (long long int)len,
8087            (long long int)pos);
8088Only in /root/fuzz/zzuf-0.12/src: fuzz.c~
8089Only in /root/fuzz/zzuf-0.12/src: fuzz.h~
8090Only in /root/fuzz/zzuf-0.12/src: input281
8091Only in /root/fuzz/zzuf-0.12/src: input281~
8092Only in /root/fuzz/zzuf-0.12/src: input282
8093diff -crB /root/project/zzuf-0.12/src/lib-fd.c /root/fuzz/zzuf-0.12/src/lib-fd.c
8094*** /root/project/zzuf-0.12/src/lib-fd.c        2008-06-13 14:33:08.000000000 +0530
8095--- /root/fuzz/zzuf-0.12/src/lib-fd.c   2009-07-23 22:52:46.000000000 +0530
8096***************
8097*** 35,40 ****
8098--- 35,43 ----
8099  #include <string.h>
8100  #include <stdio.h>
8101  #include <errno.h>
8102+ #include <bfd.h>
8103+ #include <assert.h>
8104+ #include <sys/ptrace.h>
8105 
8106  #if defined HAVE_WINSOCK2_H
8107  #   include <winsock2.h>
8108***************
8109*** 63,68 ****
8110--- 66,72 ----
8111  #include "debug.h"
8112  #include "fuzz.h"
8113  #include "fd.h"
8114+ #include "crash_handle.h"
8115 
8116  #if defined HAVE_SOCKLEN_T
8117  #   define SOCKLEN_T socklen_t
8118***************
8119*** 75,81 ****
8120  static void fuzz_iovec   (int fd, const struct iovec *iov, ssize_t ret);
8121  #endif
8122  static void offset_check (int fd);
8123!
8124  /* Library functions that we divert */
8125  static int     (*ORIG(open))    (const char *file, int oflag, ...);
8126  #if defined HAVE_OPEN64
8127--- 79,90 ----
8128  static void fuzz_iovec   (int fd, const struct iovec *iov, ssize_t ret);
8129  #endif
8130  static void offset_check (int fd);
8131! void zz_file(void);
8132! int avoid_fuzzing();
8133! void send_signal();
8134! long getAddress1(char *);
8135! void update_sec_count();
8136! int sec_less_read();
8137  /* Library functions that we divert */
8138  static int     (*ORIG(open))    (const char *file, int oflag, ...);
8139  #if defined HAVE_OPEN64
8140***************
8141*** 335,343 ****
8142      if(ret > 0)
8143      {
8144          char *b = buf;
8145!
8146!         _zz_fuzz(s, buf, ret);
8147!         _zz_addpos(s, ret);
8148 
8149          if(ret >= 4)
8150              debug("%s(%i, %p, %li, 0x%x) = %i \"%c%c%c%c...", __func__,
8151--- 344,370 ----
8152      if(ret > 0)
8153      {
8154          char *b = buf;
8155!         
8156!          if(avoid_fuzzing())
8157!       {
8158!       
8159!                       
8160!               _zz_fuzz(s, buf, ret);
8161!               _zz_addpos(s, ret);
8162!       }
8163!       
8164!         
8165!       
8166!        if(sec_less_read())
8167!       {
8168!               zz_file();
8169!       }
8170!        else
8171!        update_sec_count();
8172!       
8173!       send_signal();
8174!         
8175!         
8176 
8177          if(ret >= 4)
8178              debug("%s(%i, %p, %li, 0x%x) = %i \"%c%c%c%c...", __func__,
8179***************
8180*** 369,376 ****
8181      {
8182          char *b = buf;
8183 
8184!         _zz_fuzz(s, buf, ret);
8185!         _zz_addpos(s, ret);
8186 
8187          if(ret >= 4)
8188              debug("%s(%i, %p, %li, 0x%x, %p, &%i) = %i \"%c%c%c%c...",
8189--- 396,421 ----
8190      {
8191          char *b = buf;
8192 
8193!         
8194!         if(avoid_fuzzing())
8195!       {
8196!       
8197!                       
8198!               _zz_fuzz(s, buf, ret);
8199!               _zz_addpos(s, ret);
8200!       }
8201!       
8202!         
8203!       
8204!        if(sec_less_read())
8205!       {
8206!               zz_file();
8207!       }
8208!        else
8209!        update_sec_count();
8210!       
8211!       send_signal();
8212!         
8213 
8214          if(ret >= 4)
8215              debug("%s(%i, %p, %li, 0x%x, %p, &%i) = %i \"%c%c%c%c...",
8216***************
8217*** 413,432 ****
8218  #endif
8219  {
8220      int ret;
8221!
8222      LOADSYM(read);
8223      ret = ORIG(read)(fd, buf, count);
8224      if(!_zz_ready || !_zz_iswatched(fd) || _zz_islocked(fd)
8225           || !_zz_isactive(fd))
8226!         return ret;
8227!
8228      if(ret > 0)
8229      {
8230!         char *b = buf;
8231!
8232!         _zz_fuzz(fd, buf, ret);
8233!         _zz_addpos(fd, ret);
8234!
8235          if(ret >= 4)
8236              debug("%s(%i, %p, %li) = %i \"%c%c%c%c...", __func__, fd, buf,
8237                    (long int)count, ret, b[0], b[1], b[2], b[3]);
8238--- 458,503 ----
8239  #endif
8240  {
8241      int ret;
8242!     
8243      LOADSYM(read);
8244      ret = ORIG(read)(fd, buf, count);
8245      if(!_zz_ready || !_zz_iswatched(fd) || _zz_islocked(fd)
8246           || !_zz_isactive(fd))
8247!        return ret;
8248!     
8249      if(ret > 0)
8250      {
8251!       
8252!             char *b = buf;
8253!       
8254!         
8255!         
8256!           
8257!         if(avoid_fuzzing())
8258!       {
8259!       
8260!                       
8261!               _zz_fuzz(fd, buf, ret);
8262!               _zz_addpos(fd, ret);
8263!       }
8264!       
8265!         
8266!       
8267!        if(sec_less_read())
8268!       {
8269!               zz_file();
8270!       }
8271!        else
8272!        update_sec_count();
8273!       
8274!       send_signal(); //send signal when sec_count is equal to read_count
8275!       /*else
8276!       {
8277!               printf("\nEnter the name of variable = ");
8278!               //scanf("%s",var);
8279!               data = ptrace(PTRACE_PEEKDATA, getpid(), add , 0);
8280!               printf("\nValue of %s= %d",var,data);
8281!       }*/
8282          if(ret >= 4)
8283              debug("%s(%i, %p, %li) = %i \"%c%c%c%c...", __func__, fd, buf,
8284                    (long int)count, ret, b[0], b[1], b[2], b[3]);
8285***************
8286*** 473,484 ****
8287 
8288      if(ret > 0)
8289      {
8290-         long int curoff = _zz_getpos(fd);
8291          char *b = buf;
8292 
8293          _zz_setpos(fd, offset);
8294          _zz_fuzz(fd, buf, ret);
8295          _zz_setpos(fd, curoff);
8296 
8297          if(ret >= 4)
8298              debug("%s(%i, %p, %li, %li) = %i \"%c%c%c%c...", __func__, fd, buf,
8299--- 544,574 ----
8300 
8301      if(ret > 0)
8302      {
8303          char *b = buf;
8304+          long int curoff = _zz_getpos(fd);
8305+        if(avoid_fuzzing())
8306+       {
8307+       
8308+                   
8309 
8310          _zz_setpos(fd, offset);
8311          _zz_fuzz(fd, buf, ret);
8312          _zz_setpos(fd, curoff);
8313+       }
8314+       
8315+         
8316+       
8317+        if(sec_less_read())
8318+       {
8319+               zz_file();
8320+       }
8321+        else
8322+        update_sec_count();
8323+       
8324+       send_signal();
8325+       
8326+       
8327+       
8328 
8329          if(ret >= 4)
8330              debug("%s(%i, %p, %li, %li) = %i \"%c%c%c%c...", __func__, fd, buf,
8331***************
8332*** 561,569 ****
8333      /* FIXME: make sure we’re actually *reading* */
8334      if(ret > 0)
8335      {
8336!         _zz_setpos(fd, aiocbp->aio_offset);
8337          _zz_fuzz(fd, aiocbp->aio_buf, ret);
8338          _zz_addpos(fd, ret);
8339      }
8340 
8341      debug("%s({%i, %i, %i, %p, %li, ..., %li}) = %li", __func__,
8342--- 651,678 ----
8343      /* FIXME: make sure we’re actually *reading* */
8344      if(ret > 0)
8345      {
8346!         
8347!          if(avoid_fuzzing())
8348!       {
8349!       
8350!                       
8351!               _zz_setpos(fd, aiocbp->aio_offset);
8352          _zz_fuzz(fd, aiocbp->aio_buf, ret);
8353          _zz_addpos(fd, ret);
8354+       }
8355+       
8356+         
8357+       
8358+        if(sec_less_read())
8359+       {
8360+               zz_file();
8361+       }
8362+        else
8363+        update_sec_count();
8364+       
8365+       send_signal();
8366+         
8367+         
8368      }
8369 
8370      debug("%s({%i, %i, %i, %p, %li, ..., %li}) = %li", __func__,
8371***************
8372*** 607,615 ****
8373 
8374          if(len > (size_t)ret)
8375              len = ret;
8376!
8377          _zz_fuzz(fd, b, len);
8378          _zz_addpos(fd, len);
8379 
8380          iov++;
8381          ret -= len;
8382--- 716,743 ----
8383 
8384          if(len > (size_t)ret)
8385              len = ret;
8386!       
8387!       if(avoid_fuzzing())
8388!       {
8389!       
8390!                       
8391          _zz_fuzz(fd, b, len);
8392          _zz_addpos(fd, len);
8393+       }
8394+       
8395+         
8396+       
8397+        if(sec_less_read())
8398+       {
8399+               zz_file();
8400+       }
8401+        else
8402+        update_sec_count();
8403+       
8404+       send_signal();
8405+       
8406+       
8407+         
8408 
8409          iov++;
8410          ret -= len;
8411***************
8412*** 634,637 ****
8413--- 762,1042 ----
8414          debug("warning: offset inconsistency");
8415      errno = orig_errno;
8416  }
8417+ void zz_file(void)
8418+ {
8419+    struct crash_handle c,c1[100];
8420+    FILE *fp,*ft;
8421+     
8422+      // char *tmp;
8423+    //tmp = getenv("ZZUF_SEED");
8424+    //printf("seed =%d",atol(tmp));
8425+     
8426+    fp=fopen("log","rb+");
8427+    if(fp==NULL)
8428+    {
8429+       perror("\nfopen :");
8430+    }
8431+    rewind(fp);
8432+    int flag=0;
8433+    int i=0;
8434+    while(fread(&c,sizeof(c),1,fp)==1)
8435+    {
8436+       c1[i]=c;
8437+       i++;
8438+    }
8439+   
8440+    int j=0;
8441+    for(j=0;j<i;j++)
8442+    {
8443+       if(c1[j].pid==getpid()/*c1[j].seed==atol(tmp)*/)
8444+       {
8445+               c1[j].read_count++;
8446+   
8447+               flag=1;
8448+               break;
8449+       }
8450+    }
8451+
8452+    ft=fopen("temp","wb");
8453+    if(ft==NULL)
8454+    {
8455+       perror("\nfopen :");
8456+    }
8457+    for(j=0;j<i;j++)
8458+       fwrite(&c1[j],sizeof(c1[j]),1,ft);
8459+   
8460+    if(flag==0)
8461+    {
8462+      c.read_count=1;
8463+      c.crash=0;
8464+      c.pid=getpid();
8465+      //c.seed=atol(tmp);
8466+      c.rerun=0;
8467+      c.sec_count=0;
8468+      fwrite(&c,sizeof(c),1,fp);
8469+   
8470+   
8471+    }
8472+   
8473+    fclose(fp);
8474+    fclose(ft);
8475+    if(flag==1)
8476+    {
8477+       remove("log");
8478+       rename("temp","log");
8479+    }
8480+ }
8481+ int avoid_fuzzing()
8482+ {
8483+  struct crash_handle c,c1[100];
8484+    FILE *fp;
8485+     
8486+
8487+     
8488+    fp=fopen("log","rb+");
8489+    if(fp==NULL)
8490+    {
8491+       perror("\nfopen :");
8492+    }
8493+    rewind(fp);
8494+    int flag=0;
8495+    int i=0;
8496+    while(fread(&c,sizeof(c),1,fp)==1)
8497+    {
8498+       c1[i]=c;
8499+       /*printf("\nc1[i].rerun=%d",c1[i].rerun);
8500+       printf("\nc1[i].read_count=%d",c1[i].read_count);
8501+       printf("\nc1[i].sec_count=%d",c1[i].sec_count);
8502+       printf("\nc1[i].crash=%d",c1[i].crash);
8503+       printf("\nc1[i].pid=%d",c1[i].pid);
8504+               printf("\ni=%d",i);*/
8505+       i++;
8506+    }
8507+   
8508+   
8509+    fclose(fp);
8510+    int j=0;
8511+    for(j=0;j<i;j++)
8512+    {
8513+       //if(c1[j].crash>=1&&c1[j].pid==getpid()&&c1[j].read_count>c1[j].sec_count&&c1[j].rerun>1)
8514+       if((c1[j].rerun<=1&&c1[j].read_count>=c1[j].sec_count&&c1[j].crash<=1&&c1[j].pid==getpid())||(c1[j].rerun>1&&c1[j].sec_count>c1[j].read_count&&c1[j].crash>1&&c1[j].pid==getpid()))     
8515+       {
8516+               /*if(c1[j].read_count==c1[j].sec_count)
8517+               {
8518+                       printf("\nSignal Send");
8519+                       if(kill(getpid(),SIGSTOP)==-1)
8520+                               perror("\nkill");
8521+               }*/
8522+               c1[j].pid=getpid();
8523+                  //printf("PID = %d",c1[j].pid);
8524+               return 1;
8525+               
8526+       }
8527+    }
8528+   
8529+    return 0;
8530+ }
8531+ int sec_less_read()
8532+ {
8533+    struct crash_handle c,c1[100];
8534+    FILE *fp;
8535+     
8536+
8537+     
8538+    fp=fopen("log","rb+");
8539+    if(fp==NULL)
8540+    {
8541+       perror("\nfopen :");
8542+    }
8543+    rewind(fp);
8544+    int flag=0;
8545+    int i=0;
8546+    while(fread(&c,sizeof(c),1,fp)==1)
8547+    {
8548+       c1[i]=c;
8549+       i++;
8550+    }
8551+    fclose(fp);
8552+    int j=0;
8553+    for(j=0;j<i;j++)
8554+    {
8555+       if(c1[j].crash==0&&c1[j].rerun==0)
8556+       {
8557+               /*if(c1[j].read_count==c1[j].sec_count)
8558+               {
8559+                       printf("\nSignal Send");
8560+                       if(kill(getpid(),SIGSTOP)==-1)
8561+                               perror("\nkill");
8562+               }*/
8563+               
8564+               return 1;
8565+               
8566+       }
8567+    }
8568+   
8569+    return 0;
8570+
8571+ }
8572+ void update_sec_count()
8573+ {
8574+    struct crash_handle c,c1[100];
8575+    FILE *fp,*ft;
8576+       
8577+    fp=fopen("log","rb+");
8578+    if(fp==NULL)
8579+   {
8580+       perror("\nfopen :");
8581+    }
8582+    rewind(fp);
8583+    int i=0;
8584+      //   char *tmp;
8585+    //tmp = getenv("ZZUF_SEED");
8586+   // printf("\nseed _update=%d",atol(tmp));
8587+    while(fread(&c,sizeof(c),1,fp)==1)
8588+    {
8589+       c1[i]=c;
8590+       i++;
8591+    }
8592+   
8593+    int j=0;
8594+    for(j=0;j<i;j++)
8595+    {
8596+          if(c1[j].pid==getpid()&&c1[j].rerun>=1)
8597+       {
8598+               c1[j].sec_count++;
8599+               break;
8600+       }
8601+    }
8602+   
8603+    ft=fopen("temp","wb");
8604+    if(ft==NULL)
8605+   {
8606+       perror("\nfopen :");
8607+    }
8608+
8609+    for(j=0;j<i;j++)
8610+               fwrite(&c1[j],sizeof(c1[j]),1,ft);
8611+       
8612+     
8613+    fclose(fp);
8614+    fclose(ft);
8615+    remove("log");
8616+    rename("temp","log");
8617+
8618+
8619+               
8620+ }
8621+ void send_signal()
8622+ {
8623+    struct crash_handle c,c1[100];
8624+    FILE *fp;
8625+     
8626+
8627+     
8628+    fp=fopen("log","rb+");
8629+    if(fp==NULL)
8630+    {
8631+       perror("\nfopen :");
8632+    }
8633+    rewind(fp);
8634+    int flag=0;
8635+    int i=0;
8636+    while(fread(&c,sizeof(c),1,fp)==1)
8637+    {
8638+       c1[i]=c;
8639+       i++;
8640+    }
8641+   
8642+    int j=0;
8643+    for(j=0;j<i;j++)
8644+    {
8645+       if(c1[j].crash>=1&&c1[j].rerun>=1&&c1[j].read_count<=c1[j].sec_count)
8646+       {
8647+               //if(c1[j].read_count>c1[j].sec_count)
8648+               {
8649+                       printf("\nSignal Send");
8650+                       if(kill(getpid(),SIGSTOP)==-1)
8651+                               perror("\nkill");
8652+               }
8653+               
8654+               
8655+       }
8656+    }
8657+    fclose(fp);
8658+   
8659+ }
8660+
8661+ /*long getAddress1(char *s)
8662+ {
8663+    long storage_needed, num_symbols, i;
8664+     asymbol **symbol_table;
8665+     bfd *abfd;
8666+     char filename[100];
8667+     
8668+     bfd_init(); // magic
8669+     
8670+     abfd = bfd_openr("zzuf", NULL);
8671+     assert(abfd != NULL);
8672+     bfd_check_format(abfd, bfd_object);
8673+     storage_needed = bfd_get_symtab_upper_bound(abfd);
8674+     assert(storage_needed >= 0);
8675+     //printf("storage = %d\n", storage_needed);
8676+
8677+     symbol_table = (asymbol**)malloc(storage_needed);
8678+     assert(symbol_table != 0);
8679+     num_symbols = bfd_canonicalize_symtab(abfd, symbol_table);
8680+     assert(num_symbols >= 0);
8681+     //printf("num syms = %d\n", num_symbols);
8682+     //for(i = 0; i < num_symbols; i++)
8683+       //  printf("%s: %x\n", bfd_asymbol_name(symbol_table[i]),
8684+         //    bfd_asymbol_value(symbol_table[i]));
8685+         
8686+     for(i=0;i<num_symbols;i++)
8687+     {
8688+       if(strcmp(bfd_asymbol_name(symbol_table[i]),s)==0)
8689+               return (bfd_asymbol_value(symbol_table[i]));
8690+     }
8691+     return 0;
8692+     //export_symbol(getAddress);
8693+ }*/
8694 
8695Only in /root/fuzz/zzuf-0.12/src: lib-fd.c~
8696Only in /root/fuzz/zzuf-0.12/src: lib-load.h~
8697Only in /root/fuzz/zzuf-0.12/src: .libs
8698diff -crB /root/project/zzuf-0.12/src/lib-stream.c /root/fuzz/zzuf-0.12/src/lib-stream.c
8699*** /root/project/zzuf-0.12/src/lib-stream.c    2008-06-13 14:33:08.000000000 +0530
8700--- /root/fuzz/zzuf-0.12/src/lib-stream.c       2009-03-14 16:33:00.000000000 +0530
8701***************
8702*** 38,43 ****
8703--- 38,44 ----
8704  #include "debug.h"
8705  #include "fuzz.h"
8706  #include "fd.h"
8707+ #include "crash_handle.h"
8708 
8709  #if defined HAVE___SREFILL
8710  int NEW(__srefill)(FILE *fp);
8711***************
8712*** 108,126 ****
8713  #define FOPEN(fn) \
8714      do \
8715      { \
8716!         LOADSYM(fn); \
8717          if(!_zz_ready) \
8718              return ORIG(fn)(path, mode); \
8719          _zz_lock(-1); \
8720!         ret = ORIG(fn)(path, mode); \
8721!         _zz_unlock(-1); \
8722          if(ret && _zz_mustwatch(path)) \
8723          { \
8724              int fd = fileno(ret); \
8725              _zz_register(fd); \
8726              debug("%s(\"%s\", \"%s\") = [%i]", __func__, path, mode, fd); \
8727          } \
8728!     } while(0)
8729 
8730  FILE *NEW(fopen)(const char *path, const char *mode)
8731  {
8732--- 109,134 ----
8733  #define FOPEN(fn) \
8734      do \
8735      { \
8736!       LOADSYM(fn); \
8737!      if(strcmp("log",path)!=0&&strcmp("temp",path)!=0)  \
8738!      {  \
8739          if(!_zz_ready) \
8740              return ORIG(fn)(path, mode); \
8741+      }\
8742+     if(strcmp("log",path)!=0&&strcmp("temp",path)!=0)  \
8743          _zz_lock(-1); \
8744!     ret = ORIG(fn)(path, mode); \
8745!     if( strcmp("log",path)!=0&&strcmp("temp",path)!=0)  \
8746!   { \
8747!      _zz_unlock(-1); \
8748          if(ret && _zz_mustwatch(path)) \
8749          { \
8750              int fd = fileno(ret); \
8751              _zz_register(fd); \
8752              debug("%s(\"%s\", \"%s\") = [%i]", __func__, path, mode, fd); \
8753          } \
8754!     } \
8755!     } while(0) \
8756 
8757  FILE *NEW(fopen)(const char *path, const char *mode)
8758  {
8759***************
8760*** 262,268 ****
8761          if(newpos != pos) \
8762          { \
8763              char *b = ptr; \
8764!             _zz_fuzz(fd, ptr, newpos - pos); \
8765              _zz_setpos(fd, newpos); \
8766              if(newpos >= pos + 4) \
8767                  debug("%s(%p, %li, %li, [%i]) = %li \"%c%c%c%c...", __func__, \
8768--- 270,276 ----
8769          if(newpos != pos) \
8770          { \
8771              char *b = ptr; \
8772!              _zz_fuzz(fd, ptr, newpos - pos); \
8773              _zz_setpos(fd, newpos); \
8774              if(newpos >= pos + 4) \
8775                  debug("%s(%p, %li, %li, [%i]) = %li \"%c%c%c%c...", __func__, \
8776***************
8777*** 618,623 ****
8778--- 626,632 ----
8779              fuzz->tmp = realloc(fuzz->tmp, (size += 80));
8780 
8781          fuzz->tmp[i] = (char)(unsigned char)ch;
8782+         
8783          _zz_fuzz(fd, (uint8_t *)fuzz->tmp + i, 1); /* rather inefficient */
8784          _zz_addpos(fd, 1);
8785 
8786***************
8787*** 653,658 ****
8788--- 662,668 ----
8789      {
8790          if(newpos != -1)
8791              _zz_setpos(fd, newpos - fp->_r);
8792+               
8793          _zz_fuzz(fd, fp->_p, fp->_r);
8794          _zz_addpos(fd, fp->_r);
8795      }
8796Only in /root/fuzz/zzuf-0.12/src: lib-stream.c~
8797Only in /root/fuzz/zzuf-0.12/src: libzzuf.c~
8798Only in /root/fuzz/zzuf-0.12/src: .libzzuf.c.swo
8799Only in /root/fuzz/zzuf-0.12/src: .libzzuf.c.swp
8800Only in /root/fuzz/zzuf-0.12/src: libzzuf.h~
8801Only in /root/fuzz/zzuf-0.12/src: libzzuf.la
8802Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-debug.lo
8803Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-debug.o
8804Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-fd.lo
8805Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-fd.o
8806Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-fuzz.lo
8807Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-fuzz.o
8808Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-fd.lo
8809Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-fd.o
8810Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-mem.lo
8811Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-mem.o
8812Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-signal.lo
8813Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-signal.o
8814Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-stream.lo
8815Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-lib-stream.o
8816Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-libzzuf.lo
8817Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-libzzuf.o
8818Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-random.lo
8819Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-random.o
8820Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-ranges.lo
8821Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-ranges.o
8822Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-sys.lo
8823Only in /root/fuzz/zzuf-0.12/src: libzzuf_la-sys.o
8824Only in /root/fuzz/zzuf-0.12/src: log~
8825Only in /root/fuzz/zzuf-0.12/src: Makefile
8826Only in /root/fuzz/zzuf-0.12/src: Makefile~
8827diff -crB /root/project/zzuf-0.12/src/Makefile.in /root/fuzz/zzuf-0.12/src/Makefile.in
8828*** /root/project/zzuf-0.12/src/Makefile.in     2008-06-13 16:39:30.000000000 +0530
8829--- /root/fuzz/zzuf-0.12/src/Makefile.in        2009-02-26 22:39:06.000000000 +0530
8830***************
8831*** 1,8 ****
8832! # Makefile.in generated by automake 1.10.1 from Makefile.am.
8833  # @configure_input@
8834 
8835  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
8836! # 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8837  # This Makefile.in is free software; the Free Software Foundation
8838  # gives unlimited permission to copy and/or distribute it,
8839  # with or without modifications, as long as this notice is preserved.
8840--- 1,8 ----
8841! # Makefile.in generated by automake 1.10 from Makefile.am.
8842  # @configure_input@
8843 
8844  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
8845! # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
8846  # This Makefile.in is free software; the Free Software Foundation
8847  # gives unlimited permission to copy and/or distribute it,
8848  # with or without modifications, as long as this notice is preserved.
8849***************
8850*** 83,89 ****
8851  zzuf_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
8852        --mode=link $(CCLD) $(zzuf_CFLAGS) $(CFLAGS) $(zzuf_LDFLAGS) \
8853        $(LDFLAGS) -o $@
8854! DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
8855  depcomp = $(SHELL) $(top_srcdir)/.auto/depcomp
8856  am__depfiles_maybe = depfiles
8857  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
8858--- 83,89 ----
8859  zzuf_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
8860        --mode=link $(CCLD) $(zzuf_CFLAGS) $(CFLAGS) $(zzuf_LDFLAGS) \
8861        $(LDFLAGS) -o $@
8862! DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
8863  depcomp = $(SHELL) $(top_srcdir)/.auto/depcomp
8864  am__depfiles_maybe = depfiles
8865  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
8866***************
8867*** 121,127 ****
8868  DEPDIR = @DEPDIR@
8869  DLL_LDFLAGS = @DLL_LDFLAGS@
8870  DL_LIBS = @DL_LIBS@
8871- DSYMUTIL = @DSYMUTIL@
8872  ECHO = @ECHO@
8873  ECHO_C = @ECHO_C@
8874  ECHO_N = @ECHO_N@
8875--- 121,126 ----
8876***************
8877*** 146,152 ****
8878  MAKEINFO = @MAKEINFO@
8879  MATH_LIBS = @MATH_LIBS@
8880  MKDIR_P = @MKDIR_P@
8881- NMEDIT = @NMEDIT@
8882  OBJEXT = @OBJEXT@
8883  PACKAGE = @PACKAGE@
8884  PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
8885--- 145,150 ----
8886***************
8887*** 266,273 ****
8888        @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
8889          if test -f $$p; then \
8890            f=$(am__strip_dir) \
8891!           echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
8892!           $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
8893          else :; fi; \
8894        done
8895 
8896--- 264,271 ----
8897        @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
8898          if test -f $$p; then \
8899            f=$(am__strip_dir) \
8900!           echo " $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
8901!           $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
8902          else :; fi; \
8903        done
8904 
8905***************
8906*** 275,282 ****
8907        @$(NORMAL_UNINSTALL)
8908        @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
8909          p=$(am__strip_dir) \
8910!         echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \
8911!         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
8912        done
8913 
8914  clean-pkglibLTLIBRARIES:
8915--- 273,280 ----
8916        @$(NORMAL_UNINSTALL)
8917        @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
8918          p=$(am__strip_dir) \
8919!         echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \
8920!         $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
8921        done
8922 
8923  clean-pkglibLTLIBRARIES:
8924***************
8925*** 298,305 ****
8926             || test -f $$p1 \
8927          ; then \
8928            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
8929!          echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
8930!          $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
8931          else :; fi; \
8932        done
8933 
8934--- 296,303 ----
8935             || test -f $$p1 \
8936          ; then \
8937            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
8938!          echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
8939!          $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
8940          else :; fi; \
8941        done
8942 
8943***************
8944*** 583,590 ****
8945        unique=`for i in $$list; do \
8946            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
8947          done | \
8948!         $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
8949!             END { if (nonempty) { for (i in files) print i; }; }'`; \
8950        mkid -fID $$unique
8951  tags: TAGS
8952 
8953--- 581,588 ----
8954        unique=`for i in $$list; do \
8955            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
8956          done | \
8957!         $(AWK) '    { files[$$0] = 1; } \
8958!              END { for (i in files) print i; }'`; \
8959        mkid -fID $$unique
8960  tags: TAGS
8961 
8962***************
8963*** 596,603 ****
8964        unique=`for i in $$list; do \
8965            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
8966          done | \
8967!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
8968!             END { if (nonempty) { for (i in files) print i; }; }'`; \
8969        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
8970          test -n "$$unique" || unique=$$empty_fix; \
8971          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
8972--- 594,601 ----
8973        unique=`for i in $$list; do \
8974            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
8975          done | \
8976!         $(AWK) '    { files[$$0] = 1; } \
8977!              END { for (i in files) print i; }'`; \
8978        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
8979          test -n "$$unique" || unique=$$empty_fix; \
8980          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
8981***************
8982*** 607,618 ****
8983  CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
8984                $(TAGS_FILES) $(LISP)
8985        tags=; \
8986        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
8987        unique=`for i in $$list; do \
8988            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
8989          done | \
8990!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
8991!             END { if (nonempty) { for (i in files) print i; }; }'`; \
8992        test -z "$(CTAGS_ARGS)$$tags$$unique" \
8993          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
8994             $$tags $$unique
8995--- 605,617 ----
8996  CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
8997                $(TAGS_FILES) $(LISP)
8998        tags=; \
8999+       here=`pwd`; \
9000        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
9001        unique=`for i in $$list; do \
9002            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
9003          done | \
9004!         $(AWK) '    { files[$$0] = 1; } \
9005!              END { for (i in files) print i; }'`; \
9006        test -z "$(CTAGS_ARGS)$$tags$$unique" \
9007          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
9008             $$tags $$unique
9009Only in /root/fuzz/zzuf-0.12/src: modified part
9010Only in /root/fuzz/zzuf-0.12/src: modified part~
9011Only in /root/fuzz/zzuf-0.12/src: objd.c
9012Only in /root/fuzz/zzuf-0.12/src: opts.c~
9013Only in /root/fuzz/zzuf-0.12/src: opts.h~
9014Only in /root/fuzz/zzuf-0.12/src: pqr
9015Only in /root/fuzz/zzuf-0.12/src: pqr~
9016Only in /root/fuzz/zzuf-0.12/src: temp
9017Only in /root/fuzz/zzuf-0.12/src: test281.c~
9018Only in /root/fuzz/zzuf-0.12/src: test282.c~
9019Only in /root/fuzz/zzuf-0.12/src: xyz
9020Only in /root/fuzz/zzuf-0.12/src: zzuf
9021diff -crB /root/project/zzuf-0.12/src/zzuf.c /root/fuzz/zzuf-0.12/src/zzuf.c
9022*** /root/project/zzuf-0.12/src/zzuf.c  2008-06-13 14:33:08.000000000 +0530
9023--- /root/fuzz/zzuf-0.12/src/zzuf.c     2009-08-15 06:12:44.000000000 +0530
9024***************
9025*** 11,17 ****
9026   *  To Public License, Version 2, as published by Sam Hocevar. See
9027   *  http://sam.zoy.org/wtfpl/COPYING for more details.
9028   */
9029!
9030  /*
9031   *  main.c: main program
9032   */
9033--- 11,17 ----
9034   *  To Public License, Version 2, as published by Sam Hocevar. See
9035   *  http://sam.zoy.org/wtfpl/COPYING for more details.
9036   */
9037! // compile: cc filename.c -lbfd -liberty
9038  /*
9039   *  main.c: main program
9040   */
9041***************
9042*** 30,35 ****
9043--- 30,48 ----
9044  #endif
9045  #include <stdio.h>
9046  #include <stdlib.h>
9047+ #include <sys/ptrace.h>
9048+ #include <bfd.h>
9049+ #include <stdlib.h>
9050+ #include <assert.h>
9051+ #include <string.h>
9052+ #include <fcntl.h>
9053+ #include <errno.h>
9054+ #include <signal.h>
9055+ #include <linux/user.h>
9056+ #include <udis86.h>
9057+ #include <stddef.h>
9058+
9059+
9060  #if defined HAVE_UNISTD_H
9061  #   include <unistd.h>
9062  #endif
9063***************
9064*** 45,54 ****
9065  #if defined HAVE_IO_H
9066  #   include <io.h>
9067  #endif
9068! #include <string.h>
9069! #include <fcntl.h>
9070! #include <errno.h>
9071! #include <signal.h>
9072  #if defined HAVE_SYS_WAIT_H
9073  #   include <sys/wait.h>
9074  #endif
9075--- 58,64 ----
9076  #if defined HAVE_IO_H
9077  #   include <io.h>
9078  #endif
9079!
9080  #if defined HAVE_SYS_WAIT_H
9081  #   include <sys/wait.h>
9082  #endif
9083***************
9084*** 63,68 ****
9085--- 73,80 ----
9086  #include "fuzz.h"
9087  #include "md5.h"
9088  #include "timer.h"
9089+ #include "crash_handle.h"
9090+
9091 
9092  #if defined HAVE_GETOPT_LONG
9093  #   define mygetopt getopt_long
9094***************
9095*** 97,103 ****
9096 
9097  static void loop_stdin(struct opts *);
9098  static int run_process(struct opts *, int[][2]);
9099!
9100  static void spawn_children(struct opts *);
9101  static void clean_children(struct opts *);
9102  static void read_children(struct opts *);
9103--- 109,132 ----
9104 
9105  static void loop_stdin(struct opts *);
9106  static int run_process(struct opts *, int[][2]);
9107! int if_crash(int ,int );
9108! void update_log(int , int );
9109! void display_output();
9110! void new_process(struct opts * ,int,int);
9111! long getAddress(struct opts * ,char *);
9112! int input_hook_x(ud_t* );
9113! void calcuate_address(struct opts *);
9114! void display_fun();
9115! void info();
9116! long cal_end_add(long );
9117! int check_eip_range(long );
9118! void init(int);
9119! void display_error_table();
9120! int check_same_eip();
9121! char *getFunName();
9122! int getIpRange(long);
9123! int forBreakPoint(char *,long );
9124! int check_valid_eip(long );
9125  static void spawn_children(struct opts *);
9126  static void clean_children(struct opts *);
9127  static void read_children(struct opts *);
9128***************
9129*** 119,124 ****
9130--- 148,174 ----
9131  #endif
9132  static void version(void);
9133  static void usage(void);
9134+ struct func_add
9135+ {
9136+       char name[50];
9137+       long start_add;
9138+       long end_add;
9139+       
9140+ }fun[100];
9141+ struct error_table
9142+ {
9143+       long eip;
9144+       char name[50];
9145+ }et[100];
9146+ static int et_count;
9147+ static int fun_count;
9148+ static long prev_eip;
9149+ char name_break[10];
9150+ int flag=0;
9151+ static int hook_count=0;
9152+ static long eip;
9153+ static int global_status;
9154+ int hook_pid;
9155 
9156  #if defined HAVE_WINDOWS_H
9157  static inline void addcpy(void *buf, void *x)
9158***************
9159*** 137,142 ****
9160--- 187,194 ----
9161 
9162  #define ZZUF_FD_ISSET(fd, p_fdset) \
9163      ((fd >= 0) && (FD_ISSET(fd, p_fdset)))
9164+     
9165+     
9166 
9167  int main(int argc, char *argv[])
9168  {
9169***************
9170*** 148,155 ****
9171  #endif
9172      int network = 0;
9173      int i;
9174!
9175      _zz_opts_init(opts);
9176 
9177      for(;;)
9178      {
9179--- 200,208 ----
9180  #endif
9181      int network = 0;
9182      int i;
9183!     
9184      _zz_opts_init(opts);
9185+     //zz_crash_handle_init(&ch);
9186 
9187      for(;;)
9188      {
9189***************
9190*** 436,442 ****
9191      opts->newargv = malloc((argc - myoptind + 1) * sizeof(char *));
9192      memcpy(opts->newargv, argv + myoptind, (argc - myoptind) * sizeof(char *));
9193      opts->newargv[argc - myoptind] = (char *)NULL;
9194!
9195      /* Main loop */
9196      while(opts->nchild || opts->seed < opts->endseed)
9197      {
9198--- 489,499 ----
9199      opts->newargv = malloc((argc - myoptind + 1) * sizeof(char *));
9200      memcpy(opts->newargv, argv + myoptind, (argc - myoptind) * sizeof(char *));
9201      opts->newargv[argc - myoptind] = (char *)NULL;
9202!     
9203!     FILE *fp;
9204!          fp=fopen("log","wb+");
9205!      fclose(fp);
9206!   
9207      /* Main loop */
9208      while(opts->nchild || opts->seed < opts->endseed)
9209      {
9210***************
9211*** 450,465 ****
9212          read_children(opts);
9213 
9214          if(opts->maxcrashes && opts->crashes >= opts->maxcrashes
9215!             && opts->nchild == 0)
9216              break;
9217      }
9218!
9219      /* Clean up */
9220      _zz_opts_fini(opts);
9221 
9222      return opts->crashes ? EXIT_FAILURE : EXIT_SUCCESS;
9223  }
9224!
9225  static void loop_stdin(struct opts *opts)
9226  {
9227      uint8_t md5sum[16];
9228--- 507,545 ----
9229          read_children(opts);
9230 
9231          if(opts->maxcrashes && opts->crashes >= opts->maxcrashes
9232!             && opts->nchild == 0&&flag==0)
9233              break;
9234+       
9235      }
9236!     
9237!       
9238!     display_output();
9239!     printf("\nError Table");
9240!         display_error_table();
9241      /* Clean up */
9242      _zz_opts_fini(opts);
9243+     remove("log");
9244+   
9245 
9246      return opts->crashes ? EXIT_FAILURE : EXIT_SUCCESS;
9247  }
9248! void display_output()
9249! {
9250!       FILE *fp;
9251!       printf("\nOutput:-");
9252!          fp=fopen("log","r");
9253!         
9254!          if(fp==NULL)
9255!          {
9256!               perror("\nfopen :");
9257!          }
9258!         
9259!          rewind(fp);
9260!        struct crash_handle temp1;
9261!        while(fread(&temp1,sizeof(temp1),1,fp)==1)
9262!        printf("\nch.pid=%d read count=%d  crash=%d seed=%d sec_count=%d rerun=%d\n",temp1.pid,temp1.read_count,temp1.crash,temp1.seed,temp1.sec_count,temp1.rerun);
9263!          fclose(fp);
9264! }
9265  static void loop_stdin(struct opts *opts)
9266  {
9267      uint8_t md5sum[16];
9268***************
9269*** 625,632 ****
9270      pid = run_process(opts, pipes);
9271      if(pid < 0)
9272          return;
9273!
9274!     /* We’re the parent, acknowledge spawn */
9275      opts->child[i].date = now;
9276      opts->child[i].pid = pid;
9277      for(j = 0; j < 3; j++)
9278--- 705,713 ----
9279      pid = run_process(opts, pipes);
9280      if(pid < 0)
9281          return;
9282!     
9283!      /* We’re the parent, acknowledge spawn */
9284!     //init(pid);
9285      opts->child[i].date = now;
9286      opts->child[i].pid = pid;
9287      for(j = 0; j < 3; j++)
9288***************
9289*** 710,716 ****
9290          }
9291      }
9292  #endif
9293!
9294      /* Collect dead children */
9295      for(i = 0; i < opts->maxchild; i++)
9296      {
9297--- 791,797 ----
9298          }
9299      }
9300  #endif
9301!     
9302      /* Collect dead children */
9303      for(i = 0; i < opts->maxchild; i++)
9304      {
9305***************
9306*** 729,747 ****
9307          pid = waitpid(opts->child[i].pid, &status, WNOHANG);
9308          if(pid <= 0)
9309              continue;
9310!
9311          if(opts->checkexit && WIFEXITED(status) && WEXITSTATUS(status))
9312          {
9313              finfo(stderr, opts, opts->child[i].seed);
9314              fprintf(stderr, "exit %i\n", WEXITSTATUS(status));
9315              opts->crashes++;
9316          }
9317          else if(WIFSIGNALED(status)
9318                   && !(WTERMSIG(status) == SIGTERM
9319                         && opts->child[i].status == STATUS_SIGTERM))
9320          {
9321              char const *message = "";
9322!
9323              if(WTERMSIG(status) == SIGKILL && opts->maxmem >= 0)
9324                  message = " (memory exceeded?)";
9325  #   if defined SIGXCPU
9326--- 810,838 ----
9327          pid = waitpid(opts->child[i].pid, &status, WNOHANG);
9328          if(pid <= 0)
9329              continue;
9330!       
9331!         
9332          if(opts->checkexit && WIFEXITED(status) && WEXITSTATUS(status))
9333          {
9334              finfo(stderr, opts, opts->child[i].seed);
9335              fprintf(stderr, "exit %i\n", WEXITSTATUS(status));
9336              opts->crashes++;
9337+           
9338+           
9339          }
9340          else if(WIFSIGNALED(status)
9341                   && !(WTERMSIG(status) == SIGTERM
9342                         && opts->child[i].status == STATUS_SIGTERM))
9343          {
9344              char const *message = "";
9345!              if(getenv("ZZUF_DEBUG"))
9346!              {
9347!              printf("\nSTATUS=%d------------------%d",status,getenv("ZZUF_DEBUG"));
9348!              if(if_crash(opts->child[i].seed,pid))
9349!                     new_process(opts,pid,opts->child[i].seed);
9350!               else
9351!               printf("\nNo children");
9352!               }
9353              if(WTERMSIG(status) == SIGKILL && opts->maxmem >= 0)
9354                  message = " (memory exceeded?)";
9355  #   if defined SIGXCPU
9356***************
9357*** 755,760 ****
9358--- 846,852 ----
9359              fprintf(stderr, "signal %i%s%s\n",
9360                      WTERMSIG(status), sig2str(WTERMSIG(status)), message);
9361              opts->crashes++;
9362+             flag=1;
9363          }
9364  #endif
9365 
9366***************
9367*** 898,903 ****
9368--- 990,996 ----
9369      static int const files[] = { DEBUG_FILENO, STDERR_FILENO, STDOUT_FILENO };
9370      char *libpath, *tmp;
9371      int pid, j, len = strlen(opts->oldargv[0]);
9372+     
9373  #   if defined __APPLE__
9374  #       define FILENAME "libzzuf.dylib"
9375  #       define EXTRAINFO ""
9376***************
9377*** 960,966 ****
9378          setrlimit(ZZUF_RLIMIT_CPU, &rlim);
9379      }
9380  #endif
9381!
9382      /* Set environment variables */
9383      sprintf(buf, "%i", opts->seed);
9384      setenv("ZZUF_SEED", buf, 1);
9385--- 1053,1059 ----
9386          setrlimit(ZZUF_RLIMIT_CPU, &rlim);
9387      }
9388  #endif
9389!     init(getpid());
9390      /* Set environment variables */
9391      sprintf(buf, "%i", opts->seed);
9392      setenv("ZZUF_SEED", buf, 1);
9393***************
9394*** 1225,1228 ****
9395--- 1318,2228 ----
9396      printf("\n");
9397      printf("Written by Sam Hocevar. Report bugs to <sam@zoy.org>.\n");
9398  }
9399+ int if_crash(int s,int pid1)
9400+ {
9401+    struct crash_handle c,c1[100];
9402+    FILE *fp,*ft;
9403+     
9404+
9405+     
9406+    fp=fopen("log","rb+");
9407+    if(fp==NULL)
9408+   {
9409+       perror("\nfopen :");
9410+    }
9411+    rewind(fp);
9412+    int i=0;
9413+    while(fread(&c,sizeof(c),1,fp)==1)
9414+    {
9415+       c1[i]=c;
9416+       i++;
9417+    }
9418+   
9419+    int j=0, ff=0;
9420+    for(j=0;j<i;j++)
9421+    {
9422+          if(c1[j].pid==pid1,c1[j].seed==s)
9423+       {
9424+               c1[j].crash++;;
9425+               ff=1;
9426+               break;
9427+       }
9428+    }
9429+   
9430+    ft=fopen("temp","wb");
9431+    if(ft==NULL)
9432+   {
9433+       perror("\nfopen :");
9434+    }
9435+
9436+    for(j=0;j<i;j++)
9437+               fwrite(&c1[j],sizeof(c1[j]),1,ft);
9438+       
9439+     
9440+    fclose(fp);
9441+    fclose(ft);
9442+    remove("log");
9443+    rename("temp","log");
9444+   // display_output();
9445+    if(ff==1)
9446+       return 1;
9447+    return 0;
9448+ }
9449+ void new_process(struct opts *opts ,int pid1,int s)
9450+ {
9451+        pid_t pid;
9452+        pid=fork();
9453+        if(pid<0)
9454+        {
9455+               perror("\nfork:");
9456+        }       
9457+        else if(pid==0)
9458+        {
9459+               
9460+                       
9461+               char buf[64];
9462+               int ret;
9463+               update_log(s,pid1);
9464+               if(ptrace(PTRACE_TRACEME,pid,0,0)==-1)
9465+                perror("ptrace_traceme:");
9466+               char *libpath, *tmp;
9467+               int pid, j, len = strlen(opts->oldargv[0]);
9468+               #define FILENAME "libzzuf.so"
9469+               #define EXTRAINFO ""
9470+               #define PRELOAD "LD_PRELOAD"
9471+                   /* Set environment variables */
9472+                   sprintf(buf, "%i", opts->seed);
9473+                   setenv("ZZUF_SEED", buf, 1);
9474+                   sprintf(buf, "%g", opts->minratio);
9475+                   setenv("ZZUF_MINRATIO", buf, 1);
9476+                   sprintf(buf, "%g", opts->maxratio);
9477+                   setenv("ZZUF_MAXRATIO", buf, 1);
9478+
9479+       
9480+                   /* Meaningless but makes sure there is space for everything */
9481+                   libpath = malloc(len + strlen(LIBDIR "/.libs/" FILENAME EXTRAINFO) + 1);
9482+                   strcpy(libpath, opts->oldargv[0]);
9483+
9484+                   /* Replace "/path/binaryname" with "/path/.libs/libzzuf.$(EXT)"
9485+                    *     and "binaryname" with ".libs/libzzuf.$(EXT)"
9486+                    * Write the result in libpath. */
9487+                   tmp = strrchr(libpath, '/');
9488+                   strcpy(tmp ? tmp + 1 : libpath, ".libs/" FILENAME);
9489+
9490+                   ret = access(libpath, R_OK);
9491+                   if(ret < 0)
9492+                       strcpy(libpath, LIBDIR "/" FILENAME);
9493+
9494+                   /* OSF1 only */
9495+                   strcat(libpath, EXTRAINFO);
9496+
9497+                   /* Do not clobber previous LD_PRELOAD values */
9498+                   tmp = getenv(PRELOAD);
9499+                   if(tmp && *tmp)
9500+                   {
9501+                       char *bigbuf = malloc(strlen(tmp) + strlen(libpath) + 2);
9502+                       sprintf(bigbuf, "%s:%s", tmp, libpath);
9503+                       free(libpath);
9504+                       libpath = bigbuf;
9505+                   }
9506+
9507+                   setenv(PRELOAD, libpath, 1);
9508+                   free(libpath);
9509+
9510+                   if(execvp(opts->newargv[0], opts->newargv))
9511+                   {
9512+                       perror(opts->newargv[0]);
9513+                       exit(EXIT_FAILURE);
9514+                   }
9515+
9516+                   exit(EXIT_SUCCESS);
9517+       
9518+               
9519+        }
9520+       
9521+        //if(ptrace(PTRACE_ATTACH,pid,0,0)==-1)
9522+               // perror("ptrace_attach:");
9523+        //prev_eip = ptrace(PTRACE_PEEKUSER, pid,offsetof(struct user, regs.eip), 0);
9524+        ptrace(PTRACE_CONT, pid, 0, 0);
9525+        int status;
9526+        char var[10];
9527+        ud_t ud_obj;
9528+       
9529+        struct user_regs_struct uregs;
9530+        //parent
9531+         pid = waitpid(pid, &status, WUNTRACED);
9532+     
9533+          //printf("pid=%d",pid);
9534+       
9535+       while(1)
9536+       {
9537+
9538+       
9539+         if(WIFEXITED(status) && WEXITSTATUS(status))
9540+         {
9541+               printf("\nChild Executed Succesfully");
9542+           
9543+         }
9544+         else if(status==2943/*WIFSIGNALED(status)&& (WTERMSIG(status) == SIGTERM)*/)
9545+         {
9546+               
9547+             
9548+               if(if_crash(s,pid)&&global_status!=0)
9549+                       new_process(opts,hook_pid,s);
9550+         }
9551+         else if(WIFSTOPPED(status))
9552+         {
9553+               int data,op,wait_val;
9554+               //printf("\nBefore Switch\n");
9555+               hook_pid=pid;
9556+               calcuate_address(opts);
9557+               display_fun();
9558+               long p;
9559+                int k;
9560+               int no,i,ch1;
9561+               int temp_flag=0;
9562+               long d,n_eip;
9563+               int t_flag=0;
9564+               FILE *fp;
9565+               do
9566+               {
9567+               
9568+               printf("\n1.Single Step\n2.View Variable\n3.Continue stop child\n4.Modify Variable\n5.View Registers\n6.Modify Registers\n7.Process Id\n8.View Instuctions\n9.View EIP\n10.View Error Table\n11.Set BreakPoint\n12.Help\n13. Restart Process\n14.Exit");
9569+               display_output();
9570+               t_flag=0;
9571+               printf("\nEnter the option =");
9572+               scanf("%d",&op);
9573+               switch(op)
9574+               {
9575+                       case 1:
9576+                               
9577+                               //fp=fopen("single","w+");
9578+                               if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9579+                                                {
9580+                                               perror("ptrace");
9581+                                                       break;
9582+                                                }
9583+                               wait(&wait_val);
9584+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9585+                               while(getIpRange(uregs.eip)==0)   
9586+                               {                       
9587+                                       if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9588+                                                {
9589+                                                       perror("ptrace");
9590+                                                       break;
9591+                                                }
9592+                                       wait(&wait_val);
9593+
9594+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9595+                               //ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9596+                                //printf("\nIp=%0.8lx   \n",uregs.eip);
9597+                                ///sleep(1);                           
9598+                               //printf("\nHi");
9599+                               }
9600+                               
9601+                               
9602+                                       if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9603+                                                {
9604+                                               perror("ptrace");
9605+                                                       break;
9606+                                                }
9607+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9608+                                printf("\nIp=%0.8lx   \n",uregs.eip);                         
9609+                               
9610+                                //sleep(1);
9611+                                //wait(&wait_val);
9612+                                //ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9613+                                //printf("\nIp=%0.8lx   \n",uregs.eip);
9614+                               
9615+                               /*while(wait_val==1407)
9616+                               {
9617+                                        hook_count=0;
9618+                                        if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9619+                                                {
9620+                                                       perror("ptrace");
9621+                                                       break;
9622+                                                }
9623+                                        //sleep(1);
9624+                                        wait(&wait_val);
9625+                                        //ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9626+                                        eip = ptrace(PTRACE_PEEKUSER, pid,offsetof(struct user, regs.eip), 0);
9627+                                        //printf("\n%x" ,eip);
9628+                                       
9629+                                        //eip=uregs.eip;
9630+                                        ud_init(&ud_obj);
9631+                                        ud_set_mode(&ud_obj, 32);
9632+                                        ud_set_syntax(&ud_obj, UD_SYN_INTEL);
9633+                                        ud_set_input_hook(&ud_obj, input_hook_x);
9634+                               
9635+                               
9636+                                 k=ud_disassemble(&ud_obj);
9637+                               while (k)
9638+                               {
9639+                                       char* hex1;
9640+                                       //printf("\nk=%d ",k);
9641+                                       //sleep(1);
9642+                                       hook_count++;
9643+                                       hex1 = ud_insn_hex(&ud_obj);
9644+                                       //c = hex1[16];
9645+                                       hex1[16] = 0;
9646+                                       fprintf(fp,"\t%x %-16s %-24s\n",eip ,hex1, ud_insn_asm(&ud_obj));
9647+                                       k=ud_disassemble(&ud_obj);
9648+                                }
9649+                                //printf("\nIp=%0.8lx   %x\n",uregs.eip,ptrace(PTRACE_PEEKDATA, pid, uregs.eip, 0));
9650+                                       
9651+                                       
9652+                                }
9653+                                printf("\nSingle Stepping Over");*/
9654+
9655+                                //fclose(fp);
9656+                               break;
9657+                       case 2:
9658+                               printf("\nEnter the name of variable which u want to see =");
9659+                               scanf("%s",var);
9660+                                       data = ptrace(PTRACE_PEEKDATA, pid, getAddress(opts,var), 0);
9661+                               printf("\nValue of %s= %d",var,data);
9662+                                                               
9663+                               break;
9664+                       case 3:
9665+                               wait_val=1407;
9666+                               while(wait_val==1407)
9667+                               {
9668+                               
9669+                                                if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9670+                                                {
9671+                                                       perror("ptrace");
9672+                                                       break;
9673+                                                }
9674+                                               
9675+                                                if(wait(&wait_val)==-1)perror("wait");
9676+                                               
9677+                                                p = ptrace(PTRACE_PEEKUSER, pid,offsetof(struct user, regs.eip), 0);
9678+                                                if(check_eip_range(p))
9679+                                                {
9680+                                                       prev_eip=p;
9681+                                                       
9682+                                                }
9683+                                                //else
9684+                                                       //break;
9685+                                }
9686+                               status=wait_val;
9687+                               if(wait_val!=1407)
9688+                               global_status=wait_val;
9689+                               if(global_status==2943&&temp_flag==0)
9690+                               {
9691+                                       strcpy(et[et_count].name,getFunName());
9692+                                       et[et_count].eip=prev_eip;
9693+                                       et_count++;
9694+                                       temp_flag=1;
9695+                               }
9696+                               printf("\nstatus =%d",status);
9697+                               //printf("prev_eip=%x",prev_eip);
9698+                               //}
9699+                               //ptrace(PTRACE_CONT, pid, 0, 0);
9700+                               //if(kill(pid,SIGCONT)==-1)perror("\nkill");
9701+                               t_flag++;                               
9702+                               break;
9703+                       case 4:
9704+                               printf("\nEnter the name of variable which u want to modify =");
9705+                               scanf("%s",var);
9706+                                       data = ptrace(PTRACE_PEEKDATA, pid, getAddress(opts,var), 0);
9707+                               printf("\nPrevious Value of %s= %d",var,data);
9708+                               printf("\nEnter the New Value =");
9709+                               scanf("%d",&data);
9710+                               ptrace(PTRACE_POKEDATA, pid, getAddress(opts,var), data);
9711+                               break;
9712+                       case 5:
9713+                                ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9714+                               
9715+                               printf("\nEAX=%x",uregs.eax);
9716+                               printf("\nEBX=%x",uregs.ebx);
9717+                               printf("\nECX=%x",uregs.ecx);
9718+                               printf("\nEDX=%x",uregs.edx);
9719+                               printf("\nESI=%x",uregs.esi);
9720+                               printf("\nEDI=%x",uregs.edi);
9721+                               printf("\nEBP=%x",uregs.ebp);
9722+                               printf("\nESP=%x",uregs.esp);
9723+                               printf("\nEIP=%x",uregs.eip);
9724+                               printf("\nds=%x",uregs.ds);
9725+                               printf("\n__ds=%x",uregs.__ds);
9726+                               printf("\nes=%x",uregs.es);
9727+                               printf("\n__es=%x",uregs.__es);
9728+                               printf("\ncs=%x",uregs.cs);
9729+                               printf("\n__cs=%x",uregs.__cs);
9730+                               printf("\nss=%x",uregs.ss);
9731+                               printf("\n__ss=%x",uregs.__ss);
9732+                               printf("\nfs=%x",uregs.fs);
9733+                               printf("\n__fs=%x",uregs.__fs);
9734+                               printf("\ngs=%x",uregs.gs);
9735+                               printf("\n__gs=%x",uregs.__gs);
9736+                               printf("\norig_eax=%x",uregs.orig_eax);
9737+                       
9738+                               
9739+                               
9740+                               break;
9741+                       case 6:
9742+                               
9743+                               printf("\n1.EAX\n2.EBX\n3.ECX\n4.EDX\n5.ESI\n6.EDI\n7.EBP\n8.ESP\n9.EIP");
9744+                               printf("\nEnter the choice for register which u want to modify=");
9745+                               scanf("%d",&ch1);
9746+                               printf("\nEnter the new data =");
9747+                               scanf("%d",&d);
9748+                               switch(ch1)
9749+                               {
9750+                                       case 1:
9751+                                               uregs.eax=d;
9752+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9753+                                               break;
9754+                                       case 2:
9755+                                               uregs.ebx=d;
9756+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9757+                                               break;
9758+                                       case 3:
9759+                                               uregs.ecx=d;
9760+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9761+                                               break;
9762+                                       case 4:
9763+                                               uregs.edx=d;
9764+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9765+                                               break;
9766+                                       case 5:
9767+                                               uregs.esi=d;
9768+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9769+                                               break;
9770+                                       case 6:
9771+                                               uregs.edi=d;
9772+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9773+                                               break;
9774+                                       case 7:
9775+                                               uregs.ebp=d;
9776+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);                         
9777+                                               break;
9778+                                       case 8:
9779+                                               uregs.esp=d;
9780+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9781+                                               break;                                 
9782+                                       case 9:
9783+                                               uregs.eip=d;
9784+                                               ptrace(PTRACE_SETREGS, pid, 0, &uregs);
9785+                                               break;
9786+                                       default :
9787+                                               printf("\nPlease Select Correct Register");
9788+                               }
9789+                               
9790+                               
9791+                               break;
9792+                       case 7:
9793+                               printf("\nPid = %d",pid);
9794+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9795+                               printf("\nProgram stopped at  %x",uregs.eip);
9796+                               break;
9797+                       case 8:
9798+                               
9799+                               printf("\nEnter the number of instructions You want to view =");
9800+                               scanf("%d",&no);
9801+                               eip = ptrace(PTRACE_PEEKUSER, pid,offsetof(struct user, regs.eip), 0);
9802+                               for(i=0;i<no;i++)               
9803+                               {
9804+                                       hook_count=0;
9805+                                       /* if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9806+                                                {
9807+                                                       perror("ptrace");
9808+                                                       break;
9809+                                                }*/
9810+                                        //sleep(1);
9811+                                        //wait(&wait_val);
9812+                                        //ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9813+                                        //eip = ptrace(PTRACE_PEEKUSER, pid,offsetof(struct user, regs.eip), 0);
9814+                                        //printf("\n%x" ,eip);
9815+                                       
9816+                                        //eip=uregs.eip;
9817+                                        ud_init(&ud_obj);
9818+                                        ud_set_mode(&ud_obj, 32);
9819+                                        ud_set_syntax(&ud_obj, UD_SYN_INTEL);
9820+                                        ud_set_input_hook(&ud_obj, input_hook_x);
9821+                               
9822+                               
9823+                                 k=ud_disassemble(&ud_obj);
9824+                               while (k)
9825+                               {
9826+                                       char* hex1;
9827+                                       //printf("\nk=%d ",k);
9828+                                       //sleep(1);
9829+                                       hook_count++;
9830+                                       hex1 = ud_insn_hex(&ud_obj);
9831+                                       //c = hex1[16];
9832+                                       hex1[16] = 0;
9833+                                       printf("\t%x %-16s %-24s\n",eip ,hex1, ud_insn_asm(&ud_obj));
9834+                                       k=ud_disassemble(&ud_obj);
9835+                                }
9836+                                //printf("\nIp=%0.8lx   %x\n",uregs.eip,ptrace(PTRACE_PEEKDATA, pid, uregs.eip, 0));
9837+                               eip++;           
9838+                               }
9839+                               break;
9840+                       case 9:
9841+                               //info();
9842+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9843+                               printf("\nProgram stopped at  %x",uregs.eip);
9844+                               break;
9845+                               
9846+                       case 10:
9847+                               //help();
9848+                               display_error_table();
9849+                               break;
9850+                       case 11 :
9851+                               /*printf("\nEnter the name of function where you want to set the breakpoint = ");
9852+                               scanf("%s",name_break);
9853+                               if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9854+                                                {
9855+                                               perror("ptrace");
9856+                                                       break;
9857+                                                }
9858+                               wait(&wait_val);
9859+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9860+                               while(forBreakPoint(name_break,uregs.eip)==0)   
9861+                               {                       
9862+                                       if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9863+                                                {
9864+                                                       perror("ptrace");
9865+                                                       break;
9866+                                                }
9867+                                       wait(&wait_val);
9868+
9869+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9870+                               
9871+                               }*/
9872+                       
9873+                               printf("\nEnter the location of eip=");
9874+                               scanf("%ld",&n_eip);
9875+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9876+                               if(!check_valid_eip(n_eip))
9877+                               {
9878+                                       printf("\nPlease enter the valid eip !!!!....Get the eip from objdump/nm/readelf");
9879+                                       break;
9880+                               }
9881+                               
9882+                               if(uregs.eip>n_eip)
9883+                               {
9884+                                       printf("\nThis point is executed...!!!!...Please enter some other eip");
9885+                                       break;
9886+                                }       
9887+                                while(uregs.eip!=n_eip)   
9888+                               {                       
9889+                                       if (ptrace(PTRACE_SINGLESTEP,pid,0,0) != 0)
9890+                                                {
9891+                                                       perror("ptrace");
9892+                                                       break;
9893+                                                }
9894+                                       wait(&wait_val);
9895+
9896+                               ptrace(PTRACE_GETREGS, pid, 0, &uregs);
9897+                               }
9898+                               printf("\nProgram stopped at  %x",uregs.eip);
9899+                               break;                                 
9900+                       case 12 :
9901+                               help();
9902+                               break;
9903+                       case 14:
9904+                               display_output();
9905+                               printf("\nError Table");
9906+                               display_error_table();
9907+                               exit(1);
9908+                       default :
9909+                               if(op!=13)
9910+                                       printf("\nInvalid Option");
9911+                               
9912+               }
9913+               if(global_status==0&&t_flag!=0)
9914+                       printf("\nProgram Execution Is Over");
9915+               else if(global_status==2943)
9916+               {
9917+     
9918+                       printf("\nProgram Has Been Crashed !!!!! Please Give Option 13 so as to restart the Process");
9919+     
9920+               }
9921+               }while(op!=13);
9922+               
9923+               
9924+               
9925+                       //wait(&status);         
9926+         }
9927+         
9928+       if(global_status==0)
9929+               break;
9930+       if(check_same_eip())
9931+       {
9932+                       printf("\nFuzzing is not responsible for Fault");
9933+                       break;
9934+       }
9935+     }
9936+ }
9937+ int input_hook_x(ud_t* u)
9938+ {
9939+   unsigned int c=0,k;
9940+
9941+       if(hook_count==1)
9942+               return UD_EOI;
9943+    c = ptrace(PTRACE_PEEKTEXT, hook_pid, eip, 0);
9944+
9945+   union u
9946+         {
9947+               unsigned long l;
9948+               char ch[4];
9949+         }n;
9950+       n.l=c;
9951+       //printf("\nOpcode =%x  (%x  %x  %x %x)\n",n.ch[0],n.ch[2],n.ch[3],n.ch[4]);
9952+       
9953+
9954+         //k=n.ch[4];
9955+       //return (int) (k & 0xFF);
9956+       return   n.ch[0];
9957+       //return UD_EOI;
9958+ }
9959+ void update_log(int s, int pid1)
9960+ {
9961+    struct crash_handle c,c1[100];
9962+    FILE *fp,*ft;
9963+       
9964+    fp=fopen("log","rb+");
9965+    if(fp==NULL)
9966+   {
9967+       perror("\nfopen :");
9968+    }
9969+    rewind(fp);
9970+    int i=0;
9971+    while(fread(&c,sizeof(c),1,fp)==1)
9972+    {
9973+       c1[i]=c;
9974+       i++;
9975+    }
9976+   
9977+    int j=0;
9978+    for(j=0;j<i;j++)
9979+    {
9980+          if(c1[j].pid==pid1)
9981+       {
9982+               c1[j].pid=getpid();
9983+               
9984+               if(c1[j].rerun!=0)
9985+                  c1[j].read_count=c1[j].sec_count;
9986+               c1[j].rerun++;               
9987+               c1[j].sec_count=0;
9988+               break;
9989+       }
9990+    }
9991+   
9992+    ft=fopen("temp","wb");
9993+    if(ft==NULL)
9994+   {
9995+       perror("\nfopen :");
9996+    }
9997+
9998+    for(j=0;j<i;j++)
9999+               fwrite(&c1[j],sizeof(c1[j]),1,ft);
10000+       
10001+     
10002+    fclose(fp);
10003+    fclose(ft);
10004+    remove("log");
10005+    rename("temp","log");
10006 
10007+ }
10008+ long getAddress(struct opts *opts ,char *s)
10009+ {
10010+    long storage_needed, num_symbols, i;
10011+     asymbol **symbol_table;
10012+     bfd *abfd;
10013+     
10014+     
10015+     bfd_init(); // magic
10016+     
10017+     abfd = bfd_openr(opts->newargv[0], NULL);
10018+     assert(abfd != NULL);
10019+     bfd_check_format(abfd, bfd_object);
10020+     storage_needed = bfd_get_symtab_upper_bound(abfd);
10021+     assert(storage_needed >= 0);
10022+     //printf("storage = %d\n", storage_needed);
10023+
10024+     symbol_table = (asymbol**)malloc(storage_needed);
10025+     assert(symbol_table != 0);
10026+     num_symbols = bfd_canonicalize_symtab(abfd, symbol_table);
10027+     assert(num_symbols >= 0);
10028+     //printf("num syms = %d\n", num_symbols);
10029+     //for(i = 0; i < num_symbols; i++)
10030+       //  printf("%s: %x\n", bfd_asymbol_name(symbol_table[i]),
10031+         //    bfd_asymbol_value(symbol_table[i]));
10032+         
10033+     for(i=0;i<num_symbols;i++)
10034+     {
10035+       if(strcmp(bfd_asymbol_name(symbol_table[i]),s)==0)
10036+               return (bfd_asymbol_value(symbol_table[i]));
10037+     }
10038+     return 0;
10039+     //export_symbol(getAddress);
10040+ }
10041+ void calcuate_address(struct opts *opts )
10042+ {
10043+     long storage_needed, num_symbols, i;
10044+     asymbol **symbol_table;
10045+     bfd *abfd;
10046+     static int cc=0;
10047+     if(cc==1)
10048+       return;
10049+     
10050+     bfd_init(); // magic
10051+     
10052+     abfd = bfd_openr(opts->newargv[0], NULL);
10053+     assert(abfd != NULL);
10054+     bfd_check_format(abfd, bfd_object);
10055+     storage_needed = bfd_get_symtab_upper_bound(abfd);
10056+     assert(storage_needed >= 0);
10057+     //printf("storage = %d\n", storage_needed);
10058+
10059+     symbol_table = (asymbol**)malloc(storage_needed);
10060+     assert(symbol_table != 0);
10061+     num_symbols = bfd_canonicalize_symtab(abfd, symbol_table);
10062+     assert(num_symbols >= 0);
10063+     //printf("num syms = %d\n", num_symbols);
10064+     //for(i = 0; i < num_symbols; i++)
10065+       //  printf("%s: %x\n", bfd_asymbol_name(symbol_table[i]),
10066+         //    bfd_asymbol_value(symbol_table[i]));
10067+         
10068+     
10069+     for(i=0;i<num_symbols;i++)
10070+     {
10071+       if(bfd_decode_symclass(symbol_table[i])==84)    //84 represents function , 66 global varibale
10072+       {
10073+               strcpy(fun[fun_count].name,bfd_asymbol_name(symbol_table[i]));
10074+               fun[fun_count].start_add=bfd_asymbol_value(symbol_table[i]);
10075+               fun[fun_count].end_add=cal_end_add(fun[fun_count].start_add);
10076+               fun_count++;
10077+       }       
10078+     }
10079+     cc++;
10080+ }
10081+ void display_fun()
10082+ {
10083+       int i;
10084+       
10085+       printf("\nName Of Function\t Start Eip\t End Eip");
10086+       for(i=0;i<fun_count;i++)
10087+       {
10088+               printf("\n%s      %x       %x",fun[i].name,fun[i].start_add,fun[i].end_add);
10089+       }
10090+ }
10091+ long cal_end_add(long a)
10092+ {
10093+       
10094+       long c;
10095+       union u
10096+               {
10097+                       unsigned long l;
10098+                       char ch[4];
10099+               }n;
10100+       while(1)
10101+       {
10102+               c = ptrace(PTRACE_PEEKTEXT, hook_pid, a, 0);
10103+               
10104+               if((n.ch[0]&0xff)==0xc3)
10105+                       return a-1;
10106+               //sleep(1);
10107+               if(c==-1)
10108+               {
10109+                       perror("PTRACE_PEEKTEXT");
10110+                       return 0;
10111+               }
10112+               n.l=c;
10113+               //printf("\n%x  Opcode =%x  (%x  %x  %x %x)\n",a,c,n.ch[0]&0xff,n.ch[1]&0xff,n.ch[2]&0xff,n.ch[3]&0xff);
10114+               
10115+               a++;
10116+       }
10117+       return 0;       
10118+ }
10119+ void info()
10120+ {
10121+       int i,f=0;
10122+       
10123+       
10124+       for(i=0;i<fun_count&&f!=1;i++)
10125+       {
10126+               if(fun[i].start_add<=prev_eip&&fun[i].end_add>=prev_eip&&global_status==2943)
10127+               {
10128+                       printf("\nProgram Crashed in Function = %s At the ip = %x !!!!!!",fun[i].name,prev_eip);
10129+                       f=1;
10130+                       break;
10131+               }
10132+       }       
10133+       if(global_status==0)
10134+       {
10135+               printf("\nProgram Execution Over!!!!!!!");
10136+               return;
10137+       }
10138+       if(f==0)
10139+               printf("\nProgram Doesn't  Crash !!!!!!");
10140+ }
10141+ int check_eip_range(long ip)
10142+ {
10143+       int i;
10144+       for(i=0;i<fun_count;i++)
10145+       {
10146+               if(ip>=fun[i].start_add&&ip<=fun[i].end_add)
10147+                       return 1;
10148+       }
10149+       return 0;
10150+ }
10151+ void init(int p)
10152+ {
10153+       struct crash_handle c,c1[100];
10154+    FILE *fp,*ft;
10155+     
10156+    //tmp = getenv("ZZUF_SEED");
10157+    //printf("seed =%d",atol(tmp));
10158+     
10159+    //fp=fopen("log","wb+");
10160+    fp=fopen("log","rb+");
10161+    if(fp==NULL)
10162+    {
10163+       perror("\nfopen :");
10164+    }
10165+   
10166+   
10167+      c.read_count=0;
10168+      c.crash=0;
10169+      c.pid=p;
10170+      c.seed=0;
10171+      c.rerun=0;
10172+      c.sec_count=0;
10173+      if(fwrite(&c,sizeof(c),1,fp)==0);
10174+       printf("\nError in Init");
10175+       
10176+    fclose(fp);
10177+   
10178+ }
10179+ char * getFunName()
10180+ {
10181+       int i,f=0;
10182+       
10183+       
10184+       for(i=0;i<fun_count&&f!=1;i++)
10185+       {
10186+               if(fun[i].start_add<=prev_eip&&fun[i].end_add>=prev_eip&&global_status==2943)
10187+               {
10188+                       return(fun[i].name);
10189+                                               
10190+               }
10191+       }       
10192+       return(NULL);
10193+ }
10194+ void display_error_table()
10195+ {
10196+       int i;
10197+       printf("\nFunction Name      Eip");
10198+       for(i=0;i<et_count;i++)
10199+               printf("\n%s              %x",et[i].name,et[i].eip);
10200+       printf("\n");
10201+ }
10202+ int check_same_eip()
10203+ {
10204+       int i,j;
10205+       for(i=0;i<et_count;i++)
10206+       {
10207+               for(j=0;j<et_count;j++)
10208+               {
10209+                       if(et[i].eip==et[j].eip&&i!=j)
10210+                               return 1;
10211+               }
10212+       }
10213+       return 0;
10214+       
10215+ }
10216+ void help()
10217+ {
10218+       printf("\n....................................................");
10219+       printf("\nOption 1-->>Single Stepping");
10220+       printf("\nThis option is used for Single Stepping");
10221+       printf("\n....................................................");
10222+       printf("\nOption 2-->>View Varible");
10223+       printf("\nThis option is used to  see the global variable of Application Program");
10224+       printf("\n....................................................");
10225+       printf("\nOption 3-->>Continue Stop Child");
10226+       printf("\nThis option will invoke the stop child ");
10227+       printf("\n....................................................");
10228+       printf("\nOption 4-->>Modify Variable");
10229+       printf("\nThis option can be used to modify the value of global variable ");
10230+       printf("\n....................................................");
10231+       printf("\nOption 5-->>View Registers");
10232+       printf("\nThis option can be used to view the content of registers ");
10233+       printf("\n....................................................");
10234+       printf("\nOption 6-->>Modify Registers");
10235+       printf("\nThis option can be used to modify the content of registers. ");
10236+       printf("\n....................................................");
10237+       printf("\nOption 7-->>Process Id");
10238+       printf("\nThis option can be used to view the process id of current process. ");
10239+       printf("\n....................................................");
10240+       printf("\nOption 8-->>View Instructions");
10241+       printf("\nThis option can be used to view next Instructions ");
10242+       printf("\n....................................................");
10243+       printf("\nOption 9-->>View EIP");
10244+       printf("\nThis option can be used to view Instruction Pointer. ");
10245+       printf("\n....................................................");
10246+       printf("\nOption 10-->>View Error");
10247+       printf("\nThis option is used to show the error table.");
10248+       printf("\n....................................................");
10249+       printf("\nOption 11-->>Setting Break Point");
10250+       printf("\nThis option is used to  set up the Break Point. It will take instruction pointer as input");
10251+       printf("\n....................................................");
10252+       printf("\nOption 12-->>Help");
10253+       printf("\nShows the help of all the options ");
10254+       printf("\n....................................................");
10255+       printf("\nOption 13-->>Restart Process");
10256+       printf("\nThis option is used to restart the process when it crashes. ");
10257+       printf("\n....................................................");
10258+       printf("\nOption 14-->>Exit");
10259+       printf("\nExit option will terminate the program and show ");
10260+       printf("\n....................................................");
10261+       
10262+       
10263+ }
10264+ int getIpRange(long p_eip)
10265+ {
10266+       int i;
10267+       
10268+       
10269+       for(i=0;i<fun_count;i++)
10270+       {
10271+               if(fun[i].start_add<=p_eip&&fun[i].end_add>=p_eip)
10272+               {
10273+                       return 1;
10274+                                               
10275+               }
10276+       }       
10277+       return 0;
10278+ }
10279+ int forBreakPoint(char *ptr,long p_eip)
10280+ {
10281+       int i; 
10282+       for(i=0;i<fun_count;i++)
10283+       {
10284+               if(fun[i].start_add<=p_eip&&fun[i].end_add>=p_eip)
10285+               {
10286+                       if(strcmp(fun[i].name,ptr)==0)                 
10287+                               return 1;
10288+                                               
10289+               }
10290+       }       
10291+       return 0;
10292+
10293+ }
10294+ int check_valid_eip(long n_eip)
10295+ {
10296+       int i;
10297+       for(i=0;i<fun_count;i++)
10298+       {
10299+               if(fun[i].start_add<=n_eip&&fun[i].end_add>=n_eip)
10300+               {
10301+                       return 1;
10302+                                               
10303+               }
10304+       }       
10305+       return 0;
10306+ }
10307Only in /root/fuzz/zzuf-0.12/src: zzuf.c~
10308Only in /root/fuzz/zzuf-0.12/src: .zzuf.c.swo
10309Only in /root/fuzz/zzuf-0.12/src: zzuf-fd.o
10310Only in /root/fuzz/zzuf-0.12/src: zzuf-fuzz.o
10311Only in /root/fuzz/zzuf-0.12/src: zzuf-md5.o
10312Only in /root/fuzz/zzuf-0.12/src: zzuf-opts.o
10313Only in /root/fuzz/zzuf-0.12/src: zzuf-random.o
10314Only in /root/fuzz/zzuf-0.12/src: zzuf-ranges.o
10315Only in /root/fuzz/zzuf-0.12/src: zzuf-timer.o
10316Only in /root/fuzz/zzuf-0.12/src: zzuf-zzuf.o
10317Only in /root/fuzz/zzuf-0.12: stamp-h1
10318Only in /root/fuzz/zzuf-0.12: .swp
10319Only in /root/fuzz/zzuf-0.12: t1
10320Only in /root/fuzz/zzuf-0.12: t1.c
10321Only in /root/fuzz/zzuf-0.12: t1.c~
10322Only in /root/fuzz/zzuf-0.12/test: abc
10323Only in /root/fuzz/zzuf-0.12/test: .deps
10324Only in /root/fuzz/zzuf-0.12/test: .libs
10325Only in /root/fuzz/zzuf-0.12/test: Makefile
10326Only in /root/fuzz/zzuf-0.12/test: #Makefile#
10327diff -crB /root/project/zzuf-0.12/test/Makefile.in /root/fuzz/zzuf-0.12/test/Makefile.in
10328*** /root/project/zzuf-0.12/test/Makefile.in    2008-06-13 16:39:30.000000000 +0530
10329--- /root/fuzz/zzuf-0.12/test/Makefile.in       2009-02-26 22:39:06.000000000 +0530
10330***************
10331*** 1,8 ****
10332! # Makefile.in generated by automake 1.10.1 from Makefile.am.
10333  # @configure_input@
10334 
10335  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
10336! # 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
10337  # This Makefile.in is free software; the Free Software Foundation
10338  # gives unlimited permission to copy and/or distribute it,
10339  # with or without modifications, as long as this notice is preserved.
10340--- 1,8 ----
10341! # Makefile.in generated by automake 1.10 from Makefile.am.
10342  # @configure_input@
10343 
10344  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
10345! # 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
10346  # This Makefile.in is free software; the Free Software Foundation
10347  # gives unlimited permission to copy and/or distribute it,
10348  # with or without modifications, as long as this notice is preserved.
10349***************
10350*** 49,55 ****
10351  am_zzero_OBJECTS = zzero.$(OBJEXT)
10352  zzero_OBJECTS = $(am_zzero_OBJECTS)
10353  zzero_LDADD = $(LDADD)
10354! DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
10355  depcomp = $(SHELL) $(top_srcdir)/.auto/depcomp
10356  am__depfiles_maybe = depfiles
10357  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
10358--- 49,55 ----
10359  am_zzero_OBJECTS = zzero.$(OBJEXT)
10360  zzero_OBJECTS = $(am_zzero_OBJECTS)
10361  zzero_LDADD = $(LDADD)
10362! DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
10363  depcomp = $(SHELL) $(top_srcdir)/.auto/depcomp
10364  am__depfiles_maybe = depfiles
10365  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
10366***************
10367*** 87,93 ****
10368  DEPDIR = @DEPDIR@
10369  DLL_LDFLAGS = @DLL_LDFLAGS@
10370  DL_LIBS = @DL_LIBS@
10371- DSYMUTIL = @DSYMUTIL@
10372  ECHO = @ECHO@
10373  ECHO_C = @ECHO_C@
10374  ECHO_N = @ECHO_N@
10375--- 87,92 ----
10376***************
10377*** 112,118 ****
10378  MAKEINFO = @MAKEINFO@
10379  MATH_LIBS = @MATH_LIBS@
10380  MKDIR_P = @MKDIR_P@
10381- NMEDIT = @NMEDIT@
10382  OBJEXT = @OBJEXT@
10383  PACKAGE = @PACKAGE@
10384  PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
10385--- 111,116 ----
10386***************
10387*** 270,277 ****
10388        unique=`for i in $$list; do \
10389            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10390          done | \
10391!         $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
10392!             END { if (nonempty) { for (i in files) print i; }; }'`; \
10393        mkid -fID $$unique
10394  tags: TAGS
10395 
10396--- 268,275 ----
10397        unique=`for i in $$list; do \
10398            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10399          done | \
10400!         $(AWK) '    { files[$$0] = 1; } \
10401!              END { for (i in files) print i; }'`; \
10402        mkid -fID $$unique
10403  tags: TAGS
10404 
10405***************
10406*** 283,290 ****
10407        unique=`for i in $$list; do \
10408            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10409          done | \
10410!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
10411!             END { if (nonempty) { for (i in files) print i; }; }'`; \
10412        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
10413          test -n "$$unique" || unique=$$empty_fix; \
10414          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
10415--- 281,288 ----
10416        unique=`for i in $$list; do \
10417            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10418          done | \
10419!         $(AWK) '    { files[$$0] = 1; } \
10420!              END { for (i in files) print i; }'`; \
10421        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
10422          test -n "$$unique" || unique=$$empty_fix; \
10423          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
10424***************
10425*** 294,305 ****
10426  CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
10427                $(TAGS_FILES) $(LISP)
10428        tags=; \
10429        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
10430        unique=`for i in $$list; do \
10431            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10432          done | \
10433!         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
10434!             END { if (nonempty) { for (i in files) print i; }; }'`; \
10435        test -z "$(CTAGS_ARGS)$$tags$$unique" \
10436          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
10437             $$tags $$unique
10438--- 292,304 ----
10439  CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
10440                $(TAGS_FILES) $(LISP)
10441        tags=; \
10442+       here=`pwd`; \
10443        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
10444        unique=`for i in $$list; do \
10445            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
10446          done | \
10447!         $(AWK) '    { files[$$0] = 1; } \
10448!              END { for (i in files) print i; }'`; \
10449        test -z "$(CTAGS_ARGS)$$tags$$unique" \
10450          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
10451             $$tags $$unique
10452Only in /root/fuzz/zzuf-0.12/test: new file
10453Only in /root/fuzz/zzuf-0.12/test: new file~
10454Only in /root/fuzz/zzuf-0.12/test: zzcat
10455Only in /root/fuzz/zzuf-0.12/test: zzcat.o
10456Only in /root/fuzz/zzuf-0.12/test: zzero
10457Only in /root/fuzz/zzuf-0.12/test: zzero.o
10458Only in /root/fuzz/zzuf-0.12: test1
10459Only in /root/fuzz/zzuf-0.12: todo