]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/patches/mingw-utils.patch
Add Microsoft Windows port of MT and MTX to depkgs.
[bacula/bacula] / bacula / src / win32 / patches / mingw-utils.patch
1 Index: Makefile.am
2 ===================================================================
3 RCS file: /cvsroot/mingw/utils/Makefile.am,v
4 retrieving revision 1.3
5 diff -u -r1.3 Makefile.am
6 --- Makefile.am 4 Dec 2002 12:15:22 -0000       1.3
7 +++ Makefile.am 24 Jun 2006 00:31:11 -0000
8 @@ -1,4 +1,18 @@
9 -SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts unix2dos
10 +if BUILD_DRMINGW
11 +  DRMINGW = drmingw
12 +endif
13 +
14 +if BUILD_REDIR
15 +  REDIR = redir
16 +endif
17 +
18 +if BUILD_RES2COFF
19 +  RES2COFF = res2coff
20 +endif
21 +
22 +SUBDIRS = dos2unix $(DRMINGW) pexports ${REDIR} reimp ${RES2COFF} scripts unix2dos
23 +
24 +EXTRA_DIST = dos2unix/dos2unix.1 unix2dos/unix2dos.1
25  
26  instdir = /tmp/$(PACKAGE)-$(VERSION)
27  
28 Index: configure.ac
29 ===================================================================
30 RCS file: /cvsroot/mingw/utils/configure.ac,v
31 retrieving revision 1.6
32 diff -u -r1.6 configure.ac
33 --- configure.ac        25 Nov 2003 16:53:22 -0000      1.6
34 +++ configure.ac        24 Jun 2006 00:31:11 -0000
35 @@ -7,6 +7,52 @@
36  AM_CONFIG_HEADER(config.h)
37  AM_MAINTAINER_MODE
38  
39 +AC_ARG_ENABLE(drmingw, 
40 +       AS_HELP_STRING([--disable-drmingw],[Don't build drmingw (default is build)]), 
41 +       [case "${enableval}" in
42 +         yes) build_drmingw=true ;;
43 +         no)  build_drmingw=false ;;
44 +         *)   AC_MSG_ERROR([--enable-drmingw argument must be yes or no, not "${enableval}"]) ;;
45 +        esac],
46 +        [build_drmingw=true])
47 +
48 +AC_ARG_ENABLE(redir, 
49 +       AS_HELP_STRING([--disable-redir],[Don't build redir (default is build)]), 
50 +       [case "${enableval}" in
51 +         yes) build_redir=true ;;
52 +         no)  build_redir=false ;;
53 +         *)   AC_MSG_ERROR([--enable-redir argument must be yes or no, not "${enableval}"]) ;;
54 +        esac],
55 +        [build_redir=true])
56 +
57 +AC_ARG_ENABLE(res2coff, 
58 +       AS_HELP_STRING([--disable-res2coff],[Don't build res2coff (default is build)]), 
59 +       [case "${enableval}" in
60 +         yes) build_res2coff=true ;;
61 +         no)  build_res2coff=false ;;
62 +         *)   AC_MSG_ERROR([--enable-res2coff argument must be yes or no, not "${enableval}"]) ;;
63 +        esac],
64 +        [build_res2coff=true])
65 +
66 +AC_ARG_ENABLE(nonportable, 
67 +       AS_HELP_STRING([--disable-nonportable],[shortcut for --disable-drmingw, --disable-redir and --disable-res2coff]), 
68 +       [case "${enableval}" in
69 +         yes) build_drmingw=true
70 +              build_redir=true
71 +              build_res2coff=true
72 +              ;;
73 +         no)  build_res2coff=false
74 +              build_redir=false
75 +              build_res2coff=false
76 +              ;;
77 +         *)   AC_MSG_ERROR([--enable-nonportable argument must be yes or no, not "${enableval}"]) ;;
78 +        esac],
79 +        [build_res2coff=true])
80 +
81 +AM_CONDITIONAL(BUILD_DRMINGW, [test "${build_drmingw}" = "true"])
82 +AM_CONDITIONAL(BUILD_REDIR, [test "${build_redir}" = "true"])
83 +AM_CONDITIONAL(BUILD_RES2COFF, [test "${build_res2coff}" = "true"])
84 +
85  # Checks for programs.
86  AC_PROG_CC
87  AC_PROG_CXX
88 @@ -19,13 +65,20 @@
89  AC_PROG_YACC
90  
91  AC_ARG_VAR(WINDRES, [Windows Resource compiler tool path])
92 -AC_PATH_TOOL(WINDRES,windres,
93 -       [AC_MSG_WARN(Could not find a windres tool in your PATH. Will not be able to compile drmingw.)]
94 -)
95 +AC_PATH_TOOL(WINDRES,windres)
96 +
97 +if test -z "${WINDRES}"; then
98 +       AC_MSG_WARN([windres tool isn't in your PATH, drmingw can't be built!!])
99 +       AM_CONDITIONAL(BUILD_DRMINGW, false)
100 +fi
101 +
102  AC_SUBST(WINDRES)
103  
104  # Checks for header files.
105  AC_HEADER_STDC
106 +
107 +AC_CHECK_HEADERS([windows.h])
108 +
109  where_toGet_utime_h='not found!'
110  # this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
111  # AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
112 @@ -44,6 +97,11 @@
113  AC_CHECK_FUNCS(mkstemp mktemp, break)
114  AC_CHECK_FUNCS(utime)
115  
116 +AC_CHECK_SIZEOF(_int64)
117 +AC_CHECK_SIZEOF(long long)
118 +AC_CHECK_SIZEOF(long)
119 +AC_CHECK_SIZEOF(void *)
120 +
121  AC_CONFIG_FILES([
122  Makefile
123  dos2unix/Makefile
124 Index: pexports/pexports.c
125 ===================================================================
126 RCS file: /cvsroot/mingw/utils/pexports/pexports.c,v
127 retrieving revision 1.2
128 diff -u -r1.2 pexports.c
129 --- pexports/pexports.c 8 Nov 2002 02:56:18 -0000       1.2
130 +++ pexports/pexports.c 24 Jun 2006 00:31:11 -0000
131 @@ -19,7 +19,7 @@
132  #endif
133  
134  /* get pointer to section header n */
135 -#define IMAGE_SECTION_HDR(n) ((PIMAGE_SECTION_HEADER) ((DWORD) nt_hdr + \
136 +#define IMAGE_SECTION_HDR(n) ((PIMAGE_SECTION_HEADER) ((ULONG_PTR) nt_hdr + \
137                                      4 + sizeof(IMAGE_FILE_HEADER) + \
138                                      nt_hdr->FileHeader.SizeOfOptionalHeader + \
139                                      n * sizeof(IMAGE_SECTION_HEADER)))
140 @@ -146,7 +146,7 @@
141        return 1;
142      }
143  
144 -  nt_hdr = (PIMAGE_NT_HEADERS) ((DWORD) dos_hdr + dos_hdr->e_lfanew);
145 +  nt_hdr = (PIMAGE_NT_HEADERS) ((ULONG_PTR) dos_hdr + dos_hdr->e_lfanew);
146    
147    exp_rva = nt_hdr->OptionalHeader.DataDirectory[0].VirtualAddress;
148  
149 @@ -181,7 +181,7 @@
150    PIMAGE_EXPORT_DIRECTORY exports;
151    char *export_name;
152    PWORD ordinal_table;
153 -  char **name_table;
154 +  DWORD *name_table;
155    DWORD *function_table;
156    int i;
157    static int first = 1;
158 @@ -203,7 +203,7 @@
159    /* set up various pointers */
160    export_name = RVA_TO_PTR(exports->Name,char*);
161    ordinal_table = RVA_TO_PTR(exports->AddressOfNameOrdinals,PWORD);
162 -  name_table = RVA_TO_PTR(exports->AddressOfNames,char**);
163 +  name_table = RVA_TO_PTR(exports->AddressOfNames,DWORD*);
164    function_table = RVA_TO_PTR(exports->AddressOfFunctions,void*);
165  
166    if (verbose)
167 @@ -297,14 +297,14 @@
168  }
169  
170  /* convert rva to pointer into loaded file */
171 -DWORD
172 +ULONG_PTR
173  rva_to_ptr(DWORD rva)
174  {
175    PIMAGE_SECTION_HEADER section = find_section(rva);
176    if (section->PointerToRawData == 0)
177      return 0;
178    else
179 -    return ((DWORD) dos_hdr + (DWORD) rva - (section->VirtualAddress - section->PointerToRawData));
180 +    return ((ULONG_PTR) dos_hdr + (DWORD) rva - (section->VirtualAddress - section->PointerToRawData));
181  }
182  
183  /* Load a portable executable into memory */
184 Index: pexports/pexports.h
185 ===================================================================
186 RCS file: /cvsroot/mingw/utils/pexports/pexports.h,v
187 retrieving revision 1.2
188 diff -u -r1.2 pexports.h
189 --- pexports/pexports.h 26 May 2002 10:13:58 -0000      1.2
190 +++ pexports/pexports.h 24 Jun 2006 00:31:11 -0000
191 @@ -21,12 +21,26 @@
192  #define VER_MINOR 43
193  
194  /* These are needed */
195 -typedef unsigned short WORD;
196 -typedef unsigned int DWORD;
197 -typedef unsigned char BYTE;
198 -typedef long LONG;
199 -typedef WORD *PWORD;
200 -typedef DWORD *PDWORD;
201 +typedef unsigned short WORD, *PWORD;
202 +typedef unsigned char BYTE, *PBYTE;
203 +
204 +#if SIZEOF_LONG == 4
205 +typedef unsigned long DWORD, *PDWORD;
206 +typedef long LONG, *PLONG;
207 +#else
208 +typedef unsigned int DWORD, *PDWORD;
209 +typedef int LONG, *PLONG;
210 +#endif
211 +
212 +#if SIZEOF_LONG == SIZEOF_VOID_P
213 +typedef unsigned long ULONG_PTR;
214 +#elif SIZEOF_LONG_LONG == SIZEOF_VOID_P
215 +typedef unsigned long long ULONG_PTR;
216 +#elif SIZEOF__INT64 == SIZEOF_VOID_P
217 +typedef unsigned _int64 ULONG_PTR;
218 +#else
219 +typedef unsigned int ULONG_PTR;
220 +#endif
221  
222  /* PE structures */
223  typedef struct _IMAGE_DATA_DIRECTORY {
224 @@ -111,9 +125,9 @@
225    DWORD   Base;
226    DWORD   NumberOfFunctions;
227    DWORD   NumberOfNames;
228 -  PDWORD  *AddressOfFunctions;
229 -  PDWORD  *AddressOfNames;
230 -  PWORD   *AddressOfNameOrdinals;
231 +  DWORD   AddressOfFunctions;
232 +  DWORD   AddressOfNames;
233 +  DWORD   AddressOfNameOrdinals;
234  } IMAGE_EXPORT_DIRECTORY, *PIMAGE_EXPORT_DIRECTORY;
235  
236  typedef struct _IMAGE_DOS_HEADER {
237 @@ -144,7 +158,7 @@
238  PIMAGE_DOS_HEADER
239  load_pe_image(const char *filename);
240  
241 -DWORD
242 +ULONG_PTR
243  rva_to_ptr(DWORD rva);
244  
245  void
246 Index: reimp/ar.c
247 ===================================================================
248 RCS file: /cvsroot/mingw/utils/reimp/ar.c,v
249 retrieving revision 1.1
250 diff -u -u -r1.1 ar.c
251 --- reimp/ar.c  10 Apr 2002 13:39:07 -0000      1.1
252 +++ reimp/ar.c  29 Jun 2006 22:51:57 -0000
253 @@ -21,6 +21,7 @@
254            if (fread (long_names, size, 1, f) != 1)
255              error (0, "unexpected end-of-file\n");
256          }
257 +      return 1;
258      }
259    else
260      return 0;
261 Index: reimp/reimp.h
262 ===================================================================
263 RCS file: /cvsroot/mingw/utils/reimp/reimp.h,v
264 retrieving revision 1.1
265 diff -u -u -r1.1 reimp.h
266 --- reimp/reimp.h       10 Apr 2002 13:39:07 -0000      1.1
267 +++ reimp/reimp.h       29 Jun 2006 22:51:57 -0000
268 @@ -3,7 +3,7 @@
269  
270  /* we need integers of specific sizes */
271  #ifndef uint32
272 -#define uint32 unsigned long
273 +#define uint32 unsigned int
274  #endif
275  
276  #ifndef uint16
277 Index: scripts/a2dll.in
278 ===================================================================
279 RCS file: /cvsroot/mingw/utils/scripts/a2dll.in,v
280 retrieving revision 1.2
281 diff -u -r1.2 a2dll.in
282 --- scripts/a2dll.in    26 May 2002 10:13:58 -0000      1.2
283 +++ scripts/a2dll.in    24 Jun 2006 00:31:11 -0000
284 @@ -12,6 +12,13 @@
285         exit 0
286  }
287  
288 +# Figure out where the script is located and then use that path as the location
289 +# for the tools
290 +
291 +cwd=`pwd`
292 +cd `dirname $0`
293 +SCRIPTDIR=`pwd`
294 +cd $cwd
295  
296  cmdline=$@
297  
298 @@ -43,14 +50,14 @@
299         rm -f .dll/*
300         /usr/bin/mkdir -p .dll
301         cd .dll
302 -       ar x ../$in
303 +       ${SCRIPTDIR}/ar x ../$in
304  else
305         cd .dll
306  fi
307  
308  echo Creating shared library \'$out\'
309  
310 -dllwrap --export-all -o ../$out `ls` $libs >../ld.err 2>&1
311 +${SCRIPTDIR}/dllwrap --export-all -o ../$out `ls` $libs >../ld.err 2>&1
312  
313  cd ..
314  if [ `wc ld.err|awk ' {print $1}' ` -gt 2 ]
315 @@ -72,17 +79,17 @@
316  # 2. I just saw that dlltool lies about assembly-sourced files, it
317  #    lists their symbols as data 
318  
319 -        pexports $out >$base.def
320 +        ${SCRIPTDIR}/pexports $out >$base.def
321  
322  # create import library
323  
324         mv $in $in.static
325 -        dlltool --dllname $out --def $base.def --output-lib $in
326 +        ${SCRIPTDIR}/dlltool --dllname $out --def $base.def --output-lib $in
327  
328  # finally, we check whether dll exports data symbols
329  # if yes, we suggest user on steps to perform
330  
331 -        pexports $out | awk '/DATA/ { print $1}' >$out.data
332 +        ${SCRIPTDIR}/pexports $out | awk '/DATA/ { print $1}' >$out.data
333         if test -s $out.data
334          then
335                  echo
336 Index: configure
337 ===================================================================
338 --- ../../mingw-utils-0.3/configure     2003-11-25 08:31:12.000000000 -0800
339 +++ configure   2006-06-22 02:33:39.000000000 -0700
340 @@ -1,6 +1,6 @@
341  #! /bin/sh
342  # Guess values for system-dependent variables and create Makefiles.
343 -# Generated by GNU Autoconf 2.58 for mingw-utils 0.3.
344 +# Generated by GNU Autoconf 2.59 for mingw-utils 0.3.
345  #
346  # Copyright (C) 2003 Free Software Foundation, Inc.
347  # This configure script is free software; the Free Software Foundation
348 @@ -309,7 +309,7 @@
349  # include <unistd.h>
350  #endif"
351  
352 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC WINDRES ac_pt_WINDRES CPP EGREP LIBOBJS LTLIBOBJS'
353 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT BUILD_DRMINGW_TRUE BUILD_DRMINGW_FALSE BUILD_REDIR_TRUE BUILD_REDIR_FALSE BUILD_RES2COFF_TRUE BUILD_RES2COFF_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC WINDRES ac_pt_WINDRES CPP EGREP LIBOBJS LTLIBOBJS'
354  ac_subst_files=''
355  
356  # Initialize some variables set by options.
357 @@ -859,10 +859,15 @@
358  Optional Features:
359    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
360    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
361 -  --enable-maintainer-mode enable make rules and dependencies not useful
362 -                          (and sometimes confusing) to the casual installer
363 -  --disable-dependency-tracking Speeds up one-time builds
364 -  --enable-dependency-tracking  Do not reject slow dependency extractors
365 +  --enable-maintainer-mode  enable make rules and dependencies not useful
366 +                         (and sometimes confusing) to the casual installer
367 +  --disable-drmingw       Don't build drmingw (default is build)
368 +  --disable-redir         Don't build redir (default is build)
369 +  --disable-res2coff      Don't build res2coff (default is build)
370 +  --disable-nonportable   shortcut for --disable-drmingw, --disable-redir and
371 +                          --disable-res2coff
372 +  --disable-dependency-tracking  speeds up one-time build
373 +  --enable-dependency-tracking   do not reject slow dependency extractors
374  
375  Some influential environment variables:
376    CC          C compiler command
377 @@ -967,7 +972,7 @@
378      else
379        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
380      fi
381 -    cd "$ac_popdir"
382 +    cd $ac_popdir
383    done
384  fi
385  
386 @@ -975,7 +980,7 @@
387  if $ac_init_version; then
388    cat <<\_ACEOF
389  mingw-utils configure 0.3
390 -generated by GNU Autoconf 2.58
391 +generated by GNU Autoconf 2.59
392  
393  Copyright (C) 2003 Free Software Foundation, Inc.
394  This configure script is free software; the Free Software Foundation
395 @@ -989,7 +994,7 @@
396  running configure, to aid debugging if configure makes a mistake.
397  
398  It was created by mingw-utils $as_me 0.3, which was
399 -generated by GNU Autoconf 2.58.  Invocation command line was
400 +generated by GNU Autoconf 2.59.  Invocation command line was
401  
402    $ $0 $@
403  
404 @@ -1325,7 +1330,7 @@
405  
406  
407  
408 -am__api_version="1.7"
409 +am__api_version="1.9"
410  ac_aux_dir=
411  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
412    if test -f $ac_dir/install-sh; then
413 @@ -1488,7 +1493,6 @@
414  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
415  rm conftest.sed
416  
417 -
418  # expand $ac_aux_dir to an absolute path
419  am_aux_dir=`cd $ac_aux_dir && pwd`
420  
421 @@ -1502,6 +1506,39 @@
422  echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
423  fi
424  
425 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
426 +  # We used to keeping the `.' as first argument, in order to
427 +  # allow $(mkdir_p) to be used without argument.  As in
428 +  #   $(mkdir_p) $(somedir)
429 +  # where $(somedir) is conditionally defined.  However this is wrong
430 +  # for two reasons:
431 +  #  1. if the package is installed by a user who cannot write `.'
432 +  #     make install will fail,
433 +  #  2. the above comment should most certainly read
434 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
435 +  #     so it does not work when $(somedir) is undefined and
436 +  #     $(DESTDIR) is not.
437 +  #  To support the latter case, we have to write
438 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
439 +  #  so the `.' trick is pointless.
440 +  mkdir_p='mkdir -p --'
441 +else
442 +  # On NextStep and OpenStep, the `mkdir' command does not
443 +  # recognize any option.  It will interpret all options as
444 +  # directories to create, and then abort because `.' already
445 +  # exists.
446 +  for d in ./-p ./--version;
447 +  do
448 +    test -d $d && rmdir $d
449 +  done
450 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
451 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
452 +    mkdir_p='$(mkinstalldirs)'
453 +  else
454 +    mkdir_p='$(install_sh) -d'
455 +  fi
456 +fi
457 +
458  for ac_prog in gawk mawk nawk awk
459  do
460    # Extract the first word of "$ac_prog", so it can be a program name with args.
461 @@ -1580,7 +1617,7 @@
462  fi
463  rmdir .tst 2>/dev/null
464  
465 - # test to see if srcdir already configured
466 +# test to see if srcdir already configured
467  if test "`cd $srcdir && pwd`" != "`pwd`" &&
468     test -f $srcdir/config.status; then
469    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
470 @@ -1619,9 +1656,6 @@
471  
472  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
473  
474 -
475 -AMTAR=${AMTAR-"${am_missing_run}tar"}
476 -
477  install_sh=${install_sh-"$am_aux_dir/install-sh"}
478  
479  # Installed binaries are usually stripped using `strip' when the user
480 @@ -1714,6 +1748,13 @@
481  
482  # We need awk for the "check" target.  The system "awk" is bad on
483  # some platforms.
484 +# Always define AMTAR for backward compatibility.
485 +
486 +AMTAR=${AMTAR-"${am_missing_run}tar"}
487 +
488 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
489 +
490 +
491  
492  
493  
494 @@ -1745,6 +1786,99 @@
495  
496  
497  
498 +# Check whether --enable-drmingw or --disable-drmingw was given.
499 +if test "${enable_drmingw+set}" = set; then
500 +  enableval="$enable_drmingw"
501 +  case "${enableval}" in
502 +         yes) build_drmingw=true ;;
503 +         no)  build_drmingw=false ;;
504 +         *)   { { echo "$as_me:$LINENO: error: --enable-drmingw argument must be yes or no, not \"${enableval}\"" >&5
505 +echo "$as_me: error: --enable-drmingw argument must be yes or no, not \"${enableval}\"" >&2;}
506 +   { (exit 1); exit 1; }; } ;;
507 +        esac
508 +else
509 +  build_drmingw=true
510 +fi;
511 +
512 +# Check whether --enable-redir or --disable-redir was given.
513 +if test "${enable_redir+set}" = set; then
514 +  enableval="$enable_redir"
515 +  case "${enableval}" in
516 +         yes) build_redir=true ;;
517 +         no)  build_redir=false ;;
518 +         *)   { { echo "$as_me:$LINENO: error: --enable-redir argument must be yes or no, not \"${enableval}\"" >&5
519 +echo "$as_me: error: --enable-redir argument must be yes or no, not \"${enableval}\"" >&2;}
520 +   { (exit 1); exit 1; }; } ;;
521 +        esac
522 +else
523 +  build_redir=true
524 +fi;
525 +
526 +# Check whether --enable-res2coff or --disable-res2coff was given.
527 +if test "${enable_res2coff+set}" = set; then
528 +  enableval="$enable_res2coff"
529 +  case "${enableval}" in
530 +         yes) build_res2coff=true ;;
531 +         no)  build_res2coff=false ;;
532 +         *)   { { echo "$as_me:$LINENO: error: --enable-res2coff argument must be yes or no, not \"${enableval}\"" >&5
533 +echo "$as_me: error: --enable-res2coff argument must be yes or no, not \"${enableval}\"" >&2;}
534 +   { (exit 1); exit 1; }; } ;;
535 +        esac
536 +else
537 +  build_res2coff=true
538 +fi;
539 +
540 +# Check whether --enable-nonportable or --disable-nonportable was given.
541 +if test "${enable_nonportable+set}" = set; then
542 +  enableval="$enable_nonportable"
543 +  case "${enableval}" in
544 +         yes) build_drmingw=true
545 +              build_redir=true
546 +              build_res2coff=true
547 +              ;;
548 +         no)  build_res2coff=false
549 +              build_redir=false
550 +              build_res2coff=false
551 +              ;;
552 +         *)   { { echo "$as_me:$LINENO: error: --enable-nonportable argument must be yes or no, not \"${enableval}\"" >&5
553 +echo "$as_me: error: --enable-nonportable argument must be yes or no, not \"${enableval}\"" >&2;}
554 +   { (exit 1); exit 1; }; } ;;
555 +        esac
556 +else
557 +  build_res2coff=true
558 +fi;
559 +
560 +
561 +
562 +if test "${build_drmingw}" = "true"; then
563 +  BUILD_DRMINGW_TRUE=
564 +  BUILD_DRMINGW_FALSE='#'
565 +else
566 +  BUILD_DRMINGW_TRUE='#'
567 +  BUILD_DRMINGW_FALSE=
568 +fi
569 +
570 +
571 +
572 +if test "${build_redir}" = "true"; then
573 +  BUILD_REDIR_TRUE=
574 +  BUILD_REDIR_FALSE='#'
575 +else
576 +  BUILD_REDIR_TRUE='#'
577 +  BUILD_REDIR_FALSE=
578 +fi
579 +
580 +
581 +
582 +if test "${build_res2coff}" = "true"; then
583 +  BUILD_RES2COFF_TRUE=
584 +  BUILD_RES2COFF_FALSE='#'
585 +else
586 +  BUILD_RES2COFF_TRUE='#'
587 +  BUILD_RES2COFF_FALSE=
588 +fi
589 +
590 +
591  # Checks for programs.
592  ac_ext=c
593  ac_cpp='$CPP $CPPFLAGS'
594 @@ -2314,7 +2448,8 @@
595    cat conftest.err >&5
596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
597    (exit $ac_status); } &&
598 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
599 +        { ac_try='test -z "$ac_c_werror_flag"
600 +                        || test ! -s conftest.err'
601    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
602    (eval $ac_try) 2>&5
603    ac_status=$?
604 @@ -2372,7 +2507,8 @@
605    cat conftest.err >&5
606    echo "$as_me:$LINENO: \$? = $ac_status" >&5
607    (exit $ac_status); } &&
608 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
609 +        { ac_try='test -z "$ac_c_werror_flag"
610 +                        || test ! -s conftest.err'
611    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
612    (eval $ac_try) 2>&5
613    ac_status=$?
614 @@ -2488,7 +2624,8 @@
615    cat conftest.err >&5
616    echo "$as_me:$LINENO: \$? = $ac_status" >&5
617    (exit $ac_status); } &&
618 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
619 +        { ac_try='test -z "$ac_c_werror_flag"
620 +                        || test ! -s conftest.err'
621    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
622    (eval $ac_try) 2>&5
623    ac_status=$?
624 @@ -2542,7 +2679,8 @@
625    cat conftest.err >&5
626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
627    (exit $ac_status); } &&
628 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
629 +        { ac_try='test -z "$ac_c_werror_flag"
630 +                        || test ! -s conftest.err'
631    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
632    (eval $ac_try) 2>&5
633    ac_status=$?
634 @@ -2587,7 +2725,8 @@
635    cat conftest.err >&5
636    echo "$as_me:$LINENO: \$? = $ac_status" >&5
637    (exit $ac_status); } &&
638 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
639 +        { ac_try='test -z "$ac_c_werror_flag"
640 +                        || test ! -s conftest.err'
641    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
642    (eval $ac_try) 2>&5
643    ac_status=$?
644 @@ -2631,7 +2770,8 @@
645    cat conftest.err >&5
646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
647    (exit $ac_status); } &&
648 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
649 +        { ac_try='test -z "$ac_c_werror_flag"
650 +                        || test ! -s conftest.err'
651    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
652    (eval $ac_try) 2>&5
653    ac_status=$?
654 @@ -2776,7 +2916,9 @@
655      : > sub/conftest.c
656      for i in 1 2 3 4 5 6; do
657        echo '#include "conftst'$i'.h"' >> sub/conftest.c
658 -      : > sub/conftst$i.h
659 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
660 +      # Solaris 8's {/usr,}/bin/sh.
661 +      touch sub/conftst$i.h
662      done
663      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
664  
665 @@ -2804,9 +2946,14 @@
666         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
667         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
668        # icc doesn't choke on unknown options, it will just issue warnings
669 -      # (even with -Werror).  So we grep stderr for any message
670 -      # that says an option was ignored.
671 -      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
672 +      # or remarks (even with -Werror).  So we grep stderr for any message
673 +      # that says an option was ignored or not supported.
674 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
675 +      #   icc: Command line warning: ignoring option '-M'; no argument required
676 +      # The diagnosis changed in icc 8.0:
677 +      #   icc: Command line remark: option '-MP' not supported
678 +      if (grep 'ignoring option' conftest.err ||
679 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
680          am_cv_CC_dependencies_compiler_type=$depmode
681          break
682        fi
683 @@ -2982,7 +3129,8 @@
684    cat conftest.err >&5
685    echo "$as_me:$LINENO: \$? = $ac_status" >&5
686    (exit $ac_status); } &&
687 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
688 +        { ac_try='test -z "$ac_cxx_werror_flag"
689 +                        || test ! -s conftest.err'
690    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
691    (eval $ac_try) 2>&5
692    ac_status=$?
693 @@ -3040,7 +3188,8 @@
694    cat conftest.err >&5
695    echo "$as_me:$LINENO: \$? = $ac_status" >&5
696    (exit $ac_status); } &&
697 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
698 +        { ac_try='test -z "$ac_cxx_werror_flag"
699 +                        || test ! -s conftest.err'
700    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
701    (eval $ac_try) 2>&5
702    ac_status=$?
703 @@ -3111,7 +3260,8 @@
704    cat conftest.err >&5
705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
706    (exit $ac_status); } &&
707 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
708 +        { ac_try='test -z "$ac_cxx_werror_flag"
709 +                        || test ! -s conftest.err'
710    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
711    (eval $ac_try) 2>&5
712    ac_status=$?
713 @@ -3155,7 +3305,8 @@
714    cat conftest.err >&5
715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
716    (exit $ac_status); } &&
717 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
718 +        { ac_try='test -z "$ac_cxx_werror_flag"
719 +                        || test ! -s conftest.err'
720    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
721    (eval $ac_try) 2>&5
722    ac_status=$?
723 @@ -3229,7 +3380,9 @@
724      : > sub/conftest.c
725      for i in 1 2 3 4 5 6; do
726        echo '#include "conftst'$i'.h"' >> sub/conftest.c
727 -      : > sub/conftst$i.h
728 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
729 +      # Solaris 8's {/usr,}/bin/sh.
730 +      touch sub/conftst$i.h
731      done
732      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
733  
734 @@ -3257,9 +3410,14 @@
735         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
736         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
737        # icc doesn't choke on unknown options, it will just issue warnings
738 -      # (even with -Werror).  So we grep stderr for any message
739 -      # that says an option was ignored.
740 -      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
741 +      # or remarks (even with -Werror).  So we grep stderr for any message
742 +      # that says an option was ignored or not supported.
743 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
744 +      #   icc: Command line warning: ignoring option '-M'; no argument required
745 +      # The diagnosis changed in icc 8.0:
746 +      #   icc: Command line remark: option '-MP' not supported
747 +      if (grep 'ignoring option' conftest.err ||
748 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
749          am_cv_CXX_dependencies_compiler_type=$depmode
750          break
751        fi
752 @@ -3601,7 +3759,8 @@
753    cat conftest.err >&5
754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
755    (exit $ac_status); } &&
756 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
757 +        { ac_try='test -z "$ac_c_werror_flag"
758 +                        || test ! -s conftest.err'
759    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
760    (eval $ac_try) 2>&5
761    ac_status=$?
762 @@ -3667,7 +3826,8 @@
763    cat conftest.err >&5
764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
765    (exit $ac_status); } &&
766 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
767 +        { ac_try='test -z "$ac_c_werror_flag"
768 +                        || test ! -s conftest.err'
769    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
770    (eval $ac_try) 2>&5
771    ac_status=$?
772 @@ -3756,7 +3916,8 @@
773    cat conftest.err >&5
774    echo "$as_me:$LINENO: \$? = $ac_status" >&5
775    (exit $ac_status); } &&
776 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
777 +        { ac_try='test -z "$ac_c_werror_flag"
778 +                        || test ! -s conftest.err'
779    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
780    (eval $ac_try) 2>&5
781    ac_status=$?
782 @@ -3903,9 +4064,6 @@
783  done
784  done
785  
786 -  test -z "$ac_cv_path_ac_pt_WINDRES" && ac_cv_path_ac_pt_WINDRES="{ echo "$as_me:$LINENO: WARNING: Could not find a windres tool in your PATH. Will not be able to compile drmingw." >&5
787 -echo "$as_me: WARNING: Could not find a windres tool in your PATH. Will not be able to compile drmingw." >&2;}
788 -"
789    ;;
790  esac
791  fi
792 @@ -3925,6 +4083,22 @@
793  fi
794  
795  
796 +if test -z "${WINDRES}"; then
797 +       { echo "$as_me:$LINENO: WARNING: windres tool isn't in your PATH, drmingw can't be built!!" >&5
798 +echo "$as_me: WARNING: windres tool isn't in your PATH, drmingw can't be built!!" >&2;}
799 +
800 +
801 +if false; then
802 +  BUILD_DRMINGW_TRUE=
803 +  BUILD_DRMINGW_FALSE='#'
804 +else
805 +  BUILD_DRMINGW_TRUE='#'
806 +  BUILD_DRMINGW_FALSE=
807 +fi
808 +
809 +fi
810 +
811 +
812  
813  # Checks for header files.
814  ac_ext=c
815 @@ -4210,7 +4384,8 @@
816    cat conftest.err >&5
817    echo "$as_me:$LINENO: \$? = $ac_status" >&5
818    (exit $ac_status); } &&
819 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
820 +        { ac_try='test -z "$ac_c_werror_flag"
821 +                        || test ! -s conftest.err'
822    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
823    (eval $ac_try) 2>&5
824    ac_status=$?
825 @@ -4342,9 +4517,7 @@
826  
827  fi
828  
829 -where_toGet_utime_h='not found!'
830 -# this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
831 -# AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
832 +
833  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
834  
835  
836 @@ -4383,7 +4556,8 @@
837    cat conftest.err >&5
838    echo "$as_me:$LINENO: \$? = $ac_status" >&5
839    (exit $ac_status); } &&
840 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
841 +        { ac_try='test -z "$ac_c_werror_flag"
842 +                        || test ! -s conftest.err'
843    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
844    (eval $ac_try) 2>&5
845    ac_status=$?
846 @@ -4416,6 +4590,160 @@
847  done
848  
849  
850 +
851 +for ac_header in windows.h
852 +do
853 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
854 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
855 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
856 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
857 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
858 +  echo $ECHO_N "(cached) $ECHO_C" >&6
859 +fi
860 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
861 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
862 +else
863 +  # Is the header compilable?
864 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
865 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
866 +cat >conftest.$ac_ext <<_ACEOF
867 +/* confdefs.h.  */
868 +_ACEOF
869 +cat confdefs.h >>conftest.$ac_ext
870 +cat >>conftest.$ac_ext <<_ACEOF
871 +/* end confdefs.h.  */
872 +$ac_includes_default
873 +#include <$ac_header>
874 +_ACEOF
875 +rm -f conftest.$ac_objext
876 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
877 +  (eval $ac_compile) 2>conftest.er1
878 +  ac_status=$?
879 +  grep -v '^ *+' conftest.er1 >conftest.err
880 +  rm -f conftest.er1
881 +  cat conftest.err >&5
882 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
883 +  (exit $ac_status); } &&
884 +        { ac_try='test -z "$ac_c_werror_flag"
885 +                        || test ! -s conftest.err'
886 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
887 +  (eval $ac_try) 2>&5
888 +  ac_status=$?
889 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
890 +  (exit $ac_status); }; } &&
891 +        { ac_try='test -s conftest.$ac_objext'
892 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
893 +  (eval $ac_try) 2>&5
894 +  ac_status=$?
895 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
896 +  (exit $ac_status); }; }; then
897 +  ac_header_compiler=yes
898 +else
899 +  echo "$as_me: failed program was:" >&5
900 +sed 's/^/| /' conftest.$ac_ext >&5
901 +
902 +ac_header_compiler=no
903 +fi
904 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
905 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
906 +echo "${ECHO_T}$ac_header_compiler" >&6
907 +
908 +# Is the header present?
909 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
910 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
911 +cat >conftest.$ac_ext <<_ACEOF
912 +/* confdefs.h.  */
913 +_ACEOF
914 +cat confdefs.h >>conftest.$ac_ext
915 +cat >>conftest.$ac_ext <<_ACEOF
916 +/* end confdefs.h.  */
917 +#include <$ac_header>
918 +_ACEOF
919 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
920 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
921 +  ac_status=$?
922 +  grep -v '^ *+' conftest.er1 >conftest.err
923 +  rm -f conftest.er1
924 +  cat conftest.err >&5
925 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
926 +  (exit $ac_status); } >/dev/null; then
927 +  if test -s conftest.err; then
928 +    ac_cpp_err=$ac_c_preproc_warn_flag
929 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
930 +  else
931 +    ac_cpp_err=
932 +  fi
933 +else
934 +  ac_cpp_err=yes
935 +fi
936 +if test -z "$ac_cpp_err"; then
937 +  ac_header_preproc=yes
938 +else
939 +  echo "$as_me: failed program was:" >&5
940 +sed 's/^/| /' conftest.$ac_ext >&5
941 +
942 +  ac_header_preproc=no
943 +fi
944 +rm -f conftest.err conftest.$ac_ext
945 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
946 +echo "${ECHO_T}$ac_header_preproc" >&6
947 +
948 +# So?  What about this header?
949 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
950 +  yes:no: )
951 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
952 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
953 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
954 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
955 +    ac_header_preproc=yes
956 +    ;;
957 +  no:yes:* )
958 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
959 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
960 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
961 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
962 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
963 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
964 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
965 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
966 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
967 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
968 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
969 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
970 +    (
971 +      cat <<\_ASBOX
972 +## -------------------------------------- ##
973 +## Report this to the mingw-utils lists.  ##
974 +## -------------------------------------- ##
975 +_ASBOX
976 +    ) |
977 +      sed "s/^/$as_me: WARNING:     /" >&2
978 +    ;;
979 +esac
980 +echo "$as_me:$LINENO: checking for $ac_header" >&5
981 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
982 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
983 +  echo $ECHO_N "(cached) $ECHO_C" >&6
984 +else
985 +  eval "$as_ac_Header=\$ac_header_preproc"
986 +fi
987 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
988 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
989 +
990 +fi
991 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
992 +  cat >>confdefs.h <<_ACEOF
993 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
994 +_ACEOF
995 +
996 +fi
997 +
998 +done
999 +
1000 +
1001 +where_toGet_utime_h='not found!'
1002 +# this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
1003 +# AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
1004  if test "${ac_cv_header_utime_h+set}" = set; then
1005    echo "$as_me:$LINENO: checking for utime.h" >&5
1006  echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
1007 @@ -4446,7 +4774,8 @@
1008    cat conftest.err >&5
1009    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1010    (exit $ac_status); } &&
1011 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1012 +        { ac_try='test -z "$ac_c_werror_flag"
1013 +                        || test ! -s conftest.err'
1014    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1015    (eval $ac_try) 2>&5
1016    ac_status=$?
1017 @@ -4590,7 +4919,8 @@
1018    cat conftest.err >&5
1019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1020    (exit $ac_status); } &&
1021 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1022 +        { ac_try='test -z "$ac_c_werror_flag"
1023 +                        || test ! -s conftest.err'
1024    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1025    (eval $ac_try) 2>&5
1026    ac_status=$?
1027 @@ -4787,7 +5117,8 @@
1028    cat conftest.err >&5
1029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1030    (exit $ac_status); } &&
1031 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1032 +        { ac_try='test -z "$ac_c_werror_flag"
1033 +                        || test ! -s conftest.err'
1034    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1035    (eval $ac_try) 2>&5
1036    ac_status=$?
1037 @@ -4888,7 +5219,8 @@
1038    cat conftest.err >&5
1039    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1040    (exit $ac_status); } &&
1041 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1042 +        { ac_try='test -z "$ac_c_werror_flag"
1043 +                        || test ! -s conftest.err'
1044    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1045    (eval $ac_try) 2>&5
1046    ac_status=$?
1047 @@ -4921,24 +5253,1681 @@
1048  done
1049  
1050  
1051 -                                                                                                              ac_config_files="$ac_config_files Makefile dos2unix/Makefile drmingw/Makefile pexports/Makefile redir/Makefile reimp/Makefile res2coff/Makefile scripts/Makefile scripts/a2dll scripts/dsw2mak unix2dos/Makefile"
1052 +echo "$as_me:$LINENO: checking for _int64" >&5
1053 +echo $ECHO_N "checking for _int64... $ECHO_C" >&6
1054 +if test "${ac_cv_type__int64+set}" = set; then
1055 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1056 +else
1057 +  cat >conftest.$ac_ext <<_ACEOF
1058 +/* confdefs.h.  */
1059 +_ACEOF
1060 +cat confdefs.h >>conftest.$ac_ext
1061 +cat >>conftest.$ac_ext <<_ACEOF
1062 +/* end confdefs.h.  */
1063 +$ac_includes_default
1064 +int
1065 +main ()
1066 +{
1067 +if ((_int64 *) 0)
1068 +  return 0;
1069 +if (sizeof (_int64))
1070 +  return 0;
1071 +  ;
1072 +  return 0;
1073 +}
1074 +_ACEOF
1075 +rm -f conftest.$ac_objext
1076 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1077 +  (eval $ac_compile) 2>conftest.er1
1078 +  ac_status=$?
1079 +  grep -v '^ *+' conftest.er1 >conftest.err
1080 +  rm -f conftest.er1
1081 +  cat conftest.err >&5
1082 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1083 +  (exit $ac_status); } &&
1084 +        { ac_try='test -z "$ac_c_werror_flag"
1085 +                        || test ! -s conftest.err'
1086 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1087 +  (eval $ac_try) 2>&5
1088 +  ac_status=$?
1089 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1090 +  (exit $ac_status); }; } &&
1091 +        { ac_try='test -s conftest.$ac_objext'
1092 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1093 +  (eval $ac_try) 2>&5
1094 +  ac_status=$?
1095 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1096 +  (exit $ac_status); }; }; then
1097 +  ac_cv_type__int64=yes
1098 +else
1099 +  echo "$as_me: failed program was:" >&5
1100 +sed 's/^/| /' conftest.$ac_ext >&5
1101  
1102 -cat >confcache <<\_ACEOF
1103 -# This file is a shell script that caches the results of configure
1104 -# tests run on this system so they can be shared between configure
1105 -# scripts and configure runs, see configure's option --config-cache.
1106 -# It is not useful on other systems.  If it contains results you don't
1107 -# want to keep, you may remove or edit it.
1108 -#
1109 -# config.status only pays attention to the cache file if you give it
1110 -# the --recheck option to rerun configure.
1111 -#
1112 -# `ac_cv_env_foo' variables (set or unset) will be overridden when
1113 -# loading this file, other *unset* `ac_cv_foo' will be assigned the
1114 -# following values.
1115 +ac_cv_type__int64=no
1116 +fi
1117 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1118 +fi
1119 +echo "$as_me:$LINENO: result: $ac_cv_type__int64" >&5
1120 +echo "${ECHO_T}$ac_cv_type__int64" >&6
1121  
1122 +echo "$as_me:$LINENO: checking size of _int64" >&5
1123 +echo $ECHO_N "checking size of _int64... $ECHO_C" >&6
1124 +if test "${ac_cv_sizeof__int64+set}" = set; then
1125 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1126 +else
1127 +  if test "$ac_cv_type__int64" = yes; then
1128 +  # The cast to unsigned long works around a bug in the HP C Compiler
1129 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1130 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1131 +  # This bug is HP SR number 8606223364.
1132 +  if test "$cross_compiling" = yes; then
1133 +  # Depending upon the size, compute the lo and hi bounds.
1134 +cat >conftest.$ac_ext <<_ACEOF
1135 +/* confdefs.h.  */
1136  _ACEOF
1137 -
1138 +cat confdefs.h >>conftest.$ac_ext
1139 +cat >>conftest.$ac_ext <<_ACEOF
1140 +/* end confdefs.h.  */
1141 +$ac_includes_default
1142 +int
1143 +main ()
1144 +{
1145 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) >= 0)];
1146 +test_array [0] = 0
1147 +
1148 +  ;
1149 +  return 0;
1150 +}
1151 +_ACEOF
1152 +rm -f conftest.$ac_objext
1153 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1154 +  (eval $ac_compile) 2>conftest.er1
1155 +  ac_status=$?
1156 +  grep -v '^ *+' conftest.er1 >conftest.err
1157 +  rm -f conftest.er1
1158 +  cat conftest.err >&5
1159 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1160 +  (exit $ac_status); } &&
1161 +        { ac_try='test -z "$ac_c_werror_flag"
1162 +                        || test ! -s conftest.err'
1163 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1164 +  (eval $ac_try) 2>&5
1165 +  ac_status=$?
1166 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1167 +  (exit $ac_status); }; } &&
1168 +        { ac_try='test -s conftest.$ac_objext'
1169 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1170 +  (eval $ac_try) 2>&5
1171 +  ac_status=$?
1172 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1173 +  (exit $ac_status); }; }; then
1174 +  ac_lo=0 ac_mid=0
1175 +  while :; do
1176 +    cat >conftest.$ac_ext <<_ACEOF
1177 +/* confdefs.h.  */
1178 +_ACEOF
1179 +cat confdefs.h >>conftest.$ac_ext
1180 +cat >>conftest.$ac_ext <<_ACEOF
1181 +/* end confdefs.h.  */
1182 +$ac_includes_default
1183 +int
1184 +main ()
1185 +{
1186 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) <= $ac_mid)];
1187 +test_array [0] = 0
1188 +
1189 +  ;
1190 +  return 0;
1191 +}
1192 +_ACEOF
1193 +rm -f conftest.$ac_objext
1194 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1195 +  (eval $ac_compile) 2>conftest.er1
1196 +  ac_status=$?
1197 +  grep -v '^ *+' conftest.er1 >conftest.err
1198 +  rm -f conftest.er1
1199 +  cat conftest.err >&5
1200 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1201 +  (exit $ac_status); } &&
1202 +        { ac_try='test -z "$ac_c_werror_flag"
1203 +                        || test ! -s conftest.err'
1204 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1205 +  (eval $ac_try) 2>&5
1206 +  ac_status=$?
1207 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1208 +  (exit $ac_status); }; } &&
1209 +        { ac_try='test -s conftest.$ac_objext'
1210 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1211 +  (eval $ac_try) 2>&5
1212 +  ac_status=$?
1213 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1214 +  (exit $ac_status); }; }; then
1215 +  ac_hi=$ac_mid; break
1216 +else
1217 +  echo "$as_me: failed program was:" >&5
1218 +sed 's/^/| /' conftest.$ac_ext >&5
1219 +
1220 +ac_lo=`expr $ac_mid + 1`
1221 +                   if test $ac_lo -le $ac_mid; then
1222 +                     ac_lo= ac_hi=
1223 +                     break
1224 +                   fi
1225 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
1226 +fi
1227 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1228 +  done
1229 +else
1230 +  echo "$as_me: failed program was:" >&5
1231 +sed 's/^/| /' conftest.$ac_ext >&5
1232 +
1233 +cat >conftest.$ac_ext <<_ACEOF
1234 +/* confdefs.h.  */
1235 +_ACEOF
1236 +cat confdefs.h >>conftest.$ac_ext
1237 +cat >>conftest.$ac_ext <<_ACEOF
1238 +/* end confdefs.h.  */
1239 +$ac_includes_default
1240 +int
1241 +main ()
1242 +{
1243 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) < 0)];
1244 +test_array [0] = 0
1245 +
1246 +  ;
1247 +  return 0;
1248 +}
1249 +_ACEOF
1250 +rm -f conftest.$ac_objext
1251 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1252 +  (eval $ac_compile) 2>conftest.er1
1253 +  ac_status=$?
1254 +  grep -v '^ *+' conftest.er1 >conftest.err
1255 +  rm -f conftest.er1
1256 +  cat conftest.err >&5
1257 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1258 +  (exit $ac_status); } &&
1259 +        { ac_try='test -z "$ac_c_werror_flag"
1260 +                        || test ! -s conftest.err'
1261 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1262 +  (eval $ac_try) 2>&5
1263 +  ac_status=$?
1264 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1265 +  (exit $ac_status); }; } &&
1266 +        { ac_try='test -s conftest.$ac_objext'
1267 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1268 +  (eval $ac_try) 2>&5
1269 +  ac_status=$?
1270 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1271 +  (exit $ac_status); }; }; then
1272 +  ac_hi=-1 ac_mid=-1
1273 +  while :; do
1274 +    cat >conftest.$ac_ext <<_ACEOF
1275 +/* confdefs.h.  */
1276 +_ACEOF
1277 +cat confdefs.h >>conftest.$ac_ext
1278 +cat >>conftest.$ac_ext <<_ACEOF
1279 +/* end confdefs.h.  */
1280 +$ac_includes_default
1281 +int
1282 +main ()
1283 +{
1284 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) >= $ac_mid)];
1285 +test_array [0] = 0
1286 +
1287 +  ;
1288 +  return 0;
1289 +}
1290 +_ACEOF
1291 +rm -f conftest.$ac_objext
1292 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1293 +  (eval $ac_compile) 2>conftest.er1
1294 +  ac_status=$?
1295 +  grep -v '^ *+' conftest.er1 >conftest.err
1296 +  rm -f conftest.er1
1297 +  cat conftest.err >&5
1298 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1299 +  (exit $ac_status); } &&
1300 +        { ac_try='test -z "$ac_c_werror_flag"
1301 +                        || test ! -s conftest.err'
1302 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1303 +  (eval $ac_try) 2>&5
1304 +  ac_status=$?
1305 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1306 +  (exit $ac_status); }; } &&
1307 +        { ac_try='test -s conftest.$ac_objext'
1308 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1309 +  (eval $ac_try) 2>&5
1310 +  ac_status=$?
1311 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1312 +  (exit $ac_status); }; }; then
1313 +  ac_lo=$ac_mid; break
1314 +else
1315 +  echo "$as_me: failed program was:" >&5
1316 +sed 's/^/| /' conftest.$ac_ext >&5
1317 +
1318 +ac_hi=`expr '(' $ac_mid ')' - 1`
1319 +                      if test $ac_mid -le $ac_hi; then
1320 +                        ac_lo= ac_hi=
1321 +                        break
1322 +                      fi
1323 +                      ac_mid=`expr 2 '*' $ac_mid`
1324 +fi
1325 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1326 +  done
1327 +else
1328 +  echo "$as_me: failed program was:" >&5
1329 +sed 's/^/| /' conftest.$ac_ext >&5
1330 +
1331 +ac_lo= ac_hi=
1332 +fi
1333 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1334 +fi
1335 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1336 +# Binary search between lo and hi bounds.
1337 +while test "x$ac_lo" != "x$ac_hi"; do
1338 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1339 +  cat >conftest.$ac_ext <<_ACEOF
1340 +/* confdefs.h.  */
1341 +_ACEOF
1342 +cat confdefs.h >>conftest.$ac_ext
1343 +cat >>conftest.$ac_ext <<_ACEOF
1344 +/* end confdefs.h.  */
1345 +$ac_includes_default
1346 +int
1347 +main ()
1348 +{
1349 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) <= $ac_mid)];
1350 +test_array [0] = 0
1351 +
1352 +  ;
1353 +  return 0;
1354 +}
1355 +_ACEOF
1356 +rm -f conftest.$ac_objext
1357 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1358 +  (eval $ac_compile) 2>conftest.er1
1359 +  ac_status=$?
1360 +  grep -v '^ *+' conftest.er1 >conftest.err
1361 +  rm -f conftest.er1
1362 +  cat conftest.err >&5
1363 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1364 +  (exit $ac_status); } &&
1365 +        { ac_try='test -z "$ac_c_werror_flag"
1366 +                        || test ! -s conftest.err'
1367 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1368 +  (eval $ac_try) 2>&5
1369 +  ac_status=$?
1370 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1371 +  (exit $ac_status); }; } &&
1372 +        { ac_try='test -s conftest.$ac_objext'
1373 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1374 +  (eval $ac_try) 2>&5
1375 +  ac_status=$?
1376 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1377 +  (exit $ac_status); }; }; then
1378 +  ac_hi=$ac_mid
1379 +else
1380 +  echo "$as_me: failed program was:" >&5
1381 +sed 's/^/| /' conftest.$ac_ext >&5
1382 +
1383 +ac_lo=`expr '(' $ac_mid ')' + 1`
1384 +fi
1385 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1386 +done
1387 +case $ac_lo in
1388 +?*) ac_cv_sizeof__int64=$ac_lo;;
1389 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_int64), 77
1390 +See \`config.log' for more details." >&5
1391 +echo "$as_me: error: cannot compute sizeof (_int64), 77
1392 +See \`config.log' for more details." >&2;}
1393 +   { (exit 1); exit 1; }; } ;;
1394 +esac
1395 +else
1396 +  if test "$cross_compiling" = yes; then
1397 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1398 +See \`config.log' for more details." >&5
1399 +echo "$as_me: error: cannot run test program while cross compiling
1400 +See \`config.log' for more details." >&2;}
1401 +   { (exit 1); exit 1; }; }
1402 +else
1403 +  cat >conftest.$ac_ext <<_ACEOF
1404 +/* confdefs.h.  */
1405 +_ACEOF
1406 +cat confdefs.h >>conftest.$ac_ext
1407 +cat >>conftest.$ac_ext <<_ACEOF
1408 +/* end confdefs.h.  */
1409 +$ac_includes_default
1410 +long longval () { return (long) (sizeof (_int64)); }
1411 +unsigned long ulongval () { return (long) (sizeof (_int64)); }
1412 +#include <stdio.h>
1413 +#include <stdlib.h>
1414 +int
1415 +main ()
1416 +{
1417 +
1418 +  FILE *f = fopen ("conftest.val", "w");
1419 +  if (! f)
1420 +    exit (1);
1421 +  if (((long) (sizeof (_int64))) < 0)
1422 +    {
1423 +      long i = longval ();
1424 +      if (i != ((long) (sizeof (_int64))))
1425 +       exit (1);
1426 +      fprintf (f, "%ld\n", i);
1427 +    }
1428 +  else
1429 +    {
1430 +      unsigned long i = ulongval ();
1431 +      if (i != ((long) (sizeof (_int64))))
1432 +       exit (1);
1433 +      fprintf (f, "%lu\n", i);
1434 +    }
1435 +  exit (ferror (f) || fclose (f) != 0);
1436 +
1437 +  ;
1438 +  return 0;
1439 +}
1440 +_ACEOF
1441 +rm -f conftest$ac_exeext
1442 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1443 +  (eval $ac_link) 2>&5
1444 +  ac_status=$?
1445 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1446 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1447 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1448 +  (eval $ac_try) 2>&5
1449 +  ac_status=$?
1450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1451 +  (exit $ac_status); }; }; then
1452 +  ac_cv_sizeof__int64=`cat conftest.val`
1453 +else
1454 +  echo "$as_me: program exited with status $ac_status" >&5
1455 +echo "$as_me: failed program was:" >&5
1456 +sed 's/^/| /' conftest.$ac_ext >&5
1457 +
1458 +( exit $ac_status )
1459 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (_int64), 77
1460 +See \`config.log' for more details." >&5
1461 +echo "$as_me: error: cannot compute sizeof (_int64), 77
1462 +See \`config.log' for more details." >&2;}
1463 +   { (exit 1); exit 1; }; }
1464 +fi
1465 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1466 +fi
1467 +fi
1468 +rm -f conftest.val
1469 +else
1470 +  ac_cv_sizeof__int64=0
1471 +fi
1472 +fi
1473 +echo "$as_me:$LINENO: result: $ac_cv_sizeof__int64" >&5
1474 +echo "${ECHO_T}$ac_cv_sizeof__int64" >&6
1475 +cat >>confdefs.h <<_ACEOF
1476 +#define SIZEOF__INT64 $ac_cv_sizeof__int64
1477 +_ACEOF
1478 +
1479 +
1480 +echo "$as_me:$LINENO: checking for long long" >&5
1481 +echo $ECHO_N "checking for long long... $ECHO_C" >&6
1482 +if test "${ac_cv_type_long_long+set}" = set; then
1483 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1484 +else
1485 +  cat >conftest.$ac_ext <<_ACEOF
1486 +/* confdefs.h.  */
1487 +_ACEOF
1488 +cat confdefs.h >>conftest.$ac_ext
1489 +cat >>conftest.$ac_ext <<_ACEOF
1490 +/* end confdefs.h.  */
1491 +$ac_includes_default
1492 +int
1493 +main ()
1494 +{
1495 +if ((long long *) 0)
1496 +  return 0;
1497 +if (sizeof (long long))
1498 +  return 0;
1499 +  ;
1500 +  return 0;
1501 +}
1502 +_ACEOF
1503 +rm -f conftest.$ac_objext
1504 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1505 +  (eval $ac_compile) 2>conftest.er1
1506 +  ac_status=$?
1507 +  grep -v '^ *+' conftest.er1 >conftest.err
1508 +  rm -f conftest.er1
1509 +  cat conftest.err >&5
1510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1511 +  (exit $ac_status); } &&
1512 +        { ac_try='test -z "$ac_c_werror_flag"
1513 +                        || test ! -s conftest.err'
1514 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1515 +  (eval $ac_try) 2>&5
1516 +  ac_status=$?
1517 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1518 +  (exit $ac_status); }; } &&
1519 +        { ac_try='test -s conftest.$ac_objext'
1520 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1521 +  (eval $ac_try) 2>&5
1522 +  ac_status=$?
1523 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1524 +  (exit $ac_status); }; }; then
1525 +  ac_cv_type_long_long=yes
1526 +else
1527 +  echo "$as_me: failed program was:" >&5
1528 +sed 's/^/| /' conftest.$ac_ext >&5
1529 +
1530 +ac_cv_type_long_long=no
1531 +fi
1532 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1533 +fi
1534 +echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
1535 +echo "${ECHO_T}$ac_cv_type_long_long" >&6
1536 +
1537 +echo "$as_me:$LINENO: checking size of long long" >&5
1538 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6
1539 +if test "${ac_cv_sizeof_long_long+set}" = set; then
1540 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1541 +else
1542 +  if test "$ac_cv_type_long_long" = yes; then
1543 +  # The cast to unsigned long works around a bug in the HP C Compiler
1544 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1545 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1546 +  # This bug is HP SR number 8606223364.
1547 +  if test "$cross_compiling" = yes; then
1548 +  # Depending upon the size, compute the lo and hi bounds.
1549 +cat >conftest.$ac_ext <<_ACEOF
1550 +/* confdefs.h.  */
1551 +_ACEOF
1552 +cat confdefs.h >>conftest.$ac_ext
1553 +cat >>conftest.$ac_ext <<_ACEOF
1554 +/* end confdefs.h.  */
1555 +$ac_includes_default
1556 +int
1557 +main ()
1558 +{
1559 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
1560 +test_array [0] = 0
1561 +
1562 +  ;
1563 +  return 0;
1564 +}
1565 +_ACEOF
1566 +rm -f conftest.$ac_objext
1567 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1568 +  (eval $ac_compile) 2>conftest.er1
1569 +  ac_status=$?
1570 +  grep -v '^ *+' conftest.er1 >conftest.err
1571 +  rm -f conftest.er1
1572 +  cat conftest.err >&5
1573 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 +  (exit $ac_status); } &&
1575 +        { ac_try='test -z "$ac_c_werror_flag"
1576 +                        || test ! -s conftest.err'
1577 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1578 +  (eval $ac_try) 2>&5
1579 +  ac_status=$?
1580 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1581 +  (exit $ac_status); }; } &&
1582 +        { ac_try='test -s conftest.$ac_objext'
1583 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1584 +  (eval $ac_try) 2>&5
1585 +  ac_status=$?
1586 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1587 +  (exit $ac_status); }; }; then
1588 +  ac_lo=0 ac_mid=0
1589 +  while :; do
1590 +    cat >conftest.$ac_ext <<_ACEOF
1591 +/* confdefs.h.  */
1592 +_ACEOF
1593 +cat confdefs.h >>conftest.$ac_ext
1594 +cat >>conftest.$ac_ext <<_ACEOF
1595 +/* end confdefs.h.  */
1596 +$ac_includes_default
1597 +int
1598 +main ()
1599 +{
1600 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
1601 +test_array [0] = 0
1602 +
1603 +  ;
1604 +  return 0;
1605 +}
1606 +_ACEOF
1607 +rm -f conftest.$ac_objext
1608 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1609 +  (eval $ac_compile) 2>conftest.er1
1610 +  ac_status=$?
1611 +  grep -v '^ *+' conftest.er1 >conftest.err
1612 +  rm -f conftest.er1
1613 +  cat conftest.err >&5
1614 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1615 +  (exit $ac_status); } &&
1616 +        { ac_try='test -z "$ac_c_werror_flag"
1617 +                        || test ! -s conftest.err'
1618 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1619 +  (eval $ac_try) 2>&5
1620 +  ac_status=$?
1621 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1622 +  (exit $ac_status); }; } &&
1623 +        { ac_try='test -s conftest.$ac_objext'
1624 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1625 +  (eval $ac_try) 2>&5
1626 +  ac_status=$?
1627 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 +  (exit $ac_status); }; }; then
1629 +  ac_hi=$ac_mid; break
1630 +else
1631 +  echo "$as_me: failed program was:" >&5
1632 +sed 's/^/| /' conftest.$ac_ext >&5
1633 +
1634 +ac_lo=`expr $ac_mid + 1`
1635 +                   if test $ac_lo -le $ac_mid; then
1636 +                     ac_lo= ac_hi=
1637 +                     break
1638 +                   fi
1639 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
1640 +fi
1641 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1642 +  done
1643 +else
1644 +  echo "$as_me: failed program was:" >&5
1645 +sed 's/^/| /' conftest.$ac_ext >&5
1646 +
1647 +cat >conftest.$ac_ext <<_ACEOF
1648 +/* confdefs.h.  */
1649 +_ACEOF
1650 +cat confdefs.h >>conftest.$ac_ext
1651 +cat >>conftest.$ac_ext <<_ACEOF
1652 +/* end confdefs.h.  */
1653 +$ac_includes_default
1654 +int
1655 +main ()
1656 +{
1657 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
1658 +test_array [0] = 0
1659 +
1660 +  ;
1661 +  return 0;
1662 +}
1663 +_ACEOF
1664 +rm -f conftest.$ac_objext
1665 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1666 +  (eval $ac_compile) 2>conftest.er1
1667 +  ac_status=$?
1668 +  grep -v '^ *+' conftest.er1 >conftest.err
1669 +  rm -f conftest.er1
1670 +  cat conftest.err >&5
1671 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 +  (exit $ac_status); } &&
1673 +        { ac_try='test -z "$ac_c_werror_flag"
1674 +                        || test ! -s conftest.err'
1675 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1676 +  (eval $ac_try) 2>&5
1677 +  ac_status=$?
1678 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 +  (exit $ac_status); }; } &&
1680 +        { ac_try='test -s conftest.$ac_objext'
1681 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1682 +  (eval $ac_try) 2>&5
1683 +  ac_status=$?
1684 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 +  (exit $ac_status); }; }; then
1686 +  ac_hi=-1 ac_mid=-1
1687 +  while :; do
1688 +    cat >conftest.$ac_ext <<_ACEOF
1689 +/* confdefs.h.  */
1690 +_ACEOF
1691 +cat confdefs.h >>conftest.$ac_ext
1692 +cat >>conftest.$ac_ext <<_ACEOF
1693 +/* end confdefs.h.  */
1694 +$ac_includes_default
1695 +int
1696 +main ()
1697 +{
1698 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
1699 +test_array [0] = 0
1700 +
1701 +  ;
1702 +  return 0;
1703 +}
1704 +_ACEOF
1705 +rm -f conftest.$ac_objext
1706 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1707 +  (eval $ac_compile) 2>conftest.er1
1708 +  ac_status=$?
1709 +  grep -v '^ *+' conftest.er1 >conftest.err
1710 +  rm -f conftest.er1
1711 +  cat conftest.err >&5
1712 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 +  (exit $ac_status); } &&
1714 +        { ac_try='test -z "$ac_c_werror_flag"
1715 +                        || test ! -s conftest.err'
1716 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1717 +  (eval $ac_try) 2>&5
1718 +  ac_status=$?
1719 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 +  (exit $ac_status); }; } &&
1721 +        { ac_try='test -s conftest.$ac_objext'
1722 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1723 +  (eval $ac_try) 2>&5
1724 +  ac_status=$?
1725 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 +  (exit $ac_status); }; }; then
1727 +  ac_lo=$ac_mid; break
1728 +else
1729 +  echo "$as_me: failed program was:" >&5
1730 +sed 's/^/| /' conftest.$ac_ext >&5
1731 +
1732 +ac_hi=`expr '(' $ac_mid ')' - 1`
1733 +                      if test $ac_mid -le $ac_hi; then
1734 +                        ac_lo= ac_hi=
1735 +                        break
1736 +                      fi
1737 +                      ac_mid=`expr 2 '*' $ac_mid`
1738 +fi
1739 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1740 +  done
1741 +else
1742 +  echo "$as_me: failed program was:" >&5
1743 +sed 's/^/| /' conftest.$ac_ext >&5
1744 +
1745 +ac_lo= ac_hi=
1746 +fi
1747 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1748 +fi
1749 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1750 +# Binary search between lo and hi bounds.
1751 +while test "x$ac_lo" != "x$ac_hi"; do
1752 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1753 +  cat >conftest.$ac_ext <<_ACEOF
1754 +/* confdefs.h.  */
1755 +_ACEOF
1756 +cat confdefs.h >>conftest.$ac_ext
1757 +cat >>conftest.$ac_ext <<_ACEOF
1758 +/* end confdefs.h.  */
1759 +$ac_includes_default
1760 +int
1761 +main ()
1762 +{
1763 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
1764 +test_array [0] = 0
1765 +
1766 +  ;
1767 +  return 0;
1768 +}
1769 +_ACEOF
1770 +rm -f conftest.$ac_objext
1771 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1772 +  (eval $ac_compile) 2>conftest.er1
1773 +  ac_status=$?
1774 +  grep -v '^ *+' conftest.er1 >conftest.err
1775 +  rm -f conftest.er1
1776 +  cat conftest.err >&5
1777 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 +  (exit $ac_status); } &&
1779 +        { ac_try='test -z "$ac_c_werror_flag"
1780 +                        || test ! -s conftest.err'
1781 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1782 +  (eval $ac_try) 2>&5
1783 +  ac_status=$?
1784 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 +  (exit $ac_status); }; } &&
1786 +        { ac_try='test -s conftest.$ac_objext'
1787 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 +  (eval $ac_try) 2>&5
1789 +  ac_status=$?
1790 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 +  (exit $ac_status); }; }; then
1792 +  ac_hi=$ac_mid
1793 +else
1794 +  echo "$as_me: failed program was:" >&5
1795 +sed 's/^/| /' conftest.$ac_ext >&5
1796 +
1797 +ac_lo=`expr '(' $ac_mid ')' + 1`
1798 +fi
1799 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1800 +done
1801 +case $ac_lo in
1802 +?*) ac_cv_sizeof_long_long=$ac_lo;;
1803 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
1804 +See \`config.log' for more details." >&5
1805 +echo "$as_me: error: cannot compute sizeof (long long), 77
1806 +See \`config.log' for more details." >&2;}
1807 +   { (exit 1); exit 1; }; } ;;
1808 +esac
1809 +else
1810 +  if test "$cross_compiling" = yes; then
1811 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1812 +See \`config.log' for more details." >&5
1813 +echo "$as_me: error: cannot run test program while cross compiling
1814 +See \`config.log' for more details." >&2;}
1815 +   { (exit 1); exit 1; }; }
1816 +else
1817 +  cat >conftest.$ac_ext <<_ACEOF
1818 +/* confdefs.h.  */
1819 +_ACEOF
1820 +cat confdefs.h >>conftest.$ac_ext
1821 +cat >>conftest.$ac_ext <<_ACEOF
1822 +/* end confdefs.h.  */
1823 +$ac_includes_default
1824 +long longval () { return (long) (sizeof (long long)); }
1825 +unsigned long ulongval () { return (long) (sizeof (long long)); }
1826 +#include <stdio.h>
1827 +#include <stdlib.h>
1828 +int
1829 +main ()
1830 +{
1831 +
1832 +  FILE *f = fopen ("conftest.val", "w");
1833 +  if (! f)
1834 +    exit (1);
1835 +  if (((long) (sizeof (long long))) < 0)
1836 +    {
1837 +      long i = longval ();
1838 +      if (i != ((long) (sizeof (long long))))
1839 +       exit (1);
1840 +      fprintf (f, "%ld\n", i);
1841 +    }
1842 +  else
1843 +    {
1844 +      unsigned long i = ulongval ();
1845 +      if (i != ((long) (sizeof (long long))))
1846 +       exit (1);
1847 +      fprintf (f, "%lu\n", i);
1848 +    }
1849 +  exit (ferror (f) || fclose (f) != 0);
1850 +
1851 +  ;
1852 +  return 0;
1853 +}
1854 +_ACEOF
1855 +rm -f conftest$ac_exeext
1856 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1857 +  (eval $ac_link) 2>&5
1858 +  ac_status=$?
1859 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1861 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 +  (eval $ac_try) 2>&5
1863 +  ac_status=$?
1864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 +  (exit $ac_status); }; }; then
1866 +  ac_cv_sizeof_long_long=`cat conftest.val`
1867 +else
1868 +  echo "$as_me: program exited with status $ac_status" >&5
1869 +echo "$as_me: failed program was:" >&5
1870 +sed 's/^/| /' conftest.$ac_ext >&5
1871 +
1872 +( exit $ac_status )
1873 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
1874 +See \`config.log' for more details." >&5
1875 +echo "$as_me: error: cannot compute sizeof (long long), 77
1876 +See \`config.log' for more details." >&2;}
1877 +   { (exit 1); exit 1; }; }
1878 +fi
1879 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1880 +fi
1881 +fi
1882 +rm -f conftest.val
1883 +else
1884 +  ac_cv_sizeof_long_long=0
1885 +fi
1886 +fi
1887 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
1888 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
1889 +cat >>confdefs.h <<_ACEOF
1890 +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1891 +_ACEOF
1892 +
1893 +
1894 +echo "$as_me:$LINENO: checking for long" >&5
1895 +echo $ECHO_N "checking for long... $ECHO_C" >&6
1896 +if test "${ac_cv_type_long+set}" = set; then
1897 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1898 +else
1899 +  cat >conftest.$ac_ext <<_ACEOF
1900 +/* confdefs.h.  */
1901 +_ACEOF
1902 +cat confdefs.h >>conftest.$ac_ext
1903 +cat >>conftest.$ac_ext <<_ACEOF
1904 +/* end confdefs.h.  */
1905 +$ac_includes_default
1906 +int
1907 +main ()
1908 +{
1909 +if ((long *) 0)
1910 +  return 0;
1911 +if (sizeof (long))
1912 +  return 0;
1913 +  ;
1914 +  return 0;
1915 +}
1916 +_ACEOF
1917 +rm -f conftest.$ac_objext
1918 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 +  (eval $ac_compile) 2>conftest.er1
1920 +  ac_status=$?
1921 +  grep -v '^ *+' conftest.er1 >conftest.err
1922 +  rm -f conftest.er1
1923 +  cat conftest.err >&5
1924 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 +  (exit $ac_status); } &&
1926 +        { ac_try='test -z "$ac_c_werror_flag"
1927 +                        || test ! -s conftest.err'
1928 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 +  (eval $ac_try) 2>&5
1930 +  ac_status=$?
1931 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 +  (exit $ac_status); }; } &&
1933 +        { ac_try='test -s conftest.$ac_objext'
1934 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 +  (eval $ac_try) 2>&5
1936 +  ac_status=$?
1937 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 +  (exit $ac_status); }; }; then
1939 +  ac_cv_type_long=yes
1940 +else
1941 +  echo "$as_me: failed program was:" >&5
1942 +sed 's/^/| /' conftest.$ac_ext >&5
1943 +
1944 +ac_cv_type_long=no
1945 +fi
1946 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1947 +fi
1948 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
1949 +echo "${ECHO_T}$ac_cv_type_long" >&6
1950 +
1951 +echo "$as_me:$LINENO: checking size of long" >&5
1952 +echo $ECHO_N "checking size of long... $ECHO_C" >&6
1953 +if test "${ac_cv_sizeof_long+set}" = set; then
1954 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1955 +else
1956 +  if test "$ac_cv_type_long" = yes; then
1957 +  # The cast to unsigned long works around a bug in the HP C Compiler
1958 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1959 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1960 +  # This bug is HP SR number 8606223364.
1961 +  if test "$cross_compiling" = yes; then
1962 +  # Depending upon the size, compute the lo and hi bounds.
1963 +cat >conftest.$ac_ext <<_ACEOF
1964 +/* confdefs.h.  */
1965 +_ACEOF
1966 +cat confdefs.h >>conftest.$ac_ext
1967 +cat >>conftest.$ac_ext <<_ACEOF
1968 +/* end confdefs.h.  */
1969 +$ac_includes_default
1970 +int
1971 +main ()
1972 +{
1973 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
1974 +test_array [0] = 0
1975 +
1976 +  ;
1977 +  return 0;
1978 +}
1979 +_ACEOF
1980 +rm -f conftest.$ac_objext
1981 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 +  (eval $ac_compile) 2>conftest.er1
1983 +  ac_status=$?
1984 +  grep -v '^ *+' conftest.er1 >conftest.err
1985 +  rm -f conftest.er1
1986 +  cat conftest.err >&5
1987 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 +  (exit $ac_status); } &&
1989 +        { ac_try='test -z "$ac_c_werror_flag"
1990 +                        || test ! -s conftest.err'
1991 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 +  (eval $ac_try) 2>&5
1993 +  ac_status=$?
1994 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 +  (exit $ac_status); }; } &&
1996 +        { ac_try='test -s conftest.$ac_objext'
1997 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 +  (eval $ac_try) 2>&5
1999 +  ac_status=$?
2000 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 +  (exit $ac_status); }; }; then
2002 +  ac_lo=0 ac_mid=0
2003 +  while :; do
2004 +    cat >conftest.$ac_ext <<_ACEOF
2005 +/* confdefs.h.  */
2006 +_ACEOF
2007 +cat confdefs.h >>conftest.$ac_ext
2008 +cat >>conftest.$ac_ext <<_ACEOF
2009 +/* end confdefs.h.  */
2010 +$ac_includes_default
2011 +int
2012 +main ()
2013 +{
2014 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
2015 +test_array [0] = 0
2016 +
2017 +  ;
2018 +  return 0;
2019 +}
2020 +_ACEOF
2021 +rm -f conftest.$ac_objext
2022 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 +  (eval $ac_compile) 2>conftest.er1
2024 +  ac_status=$?
2025 +  grep -v '^ *+' conftest.er1 >conftest.err
2026 +  rm -f conftest.er1
2027 +  cat conftest.err >&5
2028 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 +  (exit $ac_status); } &&
2030 +        { ac_try='test -z "$ac_c_werror_flag"
2031 +                        || test ! -s conftest.err'
2032 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 +  (eval $ac_try) 2>&5
2034 +  ac_status=$?
2035 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 +  (exit $ac_status); }; } &&
2037 +        { ac_try='test -s conftest.$ac_objext'
2038 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 +  (eval $ac_try) 2>&5
2040 +  ac_status=$?
2041 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 +  (exit $ac_status); }; }; then
2043 +  ac_hi=$ac_mid; break
2044 +else
2045 +  echo "$as_me: failed program was:" >&5
2046 +sed 's/^/| /' conftest.$ac_ext >&5
2047 +
2048 +ac_lo=`expr $ac_mid + 1`
2049 +                   if test $ac_lo -le $ac_mid; then
2050 +                     ac_lo= ac_hi=
2051 +                     break
2052 +                   fi
2053 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
2054 +fi
2055 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2056 +  done
2057 +else
2058 +  echo "$as_me: failed program was:" >&5
2059 +sed 's/^/| /' conftest.$ac_ext >&5
2060 +
2061 +cat >conftest.$ac_ext <<_ACEOF
2062 +/* confdefs.h.  */
2063 +_ACEOF
2064 +cat confdefs.h >>conftest.$ac_ext
2065 +cat >>conftest.$ac_ext <<_ACEOF
2066 +/* end confdefs.h.  */
2067 +$ac_includes_default
2068 +int
2069 +main ()
2070 +{
2071 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
2072 +test_array [0] = 0
2073 +
2074 +  ;
2075 +  return 0;
2076 +}
2077 +_ACEOF
2078 +rm -f conftest.$ac_objext
2079 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 +  (eval $ac_compile) 2>conftest.er1
2081 +  ac_status=$?
2082 +  grep -v '^ *+' conftest.er1 >conftest.err
2083 +  rm -f conftest.er1
2084 +  cat conftest.err >&5
2085 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 +  (exit $ac_status); } &&
2087 +        { ac_try='test -z "$ac_c_werror_flag"
2088 +                        || test ! -s conftest.err'
2089 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 +  (eval $ac_try) 2>&5
2091 +  ac_status=$?
2092 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 +  (exit $ac_status); }; } &&
2094 +        { ac_try='test -s conftest.$ac_objext'
2095 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 +  (eval $ac_try) 2>&5
2097 +  ac_status=$?
2098 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 +  (exit $ac_status); }; }; then
2100 +  ac_hi=-1 ac_mid=-1
2101 +  while :; do
2102 +    cat >conftest.$ac_ext <<_ACEOF
2103 +/* confdefs.h.  */
2104 +_ACEOF
2105 +cat confdefs.h >>conftest.$ac_ext
2106 +cat >>conftest.$ac_ext <<_ACEOF
2107 +/* end confdefs.h.  */
2108 +$ac_includes_default
2109 +int
2110 +main ()
2111 +{
2112 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
2113 +test_array [0] = 0
2114 +
2115 +  ;
2116 +  return 0;
2117 +}
2118 +_ACEOF
2119 +rm -f conftest.$ac_objext
2120 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 +  (eval $ac_compile) 2>conftest.er1
2122 +  ac_status=$?
2123 +  grep -v '^ *+' conftest.er1 >conftest.err
2124 +  rm -f conftest.er1
2125 +  cat conftest.err >&5
2126 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 +  (exit $ac_status); } &&
2128 +        { ac_try='test -z "$ac_c_werror_flag"
2129 +                        || test ! -s conftest.err'
2130 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 +  (eval $ac_try) 2>&5
2132 +  ac_status=$?
2133 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 +  (exit $ac_status); }; } &&
2135 +        { ac_try='test -s conftest.$ac_objext'
2136 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 +  (eval $ac_try) 2>&5
2138 +  ac_status=$?
2139 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 +  (exit $ac_status); }; }; then
2141 +  ac_lo=$ac_mid; break
2142 +else
2143 +  echo "$as_me: failed program was:" >&5
2144 +sed 's/^/| /' conftest.$ac_ext >&5
2145 +
2146 +ac_hi=`expr '(' $ac_mid ')' - 1`
2147 +                      if test $ac_mid -le $ac_hi; then
2148 +                        ac_lo= ac_hi=
2149 +                        break
2150 +                      fi
2151 +                      ac_mid=`expr 2 '*' $ac_mid`
2152 +fi
2153 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2154 +  done
2155 +else
2156 +  echo "$as_me: failed program was:" >&5
2157 +sed 's/^/| /' conftest.$ac_ext >&5
2158 +
2159 +ac_lo= ac_hi=
2160 +fi
2161 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2162 +fi
2163 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 +# Binary search between lo and hi bounds.
2165 +while test "x$ac_lo" != "x$ac_hi"; do
2166 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2167 +  cat >conftest.$ac_ext <<_ACEOF
2168 +/* confdefs.h.  */
2169 +_ACEOF
2170 +cat confdefs.h >>conftest.$ac_ext
2171 +cat >>conftest.$ac_ext <<_ACEOF
2172 +/* end confdefs.h.  */
2173 +$ac_includes_default
2174 +int
2175 +main ()
2176 +{
2177 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
2178 +test_array [0] = 0
2179 +
2180 +  ;
2181 +  return 0;
2182 +}
2183 +_ACEOF
2184 +rm -f conftest.$ac_objext
2185 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 +  (eval $ac_compile) 2>conftest.er1
2187 +  ac_status=$?
2188 +  grep -v '^ *+' conftest.er1 >conftest.err
2189 +  rm -f conftest.er1
2190 +  cat conftest.err >&5
2191 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 +  (exit $ac_status); } &&
2193 +        { ac_try='test -z "$ac_c_werror_flag"
2194 +                        || test ! -s conftest.err'
2195 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 +  (eval $ac_try) 2>&5
2197 +  ac_status=$?
2198 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 +  (exit $ac_status); }; } &&
2200 +        { ac_try='test -s conftest.$ac_objext'
2201 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 +  (eval $ac_try) 2>&5
2203 +  ac_status=$?
2204 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 +  (exit $ac_status); }; }; then
2206 +  ac_hi=$ac_mid
2207 +else
2208 +  echo "$as_me: failed program was:" >&5
2209 +sed 's/^/| /' conftest.$ac_ext >&5
2210 +
2211 +ac_lo=`expr '(' $ac_mid ')' + 1`
2212 +fi
2213 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 +done
2215 +case $ac_lo in
2216 +?*) ac_cv_sizeof_long=$ac_lo;;
2217 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2218 +See \`config.log' for more details." >&5
2219 +echo "$as_me: error: cannot compute sizeof (long), 77
2220 +See \`config.log' for more details." >&2;}
2221 +   { (exit 1); exit 1; }; } ;;
2222 +esac
2223 +else
2224 +  if test "$cross_compiling" = yes; then
2225 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2226 +See \`config.log' for more details." >&5
2227 +echo "$as_me: error: cannot run test program while cross compiling
2228 +See \`config.log' for more details." >&2;}
2229 +   { (exit 1); exit 1; }; }
2230 +else
2231 +  cat >conftest.$ac_ext <<_ACEOF
2232 +/* confdefs.h.  */
2233 +_ACEOF
2234 +cat confdefs.h >>conftest.$ac_ext
2235 +cat >>conftest.$ac_ext <<_ACEOF
2236 +/* end confdefs.h.  */
2237 +$ac_includes_default
2238 +long longval () { return (long) (sizeof (long)); }
2239 +unsigned long ulongval () { return (long) (sizeof (long)); }
2240 +#include <stdio.h>
2241 +#include <stdlib.h>
2242 +int
2243 +main ()
2244 +{
2245 +
2246 +  FILE *f = fopen ("conftest.val", "w");
2247 +  if (! f)
2248 +    exit (1);
2249 +  if (((long) (sizeof (long))) < 0)
2250 +    {
2251 +      long i = longval ();
2252 +      if (i != ((long) (sizeof (long))))
2253 +       exit (1);
2254 +      fprintf (f, "%ld\n", i);
2255 +    }
2256 +  else
2257 +    {
2258 +      unsigned long i = ulongval ();
2259 +      if (i != ((long) (sizeof (long))))
2260 +       exit (1);
2261 +      fprintf (f, "%lu\n", i);
2262 +    }
2263 +  exit (ferror (f) || fclose (f) != 0);
2264 +
2265 +  ;
2266 +  return 0;
2267 +}
2268 +_ACEOF
2269 +rm -f conftest$ac_exeext
2270 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271 +  (eval $ac_link) 2>&5
2272 +  ac_status=$?
2273 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2275 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 +  (eval $ac_try) 2>&5
2277 +  ac_status=$?
2278 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 +  (exit $ac_status); }; }; then
2280 +  ac_cv_sizeof_long=`cat conftest.val`
2281 +else
2282 +  echo "$as_me: program exited with status $ac_status" >&5
2283 +echo "$as_me: failed program was:" >&5
2284 +sed 's/^/| /' conftest.$ac_ext >&5
2285 +
2286 +( exit $ac_status )
2287 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2288 +See \`config.log' for more details." >&5
2289 +echo "$as_me: error: cannot compute sizeof (long), 77
2290 +See \`config.log' for more details." >&2;}
2291 +   { (exit 1); exit 1; }; }
2292 +fi
2293 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2294 +fi
2295 +fi
2296 +rm -f conftest.val
2297 +else
2298 +  ac_cv_sizeof_long=0
2299 +fi
2300 +fi
2301 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
2302 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6
2303 +cat >>confdefs.h <<_ACEOF
2304 +#define SIZEOF_LONG $ac_cv_sizeof_long
2305 +_ACEOF
2306 +
2307 +
2308 +echo "$as_me:$LINENO: checking for void *" >&5
2309 +echo $ECHO_N "checking for void *... $ECHO_C" >&6
2310 +if test "${ac_cv_type_void_p+set}" = set; then
2311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2312 +else
2313 +  cat >conftest.$ac_ext <<_ACEOF
2314 +/* confdefs.h.  */
2315 +_ACEOF
2316 +cat confdefs.h >>conftest.$ac_ext
2317 +cat >>conftest.$ac_ext <<_ACEOF
2318 +/* end confdefs.h.  */
2319 +$ac_includes_default
2320 +int
2321 +main ()
2322 +{
2323 +if ((void * *) 0)
2324 +  return 0;
2325 +if (sizeof (void *))
2326 +  return 0;
2327 +  ;
2328 +  return 0;
2329 +}
2330 +_ACEOF
2331 +rm -f conftest.$ac_objext
2332 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 +  (eval $ac_compile) 2>conftest.er1
2334 +  ac_status=$?
2335 +  grep -v '^ *+' conftest.er1 >conftest.err
2336 +  rm -f conftest.er1
2337 +  cat conftest.err >&5
2338 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 +  (exit $ac_status); } &&
2340 +        { ac_try='test -z "$ac_c_werror_flag"
2341 +                        || test ! -s conftest.err'
2342 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 +  (eval $ac_try) 2>&5
2344 +  ac_status=$?
2345 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 +  (exit $ac_status); }; } &&
2347 +        { ac_try='test -s conftest.$ac_objext'
2348 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 +  (eval $ac_try) 2>&5
2350 +  ac_status=$?
2351 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 +  (exit $ac_status); }; }; then
2353 +  ac_cv_type_void_p=yes
2354 +else
2355 +  echo "$as_me: failed program was:" >&5
2356 +sed 's/^/| /' conftest.$ac_ext >&5
2357 +
2358 +ac_cv_type_void_p=no
2359 +fi
2360 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 +fi
2362 +echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2363 +echo "${ECHO_T}$ac_cv_type_void_p" >&6
2364 +
2365 +echo "$as_me:$LINENO: checking size of void *" >&5
2366 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6
2367 +if test "${ac_cv_sizeof_void_p+set}" = set; then
2368 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2369 +else
2370 +  if test "$ac_cv_type_void_p" = yes; then
2371 +  # The cast to unsigned long works around a bug in the HP C Compiler
2372 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2373 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2374 +  # This bug is HP SR number 8606223364.
2375 +  if test "$cross_compiling" = yes; then
2376 +  # Depending upon the size, compute the lo and hi bounds.
2377 +cat >conftest.$ac_ext <<_ACEOF
2378 +/* confdefs.h.  */
2379 +_ACEOF
2380 +cat confdefs.h >>conftest.$ac_ext
2381 +cat >>conftest.$ac_ext <<_ACEOF
2382 +/* end confdefs.h.  */
2383 +$ac_includes_default
2384 +int
2385 +main ()
2386 +{
2387 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
2388 +test_array [0] = 0
2389 +
2390 +  ;
2391 +  return 0;
2392 +}
2393 +_ACEOF
2394 +rm -f conftest.$ac_objext
2395 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 +  (eval $ac_compile) 2>conftest.er1
2397 +  ac_status=$?
2398 +  grep -v '^ *+' conftest.er1 >conftest.err
2399 +  rm -f conftest.er1
2400 +  cat conftest.err >&5
2401 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 +  (exit $ac_status); } &&
2403 +        { ac_try='test -z "$ac_c_werror_flag"
2404 +                        || test ! -s conftest.err'
2405 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 +  (eval $ac_try) 2>&5
2407 +  ac_status=$?
2408 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 +  (exit $ac_status); }; } &&
2410 +        { ac_try='test -s conftest.$ac_objext'
2411 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 +  (eval $ac_try) 2>&5
2413 +  ac_status=$?
2414 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 +  (exit $ac_status); }; }; then
2416 +  ac_lo=0 ac_mid=0
2417 +  while :; do
2418 +    cat >conftest.$ac_ext <<_ACEOF
2419 +/* confdefs.h.  */
2420 +_ACEOF
2421 +cat confdefs.h >>conftest.$ac_ext
2422 +cat >>conftest.$ac_ext <<_ACEOF
2423 +/* end confdefs.h.  */
2424 +$ac_includes_default
2425 +int
2426 +main ()
2427 +{
2428 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2429 +test_array [0] = 0
2430 +
2431 +  ;
2432 +  return 0;
2433 +}
2434 +_ACEOF
2435 +rm -f conftest.$ac_objext
2436 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 +  (eval $ac_compile) 2>conftest.er1
2438 +  ac_status=$?
2439 +  grep -v '^ *+' conftest.er1 >conftest.err
2440 +  rm -f conftest.er1
2441 +  cat conftest.err >&5
2442 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 +  (exit $ac_status); } &&
2444 +        { ac_try='test -z "$ac_c_werror_flag"
2445 +                        || test ! -s conftest.err'
2446 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 +  (eval $ac_try) 2>&5
2448 +  ac_status=$?
2449 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 +  (exit $ac_status); }; } &&
2451 +        { ac_try='test -s conftest.$ac_objext'
2452 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 +  (eval $ac_try) 2>&5
2454 +  ac_status=$?
2455 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 +  (exit $ac_status); }; }; then
2457 +  ac_hi=$ac_mid; break
2458 +else
2459 +  echo "$as_me: failed program was:" >&5
2460 +sed 's/^/| /' conftest.$ac_ext >&5
2461 +
2462 +ac_lo=`expr $ac_mid + 1`
2463 +                   if test $ac_lo -le $ac_mid; then
2464 +                     ac_lo= ac_hi=
2465 +                     break
2466 +                   fi
2467 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
2468 +fi
2469 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470 +  done
2471 +else
2472 +  echo "$as_me: failed program was:" >&5
2473 +sed 's/^/| /' conftest.$ac_ext >&5
2474 +
2475 +cat >conftest.$ac_ext <<_ACEOF
2476 +/* confdefs.h.  */
2477 +_ACEOF
2478 +cat confdefs.h >>conftest.$ac_ext
2479 +cat >>conftest.$ac_ext <<_ACEOF
2480 +/* end confdefs.h.  */
2481 +$ac_includes_default
2482 +int
2483 +main ()
2484 +{
2485 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
2486 +test_array [0] = 0
2487 +
2488 +  ;
2489 +  return 0;
2490 +}
2491 +_ACEOF
2492 +rm -f conftest.$ac_objext
2493 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 +  (eval $ac_compile) 2>conftest.er1
2495 +  ac_status=$?
2496 +  grep -v '^ *+' conftest.er1 >conftest.err
2497 +  rm -f conftest.er1
2498 +  cat conftest.err >&5
2499 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 +  (exit $ac_status); } &&
2501 +        { ac_try='test -z "$ac_c_werror_flag"
2502 +                        || test ! -s conftest.err'
2503 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 +  (eval $ac_try) 2>&5
2505 +  ac_status=$?
2506 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 +  (exit $ac_status); }; } &&
2508 +        { ac_try='test -s conftest.$ac_objext'
2509 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 +  (eval $ac_try) 2>&5
2511 +  ac_status=$?
2512 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 +  (exit $ac_status); }; }; then
2514 +  ac_hi=-1 ac_mid=-1
2515 +  while :; do
2516 +    cat >conftest.$ac_ext <<_ACEOF
2517 +/* confdefs.h.  */
2518 +_ACEOF
2519 +cat confdefs.h >>conftest.$ac_ext
2520 +cat >>conftest.$ac_ext <<_ACEOF
2521 +/* end confdefs.h.  */
2522 +$ac_includes_default
2523 +int
2524 +main ()
2525 +{
2526 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
2527 +test_array [0] = 0
2528 +
2529 +  ;
2530 +  return 0;
2531 +}
2532 +_ACEOF
2533 +rm -f conftest.$ac_objext
2534 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 +  (eval $ac_compile) 2>conftest.er1
2536 +  ac_status=$?
2537 +  grep -v '^ *+' conftest.er1 >conftest.err
2538 +  rm -f conftest.er1
2539 +  cat conftest.err >&5
2540 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 +  (exit $ac_status); } &&
2542 +        { ac_try='test -z "$ac_c_werror_flag"
2543 +                        || test ! -s conftest.err'
2544 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 +  (eval $ac_try) 2>&5
2546 +  ac_status=$?
2547 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 +  (exit $ac_status); }; } &&
2549 +        { ac_try='test -s conftest.$ac_objext'
2550 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 +  (eval $ac_try) 2>&5
2552 +  ac_status=$?
2553 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 +  (exit $ac_status); }; }; then
2555 +  ac_lo=$ac_mid; break
2556 +else
2557 +  echo "$as_me: failed program was:" >&5
2558 +sed 's/^/| /' conftest.$ac_ext >&5
2559 +
2560 +ac_hi=`expr '(' $ac_mid ')' - 1`
2561 +                      if test $ac_mid -le $ac_hi; then
2562 +                        ac_lo= ac_hi=
2563 +                        break
2564 +                      fi
2565 +                      ac_mid=`expr 2 '*' $ac_mid`
2566 +fi
2567 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 +  done
2569 +else
2570 +  echo "$as_me: failed program was:" >&5
2571 +sed 's/^/| /' conftest.$ac_ext >&5
2572 +
2573 +ac_lo= ac_hi=
2574 +fi
2575 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 +fi
2577 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 +# Binary search between lo and hi bounds.
2579 +while test "x$ac_lo" != "x$ac_hi"; do
2580 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2581 +  cat >conftest.$ac_ext <<_ACEOF
2582 +/* confdefs.h.  */
2583 +_ACEOF
2584 +cat confdefs.h >>conftest.$ac_ext
2585 +cat >>conftest.$ac_ext <<_ACEOF
2586 +/* end confdefs.h.  */
2587 +$ac_includes_default
2588 +int
2589 +main ()
2590 +{
2591 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2592 +test_array [0] = 0
2593 +
2594 +  ;
2595 +  return 0;
2596 +}
2597 +_ACEOF
2598 +rm -f conftest.$ac_objext
2599 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 +  (eval $ac_compile) 2>conftest.er1
2601 +  ac_status=$?
2602 +  grep -v '^ *+' conftest.er1 >conftest.err
2603 +  rm -f conftest.er1
2604 +  cat conftest.err >&5
2605 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 +  (exit $ac_status); } &&
2607 +        { ac_try='test -z "$ac_c_werror_flag"
2608 +                        || test ! -s conftest.err'
2609 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 +  (eval $ac_try) 2>&5
2611 +  ac_status=$?
2612 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 +  (exit $ac_status); }; } &&
2614 +        { ac_try='test -s conftest.$ac_objext'
2615 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 +  (eval $ac_try) 2>&5
2617 +  ac_status=$?
2618 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 +  (exit $ac_status); }; }; then
2620 +  ac_hi=$ac_mid
2621 +else
2622 +  echo "$as_me: failed program was:" >&5
2623 +sed 's/^/| /' conftest.$ac_ext >&5
2624 +
2625 +ac_lo=`expr '(' $ac_mid ')' + 1`
2626 +fi
2627 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 +done
2629 +case $ac_lo in
2630 +?*) ac_cv_sizeof_void_p=$ac_lo;;
2631 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
2632 +See \`config.log' for more details." >&5
2633 +echo "$as_me: error: cannot compute sizeof (void *), 77
2634 +See \`config.log' for more details." >&2;}
2635 +   { (exit 1); exit 1; }; } ;;
2636 +esac
2637 +else
2638 +  if test "$cross_compiling" = yes; then
2639 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2640 +See \`config.log' for more details." >&5
2641 +echo "$as_me: error: cannot run test program while cross compiling
2642 +See \`config.log' for more details." >&2;}
2643 +   { (exit 1); exit 1; }; }
2644 +else
2645 +  cat >conftest.$ac_ext <<_ACEOF
2646 +/* confdefs.h.  */
2647 +_ACEOF
2648 +cat confdefs.h >>conftest.$ac_ext
2649 +cat >>conftest.$ac_ext <<_ACEOF
2650 +/* end confdefs.h.  */
2651 +$ac_includes_default
2652 +long longval () { return (long) (sizeof (void *)); }
2653 +unsigned long ulongval () { return (long) (sizeof (void *)); }
2654 +#include <stdio.h>
2655 +#include <stdlib.h>
2656 +int
2657 +main ()
2658 +{
2659 +
2660 +  FILE *f = fopen ("conftest.val", "w");
2661 +  if (! f)
2662 +    exit (1);
2663 +  if (((long) (sizeof (void *))) < 0)
2664 +    {
2665 +      long i = longval ();
2666 +      if (i != ((long) (sizeof (void *))))
2667 +       exit (1);
2668 +      fprintf (f, "%ld\n", i);
2669 +    }
2670 +  else
2671 +    {
2672 +      unsigned long i = ulongval ();
2673 +      if (i != ((long) (sizeof (void *))))
2674 +       exit (1);
2675 +      fprintf (f, "%lu\n", i);
2676 +    }
2677 +  exit (ferror (f) || fclose (f) != 0);
2678 +
2679 +  ;
2680 +  return 0;
2681 +}
2682 +_ACEOF
2683 +rm -f conftest$ac_exeext
2684 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685 +  (eval $ac_link) 2>&5
2686 +  ac_status=$?
2687 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 +  (eval $ac_try) 2>&5
2691 +  ac_status=$?
2692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 +  (exit $ac_status); }; }; then
2694 +  ac_cv_sizeof_void_p=`cat conftest.val`
2695 +else
2696 +  echo "$as_me: program exited with status $ac_status" >&5
2697 +echo "$as_me: failed program was:" >&5
2698 +sed 's/^/| /' conftest.$ac_ext >&5
2699 +
2700 +( exit $ac_status )
2701 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
2702 +See \`config.log' for more details." >&5
2703 +echo "$as_me: error: cannot compute sizeof (void *), 77
2704 +See \`config.log' for more details." >&2;}
2705 +   { (exit 1); exit 1; }; }
2706 +fi
2707 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2708 +fi
2709 +fi
2710 +rm -f conftest.val
2711 +else
2712 +  ac_cv_sizeof_void_p=0
2713 +fi
2714 +fi
2715 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2716 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
2717 +cat >>confdefs.h <<_ACEOF
2718 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2719 +_ACEOF
2720 +
2721 +
2722 +
2723 +                                                                                                              ac_config_files="$ac_config_files Makefile dos2unix/Makefile drmingw/Makefile pexports/Makefile redir/Makefile reimp/Makefile res2coff/Makefile scripts/Makefile scripts/a2dll scripts/dsw2mak unix2dos/Makefile"
2724 +
2725 +cat >confcache <<\_ACEOF
2726 +# This file is a shell script that caches the results of configure
2727 +# tests run on this system so they can be shared between configure
2728 +# scripts and configure runs, see configure's option --config-cache.
2729 +# It is not useful on other systems.  If it contains results you don't
2730 +# want to keep, you may remove or edit it.
2731 +#
2732 +# config.status only pays attention to the cache file if you give it
2733 +# the --recheck option to rerun configure.
2734 +#
2735 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
2736 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
2737 +# following values.
2738 +
2739 +_ACEOF
2740 +
2741  # The following way of writing the cache mishandles newlines in values,
2742  # but we know of no workaround that is simple, portable, and efficient.
2743  # So, don't put newlines in cache variables' values.
2744 @@ -5021,6 +7010,27 @@
2745  Usually this means the macro was only invoked conditionally." >&2;}
2746     { (exit 1); exit 1; }; }
2747  fi
2748 +if test -z "${BUILD_DRMINGW_TRUE}" && test -z "${BUILD_DRMINGW_FALSE}"; then
2749 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DRMINGW\" was never defined.
2750 +Usually this means the macro was only invoked conditionally." >&5
2751 +echo "$as_me: error: conditional \"BUILD_DRMINGW\" was never defined.
2752 +Usually this means the macro was only invoked conditionally." >&2;}
2753 +   { (exit 1); exit 1; }; }
2754 +fi
2755 +if test -z "${BUILD_REDIR_TRUE}" && test -z "${BUILD_REDIR_FALSE}"; then
2756 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_REDIR\" was never defined.
2757 +Usually this means the macro was only invoked conditionally." >&5
2758 +echo "$as_me: error: conditional \"BUILD_REDIR\" was never defined.
2759 +Usually this means the macro was only invoked conditionally." >&2;}
2760 +   { (exit 1); exit 1; }; }
2761 +fi
2762 +if test -z "${BUILD_RES2COFF_TRUE}" && test -z "${BUILD_RES2COFF_FALSE}"; then
2763 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RES2COFF\" was never defined.
2764 +Usually this means the macro was only invoked conditionally." >&5
2765 +echo "$as_me: error: conditional \"BUILD_RES2COFF\" was never defined.
2766 +Usually this means the macro was only invoked conditionally." >&2;}
2767 +   { (exit 1); exit 1; }; }
2768 +fi
2769  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2770    { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2771  Usually this means the macro was only invoked conditionally." >&5
2772 @@ -5042,6 +7052,13 @@
2773  Usually this means the macro was only invoked conditionally." >&2;}
2774     { (exit 1); exit 1; }; }
2775  fi
2776 +if test -z "${BUILD_DRMINGW_TRUE}" && test -z "${BUILD_DRMINGW_FALSE}"; then
2777 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DRMINGW\" was never defined.
2778 +Usually this means the macro was only invoked conditionally." >&5
2779 +echo "$as_me: error: conditional \"BUILD_DRMINGW\" was never defined.
2780 +Usually this means the macro was only invoked conditionally." >&2;}
2781 +   { (exit 1); exit 1; }; }
2782 +fi
2783  
2784  : ${CONFIG_STATUS=./config.status}
2785  ac_clean_files_save=$ac_clean_files
2786 @@ -5314,7 +7331,7 @@
2787  cat >&5 <<_CSEOF
2788  
2789  This file was extended by mingw-utils $as_me 0.3, which was
2790 -generated by GNU Autoconf 2.58.  Invocation command line was
2791 +generated by GNU Autoconf 2.59.  Invocation command line was
2792  
2793    CONFIG_FILES    = $CONFIG_FILES
2794    CONFIG_HEADERS  = $CONFIG_HEADERS
2795 @@ -5377,7 +7394,7 @@
2796  cat >>$CONFIG_STATUS <<_ACEOF
2797  ac_cs_version="\\
2798  mingw-utils config.status 0.3
2799 -configured by $0, generated by GNU Autoconf 2.58,
2800 +configured by $0, generated by GNU Autoconf 2.59,
2801    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2802  
2803  Copyright (C) 2003 Free Software Foundation, Inc.
2804 @@ -5595,17 +7612,26 @@
2805  s,@AUTOMAKE@,$AUTOMAKE,;t t
2806  s,@AUTOHEADER@,$AUTOHEADER,;t t
2807  s,@MAKEINFO@,$MAKEINFO,;t t
2808 -s,@AMTAR@,$AMTAR,;t t
2809  s,@install_sh@,$install_sh,;t t
2810  s,@STRIP@,$STRIP,;t t
2811  s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
2812  s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
2813 +s,@mkdir_p@,$mkdir_p,;t t
2814  s,@AWK@,$AWK,;t t
2815  s,@SET_MAKE@,$SET_MAKE,;t t
2816  s,@am__leading_dot@,$am__leading_dot,;t t
2817 +s,@AMTAR@,$AMTAR,;t t
2818 +s,@am__tar@,$am__tar,;t t
2819 +s,@am__untar@,$am__untar,;t t
2820  s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
2821  s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
2822  s,@MAINT@,$MAINT,;t t
2823 +s,@BUILD_DRMINGW_TRUE@,$BUILD_DRMINGW_TRUE,;t t
2824 +s,@BUILD_DRMINGW_FALSE@,$BUILD_DRMINGW_FALSE,;t t
2825 +s,@BUILD_REDIR_TRUE@,$BUILD_REDIR_TRUE,;t t
2826 +s,@BUILD_REDIR_FALSE@,$BUILD_REDIR_FALSE,;t t
2827 +s,@BUILD_RES2COFF_TRUE@,$BUILD_RES2COFF_TRUE,;t t
2828 +s,@BUILD_RES2COFF_FALSE@,$BUILD_RES2COFF_FALSE,;t t
2829  s,@CC@,$CC,;t t
2830  s,@CFLAGS@,$CFLAGS,;t t
2831  s,@LDFLAGS@,$LDFLAGS,;t t
2832 @@ -6262,27 +8288,21 @@
2833    else
2834      continue
2835    fi
2836 -  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
2837 -  # Extract the definition of DEP_FILES from the Makefile without
2838 -  # running `make'.
2839 -  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
2840 +  # Extract the definition of DEPDIR, am__include, and am__quote
2841 +  # from the Makefile without running `make'.
2842 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2843    test -z "$DEPDIR" && continue
2844 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
2845 +  test -z "am__include" && continue
2846 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2847    # When using ansi2knr, U may be empty or an underscore; expand it
2848 -  U=`sed -n -e '/^U = / s///p' < "$mf"`
2849 -  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
2850 -  # We invoke sed twice because it is the simplest approach to
2851 -  # changing $(DEPDIR) to its actual value in the expansion.
2852 -  for file in `sed -n -e '
2853 -    /^DEP_FILES = .*\\\\$/ {
2854 -      s/^DEP_FILES = //
2855 -      :loop
2856 -       s/\\\\$//
2857 -       p
2858 -       n
2859 -       /\\\\$/ b loop
2860 -      p
2861 -    }
2862 -    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
2863 +  U=`sed -n 's/^U = //p' < "$mf"`
2864 +  # Find all dependency output files, they are included files with
2865 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
2866 +  # simplest approach to changing $(DEPDIR) to its actual value in the
2867 +  # expansion.
2868 +  for file in `sed -n "
2869 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2870         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2871      # Make sure the directory exists.
2872      test -f "$dirpart/$file" && continue
2873 Index: Makefile.in
2874 ===================================================================
2875 --- ../../mingw-utils-0.3/Makefile.in   2003-11-25 08:31:11.000000000 -0800
2876 +++ Makefile.in 2006-06-22 02:35:55.000000000 -0700
2877 @@ -1,8 +1,8 @@
2878 -# Makefile.in generated by automake 1.7.9 from Makefile.am.
2879 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
2880  # @configure_input@
2881  
2882 -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
2883 -# Free Software Foundation, Inc.
2884 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2885 +# 2003, 2004, 2005  Free Software Foundation, Inc.
2886  # This Makefile.in is free software; the Free Software Foundation
2887  # gives unlimited permission to copy and/or distribute it,
2888  # with or without modifications, as long as this notice is preserved.
2889 @@ -13,7 +13,6 @@
2890  # PARTICULAR PURPOSE.
2891  
2892  @SET_MAKE@
2893 -
2894  srcdir = @srcdir@
2895  top_srcdir = @top_srcdir@
2896  VPATH = @srcdir@
2897 @@ -21,7 +20,6 @@
2898  pkglibdir = $(libdir)/@PACKAGE@
2899  pkgincludedir = $(includedir)/@PACKAGE@
2900  top_builddir = .
2901 -
2902  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2903  INSTALL = @INSTALL@
2904  install_sh_DATA = $(install_sh) -c -m 644
2905 @@ -35,6 +33,43 @@
2906  NORMAL_UNINSTALL = :
2907  PRE_UNINSTALL = :
2908  POST_UNINSTALL = :
2909 +subdir = .
2910 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
2911 +       $(srcdir)/Makefile.in $(srcdir)/config.h.in \
2912 +       $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
2913 +       compile depcomp install-sh missing
2914 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
2915 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
2916 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
2917 +       $(ACLOCAL_M4)
2918 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
2919 + configure.lineno configure.status.lineno
2920 +mkinstalldirs = $(install_sh) -d
2921 +CONFIG_HEADER = config.h
2922 +CONFIG_CLEAN_FILES =
2923 +SOURCES =
2924 +DIST_SOURCES =
2925 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
2926 +       html-recursive info-recursive install-data-recursive \
2927 +       install-exec-recursive install-info-recursive \
2928 +       install-recursive installcheck-recursive installdirs-recursive \
2929 +       pdf-recursive ps-recursive uninstall-info-recursive \
2930 +       uninstall-recursive
2931 +ETAGS = etags
2932 +CTAGS = ctags
2933 +DIST_SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts \
2934 +       unix2dos
2935 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
2936 +distdir = $(PACKAGE)-$(VERSION)
2937 +top_distdir = $(distdir)
2938 +am__remove_distdir = \
2939 +  { test ! -d $(distdir) \
2940 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
2941 +         && rm -fr $(distdir); }; }
2942 +DIST_ARCHIVES = $(distdir).tar.gz
2943 +GZIP_ENV = --best
2944 +distuninstallcheck_listfiles = find . -type f -print
2945 +distcleancheck_listfiles = find . -type f -print
2946  ACLOCAL = @ACLOCAL@
2947  AMDEP_FALSE = @AMDEP_FALSE@
2948  AMDEP_TRUE = @AMDEP_TRUE@
2949 @@ -43,6 +78,12 @@
2950  AUTOHEADER = @AUTOHEADER@
2951  AUTOMAKE = @AUTOMAKE@
2952  AWK = @AWK@
2953 +BUILD_DRMINGW_FALSE = @BUILD_DRMINGW_FALSE@
2954 +BUILD_DRMINGW_TRUE = @BUILD_DRMINGW_TRUE@
2955 +BUILD_REDIR_FALSE = @BUILD_REDIR_FALSE@
2956 +BUILD_REDIR_TRUE = @BUILD_REDIR_TRUE@
2957 +BUILD_RES2COFF_FALSE = @BUILD_RES2COFF_FALSE@
2958 +BUILD_RES2COFF_TRUE = @BUILD_RES2COFF_TRUE@
2959  CC = @CC@
2960  CCDEPMODE = @CCDEPMODE@
2961  CFLAGS = @CFLAGS@
2962 @@ -101,6 +142,8 @@
2963  am__include = @am__include@
2964  am__leading_dot = @am__leading_dot@
2965  am__quote = @am__quote@
2966 +am__tar = @am__tar@
2967 +am__untar = @am__untar@
2968  bindir = @bindir@
2969  build_alias = @build_alias@
2970  datadir = @datadir@
2971 @@ -113,6 +156,7 @@
2972  libexecdir = @libexecdir@
2973  localstatedir = @localstatedir@
2974  mandir = @mandir@
2975 +mkdir_p = @mkdir_p@
2976  oldincludedir = @oldincludedir@
2977  prefix = @prefix@
2978  program_transform_name = @program_transform_name@
2979 @@ -120,45 +164,48 @@
2980  sharedstatedir = @sharedstatedir@
2981  sysconfdir = @sysconfdir@
2982  target_alias = @target_alias@
2983 -SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts unix2dos
2984 -
2985 +@BUILD_DRMINGW_TRUE@DRMINGW = drmingw
2986 +@BUILD_REDIR_TRUE@REDIR = redir
2987 +@BUILD_RES2COFF_TRUE@RES2COFF = res2coff
2988 +SUBDIRS = dos2unix $(DRMINGW) pexports ${REDIR} reimp ${RES2COFF} scripts unix2dos
2989 +EXTRA_DIST = dos2unix/dos2unix.1 unix2dos/unix2dos.1
2990  instdir = /tmp/$(PACKAGE)-$(VERSION)
2991 -subdir = .
2992 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
2993 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
2994 -CONFIG_HEADER = config.h
2995 -CONFIG_CLEAN_FILES =
2996 -DIST_SOURCES =
2997 -
2998 -RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
2999 -       ps-recursive install-info-recursive uninstall-info-recursive \
3000 -       all-recursive install-data-recursive install-exec-recursive \
3001 -       installdirs-recursive install-recursive uninstall-recursive \
3002 -       check-recursive installcheck-recursive
3003 -DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
3004 -       COPYING ChangeLog INSTALL Makefile.am NEWS aclocal.m4 compile \
3005 -       config.h.in configure configure.ac depcomp install-sh missing \
3006 -       mkinstalldirs
3007 -DIST_SUBDIRS = $(SUBDIRS)
3008  all: config.h
3009         $(MAKE) $(AM_MAKEFLAGS) all-recursive
3010  
3011  .SUFFIXES:
3012 -
3013 -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
3014 - configure.lineno
3015 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
3016 +am--refresh:
3017 +       @:
3018 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
3019 +       @for dep in $?; do \
3020 +         case '$(am__configure_deps)' in \
3021 +           *$$dep*) \
3022 +             echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
3023 +             cd $(srcdir) && $(AUTOMAKE) --gnu  \
3024 +               && exit 0; \
3025 +             exit 1;; \
3026 +         esac; \
3027 +       done; \
3028 +       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
3029         cd $(top_srcdir) && \
3030           $(AUTOMAKE) --gnu  Makefile
3031 -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
3032 -       cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
3033 +.PRECIOUS: Makefile
3034 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
3035 +       @case '$?' in \
3036 +         *config.status*) \
3037 +           echo ' $(SHELL) ./config.status'; \
3038 +           $(SHELL) ./config.status;; \
3039 +         *) \
3040 +           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
3041 +           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
3042 +       esac;
3043  
3044 -$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
3045 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
3046         $(SHELL) ./config.status --recheck
3047 -$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
3048 -       cd $(srcdir) && $(AUTOCONF)
3049  
3050 -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.ac 
3051 +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
3052 +       cd $(srcdir) && $(AUTOCONF)
3053 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
3054         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
3055  
3056  config.h: stamp-h1
3057 @@ -170,10 +217,10 @@
3058  stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
3059         @rm -f stamp-h1
3060         cd $(top_builddir) && $(SHELL) ./config.status config.h
3061 -
3062 -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
3063 +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
3064         cd $(top_srcdir) && $(AUTOHEADER)
3065 -       touch $(srcdir)/config.h.in
3066 +       rm -f stamp-h1
3067 +       touch $@
3068  
3069  distclean-hdr:
3070         -rm -f config.h stamp-h1
3071 @@ -186,7 +233,13 @@
3072  #     (which will cause the Makefiles to be regenerated when you run `make');
3073  # (2) otherwise, pass the desired values on the `make' command line.
3074  $(RECURSIVE_TARGETS):
3075 -       @set fnord $$MAKEFLAGS; amf=$$2; \
3076 +       @failcom='exit 1'; \
3077 +       for f in x $$MAKEFLAGS; do \
3078 +         case $$f in \
3079 +           *=* | --[!k]*);; \
3080 +           *k*) failcom='fail=yes';; \
3081 +         esac; \
3082 +       done; \
3083         dot_seen=no; \
3084         target=`echo $@ | sed s/-recursive//`; \
3085         list='$(SUBDIRS)'; for subdir in $$list; do \
3086 @@ -198,7 +251,7 @@
3087             local_target="$$target"; \
3088           fi; \
3089           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
3090 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
3091 +         || eval $$failcom; \
3092         done; \
3093         if test "$$dot_seen" = "no"; then \
3094           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
3095 @@ -206,7 +259,13 @@
3096  
3097  mostlyclean-recursive clean-recursive distclean-recursive \
3098  maintainer-clean-recursive:
3099 -       @set fnord $$MAKEFLAGS; amf=$$2; \
3100 +       @failcom='exit 1'; \
3101 +       for f in x $$MAKEFLAGS; do \
3102 +         case $$f in \
3103 +           *=* | --[!k]*);; \
3104 +           *k*) failcom='fail=yes';; \
3105 +         esac; \
3106 +       done; \
3107         dot_seen=no; \
3108         case "$@" in \
3109           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
3110 @@ -227,7 +286,7 @@
3111             local_target="$$target"; \
3112           fi; \
3113           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
3114 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
3115 +         || eval $$failcom; \
3116         done && test -z "$$fail"
3117  tags-recursive:
3118         list='$(SUBDIRS)'; for subdir in $$list; do \
3119 @@ -238,14 +297,6 @@
3120           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
3121         done
3122  
3123 -ETAGS = etags
3124 -ETAGSFLAGS =
3125 -
3126 -CTAGS = ctags
3127 -CTAGSFLAGS =
3128 -
3129 -tags: TAGS
3130 -
3131  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
3132         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
3133         unique=`for i in $$list; do \
3134 @@ -254,19 +305,22 @@
3135           $(AWK) '    { files[$$0] = 1; } \
3136                END { for (i in files) print i; }'`; \
3137         mkid -fID $$unique
3138 +tags: TAGS
3139  
3140  TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
3141                 $(TAGS_FILES) $(LISP)
3142         tags=; \
3143         here=`pwd`; \
3144 -       if (etags --etags-include --version) >/dev/null 2>&1; then \
3145 +       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
3146           include_option=--etags-include; \
3147 +         empty_fix=.; \
3148         else \
3149           include_option=--include; \
3150 +         empty_fix=; \
3151         fi; \
3152         list='$(SUBDIRS)'; for subdir in $$list; do \
3153           if test "$$subdir" = .; then :; else \
3154 -           test -f $$subdir/TAGS && \
3155 +           test ! -f $$subdir/TAGS || \
3156               tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
3157           fi; \
3158         done; \
3159 @@ -276,10 +330,11 @@
3160           done | \
3161           $(AWK) '    { files[$$0] = 1; } \
3162                END { for (i in files) print i; }'`; \
3163 -       test -z "$(ETAGS_ARGS)$$tags$$unique" \
3164 -         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
3165 -            $$tags $$unique
3166 -
3167 +       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
3168 +         test -n "$$unique" || unique=$$empty_fix; \
3169 +         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
3170 +           $$tags $$unique; \
3171 +       fi
3172  ctags: CTAGS
3173  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
3174                 $(TAGS_FILES) $(LISP)
3175 @@ -302,24 +357,11 @@
3176  
3177  distclean-tags:
3178         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
3179 -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
3180 -
3181 -top_distdir = .
3182 -distdir = $(PACKAGE)-$(VERSION)
3183 -
3184 -am__remove_distdir = \
3185 -  { test ! -d $(distdir) \
3186 -    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
3187 -         && rm -fr $(distdir); }; }
3188 -
3189 -GZIP_ENV = --best
3190 -distuninstallcheck_listfiles = find . -type f -print
3191 -distcleancheck_listfiles = find . -type f -print
3192  
3193  distdir: $(DISTFILES)
3194         $(am__remove_distdir)
3195         mkdir $(distdir)
3196 -       $(mkinstalldirs) $(distdir)/scripts
3197 +       $(mkdir_p) $(distdir)/dos2unix $(distdir)/scripts $(distdir)/unix2dos
3198         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
3199         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
3200         list='$(DISTFILES)'; for file in $$list; do \
3201 @@ -331,7 +373,7 @@
3202           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
3203           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
3204             dir="/$$dir"; \
3205 -           $(mkinstalldirs) "$(distdir)$$dir"; \
3206 +           $(mkdir_p) "$(distdir)$$dir"; \
3207           else \
3208             dir=''; \
3209           fi; \
3210 @@ -346,15 +388,17 @@
3211             || exit 1; \
3212           fi; \
3213         done
3214 -       list='$(SUBDIRS)'; for subdir in $$list; do \
3215 +       list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
3216           if test "$$subdir" = .; then :; else \
3217 -           test -d $(distdir)/$$subdir \
3218 -           || mkdir $(distdir)/$$subdir \
3219 +           test -d "$(distdir)/$$subdir" \
3220 +           || $(mkdir_p) "$(distdir)/$$subdir" \
3221             || exit 1; \
3222 +           distdir=`$(am__cd) $(distdir) && pwd`; \
3223 +           top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
3224             (cd $$subdir && \
3225               $(MAKE) $(AM_MAKEFLAGS) \
3226 -               top_distdir="$(top_distdir)" \
3227 -               distdir=../$(distdir)/$$subdir \
3228 +               top_distdir="$$top_distdir" \
3229 +               distdir="$$distdir/$$subdir" \
3230                 distdir) \
3231               || exit 1; \
3232           fi; \
3233 @@ -365,19 +409,46 @@
3234           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
3235         || chmod -R a+r $(distdir)
3236  dist-gzip: distdir
3237 -       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
3238 +       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
3239 +       $(am__remove_distdir)
3240 +
3241 +dist-bzip2: distdir
3242 +       tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
3243 +       $(am__remove_distdir)
3244 +
3245 +dist-tarZ: distdir
3246 +       tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
3247 +       $(am__remove_distdir)
3248 +
3249 +dist-shar: distdir
3250 +       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
3251 +       $(am__remove_distdir)
3252 +
3253 +dist-zip: distdir
3254 +       -rm -f $(distdir).zip
3255 +       zip -rq $(distdir).zip $(distdir)
3256         $(am__remove_distdir)
3257  
3258  dist dist-all: distdir
3259 -       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
3260 +       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
3261         $(am__remove_distdir)
3262  
3263  # This target untars the dist file and tries a VPATH configuration.  Then
3264  # it guarantees that the distribution is self-contained by making another
3265  # tarfile.
3266  distcheck: dist
3267 -       $(am__remove_distdir)
3268 -       GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
3269 +       case '$(DIST_ARCHIVES)' in \
3270 +       *.tar.gz*) \
3271 +         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
3272 +       *.tar.bz2*) \
3273 +         bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
3274 +       *.tar.Z*) \
3275 +         uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
3276 +       *.shar.gz*) \
3277 +         GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
3278 +       *.zip*) \
3279 +         unzip $(distdir).zip ;;\
3280 +       esac
3281         chmod -R a-w $(distdir); chmod a+w $(distdir)
3282         mkdir $(distdir)/_build
3283         mkdir $(distdir)/_inst
3284 @@ -397,19 +468,20 @@
3285                 distuninstallcheck \
3286           && chmod -R a-w "$$dc_install_base" \
3287           && ({ \
3288 -              (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
3289 +              (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
3290                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
3291                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
3292                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
3293                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
3294               } || { rm -rf "$$dc_destdir"; exit 1; }) \
3295           && rm -rf "$$dc_destdir" \
3296 -         && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
3297 -         && rm -f $(distdir).tar.gz \
3298 +         && $(MAKE) $(AM_MAKEFLAGS) dist \
3299 +         && rm -rf $(DIST_ARCHIVES) \
3300           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
3301         $(am__remove_distdir)
3302 -       @echo "$(distdir).tar.gz is ready for distribution" | \
3303 -         sed 'h;s/./=/g;p;x;p;x'
3304 +       @(echo "$(distdir) archives ready for distribution: "; \
3305 +         list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
3306 +         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
3307  distuninstallcheck:
3308         @cd $(distuninstallcheck_dir) \
3309         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
3310 @@ -433,7 +505,6 @@
3311  all-am: Makefile config.h
3312  installdirs: installdirs-recursive
3313  installdirs-am:
3314 -
3315  install: install-recursive
3316  install-exec: install-exec-recursive
3317  install-data: install-data-recursive
3318 @@ -453,7 +524,7 @@
3319  clean-generic:
3320  
3321  distclean-generic:
3322 -       -rm -f $(CONFIG_CLEAN_FILES)
3323 +       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
3324  
3325  maintainer-clean-generic:
3326         @echo "This command is intended for maintainers to use"
3327 @@ -471,6 +542,8 @@
3328  
3329  dvi-am:
3330  
3331 +html: html-recursive
3332 +
3333  info: info-recursive
3334  
3335  info-am:
3336 @@ -507,22 +580,20 @@
3337  
3338  uninstall-info: uninstall-info-recursive
3339  
3340 -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
3341 -       clean-generic clean-recursive ctags ctags-recursive dist \
3342 -       dist-all dist-gzip distcheck distclean distclean-generic \
3343 -       distclean-hdr distclean-recursive distclean-tags distcleancheck \
3344 -       distdir distuninstallcheck dvi dvi-am dvi-recursive info \
3345 -       info-am info-recursive install install-am install-data \
3346 -       install-data-am install-data-recursive install-exec \
3347 -       install-exec-am install-exec-recursive install-info \
3348 -       install-info-am install-info-recursive install-man \
3349 -       install-recursive install-strip installcheck installcheck-am \
3350 -       installdirs installdirs-am installdirs-recursive \
3351 -       maintainer-clean maintainer-clean-generic \
3352 -       maintainer-clean-recursive mostlyclean mostlyclean-generic \
3353 -       mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
3354 -       ps-recursive tags tags-recursive uninstall uninstall-am \
3355 -       uninstall-info-am uninstall-info-recursive uninstall-recursive
3356 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
3357 +       check-am clean clean-generic clean-recursive ctags \
3358 +       ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
3359 +       dist-tarZ dist-zip distcheck distclean distclean-generic \
3360 +       distclean-hdr distclean-recursive distclean-tags \
3361 +       distcleancheck distdir distuninstallcheck dvi dvi-am html \
3362 +       html-am info info-am install install-am install-data \
3363 +       install-data-am install-exec install-exec-am install-info \
3364 +       install-info-am install-man install-strip installcheck \
3365 +       installcheck-am installdirs installdirs-am maintainer-clean \
3366 +       maintainer-clean-generic maintainer-clean-recursive \
3367 +       mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
3368 +       pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
3369 +       uninstall-info-am
3370  
3371  
3372  sdist: dist
3373 Index: dos2unix.1
3374 ===================================================================
3375 --- /dev/null   2006-05-26 19:54:25.455722750 -0700
3376 +++ dos2unix/dos2unix.1 2002-04-10 06:39:04.000000000 -0700
3377 @@ -0,0 +1,142 @@
3378 +.\" $$Id$$
3379 +.TH dos2unix 1 "dos2unix v3.0" "1995.03.31"
3380 +
3381 +.SH NAME
3382 +
3383 +dos2unix \- DOS/MAC to UNIX text file format converter
3384 +
3385 +.SH SYNOPSYS
3386 +
3387 +dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
3388 +.PP
3389 +Options:
3390 +.PP
3391 +[-hkqV] [--help] [--keepdate] [--quiet] [--version]
3392 +
3393 +.SH DESCRIPTION
3394 +
3395 +.PP
3396 +This manual page documents dos2unix, the program that converts plain text
3397 +files in DOS/MAC format to UNIX format.
3398 +
3399 +.SH OPTIONS
3400 +
3401 +The following options are available:
3402 +.TP
3403 +.B \-h --help
3404 +Print online help.
3405 +
3406 +.TP
3407 +.B \-k --keepdate
3408 +Keep the date stamp of output file same as input file.
3409 +
3410 +.TP
3411 +.B \-q --quiet
3412 +Quiet mode. Suppress all warning and messages.
3413 +
3414 +.TP
3415 +.B \-V --version
3416 +Prints version information.
3417 +
3418 +.TP
3419 +.B \-c --convmode convmode
3420 +Sets conversion mode. Simulates dos2unix under SunOS.
3421 +
3422 +.TP
3423 +.B \-o --oldfile file ...
3424 +Old file mode. Convert the file and write output to it. The program 
3425 +default to run in this mode. Wildcard names may be used.
3426 +
3427 +.TP
3428 +.B \-n --newfile infile outfile ...
3429 +New file mode. Convert the infile and write output to outfile. File names
3430 +must be given in pairs and wildcard names should NOT be used or you WILL 
3431 +lost your files. 
3432 +
3433 +.SH EXAMPLES
3434 +
3435 +.LP
3436 +Get input from stdin and write output to stdout.
3437 +.IP
3438 +.B dos2unix
3439 +
3440 +.LP
3441 +Convert and replace a.txt. Convert and replace b.txt.
3442 +.IP
3443 +.B dos2unix a.txt b.txt
3444 +.IP
3445 +.B dos2unix -o a.txt b.txt
3446 +
3447 +.LP
3448 +Convert and replace a.txt in ASCII conversion mode. 
3449 +Convert and replace b.txt in ISO conversion mode.
3450 +Convert c.txt from Mac to Unix ascii format.
3451 +.IP
3452 +.B dos2unix a.txt -c iso b.txt
3453 +.IP
3454 +.B dos2unix -c ascii a.txt -c iso b.txt
3455 +.IP
3456 +.B dos2unix -c mac a.txt  b.txt
3457 +
3458 +.LP
3459 +Convert and replace a.txt while keeping original date stamp.
3460 +.IP
3461 +.B dos2unix -k a.txt
3462 +.IP
3463 +.B dos2unix -k -o a.txt
3464 +
3465 +.LP
3466 +Convert a.txt and write to e.txt.
3467 +.IP
3468 +.B dos2unix -n a.txt e.txt
3469 +
3470 +.LP
3471 +Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
3472 +.IP
3473 +.B dos2unix -k -n a.txt e.txt 
3474 +
3475 +.LP
3476 +Convert and replace a.txt. Convert b.txt and write to e.txt.
3477 +.IP
3478 +.B dos2unix a.txt -n b.txt e.txt
3479 +.IP
3480 +.B dos2unix -o a.txt -n b.txt e.txt
3481 +
3482 +.LP
3483 +Convert c.txt and write to e.txt. Convert and replace a.txt.
3484 +Convert and replace b.txt. Convert d.txt and write to f.txt.
3485 +.IP
3486 +.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
3487 +
3488 +.SH DIAGNOSTICS
3489 +
3490 +.SH BUGS
3491 +
3492 +The program does not work properly under MSDOS in stdio processing mode. 
3493 +If you know why is that so, please tell me.
3494 +
3495 +.SH AUTHORS
3496 +
3497 +Benjamin Lin -
3498 +.B <blin@socs.uts.edu.au>
3499 +
3500 +
3501 +Bernd Johannes Wuebben (mac2unix mode) 
3502 +.B <wuebben@kde.org>
3503 +
3504 +
3505 +.SH MISCELLANY
3506 +
3507 +Tested environment:
3508 +.IP
3509 +Linux 1.2.0 with GNU C 2.5.8
3510 +.IP
3511 +SunOS 4.1.3 with GNU C 2.6.3
3512 +.IP
3513 +MS-DOS 6.20 with Borland C++ 4.02
3514 +.PP
3515 +Suggestions and bug reports are welcome.
3516 +
3517 +.SH SEE ALSO
3518 +unix2dos(1) mac2unix(1)
3519 +
3520 Index: unix2dos.1
3521 ===================================================================
3522 --- /dev/null   2006-05-26 19:54:25.455722750 -0700
3523 +++ unix2dos/unix2dos.1 2002-04-10 06:39:07.000000000 -0700
3524 @@ -0,0 +1,135 @@
3525 +.\" $$Id$$
3526 +.TH unix2dos 1 "unix2dos v2.2" "1995.03.31"
3527 +
3528 +.SH NAME
3529 +
3530 +unix2dos \- UNIX to DOS text file format converter
3531 +
3532 +.SH SYNOPSYS
3533 +
3534 +unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
3535 +.PP
3536 +Options:
3537 +.PP
3538 +[-hkqV] [--help] [--keepdate] [--quiet] [--version]
3539 +
3540 +.SH DESCRIPTION
3541 +
3542 +.PP
3543 +This manual page documents dos2unix, the program that converts text 
3544 +files in UNIX format to DOS format.
3545 +
3546 +.SH OPTIONS
3547 +
3548 +The following options are available:
3549 +.TP
3550 +.B \-h --help
3551 +Print online help.
3552 +
3553 +.TP
3554 +.B \-k --keepdate
3555 +Keep the date stamp of output file same as input file.
3556 +
3557 +.TP
3558 +.B \-q --quiet
3559 +Quiet mode. Suppress all warning and messages.
3560 +
3561 +.TP
3562 +.B \-V --version
3563 +Prints version information.
3564 +
3565 +.TP
3566 +.B \-c --convmode convmode
3567 +Sets conversion mode. Simulates dos2unix under SunOS.
3568 +
3569 +.TP
3570 +.B \-o --oldfile file ...
3571 +Old file mode. Convert the file and write output to it. The program 
3572 +default to run in this mode. Wildcard names may be used.
3573 +
3574 +.TP 
3575 +.B \-n --newfile infile outfile ...
3576 +New file mode. Convert the infile and write output to outfile. File names
3577 +must be given in pairs and wildcard names should NOT be used or you WILL 
3578 +lost your files. 
3579 +
3580 +.SH EXAMPLES
3581 +
3582 +.LP
3583 +Get input from stdin and write output to stdout.
3584 +.IP
3585 +.B unix2dos
3586 +
3587 +.LP
3588 +Convert and replace a.txt. Convert and replace b.txt.
3589 +.IP
3590 +.B unix2dos a.txt b.txt
3591 +.IP
3592 +.B unix2dos -o a.txt b.txt
3593 +
3594 +.LP
3595 +Convert and replace a.txt in ASCII conversion mode.
3596 +Convert and replace b.txt in ISO conversion mode.
3597 +.IP
3598 +.B dos2unix a.txt -c iso b.txt
3599 +.IP
3600 +.B dos2unix -c ascii a.txt -c iso b.txt
3601 +
3602 +.LP
3603 +Convert and replace a.txt while keeping original date stamp.
3604 +.IP
3605 +.B unix2dos -k a.txt
3606 +.IP
3607 +.B unix2dos -k -o a.txt
3608 +
3609 +.LP
3610 +Convert a.txt and write to e.txt.
3611 +.IP
3612 +.B unix2dos -n a.txt e.txt
3613 +
3614 +.LP
3615 +Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
3616 +.IP
3617 +.B unix2dos -k -n a.txt e.txt 
3618 +
3619 +.LP
3620 +Convert and replace a.txt. Convert b.txt and write to e.txt.
3621 +.IP
3622 +.B unix2dos a.txt -n b.txt e.txt
3623 +.IP
3624 +.B unix2dos -o a.txt -n b.txt e.txt
3625 +
3626 +.LP
3627 +Convert c.txt and write to e.txt. Convert and replace a.txt.
3628 +Convert and replace b.txt. Convert d.txt and write to f.txt.
3629 +.IP
3630 +.B unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
3631 +
3632 +.SH DIAGNOSTICS
3633 +
3634 +.SH BUGS
3635 +
3636 +The program does not work properly under MSDOS in stdio processing mode. 
3637 +If you know why is that so, please tell me.
3638 +
3639 +.SH AUTHOR
3640 +
3641 +Benjamin Lin - (
3642 +.B blin@socs.uts.edu.au
3643 +)
3644 +
3645 +.SH MISCELLANY
3646 +
3647 +Tested environment:
3648 +.IP
3649 +Linux 1.2.0 with GNU C 2.5.8
3650 +.IP
3651 +SunOS 4.1.3 with GNU C 2.6.3
3652 +.IP
3653 +MS-DOS 6.20 with Borland C++ 4.02
3654 +.PP
3655 +Suggestions and bug reports are welcome.
3656 +
3657 +.SH SEE ALSO
3658 +dos2unix(1)
3659 +