OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [nlib-zippatch.patch] - Blame information for rev 209

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 202 dgisselq
diff -Naur '--exclude=*.swp' newlib-2.5.0/config.sub newlib-2.5.0-zip/config.sub
2
--- newlib-2.5.0/config.sub     2016-12-22 21:33:54.000000000 -0500
3
+++ newlib-2.5.0-zip/config.sub 2017-01-16 12:10:48.294312482 -0500
4
@@ -355,6 +355,14 @@
5
        xscaleel)
6
                basic_machine=armel-unknown
7
                ;;
8
+       zip-*-linux*)
9
+               basic_machine=zip
10
+               os=-linux
11
+               ;;
12
+       zip*)
13
+               basic_machine=zip-unknown
14
+               os=-none
15
+               ;;
16
 
17
        # We use `pc' rather than `unknown'
18
        # because (1) that's what they normally are, and
19
diff -Naur '--exclude=*.swp' newlib-2.5.0/configure newlib-2.5.0-zip/configure
20
--- newlib-2.5.0/configure      2016-12-22 21:33:54.000000000 -0500
21
+++ newlib-2.5.0-zip/configure  2017-01-25 16:27:07.029658533 -0500
22
@@ -3549,6 +3549,9 @@
23
   ft32-*-*)
24
     noconfigdirs="$noconfigdirs ${libgcj}"
25
     ;;
26
+  zip*)
27
+    noconfigdirs="$noconfigdirs ${libgcj}"
28
+    ;;
29
   *-*-lynxos*)
30
     noconfigdirs="$noconfigdirs ${libgcj}"
31
     ;;
32
@@ -3576,6 +3579,9 @@
33
     *-*-aix*)
34
        noconfigdirs="$noconfigdirs target-libgo"
35
        ;;
36
+    zip*)
37
+       noconfigdirs="$noconfigdirs target-libgo"
38
+       ;;
39
     esac
40
 fi
41
 
42
@@ -3970,6 +3976,9 @@
43
   vax-*-*)
44
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
45
     ;;
46
+  zip*)
47
+    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
48
+    ;;
49
 esac
50
 
51
 # If we aren't building newlib, then don't build libgloss, since libgloss
52
@@ -4723,13 +4732,13 @@
53
   CFLAGS=$ac_save_CFLAGS
54
 elif test $ac_cv_prog_cc_g = yes; then
55
   if test "$GCC" = yes; then
56
-    CFLAGS="-g -O2"
57
+    CFLAGS="-O3"
58
   else
59
     CFLAGS="-g"
60
   fi
61
 else
62
   if test "$GCC" = yes; then
63
-    CFLAGS="-O2"
64
+    CFLAGS="-O3"
65
   else
66
     CFLAGS=
67
   fi
68
@@ -5071,13 +5080,13 @@
69
   CXXFLAGS=$ac_save_CXXFLAGS
70
 elif test $ac_cv_prog_cxx_g = yes; then
71
   if test "$GXX" = yes; then
72
-    CXXFLAGS="-g -O2"
73
+    CXXFLAGS="-O3"
74
   else
75
     CXXFLAGS="-g"
76
   fi
77
 else
78
   if test "$GXX" = yes; then
79
-    CXXFLAGS="-O2"
80
+    CXXFLAGS="-O3"
81
   else
82
     CXXFLAGS=
83
   fi
84
@@ -6777,7 +6786,7 @@
85
 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
86
 if test "x$CFLAGS_FOR_TARGET" = x; then
87
   if test "x${is_cross_compiler}" = xyes; then
88
-    CFLAGS_FOR_TARGET="-g -O2"
89
+    CFLAGS_FOR_TARGET="-O3"
90
   else
91
     CFLAGS_FOR_TARGET=$CFLAGS
92
     case " $CFLAGS " in
93
@@ -6794,7 +6803,7 @@
94
 
95
 if test "x$CXXFLAGS_FOR_TARGET" = x; then
96
   if test "x${is_cross_compiler}" = xyes; then
97
-    CXXFLAGS_FOR_TARGET="-g -O2"
98
+    CXXFLAGS_FOR_TARGET="-O3"
99
   else
100
     CXXFLAGS_FOR_TARGET=$CXXFLAGS
101
     case " $CXXFLAGS " in
102
diff -Naur '--exclude=*.swp' newlib-2.5.0/configure.ac newlib-2.5.0-zip/configure.ac
103
--- newlib-2.5.0/configure.ac   2016-12-22 21:33:54.000000000 -0500
104
+++ newlib-2.5.0-zip/configure.ac       2017-01-25 16:27:52.713416459 -0500
105
@@ -1,4 +1,4 @@
106
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
107
+3   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
108
 #   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
109
 #   2014, 2015, 2016 Free Software Foundation, Inc.
110
 #
111
@@ -2377,16 +2377,16 @@
112
 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
113
 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
114
 # We want to ensure that TARGET libraries (which we know are built with
115
-# gcc) are built with "-O2 -g", so include those options when setting
116
+# gcc) are built with "-O3 -g", so include those options when setting
117
 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
118
 if test "x$CFLAGS_FOR_TARGET" = x; then
119
   if test "x${is_cross_compiler}" = xyes; then
120
-    CFLAGS_FOR_TARGET="-g -O2"
121
+    CFLAGS_FOR_TARGET="-g -O3"
122
   else
123
     CFLAGS_FOR_TARGET=$CFLAGS
124
     case " $CFLAGS " in
125
-      *" -O2 "*) ;;
126
-      *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
127
+      *" -O3 "*) ;;
128
+      *) CFLAGS_FOR_TARGET="-O3 $CFLAGS_FOR_TARGET" ;;
129
     esac
130
     case " $CFLAGS " in
131
       *" -g "* | *" -g3 "*) ;;
132
@@ -2398,12 +2398,12 @@
133
 
134
 if test "x$CXXFLAGS_FOR_TARGET" = x; then
135
   if test "x${is_cross_compiler}" = xyes; then
136
-    CXXFLAGS_FOR_TARGET="-g -O2"
137
+    CXXFLAGS_FOR_TARGET="-O3"
138
   else
139
     CXXFLAGS_FOR_TARGET=$CXXFLAGS
140
     case " $CXXFLAGS " in
141
-      *" -O2 "*) ;;
142
-      *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
143
+      *" -O3 "*) ;;
144
+      *) CXXFLAGS_FOR_TARGET="-O3 $CXXFLAGS_FOR_TARGET" ;;
145
     esac
146
     case " $CXXFLAGS " in
147
       *" -g "* | *" -g3 "*) ;;
148
@@ -2576,7 +2576,7 @@
149
     ;;
150
 esac
151
 
152
-# If --enable-target-optspace always use -Os instead of -O2 to build
153
+# If --enable-target-optspace always use -Os instead of -O3 to build
154
 # the target libraries, similarly if it is not specified, use -Os
155
 # on selected platforms.
156
 ospace_frag=/dev/null
157
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/configure newlib-2.5.0-zip/libgloss/configure
158
--- newlib-2.5.0/libgloss/configure     2016-12-22 21:33:54.000000000 -0500
159
+++ newlib-2.5.0-zip/libgloss/configure 2017-01-11 11:12:49.779795431 -0500
160
@@ -709,6 +709,7 @@
161
 tic6x
162
 iq2000
163
 or1k
164
+zip
165
 libnosys'
166
 
167
 # Initialize some variables set by options.
168
@@ -2579,7 +2580,9 @@
169
        ;;
170
   or1k-*-* | or1knd-*-* )
171
        subdirs="$subdirs or1k"
172
-
173
+       ;;
174
+  zip*)
175
+       subdirs="$subdirs zip"
176
        ;;
177
 esac
178
 
179
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/configure.in newlib-2.5.0-zip/libgloss/configure.in
180
--- newlib-2.5.0/libgloss/configure.in  2016-12-22 21:33:54.000000000 -0500
181
+++ newlib-2.5.0-zip/libgloss/configure.in      2017-01-11 11:13:26.073974219 -0500
182
@@ -173,6 +173,9 @@
183
   or1k-*-* | or1knd-*-* )
184
        AC_CONFIG_SUBDIRS([or1k])
185
        ;;
186
+  zip*)
187
+       AC_CONFIG_SUBDIRS([zip])
188
+       ;;
189
 esac
190
 
191
 dnl For now, don't bother configuring testsuite
192
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/libnosys/configure.in newlib-2.5.0-zip/libgloss/libnosys/configure.in
193
--- newlib-2.5.0/libgloss/libnosys/configure.in 2016-12-22 21:33:54.000000000 -0500
194
+++ newlib-2.5.0-zip/libgloss/libnosys/configure.in     2017-01-13 12:27:41.898876845 -0500
195
@@ -81,6 +81,8 @@
196
        ;;
197
   z8k-*-*)
198
        ;;
199
+  zip*)
200
+       ;;
201
   *)
202
        AC_DEFINE(MISSING_SYSCALL_NAMES)
203
        ;;
204
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/board.h newlib-2.5.0-zip/libgloss/zip/board.h
205
--- newlib-2.5.0/libgloss/zip/board.h   1969-12-31 19:00:00.000000000 -0500
206
+++ newlib-2.5.0-zip/libgloss/zip/board.h       2017-03-01 15:51:53.300228357 -0500
207
@@ -0,0 +1,190 @@
208
+////////////////////////////////////////////////////////////////////////////////
209
+//
210
+// Filename:   zipbasic.h
211
+//
212
+// Project:    Zip CPU -- a small, lightweight, RISC CPU soft core
213
+//
214
+// Purpose:    A description of the hardware and I/O parts and pieces specific
215
+//             to the ZipBasic distribution, for the purpose of writing
216
+//     ZipCPU software that will run on the board.
217
+//
218
+// Creator:    Dan Gisselquist, Ph.D.
219
+//             Gisselquist Technology, LLC
220
+//
221
+////////////////////////////////////////////////////////////////////////////////
222
+//
223
+// Copyright (C) 2017, Gisselquist Technology, LLC
224
+//
225
+// This program is free software (firmware): you can redistribute it and/or
226
+// modify it under the terms of  the GNU General Public License as published
227
+// by the Free Software Foundation, either version 3 of the License, or (at
228
+// your option) any later version.
229
+//
230
+// This program is distributed in the hope that it will be useful, but WITHOUT
231
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
232
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
233
+// for more details.
234
+//
235
+// You should have received a copy of the GNU General Public License along
236
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
237
+// target there if the PDF file isn't present.)  If not, see
238
+// <http://www.gnu.org/licenses/> for a copy.
239
+//
240
+// License:    GPL, v3, as defined and found on www.gnu.org,
241
+//             http://www.gnu.org/licenses/gpl.html
242
+//
243
+//
244
+////////////////////////////////////////////////////////////////////////////////
245
+//
246
+//
247
+#ifndef        ZIPBASIC_H
248
+#define        ZIPBASIC_H
249
+
250
+#include <stdint.h>
251
+
252
+// We have the full ZIP System installed
253
+#define        _HAVE_ZIPSYS_PERFORMANCE_COUNTERS
254
+#define        _HAVE_ZIPSYS_DMA
255
+#include "zipsys.h"
256
+
257
+typedef        struct  {
258
+       unsigned        i_version;
259
+       unsigned        i_pwrcount;
260
+       unsigned        i_buserr;
261
+       unsigned        i_date;
262
+} BASICIO;
263
+
264
+#define        UART_PARITY_NONE        0
265
+#define        UART_HWFLOW_OFF         0x40000000
266
+#define        UART_PARITY_ODD         0x04000000
267
+#define        UART_PARITY_EVEN        0x05000000
268
+#define        UART_PARITY_SPACE       0x06000000
269
+#define        UART_PARITY_MARK        0x07000000
270
+#define        UART_STOP_ONEBIT        0
271
+#define        UART_STOP_TWOBITS       0x08000000
272
+#define        UART_DATA_8BITS         0
273
+#define        UART_DATA_7BITS         0x10000000
274
+#define        UART_DATA_6BITS         0x20000000
275
+#define        UART_DATA_5BITS         0x30000000
276
+#define        UART_RX_BREAK           0x0800
277
+#define        UART_RX_FRAMEERR        0x0400
278
+#define        UART_RX_PARITYERR       0x0200
279
+#define        UART_RX_NOTREADY        0x0100
280
+#define        UART_RX_ERR             (-256)
281
+#define        UART_TX_BUSY            0x0100
282
+#define        UART_TX_BREAK           0x0200
283
+
284
+typedef        struct  WBUART_S {
285
+       unsigned        u_setup;
286
+       unsigned        u_fifo;
287
+       unsigned        u_rx, u_tx;
288
+} WBUART;
289
+
290
+
291
+#define        WBSCOPE_NO_RESET        0x80000000
292
+#define        WBSCOPE_TRIGGER (WBSCOPE_NO_RESET|0x08000000)
293
+#define        WBSCOPE_MANUAL  WBSCOPE_TRIGGER
294
+#define        WBSCOPE_DISABLE 0x04000000      // Disable the scope trigger
295
+typedef        struct  WBSCOPE_S {
296
+       unsigned        s_ctrl, s_data;
297
+} WBSCOPE;
298
+
299
+typedef        struct  {
300
+       unsigned        r_clock, r_stopwatch, r_timer, r_alarm;
301
+} RTCLIGHT;
302
+
303
+
304
+#define        SD_SETAUX       0x0ff
305
+#define        SD_READAUX      0x0bf
306
+#define        SD_CMD          0x040
307
+#define        SD_FIFO_OP      0x0800  // Read only
308
+#define        SD_WRITEOP      0x0c00  // Write to the FIFO
309
+#define        SD_ALTFIFO      0x1000
310
+#define        SD_BUSY         0x4000
311
+#define        SD_ERROR        0x8000
312
+#define        SD_CLEARERR     0x8000
313
+#define        SD_READ_SECTOR  ((SD_CMD|SD_CLEARERR|SD_FIFO_OP)+17)
314
+#define        SD_WRITE_SECTOR ((SD_CMD|SD_CLEARERR|SD_WRITEOP)+24)
315
+
316
+typedef        struct  {
317
+       unsigned        sd_ctrl, sd_data, sd_fifo[2];
318
+} SDCARD;
319
+
320
+typedef        struct  {
321
+       unsigned        f_ereg, f_config, f_status, f_id;
322
+} FLASHCONTROL;
323
+
324
+
325
+typedef        struct {
326
+       BASICIO         b_io;
327
+       char            _SKIP_TO_SCOPES[(0x040-sizeof(BASICIO))];
328
+       WBSCOPE         b_s[2];
329
+       WBUART          b_uart;
330
+       RTCLIGHT        b_rtc;
331
+       FLASHCONTROL    b_flash;
332
+       SDCARD          b_sd;
333
+} ZIPBASICBOARD;
334
+
335
+#define        PERIPHERAL_ADDR ((ZIPBASICBOARD *)0x100)
336
+
337
+static volatile ZIPBASICBOARD  *const _sys =(PERIPHERAL_ADDR);
338
+
339
+#define        _ZIP_HAS_WBUART
340
+static volatile WBUART         *const _uart   = &(PERIPHERAL_ADDR)->b_uart;
341
+#define        _ZIP_HAS_WBUARTX
342
+#define        _uarttx         _uart->u_tx
343
+#define        _ZIP_HAS_WBUARTRX
344
+#define        _uartrx         _uart->u_rx
345
+#define        _ZIP_HAS_UARTSETUP
346
+#define        _uartsetup      _uart->u_setup
347
+
348
+#define        _ZIP_HAS_RTC
349
+static volatile RTCLIGHT       *const _rtcdev = &(PERIPHERAL_ADDR)->b_rtc;
350
+#define        _ZIP_HAS_RTCDATE
351
+static volatile uint32_t       *const _rtcdate = &((PERIPHERAL_ADDR)->b_io.i_date);
352
+
353
+#define        _ZIP_HAS_SDCARD
354
+static volatile SDCARD         *const _sdcard = &((PERIPHERAL_ADDR)->b_sd);
355
+
356
+#define        SYSTIMER        zip->z_tma
357
+#define        SYSPIC          zip->z_pic
358
+#define        ALTPIC          zip->z_zpic
359
+#define        COUNTER         zip->z_m.ac_ck
360
+
361
+#define        BKRAM   (void *)0
362
+#define        FLASH   (void *)0x01000000
363
+#define        SDRAM   (void *)0x10000000
364
+#define        CLOCKFREQHZ     100000000       // 100 MHz
365
+#define        CLOCKFREQ_HZ    CLOCKFREQHZ
366
+//
367
+#define        MEMLEN          0
368
+#define        FLASHLEN        0x01000000
369
+#define        SDRAMLEN        0x10000000
370
+
371
+// Finally, let's assign some of our interrupts:
372
+//
373
+// We're allowed nine interrupts to the master interrupt controller in the
374
+// ZipSys
375
+#define        SYSINT_PPS      SYSINT(6)
376
+#define        SYSINT_UARTRX   SYSINT(7)
377
+#define        SYSINT_UARTTX   SYSINT(8)
378
+#define        SYSINT_UARTRXF  SYSINT(9)
379
+#define        SYSINT_UARTTXF  SYSINT(10)
380
+#define        SYSINT_SDCARD   SYSINT(11)
381
+#define        SYSINT_FLASH    SYSINT(12)
382
+#define        SYSINT_SCOPE    SYSINT(13)
383
+#define        SYSINT_RTC      SYSINT(14)
384
+
385
+// DMA Interrupt parameters
386
+#define        DMA_ONPPS       DMA_ONINT(6)
387
+#define        DMA_ONUARTRX    DMA_ONINT(7)
388
+#define        DMA_ONUARTTX    DMA_ONINT(8)
389
+#define        DMA_ONUARTRXF   DMA_ONINT(9)
390
+#define        DMA_ONUARTTXF   DMA_ONINT(10)
391
+#define        DMA_ONSDCARD    DMA_ONINT(11)
392
+#define        DMA_ONFLASH     DMA_ONINT(12)
393
+#define        DMA_ONSCOPE     DMA_ONINT(13)
394
+#define        DMA_ONRTC       DMA_ONINT(14)
395
+
396
+#endif
397
+
398
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/boards/zipbasic.h newlib-2.5.0-zip/libgloss/zip/boards/zipbasic.h
399
--- newlib-2.5.0/libgloss/zip/boards/zipbasic.h 1969-12-31 19:00:00.000000000 -0500
400
+++ newlib-2.5.0-zip/libgloss/zip/boards/zipbasic.h     2017-03-01 15:51:53.300228357 -0500
401
@@ -0,0 +1,190 @@
402
+////////////////////////////////////////////////////////////////////////////////
403
+//
404
+// Filename:   zipbasic.h
405
+//
406
+// Project:    Zip CPU -- a small, lightweight, RISC CPU soft core
407
+//
408
+// Purpose:    A description of the hardware and I/O parts and pieces specific
409
+//             to the ZipBasic distribution, for the purpose of writing
410
+//     ZipCPU software that will run on the board.
411
+//
412
+// Creator:    Dan Gisselquist, Ph.D.
413
+//             Gisselquist Technology, LLC
414
+//
415
+////////////////////////////////////////////////////////////////////////////////
416
+//
417
+// Copyright (C) 2017, Gisselquist Technology, LLC
418
+//
419
+// This program is free software (firmware): you can redistribute it and/or
420
+// modify it under the terms of  the GNU General Public License as published
421
+// by the Free Software Foundation, either version 3 of the License, or (at
422
+// your option) any later version.
423
+//
424
+// This program is distributed in the hope that it will be useful, but WITHOUT
425
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
426
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
427
+// for more details.
428
+//
429
+// You should have received a copy of the GNU General Public License along
430
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
431
+// target there if the PDF file isn't present.)  If not, see
432
+// <http://www.gnu.org/licenses/> for a copy.
433
+//
434
+// License:    GPL, v3, as defined and found on www.gnu.org,
435
+//             http://www.gnu.org/licenses/gpl.html
436
+//
437
+//
438
+////////////////////////////////////////////////////////////////////////////////
439
+//
440
+//
441
+#ifndef        ZIPBASIC_H
442
+#define        ZIPBASIC_H
443
+
444
+#include <stdint.h>
445
+
446
+// We have the full ZIP System installed
447
+#define        _HAVE_ZIPSYS_PERFORMANCE_COUNTERS
448
+#define        _HAVE_ZIPSYS_DMA
449
+#include "zipsys.h"
450
+
451
+typedef        struct  {
452
+       unsigned        i_version;
453
+       unsigned        i_pwrcount;
454
+       unsigned        i_buserr;
455
+       unsigned        i_date;
456
+} BASICIO;
457
+
458
+#define        UART_PARITY_NONE        0
459
+#define        UART_HWFLOW_OFF         0x40000000
460
+#define        UART_PARITY_ODD         0x04000000
461
+#define        UART_PARITY_EVEN        0x05000000
462
+#define        UART_PARITY_SPACE       0x06000000
463
+#define        UART_PARITY_MARK        0x07000000
464
+#define        UART_STOP_ONEBIT        0
465
+#define        UART_STOP_TWOBITS       0x08000000
466
+#define        UART_DATA_8BITS         0
467
+#define        UART_DATA_7BITS         0x10000000
468
+#define        UART_DATA_6BITS         0x20000000
469
+#define        UART_DATA_5BITS         0x30000000
470
+#define        UART_RX_BREAK           0x0800
471
+#define        UART_RX_FRAMEERR        0x0400
472
+#define        UART_RX_PARITYERR       0x0200
473
+#define        UART_RX_NOTREADY        0x0100
474
+#define        UART_RX_ERR             (-256)
475
+#define        UART_TX_BUSY            0x0100
476
+#define        UART_TX_BREAK           0x0200
477
+
478
+typedef        struct  WBUART_S {
479
+       unsigned        u_setup;
480
+       unsigned        u_fifo;
481
+       unsigned        u_rx, u_tx;
482
+} WBUART;
483
+
484
+
485
+#define        WBSCOPE_NO_RESET        0x80000000
486
+#define        WBSCOPE_TRIGGER (WBSCOPE_NO_RESET|0x08000000)
487
+#define        WBSCOPE_MANUAL  WBSCOPE_TRIGGER
488
+#define        WBSCOPE_DISABLE 0x04000000      // Disable the scope trigger
489
+typedef        struct  WBSCOPE_S {
490
+       unsigned        s_ctrl, s_data;
491
+} WBSCOPE;
492
+
493
+typedef        struct  {
494
+       unsigned        r_clock, r_stopwatch, r_timer, r_alarm;
495
+} RTCLIGHT;
496
+
497
+
498
+#define        SD_SETAUX       0x0ff
499
+#define        SD_READAUX      0x0bf
500
+#define        SD_CMD          0x040
501
+#define        SD_FIFO_OP      0x0800  // Read only
502
+#define        SD_WRITEOP      0x0c00  // Write to the FIFO
503
+#define        SD_ALTFIFO      0x1000
504
+#define        SD_BUSY         0x4000
505
+#define        SD_ERROR        0x8000
506
+#define        SD_CLEARERR     0x8000
507
+#define        SD_READ_SECTOR  ((SD_CMD|SD_CLEARERR|SD_FIFO_OP)+17)
508
+#define        SD_WRITE_SECTOR ((SD_CMD|SD_CLEARERR|SD_WRITEOP)+24)
509
+
510
+typedef        struct  {
511
+       unsigned        sd_ctrl, sd_data, sd_fifo[2];
512
+} SDCARD;
513
+
514
+typedef        struct  {
515
+       unsigned        f_ereg, f_config, f_status, f_id;
516
+} FLASHCONTROL;
517
+
518
+
519
+typedef        struct {
520
+       BASICIO         b_io;
521
+       char            _SKIP_TO_SCOPES[(0x040-sizeof(BASICIO))];
522
+       WBSCOPE         b_s[2];
523
+       WBUART          b_uart;
524
+       RTCLIGHT        b_rtc;
525
+       FLASHCONTROL    b_flash;
526
+       SDCARD          b_sd;
527
+} ZIPBASICBOARD;
528
+
529
+#define        PERIPHERAL_ADDR ((ZIPBASICBOARD *)0x100)
530
+
531
+static volatile ZIPBASICBOARD  *const _sys =(PERIPHERAL_ADDR);
532
+
533
+#define        _ZIP_HAS_WBUART
534
+static volatile WBUART         *const _uart   = &(PERIPHERAL_ADDR)->b_uart;
535
+#define        _ZIP_HAS_WBUARTX
536
+#define        _uarttx         _uart->u_tx
537
+#define        _ZIP_HAS_WBUARTRX
538
+#define        _uartrx         _uart->u_rx
539
+#define        _ZIP_HAS_UARTSETUP
540
+#define        _uartsetup      _uart->u_setup
541
+
542
+#define        _ZIP_HAS_RTC
543
+static volatile RTCLIGHT       *const _rtcdev = &(PERIPHERAL_ADDR)->b_rtc;
544
+#define        _ZIP_HAS_RTCDATE
545
+static volatile uint32_t       *const _rtcdate = &((PERIPHERAL_ADDR)->b_io.i_date);
546
+
547
+#define        _ZIP_HAS_SDCARD
548
+static volatile SDCARD         *const _sdcard = &((PERIPHERAL_ADDR)->b_sd);
549
+
550
+#define        SYSTIMER        zip->z_tma
551
+#define        SYSPIC          zip->z_pic
552
+#define        ALTPIC          zip->z_zpic
553
+#define        COUNTER         zip->z_m.ac_ck
554
+
555
+#define        BKRAM   (void *)0
556
+#define        FLASH   (void *)0x01000000
557
+#define        SDRAM   (void *)0x10000000
558
+#define        CLOCKFREQHZ     100000000       // 100 MHz
559
+#define        CLOCKFREQ_HZ    CLOCKFREQHZ
560
+//
561
+#define        MEMLEN          0
562
+#define        FLASHLEN        0x01000000
563
+#define        SDRAMLEN        0x10000000
564
+
565
+// Finally, let's assign some of our interrupts:
566
+//
567
+// We're allowed nine interrupts to the master interrupt controller in the
568
+// ZipSys
569
+#define        SYSINT_PPS      SYSINT(6)
570
+#define        SYSINT_UARTRX   SYSINT(7)
571
+#define        SYSINT_UARTTX   SYSINT(8)
572
+#define        SYSINT_UARTRXF  SYSINT(9)
573
+#define        SYSINT_UARTTXF  SYSINT(10)
574
+#define        SYSINT_SDCARD   SYSINT(11)
575
+#define        SYSINT_FLASH    SYSINT(12)
576
+#define        SYSINT_SCOPE    SYSINT(13)
577
+#define        SYSINT_RTC      SYSINT(14)
578
+
579
+// DMA Interrupt parameters
580
+#define        DMA_ONPPS       DMA_ONINT(6)
581
+#define        DMA_ONUARTRX    DMA_ONINT(7)
582
+#define        DMA_ONUARTTX    DMA_ONINT(8)
583
+#define        DMA_ONUARTRXF   DMA_ONINT(9)
584
+#define        DMA_ONUARTTXF   DMA_ONINT(10)
585
+#define        DMA_ONSDCARD    DMA_ONINT(11)
586
+#define        DMA_ONFLASH     DMA_ONINT(12)
587
+#define        DMA_ONSCOPE     DMA_ONINT(13)
588
+#define        DMA_ONRTC       DMA_ONINT(14)
589
+
590
+#endif
591
+
592
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/bootloader.h newlib-2.5.0-zip/libgloss/zip/bootloader.h
593
--- newlib-2.5.0/libgloss/zip/bootloader.h      1969-12-31 19:00:00.000000000 -0500
594
+++ newlib-2.5.0-zip/libgloss/zip/bootloader.h  2017-01-13 09:54:17.642333099 -0500
595
@@ -0,0 +1,46 @@
596
+////////////////////////////////////////////////////////////////////////////////
597
+//
598
+// Filename:   bootloader.h
599
+//
600
+// Project:    Zip CPU -- a small, lightweight, RISC CPU soft core
601
+//
602
+// Purpose:
603
+//
604
+//
605
+// Creator:    Dan Gisselquist, Ph.D.
606
+//             Gisselquist Technology, LLC
607
+//
608
+////////////////////////////////////////////////////////////////////////////////
609
+//
610
+// Copyright (C) 2015-2016, Gisselquist Technology, LLC
611
+//
612
+// This program is free software (firmware): you can redistribute it and/or
613
+// modify it under the terms of  the GNU General Public License as published
614
+// by the Free Software Foundation, either version 3 of the License, or (at
615
+// your option) any later version.
616
+//
617
+// This program is distributed in the hope that it will be useful, but WITHOUT
618
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
619
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
620
+// for more details.
621
+//
622
+// License:    GPL, v3, as defined and found on www.gnu.org,
623
+//             http://www.gnu.org/licenses/gpl.html
624
+//
625
+//
626
+////////////////////////////////////////////////////////////////////////////////
627
+//
628
+//
629
+#ifndef        BOOTLOADER_H
630
+#define        BOOTLOADER_H
631
+
632
+extern int     _top_of_heap[1], _top_of_stack[1];
633
+
634
+extern int     _sdram[1], _flash[1], _blkram[1];
635
+
636
+extern int     _boot_address[1],
637
+               _kernel_image_start[1], _kernel_image_end[1],
638
+               _sdram_image_start[1], _sdram_image_end[1],
639
+               _bss_image_end[1];
640
+
641
+#endif
642
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/configure newlib-2.5.0-zip/libgloss/zip/configure
643
--- newlib-2.5.0/libgloss/zip/configure 1969-12-31 19:00:00.000000000 -0500
644
+++ newlib-2.5.0-zip/libgloss/zip/configure     2017-01-26 07:40:47.545551439 -0500
645
@@ -0,0 +1,3892 @@
646
+#! /bin/sh
647
+# Guess values for system-dependent variables and create Makefiles.
648
+# Generated by GNU Autoconf 2.68 for libor1k 0.0.1.
649
+#
650
+#
651
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
652
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
653
+# Foundation, Inc.
654
+#
655
+#
656
+# This configure script is free software; the Free Software Foundation
657
+# gives unlimited permission to copy, distribute and modify it.
658
+## -------------------- ##
659
+## M4sh Initialization. ##
660
+## -------------------- ##
661
+
662
+# Be more Bourne compatible
663
+DUALCASE=1; export DUALCASE # for MKS sh
664
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
665
+  emulate sh
666
+  NULLCMD=:
667
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
668
+  # is contrary to our usage.  Disable this feature.
669
+  alias -g '${1+"$@"}'='"$@"'
670
+  setopt NO_GLOB_SUBST
671
+else
672
+  case `(set -o) 2>/dev/null` in #(
673
+  *posix*) :
674
+    set -o posix ;; #(
675
+  *) :
676
+     ;;
677
+esac
678
+fi
679
+
680
+
681
+as_nl='
682
+'
683
+export as_nl
684
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
685
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
686
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
687
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
688
+# Prefer a ksh shell builtin over an external printf program on Solaris,
689
+# but without wasting forks for bash or zsh.
690
+if test -z "$BASH_VERSION$ZSH_VERSION" \
691
+    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
692
+  as_echo='print -r --'
693
+  as_echo_n='print -rn --'
694
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
695
+  as_echo='printf %s\n'
696
+  as_echo_n='printf %s'
697
+else
698
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
699
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
700
+    as_echo_n='/usr/ucb/echo -n'
701
+  else
702
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
703
+    as_echo_n_body='eval
704
+      arg=$1;
705
+      case $arg in #(
706
+      *"$as_nl"*)
707
+       expr "X$arg" : "X\\(.*\\)$as_nl";
708
+       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
709
+      esac;
710
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
711
+    '
712
+    export as_echo_n_body
713
+    as_echo_n='sh -c $as_echo_n_body as_echo'
714
+  fi
715
+  export as_echo_body
716
+  as_echo='sh -c $as_echo_body as_echo'
717
+fi
718
+
719
+# The user is always right.
720
+if test "${PATH_SEPARATOR+set}" != set; then
721
+  PATH_SEPARATOR=:
722
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
723
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
724
+      PATH_SEPARATOR=';'
725
+  }
726
+fi
727
+
728
+
729
+# IFS
730
+# We need space, tab and new line, in precisely that order.  Quoting is
731
+# there to prevent editors from complaining about space-tab.
732
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
733
+# splitting by setting IFS to empty value.)
734
+IFS=" ""       $as_nl"
735
+
736
+# Find who we are.  Look in the path if we contain no directory separator.
737
+as_myself=
738
+case $0 in #((
739
+  *[\\/]* ) as_myself=$0 ;;
740
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
741
+for as_dir in $PATH
742
+do
743
+  IFS=$as_save_IFS
744
+  test -z "$as_dir" && as_dir=.
745
+    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
746
+  done
747
+IFS=$as_save_IFS
748
+
749
+     ;;
750
+esac
751
+# We did not find ourselves, most probably we were run as `sh COMMAND'
752
+# in which case we are not to be found in the path.
753
+if test "x$as_myself" = x; then
754
+  as_myself=$0
755
+fi
756
+if test ! -f "$as_myself"; then
757
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
758
+  exit 1
759
+fi
760
+
761
+# Unset variables that we do not need and which cause bugs (e.g. in
762
+# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
763
+# suppresses any "Segmentation fault" message there.  '((' could
764
+# trigger a bug in pdksh 5.2.14.
765
+for as_var in BASH_ENV ENV MAIL MAILPATH
766
+do eval test x\${$as_var+set} = xset \
767
+  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
768
+done
769
+PS1='$ '
770
+PS2='> '
771
+PS4='+ '
772
+
773
+# NLS nuisances.
774
+LC_ALL=C
775
+export LC_ALL
776
+LANGUAGE=C
777
+export LANGUAGE
778
+
779
+# CDPATH.
780
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
781
+
782
+if test "x$CONFIG_SHELL" = x; then
783
+  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
784
+  emulate sh
785
+  NULLCMD=:
786
+  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
787
+  # is contrary to our usage.  Disable this feature.
788
+  alias -g '\${1+\"\$@\"}'='\"\$@\"'
789
+  setopt NO_GLOB_SUBST
790
+else
791
+  case \`(set -o) 2>/dev/null\` in #(
792
+  *posix*) :
793
+    set -o posix ;; #(
794
+  *) :
795
+     ;;
796
+esac
797
+fi
798
+"
799
+  as_required="as_fn_return () { (exit \$1); }
800
+as_fn_success () { as_fn_return 0; }
801
+as_fn_failure () { as_fn_return 1; }
802
+as_fn_ret_success () { return 0; }
803
+as_fn_ret_failure () { return 1; }
804
+
805
+exitcode=0
806
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
807
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
808
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
809
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
810
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
811
+
812
+else
813
+  exitcode=1; echo positional parameters were not saved.
814
+fi
815
+test x\$exitcode = x0 || exit 1"
816
+  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
817
+  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
818
+  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
819
+  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
820
+  if (eval "$as_required") 2>/dev/null; then :
821
+  as_have_required=yes
822
+else
823
+  as_have_required=no
824
+fi
825
+  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
826
+
827
+else
828
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
829
+as_found=false
830
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
831
+do
832
+  IFS=$as_save_IFS
833
+  test -z "$as_dir" && as_dir=.
834
+  as_found=:
835
+  case $as_dir in #(
836
+        /*)
837
+          for as_base in sh bash ksh sh5; do
838
+            # Try only shells that exist, to save several forks.
839
+            as_shell=$as_dir/$as_base
840
+            if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
841
+                   { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
842
+  CONFIG_SHELL=$as_shell as_have_required=yes
843
+                  if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
844
+  break 2
845
+fi
846
+fi
847
+          done;;
848
+       esac
849
+  as_found=false
850
+done
851
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
852
+             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
853
+  CONFIG_SHELL=$SHELL as_have_required=yes
854
+fi; }
855
+IFS=$as_save_IFS
856
+
857
+
858
+      if test "x$CONFIG_SHELL" != x; then :
859
+  # We cannot yet assume a decent shell, so we have to provide a
860
+       # neutralization value for shells without unset; and this also
861
+       # works around shells that cannot unset nonexistent variables.
862
+       # Preserve -v and -x to the replacement shell.
863
+       BASH_ENV=/dev/null
864
+       ENV=/dev/null
865
+       (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
866
+       export CONFIG_SHELL
867
+       case $- in # ((((
868
+         *v*x* | *x*v* ) as_opts=-vx ;;
869
+         *v* ) as_opts=-v ;;
870
+         *x* ) as_opts=-x ;;
871
+         * ) as_opts= ;;
872
+       esac
873
+       exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
874
+fi
875
+
876
+    if test x$as_have_required = xno; then :
877
+  $as_echo "$0: This script requires a shell more modern than all"
878
+  $as_echo "$0: the shells that I found on your system."
879
+  if test x${ZSH_VERSION+set} = xset ; then
880
+    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
881
+    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
882
+  else
883
+    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
884
+$0: including any error possibly output before this
885
+$0: message. Then install a modern shell, or manually run
886
+$0: the script under such a shell if you do have one."
887
+  fi
888
+  exit 1
889
+fi
890
+fi
891
+fi
892
+SHELL=${CONFIG_SHELL-/bin/sh}
893
+export SHELL
894
+# Unset more variables known to interfere with behavior of common tools.
895
+CLICOLOR_FORCE= GREP_OPTIONS=
896
+unset CLICOLOR_FORCE GREP_OPTIONS
897
+
898
+## --------------------- ##
899
+## M4sh Shell Functions. ##
900
+## --------------------- ##
901
+# as_fn_unset VAR
902
+# ---------------
903
+# Portably unset VAR.
904
+as_fn_unset ()
905
+{
906
+  { eval $1=; unset $1;}
907
+}
908
+as_unset=as_fn_unset
909
+
910
+# as_fn_set_status STATUS
911
+# -----------------------
912
+# Set $? to STATUS, without forking.
913
+as_fn_set_status ()
914
+{
915
+  return $1
916
+} # as_fn_set_status
917
+
918
+# as_fn_exit STATUS
919
+# -----------------
920
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
921
+as_fn_exit ()
922
+{
923
+  set +e
924
+  as_fn_set_status $1
925
+  exit $1
926
+} # as_fn_exit
927
+
928
+# as_fn_mkdir_p
929
+# -------------
930
+# Create "$as_dir" as a directory, including parents if necessary.
931
+as_fn_mkdir_p ()
932
+{
933
+
934
+  case $as_dir in #(
935
+  -*) as_dir=./$as_dir;;
936
+  esac
937
+  test -d "$as_dir" || eval $as_mkdir_p || {
938
+    as_dirs=
939
+    while :; do
940
+      case $as_dir in #(
941
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
942
+      *) as_qdir=$as_dir;;
943
+      esac
944
+      as_dirs="'$as_qdir' $as_dirs"
945
+      as_dir=`$as_dirname -- "$as_dir" ||
946
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
947
+        X"$as_dir" : 'X\(//\)[^/]' \| \
948
+        X"$as_dir" : 'X\(//\)$' \| \
949
+        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
950
+$as_echo X"$as_dir" |
951
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
952
+           s//\1/
953
+           q
954
+         }
955
+         /^X\(\/\/\)[^/].*/{
956
+           s//\1/
957
+           q
958
+         }
959
+         /^X\(\/\/\)$/{
960
+           s//\1/
961
+           q
962
+         }
963
+         /^X\(\/\).*/{
964
+           s//\1/
965
+           q
966
+         }
967
+         s/.*/./; q'`
968
+      test -d "$as_dir" && break
969
+    done
970
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
971
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
972
+
973
+
974
+} # as_fn_mkdir_p
975
+# as_fn_append VAR VALUE
976
+# ----------------------
977
+# Append the text in VALUE to the end of the definition contained in VAR. Take
978
+# advantage of any shell optimizations that allow amortized linear growth over
979
+# repeated appends, instead of the typical quadratic growth present in naive
980
+# implementations.
981
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
982
+  eval 'as_fn_append ()
983
+  {
984
+    eval $1+=\$2
985
+  }'
986
+else
987
+  as_fn_append ()
988
+  {
989
+    eval $1=\$$1\$2
990
+  }
991
+fi # as_fn_append
992
+
993
+# as_fn_arith ARG...
994
+# ------------------
995
+# Perform arithmetic evaluation on the ARGs, and store the result in the
996
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
997
+# must be portable across $(()) and expr.
998
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
999
+  eval 'as_fn_arith ()
1000
+  {
1001
+    as_val=$(( $* ))
1002
+  }'
1003
+else
1004
+  as_fn_arith ()
1005
+  {
1006
+    as_val=`expr "$@" || test $? -eq 1`
1007
+  }
1008
+fi # as_fn_arith
1009
+
1010
+
1011
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
1012
+# ----------------------------------------
1013
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1014
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1015
+# script with STATUS, using 1 if that was 0.
1016
+as_fn_error ()
1017
+{
1018
+  as_status=$1; test $as_status -eq 0 && as_status=1
1019
+  if test "$4"; then
1020
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1021
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1022
+  fi
1023
+  $as_echo "$as_me: error: $2" >&2
1024
+  as_fn_exit $as_status
1025
+} # as_fn_error
1026
+
1027
+if expr a : '\(a\)' >/dev/null 2>&1 &&
1028
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1029
+  as_expr=expr
1030
+else
1031
+  as_expr=false
1032
+fi
1033
+
1034
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1035
+  as_basename=basename
1036
+else
1037
+  as_basename=false
1038
+fi
1039
+
1040
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1041
+  as_dirname=dirname
1042
+else
1043
+  as_dirname=false
1044
+fi
1045
+
1046
+as_me=`$as_basename -- "$0" ||
1047
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1048
+        X"$0" : 'X\(//\)$' \| \
1049
+        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1050
+$as_echo X/"$0" |
1051
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
1052
+           s//\1/
1053
+           q
1054
+         }
1055
+         /^X\/\(\/\/\)$/{
1056
+           s//\1/
1057
+           q
1058
+         }
1059
+         /^X\/\(\/\).*/{
1060
+           s//\1/
1061
+           q
1062
+         }
1063
+         s/.*/./; q'`
1064
+
1065
+# Avoid depending upon Character Ranges.
1066
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1067
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1068
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1069
+as_cr_digits='0123456789'
1070
+as_cr_alnum=$as_cr_Letters$as_cr_digits
1071
+
1072
+
1073
+  as_lineno_1=$LINENO as_lineno_1a=$LINENO
1074
+  as_lineno_2=$LINENO as_lineno_2a=$LINENO
1075
+  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
1076
+  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
1077
+  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1078
+  sed -n '
1079
+    p
1080
+    /[$]LINENO/=
1081
+  ' <$as_myself |
1082
+    sed '
1083
+      s/[$]LINENO.*/&-/
1084
+      t lineno
1085
+      b
1086
+      :lineno
1087
+      N
1088
+      :loop
1089
+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1090
+      t loop
1091
+      s/-\n.*//
1092
+    ' >$as_me.lineno &&
1093
+  chmod +x "$as_me.lineno" ||
1094
+    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1095
+
1096
+  # Don't try to exec as it changes $[0], causing all sort of problems
1097
+  # (the dirname of $[0] is not the place where we might find the
1098
+  # original and so on.  Autoconf is especially sensitive to this).
1099
+  . "./$as_me.lineno"
1100
+  # Exit status is that of the last command.
1101
+  exit
1102
+}
1103
+
1104
+ECHO_C= ECHO_N= ECHO_T=
1105
+case `echo -n x` in #(((((
1106
+-n*)
1107
+  case `echo 'xy\c'` in
1108
+  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
1109
+  xy)  ECHO_C='\c';;
1110
+  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1111
+       ECHO_T='        ';;
1112
+  esac;;
1113
+*)
1114
+  ECHO_N='-n';;
1115
+esac
1116
+
1117
+rm -f conf$$ conf$$.exe conf$$.file
1118
+if test -d conf$$.dir; then
1119
+  rm -f conf$$.dir/conf$$.file
1120
+else
1121
+  rm -f conf$$.dir
1122
+  mkdir conf$$.dir 2>/dev/null
1123
+fi
1124
+if (echo >conf$$.file) 2>/dev/null; then
1125
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
1126
+    as_ln_s='ln -s'
1127
+    # ... but there are two gotchas:
1128
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1129
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1130
+    # In both cases, we have to default to `cp -p'.
1131
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1132
+      as_ln_s='cp -p'
1133
+  elif ln conf$$.file conf$$ 2>/dev/null; then
1134
+    as_ln_s=ln
1135
+  else
1136
+    as_ln_s='cp -p'
1137
+  fi
1138
+else
1139
+  as_ln_s='cp -p'
1140
+fi
1141
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1142
+rmdir conf$$.dir 2>/dev/null
1143
+
1144
+if mkdir -p . 2>/dev/null; then
1145
+  as_mkdir_p='mkdir -p "$as_dir"'
1146
+else
1147
+  test -d ./-p && rmdir ./-p
1148
+  as_mkdir_p=false
1149
+fi
1150
+
1151
+if test -x / >/dev/null 2>&1; then
1152
+  as_test_x='test -x'
1153
+else
1154
+  if ls -dL / >/dev/null 2>&1; then
1155
+    as_ls_L_option=L
1156
+  else
1157
+    as_ls_L_option=
1158
+  fi
1159
+  as_test_x='
1160
+    eval sh -c '\''
1161
+      if test -d "$1"; then
1162
+       test -d "$1/.";
1163
+      else
1164
+       case $1 in #(
1165
+       -*)set "./$1";;
1166
+       esac;
1167
+       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1168
+       ???[sx]*):;;*)false;;esac;fi
1169
+    '\'' sh
1170
+  '
1171
+fi
1172
+as_executable_p=$as_test_x
1173
+
1174
+# Sed expression to map a string onto a valid CPP name.
1175
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1176
+
1177
+# Sed expression to map a string onto a valid variable name.
1178
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1179
+
1180
+
1181
+test -n "$DJDIR" || exec 7<&0 </dev/null
1182
+exec 6>&1
1183
+
1184
+# Name of the host.
1185
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1186
+# so uname gets run too.
1187
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1188
+
1189
+#
1190
+# Initializations.
1191
+#
1192
+ac_default_prefix=/usr/local
1193
+ac_clean_files=
1194
+ac_config_libobj_dir=.
1195
+LIBOBJS=
1196
+cross_compiling=no
1197
+subdirs=
1198
+MFLAGS=
1199
+MAKEFLAGS=
1200
+
1201
+# Identity of this package.
1202
+PACKAGE_NAME='libor1k'
1203
+PACKAGE_TARNAME='libor1k'
1204
+PACKAGE_VERSION='0.0.1'
1205
+PACKAGE_STRING='libor1k 0.0.1'
1206
+PACKAGE_BUGREPORT=''
1207
+PACKAGE_URL=''
1208
+
1209
+ac_subst_vars='LTLIBOBJS
1210
+LIBOBJS
1211
+target_makefile_frag_path
1212
+host_makefile_frag_path
1213
+CCASFLAGS
1214
+CCAS
1215
+RANLIB
1216
+LD
1217
+AR
1218
+AS
1219
+am__fastdepCC_FALSE
1220
+am__fastdepCC_TRUE
1221
+CCDEPMODE
1222
+am__nodep
1223
+AMDEPBACKSLASH
1224
+AMDEP_FALSE
1225
+AMDEP_TRUE
1226
+am__quote
1227
+am__include
1228
+DEPDIR
1229
+am__leading_dot
1230
+CC
1231
+INSTALL_DATA
1232
+INSTALL_SCRIPT
1233
+INSTALL_PROGRAM
1234
+target_os
1235
+target_vendor
1236
+target_cpu
1237
+target
1238
+host_os
1239
+host_vendor
1240
+host_cpu
1241
+host
1242
+build_os
1243
+build_vendor
1244
+build_cpu
1245
+build
1246
+target_alias
1247
+host_alias
1248
+build_alias
1249
+LIBS
1250
+ECHO_T
1251
+ECHO_N
1252
+ECHO_C
1253
+DEFS
1254
+mandir
1255
+localedir
1256
+libdir
1257
+psdir
1258
+pdfdir
1259
+dvidir
1260
+htmldir
1261
+infodir
1262
+docdir
1263
+oldincludedir
1264
+includedir
1265
+localstatedir
1266
+sharedstatedir
1267
+sysconfdir
1268
+datadir
1269
+datarootdir
1270
+libexecdir
1271
+sbindir
1272
+bindir
1273
+program_transform_name
1274
+prefix
1275
+exec_prefix
1276
+PACKAGE_URL
1277
+PACKAGE_BUGREPORT
1278
+PACKAGE_STRING
1279
+PACKAGE_VERSION
1280
+PACKAGE_TARNAME
1281
+PACKAGE_NAME
1282
+PATH_SEPARATOR
1283
+SHELL'
1284
+ac_subst_files='host_makefile_frag
1285
+target_makefile_frag'
1286
+ac_user_opts='
1287
+enable_option_checking
1288
+enable_dependency_tracking
1289
+'
1290
+      ac_precious_vars='build_alias
1291
+host_alias
1292
+target_alias
1293
+CCAS
1294
+CCASFLAGS'
1295
+
1296
+
1297
+# Initialize some variables set by options.
1298
+ac_init_help=
1299
+ac_init_version=false
1300
+ac_unrecognized_opts=
1301
+ac_unrecognized_sep=
1302
+# The variables have the same names as the options, with
1303
+# dashes changed to underlines.
1304
+cache_file=/dev/null
1305
+exec_prefix=NONE
1306
+no_create=
1307
+no_recursion=
1308
+prefix=NONE
1309
+program_prefix=NONE
1310
+program_suffix=NONE
1311
+program_transform_name=s,x,x,
1312
+silent=
1313
+site=
1314
+srcdir=
1315
+verbose=
1316
+x_includes=NONE
1317
+x_libraries=NONE
1318
+
1319
+# Installation directory options.
1320
+# These are left unexpanded so users can "make install exec_prefix=/foo"
1321
+# and all the variables that are supposed to be based on exec_prefix
1322
+# by default will actually change.
1323
+# Use braces instead of parens because sh, perl, etc. also accept them.
1324
+# (The list follows the same order as the GNU Coding Standards.)
1325
+bindir='${exec_prefix}/bin'
1326
+sbindir='${exec_prefix}/sbin'
1327
+libexecdir='${exec_prefix}/libexec'
1328
+datarootdir='${prefix}/share'
1329
+datadir='${datarootdir}'
1330
+sysconfdir='${prefix}/etc'
1331
+sharedstatedir='${prefix}/com'
1332
+localstatedir='${prefix}/var'
1333
+includedir='${prefix}/include'
1334
+oldincludedir='/usr/include'
1335
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1336
+infodir='${datarootdir}/info'
1337
+htmldir='${docdir}'
1338
+dvidir='${docdir}'
1339
+pdfdir='${docdir}'
1340
+psdir='${docdir}'
1341
+libdir='${exec_prefix}/lib'
1342
+localedir='${datarootdir}/locale'
1343
+mandir='${datarootdir}/man'
1344
+
1345
+ac_prev=
1346
+ac_dashdash=
1347
+for ac_option
1348
+do
1349
+  # If the previous option needs an argument, assign it.
1350
+  if test -n "$ac_prev"; then
1351
+    eval $ac_prev=\$ac_option
1352
+    ac_prev=
1353
+    continue
1354
+  fi
1355
+
1356
+  case $ac_option in
1357
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1358
+  *=)   ac_optarg= ;;
1359
+  *)    ac_optarg=yes ;;
1360
+  esac
1361
+
1362
+  # Accept the important Cygnus configure options, so we can diagnose typos.
1363
+
1364
+  case $ac_dashdash$ac_option in
1365
+  --)
1366
+    ac_dashdash=yes ;;
1367
+
1368
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1369
+    ac_prev=bindir ;;
1370
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1371
+    bindir=$ac_optarg ;;
1372
+
1373
+  -build | --build | --buil | --bui | --bu)
1374
+    ac_prev=build_alias ;;
1375
+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1376
+    build_alias=$ac_optarg ;;
1377
+
1378
+  -cache-file | --cache-file | --cache-fil | --cache-fi \
1379
+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1380
+    ac_prev=cache_file ;;
1381
+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1382
+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1383
+    cache_file=$ac_optarg ;;
1384
+
1385
+  --config-cache | -C)
1386
+    cache_file=config.cache ;;
1387
+
1388
+  -datadir | --datadir | --datadi | --datad)
1389
+    ac_prev=datadir ;;
1390
+  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1391
+    datadir=$ac_optarg ;;
1392
+
1393
+  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1394
+  | --dataroo | --dataro | --datar)
1395
+    ac_prev=datarootdir ;;
1396
+  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1397
+  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1398
+    datarootdir=$ac_optarg ;;
1399
+
1400
+  -disable-* | --disable-*)
1401
+    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1402
+    # Reject names that are not valid shell variable names.
1403
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1404
+      as_fn_error $? "invalid feature name: $ac_useropt"
1405
+    ac_useropt_orig=$ac_useropt
1406
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407
+    case $ac_user_opts in
1408
+      *"
1409
+"enable_$ac_useropt"
1410
+"*) ;;
1411
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1412
+        ac_unrecognized_sep=', ';;
1413
+    esac
1414
+    eval enable_$ac_useropt=no ;;
1415
+
1416
+  -docdir | --docdir | --docdi | --doc | --do)
1417
+    ac_prev=docdir ;;
1418
+  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1419
+    docdir=$ac_optarg ;;
1420
+
1421
+  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1422
+    ac_prev=dvidir ;;
1423
+  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1424
+    dvidir=$ac_optarg ;;
1425
+
1426
+  -enable-* | --enable-*)
1427
+    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1428
+    # Reject names that are not valid shell variable names.
1429
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1430
+      as_fn_error $? "invalid feature name: $ac_useropt"
1431
+    ac_useropt_orig=$ac_useropt
1432
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433
+    case $ac_user_opts in
1434
+      *"
1435
+"enable_$ac_useropt"
1436
+"*) ;;
1437
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1438
+        ac_unrecognized_sep=', ';;
1439
+    esac
1440
+    eval enable_$ac_useropt=\$ac_optarg ;;
1441
+
1442
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1443
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1444
+  | --exec | --exe | --ex)
1445
+    ac_prev=exec_prefix ;;
1446
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1447
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1448
+  | --exec=* | --exe=* | --ex=*)
1449
+    exec_prefix=$ac_optarg ;;
1450
+
1451
+  -gas | --gas | --ga | --g)
1452
+    # Obsolete; use --with-gas.
1453
+    with_gas=yes ;;
1454
+
1455
+  -help | --help | --hel | --he | -h)
1456
+    ac_init_help=long ;;
1457
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1458
+    ac_init_help=recursive ;;
1459
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1460
+    ac_init_help=short ;;
1461
+
1462
+  -host | --host | --hos | --ho)
1463
+    ac_prev=host_alias ;;
1464
+  -host=* | --host=* | --hos=* | --ho=*)
1465
+    host_alias=$ac_optarg ;;
1466
+
1467
+  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1468
+    ac_prev=htmldir ;;
1469
+  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1470
+  | --ht=*)
1471
+    htmldir=$ac_optarg ;;
1472
+
1473
+  -includedir | --includedir | --includedi | --included | --include \
1474
+  | --includ | --inclu | --incl | --inc)
1475
+    ac_prev=includedir ;;
1476
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1477
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
1478
+    includedir=$ac_optarg ;;
1479
+
1480
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
1481
+    ac_prev=infodir ;;
1482
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1483
+    infodir=$ac_optarg ;;
1484
+
1485
+  -libdir | --libdir | --libdi | --libd)
1486
+    ac_prev=libdir ;;
1487
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1488
+    libdir=$ac_optarg ;;
1489
+
1490
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1491
+  | --libexe | --libex | --libe)
1492
+    ac_prev=libexecdir ;;
1493
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1494
+  | --libexe=* | --libex=* | --libe=*)
1495
+    libexecdir=$ac_optarg ;;
1496
+
1497
+  -localedir | --localedir | --localedi | --localed | --locale)
1498
+    ac_prev=localedir ;;
1499
+  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1500
+    localedir=$ac_optarg ;;
1501
+
1502
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
1503
+  | --localstate | --localstat | --localsta | --localst | --locals)
1504
+    ac_prev=localstatedir ;;
1505
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1506
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1507
+    localstatedir=$ac_optarg ;;
1508
+
1509
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1510
+    ac_prev=mandir ;;
1511
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1512
+    mandir=$ac_optarg ;;
1513
+
1514
+  -nfp | --nfp | --nf)
1515
+    # Obsolete; use --without-fp.
1516
+    with_fp=no ;;
1517
+
1518
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1519
+  | --no-cr | --no-c | -n)
1520
+    no_create=yes ;;
1521
+
1522
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1523
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1524
+    no_recursion=yes ;;
1525
+
1526
+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1527
+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1528
+  | --oldin | --oldi | --old | --ol | --o)
1529
+    ac_prev=oldincludedir ;;
1530
+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1531
+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1532
+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1533
+    oldincludedir=$ac_optarg ;;
1534
+
1535
+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1536
+    ac_prev=prefix ;;
1537
+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1538
+    prefix=$ac_optarg ;;
1539
+
1540
+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1541
+  | --program-pre | --program-pr | --program-p)
1542
+    ac_prev=program_prefix ;;
1543
+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1544
+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1545
+    program_prefix=$ac_optarg ;;
1546
+
1547
+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1548
+  | --program-suf | --program-su | --program-s)
1549
+    ac_prev=program_suffix ;;
1550
+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1551
+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1552
+    program_suffix=$ac_optarg ;;
1553
+
1554
+  -program-transform-name | --program-transform-name \
1555
+  | --program-transform-nam | --program-transform-na \
1556
+  | --program-transform-n | --program-transform- \
1557
+  | --program-transform | --program-transfor \
1558
+  | --program-transfo | --program-transf \
1559
+  | --program-trans | --program-tran \
1560
+  | --progr-tra | --program-tr | --program-t)
1561
+    ac_prev=program_transform_name ;;
1562
+  -program-transform-name=* | --program-transform-name=* \
1563
+  | --program-transform-nam=* | --program-transform-na=* \
1564
+  | --program-transform-n=* | --program-transform-=* \
1565
+  | --program-transform=* | --program-transfor=* \
1566
+  | --program-transfo=* | --program-transf=* \
1567
+  | --program-trans=* | --program-tran=* \
1568
+  | --progr-tra=* | --program-tr=* | --program-t=*)
1569
+    program_transform_name=$ac_optarg ;;
1570
+
1571
+  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1572
+    ac_prev=pdfdir ;;
1573
+  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1574
+    pdfdir=$ac_optarg ;;
1575
+
1576
+  -psdir | --psdir | --psdi | --psd | --ps)
1577
+    ac_prev=psdir ;;
1578
+  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1579
+    psdir=$ac_optarg ;;
1580
+
1581
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1582
+  | -silent | --silent | --silen | --sile | --sil)
1583
+    silent=yes ;;
1584
+
1585
+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1586
+    ac_prev=sbindir ;;
1587
+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1588
+  | --sbi=* | --sb=*)
1589
+    sbindir=$ac_optarg ;;
1590
+
1591
+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1592
+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1593
+  | --sharedst | --shareds | --shared | --share | --shar \
1594
+  | --sha | --sh)
1595
+    ac_prev=sharedstatedir ;;
1596
+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1597
+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1598
+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1599
+  | --sha=* | --sh=*)
1600
+    sharedstatedir=$ac_optarg ;;
1601
+
1602
+  -site | --site | --sit)
1603
+    ac_prev=site ;;
1604
+  -site=* | --site=* | --sit=*)
1605
+    site=$ac_optarg ;;
1606
+
1607
+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1608
+    ac_prev=srcdir ;;
1609
+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1610
+    srcdir=$ac_optarg ;;
1611
+
1612
+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1613
+  | --syscon | --sysco | --sysc | --sys | --sy)
1614
+    ac_prev=sysconfdir ;;
1615
+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1616
+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1617
+    sysconfdir=$ac_optarg ;;
1618
+
1619
+  -target | --target | --targe | --targ | --tar | --ta | --t)
1620
+    ac_prev=target_alias ;;
1621
+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1622
+    target_alias=$ac_optarg ;;
1623
+
1624
+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1625
+    verbose=yes ;;
1626
+
1627
+  -version | --version | --versio | --versi | --vers | -V)
1628
+    ac_init_version=: ;;
1629
+
1630
+  -with-* | --with-*)
1631
+    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1632
+    # Reject names that are not valid shell variable names.
1633
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1634
+      as_fn_error $? "invalid package name: $ac_useropt"
1635
+    ac_useropt_orig=$ac_useropt
1636
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1637
+    case $ac_user_opts in
1638
+      *"
1639
+"with_$ac_useropt"
1640
+"*) ;;
1641
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1642
+        ac_unrecognized_sep=', ';;
1643
+    esac
1644
+    eval with_$ac_useropt=\$ac_optarg ;;
1645
+
1646
+  -without-* | --without-*)
1647
+    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1648
+    # Reject names that are not valid shell variable names.
1649
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1650
+      as_fn_error $? "invalid package name: $ac_useropt"
1651
+    ac_useropt_orig=$ac_useropt
1652
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1653
+    case $ac_user_opts in
1654
+      *"
1655
+"with_$ac_useropt"
1656
+"*) ;;
1657
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1658
+        ac_unrecognized_sep=', ';;
1659
+    esac
1660
+    eval with_$ac_useropt=no ;;
1661
+
1662
+  --x)
1663
+    # Obsolete; use --with-x.
1664
+    with_x=yes ;;
1665
+
1666
+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1667
+  | --x-incl | --x-inc | --x-in | --x-i)
1668
+    ac_prev=x_includes ;;
1669
+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1670
+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1671
+    x_includes=$ac_optarg ;;
1672
+
1673
+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1674
+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1675
+    ac_prev=x_libraries ;;
1676
+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1677
+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1678
+    x_libraries=$ac_optarg ;;
1679
+
1680
+  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1681
+Try \`$0 --help' for more information"
1682
+    ;;
1683
+
1684
+  *=*)
1685
+    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1686
+    # Reject names that are not valid shell variable names.
1687
+    case $ac_envvar in #(
1688
+      '' | [0-9]* | *[!_$as_cr_alnum]* )
1689
+      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1690
+    esac
1691
+    eval $ac_envvar=\$ac_optarg
1692
+    export $ac_envvar ;;
1693
+
1694
+  *)
1695
+    # FIXME: should be removed in autoconf 3.0.
1696
+    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1697
+    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1698
+      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1699
+    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1700
+    ;;
1701
+
1702
+  esac
1703
+done
1704
+
1705
+if test -n "$ac_prev"; then
1706
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1707
+  as_fn_error $? "missing argument to $ac_option"
1708
+fi
1709
+
1710
+if test -n "$ac_unrecognized_opts"; then
1711
+  case $enable_option_checking in
1712
+    no) ;;
1713
+    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1714
+    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1715
+  esac
1716
+fi
1717
+
1718
+# Check all directory arguments for consistency.
1719
+for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
1720
+               datadir sysconfdir sharedstatedir localstatedir includedir \
1721
+               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1722
+               libdir localedir mandir
1723
+do
1724
+  eval ac_val=\$$ac_var
1725
+  # Remove trailing slashes.
1726
+  case $ac_val in
1727
+    */ )
1728
+      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1729
+      eval $ac_var=\$ac_val;;
1730
+  esac
1731
+  # Be sure to have absolute directory names.
1732
+  case $ac_val in
1733
+    [\\/$]* | ?:[\\/]* )  continue;;
1734
+    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1735
+  esac
1736
+  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1737
+done
1738
+
1739
+# There might be people who depend on the old broken behavior: `$host'
1740
+# used to hold the argument of --host etc.
1741
+# FIXME: To remove some day.
1742
+build=$build_alias
1743
+host=$host_alias
1744
+target=$target_alias
1745
+
1746
+# FIXME: To remove some day.
1747
+if test "x$host_alias" != x; then
1748
+  if test "x$build_alias" = x; then
1749
+    cross_compiling=maybe
1750
+    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1751
+    If a cross compiler is detected then cross compile mode will be used" >&2
1752
+  elif test "x$build_alias" != "x$host_alias"; then
1753
+    cross_compiling=yes
1754
+  fi
1755
+fi
1756
+
1757
+ac_tool_prefix=
1758
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
1759
+
1760
+test "$silent" = yes && exec 6>/dev/null
1761
+
1762
+
1763
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
1764
+ac_ls_di=`ls -di .` &&
1765
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1766
+  as_fn_error $? "working directory cannot be determined"
1767
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1768
+  as_fn_error $? "pwd does not report name of working directory"
1769
+
1770
+
1771
+# Find the source files, if location was not specified.
1772
+if test -z "$srcdir"; then
1773
+  ac_srcdir_defaulted=yes
1774
+  # Try the directory containing this script, then the parent directory.
1775
+  ac_confdir=`$as_dirname -- "$as_myself" ||
1776
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1777
+        X"$as_myself" : 'X\(//\)[^/]' \| \
1778
+        X"$as_myself" : 'X\(//\)$' \| \
1779
+        X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1780
+$as_echo X"$as_myself" |
1781
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1782
+           s//\1/
1783
+           q
1784
+         }
1785
+         /^X\(\/\/\)[^/].*/{
1786
+           s//\1/
1787
+           q
1788
+         }
1789
+         /^X\(\/\/\)$/{
1790
+           s//\1/
1791
+           q
1792
+         }
1793
+         /^X\(\/\).*/{
1794
+           s//\1/
1795
+           q
1796
+         }
1797
+         s/.*/./; q'`
1798
+  srcdir=$ac_confdir
1799
+  if test ! -r "$srcdir/$ac_unique_file"; then
1800
+    srcdir=..
1801
+  fi
1802
+else
1803
+  ac_srcdir_defaulted=no
1804
+fi
1805
+if test ! -r "$srcdir/$ac_unique_file"; then
1806
+  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1807
+  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1808
+fi
1809
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1810
+ac_abs_confdir=`(
1811
+       cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1812
+       pwd)`
1813
+# When building in place, set srcdir=.
1814
+if test "$ac_abs_confdir" = "$ac_pwd"; then
1815
+  srcdir=.
1816
+fi
1817
+# Remove unnecessary trailing slashes from srcdir.
1818
+# Double slashes in file names in object file debugging info
1819
+# mess up M-x gdb in Emacs.
1820
+case $srcdir in
1821
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1822
+esac
1823
+for ac_var in $ac_precious_vars; do
1824
+  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1825
+  eval ac_env_${ac_var}_value=\$${ac_var}
1826
+  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1827
+  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1828
+done
1829
+
1830
+#
1831
+# Report the --help message.
1832
+#
1833
+if test "$ac_init_help" = "long"; then
1834
+  # Omit some internal or obsolete options to make the list less imposing.
1835
+  # This message is too long to be a string in the A/UX 3.1 sh.
1836
+  cat <<_ACEOF
1837
+\`configure' configures libor1k 0.0.1 to adapt to many kinds of systems.
1838
+
1839
+Usage: $0 [OPTION]... [VAR=VALUE]...
1840
+
1841
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
1842
+VAR=VALUE.  See below for descriptions of some of the useful variables.
1843
+
1844
+Defaults for the options are specified in brackets.
1845
+
1846
+Configuration:
1847
+  -h, --help              display this help and exit
1848
+      --help=short        display options specific to this package
1849
+      --help=recursive    display the short help of all the included packages
1850
+  -V, --version           display version information and exit
1851
+  -q, --quiet, --silent   do not print \`checking ...' messages
1852
+      --cache-file=FILE   cache test results in FILE [disabled]
1853
+  -C, --config-cache      alias for \`--cache-file=config.cache'
1854
+  -n, --no-create         do not create output files
1855
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1856
+
1857
+Installation directories:
1858
+  --prefix=PREFIX         install architecture-independent files in PREFIX
1859
+                          [$ac_default_prefix]
1860
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1861
+                          [PREFIX]
1862
+
1863
+By default, \`make install' will install all the files in
1864
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1865
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1866
+for instance \`--prefix=\$HOME'.
1867
+
1868
+For better control, use the options below.
1869
+
1870
+Fine tuning of the installation directories:
1871
+  --bindir=DIR            user executables [EPREFIX/bin]
1872
+  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1873
+  --libexecdir=DIR        program executables [EPREFIX/libexec]
1874
+  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1875
+  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1876
+  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1877
+  --libdir=DIR            object code libraries [EPREFIX/lib]
1878
+  --includedir=DIR        C header files [PREFIX/include]
1879
+  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1880
+  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1881
+  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1882
+  --infodir=DIR           info documentation [DATAROOTDIR/info]
1883
+  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1884
+  --mandir=DIR            man documentation [DATAROOTDIR/man]
1885
+  --docdir=DIR            documentation root [DATAROOTDIR/doc/libor1k]
1886
+  --htmldir=DIR           html documentation [DOCDIR]
1887
+  --dvidir=DIR            dvi documentation [DOCDIR]
1888
+  --pdfdir=DIR            pdf documentation [DOCDIR]
1889
+  --psdir=DIR             ps documentation [DOCDIR]
1890
+_ACEOF
1891
+
1892
+  cat <<\_ACEOF
1893
+
1894
+Program names:
1895
+  --program-prefix=PREFIX            prepend PREFIX to installed program names
1896
+  --program-suffix=SUFFIX            append SUFFIX to installed program names
1897
+  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1898
+
1899
+System types:
1900
+  --build=BUILD     configure for building on BUILD [guessed]
1901
+  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1902
+  --target=TARGET   configure for building compilers for TARGET [HOST]
1903
+_ACEOF
1904
+fi
1905
+
1906
+if test -n "$ac_init_help"; then
1907
+  case $ac_init_help in
1908
+     short | recursive ) echo "Configuration of libor1k 0.0.1:";;
1909
+   esac
1910
+  cat <<\_ACEOF
1911
+
1912
+Optional Features:
1913
+  --disable-option-checking  ignore unrecognized --enable/--with options
1914
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1915
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1916
+  --disable-dependency-tracking  speeds up one-time build
1917
+  --enable-dependency-tracking   do not reject slow dependency extractors
1918
+
1919
+Some influential environment variables:
1920
+  CCAS        assembler compiler command (defaults to CC)
1921
+  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1922
+
1923
+Use these variables to override the choices made by `configure' or to help
1924
+it to find libraries and programs with nonstandard names/locations.
1925
+
1926
+Report bugs to the package provider.
1927
+_ACEOF
1928
+ac_status=$?
1929
+fi
1930
+
1931
+if test "$ac_init_help" = "recursive"; then
1932
+  # If there are subdirs, report their specific --help.
1933
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1934
+    test -d "$ac_dir" ||
1935
+      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1936
+      continue
1937
+    ac_builddir=.
1938
+
1939
+case "$ac_dir" in
1940
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1941
+*)
1942
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1943
+  # A ".." for each directory in $ac_dir_suffix.
1944
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1945
+  case $ac_top_builddir_sub in
1946
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1947
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1948
+  esac ;;
1949
+esac
1950
+ac_abs_top_builddir=$ac_pwd
1951
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
1952
+# for backward compatibility:
1953
+ac_top_builddir=$ac_top_build_prefix
1954
+
1955
+case $srcdir in
1956
+  .)  # We are building in place.
1957
+    ac_srcdir=.
1958
+    ac_top_srcdir=$ac_top_builddir_sub
1959
+    ac_abs_top_srcdir=$ac_pwd ;;
1960
+  [\\/]* | ?:[\\/]* )  # Absolute name.
1961
+    ac_srcdir=$srcdir$ac_dir_suffix;
1962
+    ac_top_srcdir=$srcdir
1963
+    ac_abs_top_srcdir=$srcdir ;;
1964
+  *) # Relative name.
1965
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1966
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
1967
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1968
+esac
1969
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1970
+
1971
+    cd "$ac_dir" || { ac_status=$?; continue; }
1972
+    # Check for guested configure.
1973
+    if test -f "$ac_srcdir/configure.gnu"; then
1974
+      echo &&
1975
+      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1976
+    elif test -f "$ac_srcdir/configure"; then
1977
+      echo &&
1978
+      $SHELL "$ac_srcdir/configure" --help=recursive
1979
+    else
1980
+      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1981
+    fi || ac_status=$?
1982
+    cd "$ac_pwd" || { ac_status=$?; break; }
1983
+  done
1984
+fi
1985
+
1986
+test -n "$ac_init_help" && exit $ac_status
1987
+if $ac_init_version; then
1988
+  cat <<\_ACEOF
1989
+libor1k configure 0.0.1
1990
+generated by GNU Autoconf 2.68
1991
+
1992
+Copyright (C) 2010 Free Software Foundation, Inc.
1993
+This configure script is free software; the Free Software Foundation
1994
+gives unlimited permission to copy, distribute and modify it.
1995
+_ACEOF
1996
+  exit
1997
+fi
1998
+
1999
+## ------------------------ ##
2000
+## Autoconf initialization. ##
2001
+## ------------------------ ##
2002
+
2003
+# ac_fn_c_try_compile LINENO
2004
+# --------------------------
2005
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
2006
+ac_fn_c_try_compile ()
2007
+{
2008
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009
+  rm -f conftest.$ac_objext
2010
+  if { { ac_try="$ac_compile"
2011
+case "(($ac_try" in
2012
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013
+  *) ac_try_echo=$ac_try;;
2014
+esac
2015
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016
+$as_echo "$ac_try_echo"; } >&5
2017
+  (eval "$ac_compile") 2>conftest.err
2018
+  ac_status=$?
2019
+  if test -s conftest.err; then
2020
+    grep -v '^ *+' conftest.err >conftest.er1
2021
+    cat conftest.er1 >&5
2022
+    mv -f conftest.er1 conftest.err
2023
+  fi
2024
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025
+  test $ac_status = 0; } && {
2026
+        test -z "$ac_c_werror_flag" ||
2027
+        test ! -s conftest.err
2028
+       } && test -s conftest.$ac_objext; then :
2029
+  ac_retval=0
2030
+else
2031
+  $as_echo "$as_me: failed program was:" >&5
2032
+sed 's/^/| /' conftest.$ac_ext >&5
2033
+
2034
+       ac_retval=1
2035
+fi
2036
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
+  as_fn_set_status $ac_retval
2038
+
2039
+} # ac_fn_c_try_compile
2040
+cat >config.log <<_ACEOF
2041
+This file contains any messages produced by compilers while
2042
+running configure, to aid debugging if configure makes a mistake.
2043
+
2044
+It was created by libor1k $as_me 0.0.1, which was
2045
+generated by GNU Autoconf 2.68.  Invocation command line was
2046
+
2047
+  $ $0 $@
2048
+
2049
+_ACEOF
2050
+exec 5>>config.log
2051
+{
2052
+cat <<_ASUNAME
2053
+## --------- ##
2054
+## Platform. ##
2055
+## --------- ##
2056
+
2057
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062
+
2063
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2065
+
2066
+/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2067
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2068
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069
+/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2070
+/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2071
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2072
+/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2073
+
2074
+_ASUNAME
2075
+
2076
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077
+for as_dir in $PATH
2078
+do
2079
+  IFS=$as_save_IFS
2080
+  test -z "$as_dir" && as_dir=.
2081
+    $as_echo "PATH: $as_dir"
2082
+  done
2083
+IFS=$as_save_IFS
2084
+
2085
+} >&5
2086
+
2087
+cat >&5 <<_ACEOF
2088
+
2089
+
2090
+## ----------- ##
2091
+## Core tests. ##
2092
+## ----------- ##
2093
+
2094
+_ACEOF
2095
+
2096
+
2097
+# Keep a trace of the command line.
2098
+# Strip out --no-create and --no-recursion so they do not pile up.
2099
+# Strip out --silent because we don't want to record it for future runs.
2100
+# Also quote any args containing shell meta-characters.
2101
+# Make two passes to allow for proper duplicate-argument suppression.
2102
+ac_configure_args=
2103
+ac_configure_args0=
2104
+ac_configure_args1=
2105
+ac_must_keep_next=false
2106
+for ac_pass in 1 2
2107
+do
2108
+  for ac_arg
2109
+  do
2110
+    case $ac_arg in
2111
+    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112
+    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113
+    | -silent | --silent | --silen | --sile | --sil)
2114
+      continue ;;
2115
+    *\'*)
2116
+      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117
+    esac
2118
+    case $ac_pass in
2119
+    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120
+    2)
2121
+      as_fn_append ac_configure_args1 " '$ac_arg'"
2122
+      if test $ac_must_keep_next = true; then
2123
+       ac_must_keep_next=false # Got value, back to normal.
2124
+      else
2125
+       case $ac_arg in
2126
+         *=* | --config-cache | -C | -disable-* | --disable-* \
2127
+         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128
+         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129
+         | -with-* | --with-* | -without-* | --without-* | --x)
2130
+           case "$ac_configure_args0 " in
2131
+             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132
+           esac
2133
+           ;;
2134
+         -* ) ac_must_keep_next=true ;;
2135
+       esac
2136
+      fi
2137
+      as_fn_append ac_configure_args " '$ac_arg'"
2138
+      ;;
2139
+    esac
2140
+  done
2141
+done
2142
+{ ac_configure_args0=; unset ac_configure_args0;}
2143
+{ ac_configure_args1=; unset ac_configure_args1;}
2144
+
2145
+# When interrupted or exit'd, cleanup temporary files, and complete
2146
+# config.log.  We remove comments because anyway the quotes in there
2147
+# would cause problems or look ugly.
2148
+# WARNING: Use '\'' to represent an apostrophe within the trap.
2149
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150
+trap 'exit_status=$?
2151
+  # Save into config.log some information that might help in debugging.
2152
+  {
2153
+    echo
2154
+
2155
+    $as_echo "## ---------------- ##
2156
+## Cache variables. ##
2157
+## ---------------- ##"
2158
+    echo
2159
+    # The following way of writing the cache mishandles newlines in values,
2160
+(
2161
+  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162
+    eval ac_val=\$$ac_var
2163
+    case $ac_val in #(
2164
+    *${as_nl}*)
2165
+      case $ac_var in #(
2166
+      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2168
+      esac
2169
+      case $ac_var in #(
2170
+      _ | IFS | as_nl) ;; #(
2171
+      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172
+      *) { eval $ac_var=; unset $ac_var;} ;;
2173
+      esac ;;
2174
+    esac
2175
+  done
2176
+  (set) 2>&1 |
2177
+    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178
+    *${as_nl}ac_space=\ *)
2179
+      sed -n \
2180
+       "s/'\''/'\''\\\\'\'''\''/g;
2181
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182
+      ;; #(
2183
+    *)
2184
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185
+      ;;
2186
+    esac |
2187
+    sort
2188
+)
2189
+    echo
2190
+
2191
+    $as_echo "## ----------------- ##
2192
+## Output variables. ##
2193
+## ----------------- ##"
2194
+    echo
2195
+    for ac_var in $ac_subst_vars
2196
+    do
2197
+      eval ac_val=\$$ac_var
2198
+      case $ac_val in
2199
+      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200
+      esac
2201
+      $as_echo "$ac_var='\''$ac_val'\''"
2202
+    done | sort
2203
+    echo
2204
+
2205
+    if test -n "$ac_subst_files"; then
2206
+      $as_echo "## ------------------- ##
2207
+## File substitutions. ##
2208
+## ------------------- ##"
2209
+      echo
2210
+      for ac_var in $ac_subst_files
2211
+      do
2212
+       eval ac_val=\$$ac_var
2213
+       case $ac_val in
2214
+       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215
+       esac
2216
+       $as_echo "$ac_var='\''$ac_val'\''"
2217
+      done | sort
2218
+      echo
2219
+    fi
2220
+
2221
+    if test -s confdefs.h; then
2222
+      $as_echo "## ----------- ##
2223
+## confdefs.h. ##
2224
+## ----------- ##"
2225
+      echo
2226
+      cat confdefs.h
2227
+      echo
2228
+    fi
2229
+    test "$ac_signal" != 0 &&
2230
+      $as_echo "$as_me: caught signal $ac_signal"
2231
+    $as_echo "$as_me: exit $exit_status"
2232
+  } >&5
2233
+  rm -f core *.core core.conftest.* &&
2234
+    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235
+    exit $exit_status
2236
+' 0
2237
+for ac_signal in 1 2 13 15; do
2238
+  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2239
+done
2240
+ac_signal=0
2241
+
2242
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
2243
+rm -f -r conftest* confdefs.h
2244
+
2245
+$as_echo "/* confdefs.h */" > confdefs.h
2246
+
2247
+# Predefined preprocessor variables.
2248
+
2249
+cat >>confdefs.h <<_ACEOF
2250
+#define PACKAGE_NAME "$PACKAGE_NAME"
2251
+_ACEOF
2252
+
2253
+cat >>confdefs.h <<_ACEOF
2254
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255
+_ACEOF
2256
+
2257
+cat >>confdefs.h <<_ACEOF
2258
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
2259
+_ACEOF
2260
+
2261
+cat >>confdefs.h <<_ACEOF
2262
+#define PACKAGE_STRING "$PACKAGE_STRING"
2263
+_ACEOF
2264
+
2265
+cat >>confdefs.h <<_ACEOF
2266
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267
+_ACEOF
2268
+
2269
+cat >>confdefs.h <<_ACEOF
2270
+#define PACKAGE_URL "$PACKAGE_URL"
2271
+_ACEOF
2272
+
2273
+
2274
+# Let the site file select an alternate cache file if it wants to.
2275
+# Prefer an explicitly selected file to automatically selected ones.
2276
+ac_site_file1=NONE
2277
+ac_site_file2=NONE
2278
+if test -n "$CONFIG_SITE"; then
2279
+  # We do not want a PATH search for config.site.
2280
+  case $CONFIG_SITE in #((
2281
+    -*)  ac_site_file1=./$CONFIG_SITE;;
2282
+    */*) ac_site_file1=$CONFIG_SITE;;
2283
+    *)   ac_site_file1=./$CONFIG_SITE;;
2284
+  esac
2285
+elif test "x$prefix" != xNONE; then
2286
+  ac_site_file1=$prefix/share/config.site
2287
+  ac_site_file2=$prefix/etc/config.site
2288
+else
2289
+  ac_site_file1=$ac_default_prefix/share/config.site
2290
+  ac_site_file2=$ac_default_prefix/etc/config.site
2291
+fi
2292
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293
+do
2294
+  test "x$ac_site_file" = xNONE && continue
2295
+  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296
+    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298
+    sed 's/^/| /' "$ac_site_file" >&5
2299
+    . "$ac_site_file" \
2300
+      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302
+as_fn_error $? "failed to load site script $ac_site_file
2303
+See \`config.log' for more details" "$LINENO" 5; }
2304
+  fi
2305
+done
2306
+
2307
+if test -r "$cache_file"; then
2308
+  # Some versions of bash will fail to source /dev/null (special files
2309
+  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2310
+  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311
+    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312
+$as_echo "$as_me: loading cache $cache_file" >&6;}
2313
+    case $cache_file in
2314
+      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315
+      *)                      . "./$cache_file";;
2316
+    esac
2317
+  fi
2318
+else
2319
+  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320
+$as_echo "$as_me: creating cache $cache_file" >&6;}
2321
+  >$cache_file
2322
+fi
2323
+
2324
+# Check that the precious variables saved in the cache have kept the same
2325
+# value.
2326
+ac_cache_corrupted=false
2327
+for ac_var in $ac_precious_vars; do
2328
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329
+  eval ac_new_set=\$ac_env_${ac_var}_set
2330
+  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331
+  eval ac_new_val=\$ac_env_${ac_var}_value
2332
+  case $ac_old_set,$ac_new_set in
2333
+    set,)
2334
+      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2335
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2336
+      ac_cache_corrupted=: ;;
2337
+    ,set)
2338
+      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2339
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2340
+      ac_cache_corrupted=: ;;
2341
+    ,);;
2342
+    *)
2343
+      if test "x$ac_old_val" != "x$ac_new_val"; then
2344
+       # differences in whitespace do not lead to failure.
2345
+       ac_old_val_w=`echo x $ac_old_val`
2346
+       ac_new_val_w=`echo x $ac_new_val`
2347
+       if test "$ac_old_val_w" != "$ac_new_val_w"; then
2348
+         { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2349
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350
+         ac_cache_corrupted=:
2351
+       else
2352
+         { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2353
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354
+         eval $ac_var=\$ac_old_val
2355
+       fi
2356
+       { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2357
+$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2358
+       { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2359
+$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2360
+      fi;;
2361
+  esac
2362
+  # Pass precious variables to config.status.
2363
+  if test "$ac_new_set" = set; then
2364
+    case $ac_new_val in
2365
+    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2366
+    *) ac_arg=$ac_var=$ac_new_val ;;
2367
+    esac
2368
+    case " $ac_configure_args " in
2369
+      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2370
+      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371
+    esac
2372
+  fi
2373
+done
2374
+if $ac_cache_corrupted; then
2375
+  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377
+  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2378
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2379
+  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380
+fi
2381
+## -------------------- ##
2382
+## Main body of script. ##
2383
+## -------------------- ##
2384
+
2385
+ac_ext=c
2386
+ac_cpp='$CPP $CPPFLAGS'
2387
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
+
2391
+
2392
+
2393
+# No shared libraries allowed
2394
+if test "${enable_shared}" = "yes" ; then
2395
+    echo "Shared libraries not supported for cross compiling, ignored"
2396
+fi
2397
+
2398
+# Where are the auxillary tools (confg.sub etc)?
2399
+if test "$srcdir" = "." ; then
2400
+  if test "${with_target_subdir}" != "." ; then
2401
+    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
2402
+  else
2403
+    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
2404
+  fi
2405
+else
2406
+  libgloss_topdir="${srcdir}/../.."
2407
+fi
2408
+ac_aux_dir=
2409
+for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do
2410
+  if test -f "$ac_dir/install-sh"; then
2411
+    ac_aux_dir=$ac_dir
2412
+    ac_install_sh="$ac_aux_dir/install-sh -c"
2413
+    break
2414
+  elif test -f "$ac_dir/install.sh"; then
2415
+    ac_aux_dir=$ac_dir
2416
+    ac_install_sh="$ac_aux_dir/install.sh -c"
2417
+    break
2418
+  elif test -f "$ac_dir/shtool"; then
2419
+    ac_aux_dir=$ac_dir
2420
+    ac_install_sh="$ac_aux_dir/shtool install -c"
2421
+    break
2422
+  fi
2423
+done
2424
+if test -z "$ac_aux_dir"; then
2425
+  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" "$LINENO" 5
2426
+fi
2427
+
2428
+# These three variables are undocumented and unsupported,
2429
+# and are intended to be withdrawn in a future Autoconf release.
2430
+# They can cause serious problems if a builder's source tree is in a directory
2431
+# whose full name contains unusual characters.
2432
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2433
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2434
+ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2435
+
2436
+
2437
+
2438
+# Make sure we can run config.sub.
2439
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440
+  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2441
+
2442
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2443
+$as_echo_n "checking build system type... " >&6; }
2444
+if ${ac_cv_build+:} false; then :
2445
+  $as_echo_n "(cached) " >&6
2446
+else
2447
+  ac_build_alias=$build_alias
2448
+test "x$ac_build_alias" = x &&
2449
+  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450
+test "x$ac_build_alias" = x &&
2451
+  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2452
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453
+  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2454
+
2455
+fi
2456
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2457
+$as_echo "$ac_cv_build" >&6; }
2458
+case $ac_cv_build in
2459
+*-*-*) ;;
2460
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2461
+esac
2462
+build=$ac_cv_build
2463
+ac_save_IFS=$IFS; IFS='-'
2464
+set x $ac_cv_build
2465
+shift
2466
+build_cpu=$1
2467
+build_vendor=$2
2468
+shift; shift
2469
+# Remember, the first character of IFS is used to create $*,
2470
+# except with old shells:
2471
+build_os=$*
2472
+IFS=$ac_save_IFS
2473
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2474
+
2475
+
2476
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2477
+$as_echo_n "checking host system type... " >&6; }
2478
+if ${ac_cv_host+:} false; then :
2479
+  $as_echo_n "(cached) " >&6
2480
+else
2481
+  if test "x$host_alias" = x; then
2482
+  ac_cv_host=$ac_cv_build
2483
+else
2484
+  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2486
+fi
2487
+
2488
+fi
2489
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2490
+$as_echo "$ac_cv_host" >&6; }
2491
+case $ac_cv_host in
2492
+*-*-*) ;;
2493
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2494
+esac
2495
+host=$ac_cv_host
2496
+ac_save_IFS=$IFS; IFS='-'
2497
+set x $ac_cv_host
2498
+shift
2499
+host_cpu=$1
2500
+host_vendor=$2
2501
+shift; shift
2502
+# Remember, the first character of IFS is used to create $*,
2503
+# except with old shells:
2504
+host_os=$*
2505
+IFS=$ac_save_IFS
2506
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2507
+
2508
+
2509
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2510
+$as_echo_n "checking target system type... " >&6; }
2511
+if ${ac_cv_target+:} false; then :
2512
+  $as_echo_n "(cached) " >&6
2513
+else
2514
+  if test "x$target_alias" = x; then
2515
+  ac_cv_target=$ac_cv_host
2516
+else
2517
+  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2518
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2519
+fi
2520
+
2521
+fi
2522
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2523
+$as_echo "$ac_cv_target" >&6; }
2524
+case $ac_cv_target in
2525
+*-*-*) ;;
2526
+*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2527
+esac
2528
+target=$ac_cv_target
2529
+ac_save_IFS=$IFS; IFS='-'
2530
+set x $ac_cv_target
2531
+shift
2532
+target_cpu=$1
2533
+target_vendor=$2
2534
+shift; shift
2535
+# Remember, the first character of IFS is used to create $*,
2536
+# except with old shells:
2537
+target_os=$*
2538
+IFS=$ac_save_IFS
2539
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2540
+
2541
+
2542
+# The aliases save the names the user supplied, while $host etc.
2543
+# will get canonicalized.
2544
+test -n "$target_alias" &&
2545
+  test "$program_prefix$program_suffix$program_transform_name" = \
2546
+    NONENONEs,x,x, &&
2547
+  program_prefix=${target_alias}-
2548
+
2549
+test "$program_prefix" != NONE &&
2550
+  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551
+# Use a double $ so make ignores it.
2552
+test "$program_suffix" != NONE &&
2553
+  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554
+# Double any \ or $.
2555
+# By default was `s,x,x', remove it if useless.
2556
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
+
2559
+
2560
+# Find a good install program.  We prefer a C program (faster),
2561
+# so one script is as good as another.  But avoid the broken or
2562
+# incompatible versions:
2563
+# SysV /etc/install, /usr/sbin/install
2564
+# SunOS /usr/etc/install
2565
+# IRIX /sbin/install
2566
+# AIX /bin/install
2567
+# AmigaOS /C/install, which installs bootblocks on floppy discs
2568
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2569
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2570
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2571
+# OS/2's system install, which has a completely different semantic
2572
+# ./install, which can be erroneously created by make from ./install.sh.
2573
+# Reject install programs that cannot install multiple files.
2574
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2575
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
2576
+if test -z "$INSTALL"; then
2577
+if ${ac_cv_path_install+:} false; then :
2578
+  $as_echo_n "(cached) " >&6
2579
+else
2580
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581
+for as_dir in $PATH
2582
+do
2583
+  IFS=$as_save_IFS
2584
+  test -z "$as_dir" && as_dir=.
2585
+    # Account for people who put trailing slashes in PATH elements.
2586
+case $as_dir/ in #((
2587
+  ./ | .// | /[cC]/* | \
2588
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589
+  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2590
+  /usr/ucb/* ) ;;
2591
+  *)
2592
+    # OSF1 and SCO ODT 3.0 have their own names for install.
2593
+    # Don't use installbsd from OSF since it installs stuff as root
2594
+    # by default.
2595
+    for ac_prog in ginstall scoinst install; do
2596
+      for ac_exec_ext in '' $ac_executable_extensions; do
2597
+       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2598
+         if test $ac_prog = install &&
2599
+           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600
+           # AIX install.  It has an incompatible calling convention.
2601
+           :
2602
+         elif test $ac_prog = install &&
2603
+           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604
+           # program-specific install script used by HP pwplus--don't use.
2605
+           :
2606
+         else
2607
+           rm -rf conftest.one conftest.two conftest.dir
2608
+           echo one > conftest.one
2609
+           echo two > conftest.two
2610
+           mkdir conftest.dir
2611
+           if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2612
+             test -s conftest.one && test -s conftest.two &&
2613
+             test -s conftest.dir/conftest.one &&
2614
+             test -s conftest.dir/conftest.two
2615
+           then
2616
+             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2617
+             break 3
2618
+           fi
2619
+         fi
2620
+       fi
2621
+      done
2622
+    done
2623
+    ;;
2624
+esac
2625
+
2626
+  done
2627
+IFS=$as_save_IFS
2628
+
2629
+rm -rf conftest.one conftest.two conftest.dir
2630
+
2631
+fi
2632
+  if test "${ac_cv_path_install+set}" = set; then
2633
+    INSTALL=$ac_cv_path_install
2634
+  else
2635
+    # As a last resort, use the slow shell script.  Don't cache a
2636
+    # value for INSTALL within a source directory, because that will
2637
+    # break other packages using the cache if that directory is
2638
+    # removed, or if the value is a relative name.
2639
+    INSTALL=$ac_install_sh
2640
+  fi
2641
+fi
2642
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2643
+$as_echo "$INSTALL" >&6; }
2644
+
2645
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2646
+# It thinks the first close brace ends the variable substitution.
2647
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2648
+
2649
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2650
+
2651
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2652
+
2653
+
2654
+
2655
+$as_echo "#define HAVE_GNU_LD 1" >>confdefs.h
2656
+
2657
+
2658
+# We always use ELF, define various useful associated things.
2659
+
2660
+$as_echo "#define HAVE_ELF 1" >>confdefs.h
2661
+
2662
+
2663
+# Standard stuff copied from libnosys. For this we'll need to an aclocal.m4
2664
+rm -rf .tst 2>/dev/null
2665
+mkdir .tst 2>/dev/null
2666
+if test -d .tst; then
2667
+  am__leading_dot=.
2668
+else
2669
+  am__leading_dot=_
2670
+fi
2671
+rmdir .tst 2>/dev/null
2672
+
2673
+DEPDIR="${am__leading_dot}deps"
2674
+
2675
+ac_config_commands="$ac_config_commands depfiles"
2676
+
2677
+
2678
+am_make=${MAKE-make}
2679
+cat > confinc << 'END'
2680
+am__doit:
2681
+       @echo this is the am__doit target
2682
+.PHONY: am__doit
2683
+END
2684
+# If we don't find an include directive, just comment out the code.
2685
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2686
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
2687
+am__include="#"
2688
+am__quote=
2689
+_am_result=none
2690
+# First try GNU make style include.
2691
+echo "include confinc" > confmf
2692
+# Ignore all kinds of additional output from `make'.
2693
+case `$am_make -s -f confmf 2> /dev/null` in #(
2694
+*the\ am__doit\ target*)
2695
+  am__include=include
2696
+  am__quote=
2697
+  _am_result=GNU
2698
+  ;;
2699
+esac
2700
+# Now try BSD make style include.
2701
+if test "$am__include" = "#"; then
2702
+   echo '.include "confinc"' > confmf
2703
+   case `$am_make -s -f confmf 2> /dev/null` in #(
2704
+   *the\ am__doit\ target*)
2705
+     am__include=.include
2706
+     am__quote="\""
2707
+     _am_result=BSD
2708
+     ;;
2709
+   esac
2710
+fi
2711
+
2712
+
2713
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2714
+$as_echo "$_am_result" >&6; }
2715
+rm -f confinc confmf
2716
+
2717
+# Check whether --enable-dependency-tracking was given.
2718
+if test "${enable_dependency_tracking+set}" = set; then :
2719
+  enableval=$enable_dependency_tracking;
2720
+fi
2721
+
2722
+if test "x$enable_dependency_tracking" != xno; then
2723
+  am_depcomp="$ac_aux_dir/depcomp"
2724
+  AMDEPBACKSLASH='\'
2725
+  am__nodep='_no'
2726
+fi
2727
+ if test "x$enable_dependency_tracking" != xno; then
2728
+  AMDEP_TRUE=
2729
+  AMDEP_FALSE='#'
2730
+else
2731
+  AMDEP_TRUE='#'
2732
+  AMDEP_FALSE=
2733
+fi
2734
+
2735
+
2736
+# Extract the first word of "gcc", so it can be a program name with args.
2737
+set dummy gcc; ac_word=$2
2738
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739
+$as_echo_n "checking for $ac_word... " >&6; }
2740
+if ${ac_cv_prog_CC+:} false; then :
2741
+  $as_echo_n "(cached) " >&6
2742
+else
2743
+  if test -n "$CC"; then
2744
+  ac_cv_prog_CC="$CC" # Let the user override the test.
2745
+else
2746
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747
+for as_dir in $PATH
2748
+do
2749
+  IFS=$as_save_IFS
2750
+  test -z "$as_dir" && as_dir=.
2751
+    for ac_exec_ext in '' $ac_executable_extensions; do
2752
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753
+    ac_cv_prog_CC="gcc"
2754
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755
+    break 2
2756
+  fi
2757
+done
2758
+  done
2759
+IFS=$as_save_IFS
2760
+
2761
+fi
2762
+fi
2763
+CC=$ac_cv_prog_CC
2764
+if test -n "$CC"; then
2765
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766
+$as_echo "$CC" >&6; }
2767
+else
2768
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769
+$as_echo "no" >&6; }
2770
+fi
2771
+
2772
+
2773
+
2774
+depcc="$CC"   am_compiler_list=
2775
+
2776
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2777
+$as_echo_n "checking dependency style of $depcc... " >&6; }
2778
+if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2779
+  $as_echo_n "(cached) " >&6
2780
+else
2781
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2782
+  # We make a subdir and do the tests there.  Otherwise we can end up
2783
+  # making bogus files that we don't know about and never remove.  For
2784
+  # instance it was reported that on HP-UX the gcc test will end up
2785
+  # making a dummy file named `D' -- because `-MD' means `put the output
2786
+  # in D'.
2787
+  rm -rf conftest.dir
2788
+  mkdir conftest.dir
2789
+  # Copy depcomp to subdir because otherwise we won't find it if we're
2790
+  # using a relative directory.
2791
+  cp "$am_depcomp" conftest.dir
2792
+  cd conftest.dir
2793
+  # We will build objects and dependencies in a subdirectory because
2794
+  # it helps to detect inapplicable dependency modes.  For instance
2795
+  # both Tru64's cc and ICC support -MD to output dependencies as a
2796
+  # side effect of compilation, but ICC will put the dependencies in
2797
+  # the current directory while Tru64 will put them in the object
2798
+  # directory.
2799
+  mkdir sub
2800
+
2801
+  am_cv_CC_dependencies_compiler_type=none
2802
+  if test "$am_compiler_list" = ""; then
2803
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2804
+  fi
2805
+  am__universal=false
2806
+  case " $depcc " in #(
2807
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2808
+     esac
2809
+
2810
+  for depmode in $am_compiler_list; do
2811
+    # Setup a source with many dependencies, because some compilers
2812
+    # like to wrap large dependency lists on column 80 (with \), and
2813
+    # we should not choose a depcomp mode which is confused by this.
2814
+    #
2815
+    # We need to recreate these files for each test, as the compiler may
2816
+    # overwrite some of them when testing with obscure command lines.
2817
+    # This happens at least with the AIX C compiler.
2818
+    : > sub/conftest.c
2819
+    for i in 1 2 3 4 5 6; do
2820
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2821
+      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2822
+      # Solaris 8's {/usr,}/bin/sh.
2823
+      touch sub/conftst$i.h
2824
+    done
2825
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2826
+
2827
+    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2828
+    # mode.  It turns out that the SunPro C++ compiler does not properly
2829
+    # handle `-M -o', and we need to detect this.  Also, some Intel
2830
+    # versions had trouble with output in subdirs
2831
+    am__obj=sub/conftest.${OBJEXT-o}
2832
+    am__minus_obj="-o $am__obj"
2833
+    case $depmode in
2834
+    gcc)
2835
+      # This depmode causes a compiler race in universal mode.
2836
+      test "$am__universal" = false || continue
2837
+      ;;
2838
+    nosideeffect)
2839
+      # after this tag, mechanisms are not by side-effect, so they'll
2840
+      # only be used when explicitly requested
2841
+      if test "x$enable_dependency_tracking" = xyes; then
2842
+       continue
2843
+      else
2844
+       break
2845
+      fi
2846
+      ;;
2847
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2848
+      # This compiler won't grok `-c -o', but also, the minuso test has
2849
+      # not run yet.  These depmodes are late enough in the game, and
2850
+      # so weak that their functioning should not be impacted.
2851
+      am__obj=conftest.${OBJEXT-o}
2852
+      am__minus_obj=
2853
+      ;;
2854
+    none) break ;;
2855
+    esac
2856
+    if depmode=$depmode \
2857
+       source=sub/conftest.c object=$am__obj \
2858
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2859
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2860
+         >/dev/null 2>conftest.err &&
2861
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2862
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2863
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2864
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2865
+      # icc doesn't choke on unknown options, it will just issue warnings
2866
+      # or remarks (even with -Werror).  So we grep stderr for any message
2867
+      # that says an option was ignored or not supported.
2868
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
2869
+      #   icc: Command line warning: ignoring option '-M'; no argument required
2870
+      # The diagnosis changed in icc 8.0:
2871
+      #   icc: Command line remark: option '-MP' not supported
2872
+      if (grep 'ignoring option' conftest.err ||
2873
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2874
+        am_cv_CC_dependencies_compiler_type=$depmode
2875
+        break
2876
+      fi
2877
+    fi
2878
+  done
2879
+
2880
+  cd ..
2881
+  rm -rf conftest.dir
2882
+else
2883
+  am_cv_CC_dependencies_compiler_type=none
2884
+fi
2885
+
2886
+fi
2887
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2888
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2889
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2890
+
2891
+ if
2892
+  test "x$enable_dependency_tracking" != xno \
2893
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2894
+  am__fastdepCC_TRUE=
2895
+  am__fastdepCC_FALSE='#'
2896
+else
2897
+  am__fastdepCC_TRUE='#'
2898
+  am__fastdepCC_FALSE=
2899
+fi
2900
+
2901
+
2902
+if test -z "$CC"; then
2903
+  # Extract the first word of "cc", so it can be a program name with args.
2904
+set dummy cc; ac_word=$2
2905
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906
+$as_echo_n "checking for $ac_word... " >&6; }
2907
+if ${ac_cv_prog_CC+:} false; then :
2908
+  $as_echo_n "(cached) " >&6
2909
+else
2910
+  if test -n "$CC"; then
2911
+  ac_cv_prog_CC="$CC" # Let the user override the test.
2912
+else
2913
+  ac_prog_rejected=no
2914
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915
+for as_dir in $PATH
2916
+do
2917
+  IFS=$as_save_IFS
2918
+  test -z "$as_dir" && as_dir=.
2919
+    for ac_exec_ext in '' $ac_executable_extensions; do
2920
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2922
+       ac_prog_rejected=yes
2923
+       continue
2924
+     fi
2925
+    ac_cv_prog_CC="cc"
2926
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927
+    break 2
2928
+  fi
2929
+done
2930
+  done
2931
+IFS=$as_save_IFS
2932
+
2933
+if test $ac_prog_rejected = yes; then
2934
+  # We found a bogon in the path, so make sure we never use it.
2935
+  set dummy $ac_cv_prog_CC
2936
+  shift
2937
+  if test $# != 0; then
2938
+    # We chose a different compiler from the bogus one.
2939
+    # However, it has the same basename, so the bogon will be chosen
2940
+    # first if we set CC to just the basename; use the full file name.
2941
+    shift
2942
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2943
+  fi
2944
+fi
2945
+fi
2946
+fi
2947
+CC=$ac_cv_prog_CC
2948
+if test -n "$CC"; then
2949
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950
+$as_echo "$CC" >&6; }
2951
+else
2952
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953
+$as_echo "no" >&6; }
2954
+fi
2955
+
2956
+
2957
+  test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2958
+fi
2959
+
2960
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2961
+$as_echo_n "checking whether we are using GNU C... " >&6; }
2962
+if ${ac_cv_c_compiler_gnu+:} false; then :
2963
+  $as_echo_n "(cached) " >&6
2964
+else
2965
+  cat > conftest.c <<EOF
2966
+#ifdef __GNUC__
2967
+  yes;
2968
+#endif
2969
+EOF
2970
+if { ac_try='${CC-cc} -E conftest.c'
2971
+  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2972
+  (eval $ac_try) 2>&5
2973
+  ac_status=$?
2974
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975
+  test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2976
+  ac_cv_c_compiler_gnu=yes
2977
+else
2978
+  ac_cv_c_compiler_gnu=no
2979
+fi
2980
+fi
2981
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983
+
2984
+if test $ac_cv_c_compiler_gnu = yes; then
2985
+  GCC=yes
2986
+  ac_test_CFLAGS="${CFLAGS+set}"
2987
+  ac_save_CFLAGS="$CFLAGS"
2988
+  CFLAGS=
2989
+  ac_test_CFLAGS=${CFLAGS+set}
2990
+ac_save_CFLAGS=$CFLAGS
2991
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2992
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
2993
+if ${ac_cv_prog_cc_g+:} false; then :
2994
+  $as_echo_n "(cached) " >&6
2995
+else
2996
+  ac_save_c_werror_flag=$ac_c_werror_flag
2997
+   ac_c_werror_flag=yes
2998
+   ac_cv_prog_cc_g=no
2999
+   CFLAGS="-g"
3000
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001
+/* end confdefs.h.  */
3002
+
3003
+int
3004
+main ()
3005
+{
3006
+
3007
+  ;
3008
+  return 0;
3009
+}
3010
+_ACEOF
3011
+if ac_fn_c_try_compile "$LINENO"; then :
3012
+  ac_cv_prog_cc_g=yes
3013
+else
3014
+  CFLAGS=""
3015
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016
+/* end confdefs.h.  */
3017
+
3018
+int
3019
+main ()
3020
+{
3021
+
3022
+  ;
3023
+  return 0;
3024
+}
3025
+_ACEOF
3026
+if ac_fn_c_try_compile "$LINENO"; then :
3027
+
3028
+else
3029
+  ac_c_werror_flag=$ac_save_c_werror_flag
3030
+        CFLAGS="-g"
3031
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032
+/* end confdefs.h.  */
3033
+
3034
+int
3035
+main ()
3036
+{
3037
+
3038
+  ;
3039
+  return 0;
3040
+}
3041
+_ACEOF
3042
+if ac_fn_c_try_compile "$LINENO"; then :
3043
+  ac_cv_prog_cc_g=yes
3044
+fi
3045
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046
+fi
3047
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048
+fi
3049
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050
+   ac_c_werror_flag=$ac_save_c_werror_flag
3051
+fi
3052
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3053
+$as_echo "$ac_cv_prog_cc_g" >&6; }
3054
+if test "$ac_test_CFLAGS" = set; then
3055
+  CFLAGS=$ac_save_CFLAGS
3056
+elif test $ac_cv_prog_cc_g = yes; then
3057
+  if test "$GCC" = yes; then
3058
+    CFLAGS="-O3"
3059
+  else
3060
+    CFLAGS="-g"
3061
+  fi
3062
+else
3063
+  if test "$GCC" = yes; then
3064
+    CFLAGS="-O3"
3065
+  else
3066
+    CFLAGS=
3067
+  fi
3068
+fi
3069
+  if test "$ac_test_CFLAGS" = set; then
3070
+    CFLAGS="$ac_save_CFLAGS"
3071
+  elif test $ac_cv_prog_cc_g = yes; then
3072
+    CFLAGS="-O3"
3073
+  else
3074
+    CFLAGS="-O3"
3075
+  fi
3076
+else
3077
+  GCC=
3078
+  test "${CFLAGS+set}" = set || CFLAGS="-g"
3079
+fi
3080
+
3081
+AS=${AS-as}
3082
+
3083
+AR=${AR-ar}
3084
+
3085
+LD=${LD-ld}
3086
+
3087
+if test -n "$ac_tool_prefix"; then
3088
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3089
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3090
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091
+$as_echo_n "checking for $ac_word... " >&6; }
3092
+if ${ac_cv_prog_RANLIB+:} false; then :
3093
+  $as_echo_n "(cached) " >&6
3094
+else
3095
+  if test -n "$RANLIB"; then
3096
+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3097
+else
3098
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099
+for as_dir in $PATH
3100
+do
3101
+  IFS=$as_save_IFS
3102
+  test -z "$as_dir" && as_dir=.
3103
+    for ac_exec_ext in '' $ac_executable_extensions; do
3104
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3106
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107
+    break 2
3108
+  fi
3109
+done
3110
+  done
3111
+IFS=$as_save_IFS
3112
+
3113
+fi
3114
+fi
3115
+RANLIB=$ac_cv_prog_RANLIB
3116
+if test -n "$RANLIB"; then
3117
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3118
+$as_echo "$RANLIB" >&6; }
3119
+else
3120
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121
+$as_echo "no" >&6; }
3122
+fi
3123
+
3124
+
3125
+fi
3126
+if test -z "$ac_cv_prog_RANLIB"; then
3127
+  ac_ct_RANLIB=$RANLIB
3128
+  # Extract the first word of "ranlib", so it can be a program name with args.
3129
+set dummy ranlib; ac_word=$2
3130
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131
+$as_echo_n "checking for $ac_word... " >&6; }
3132
+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3133
+  $as_echo_n "(cached) " >&6
3134
+else
3135
+  if test -n "$ac_ct_RANLIB"; then
3136
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3137
+else
3138
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139
+for as_dir in $PATH
3140
+do
3141
+  IFS=$as_save_IFS
3142
+  test -z "$as_dir" && as_dir=.
3143
+    for ac_exec_ext in '' $ac_executable_extensions; do
3144
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
3146
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147
+    break 2
3148
+  fi
3149
+done
3150
+  done
3151
+IFS=$as_save_IFS
3152
+
3153
+fi
3154
+fi
3155
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3156
+if test -n "$ac_ct_RANLIB"; then
3157
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3158
+$as_echo "$ac_ct_RANLIB" >&6; }
3159
+else
3160
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161
+$as_echo "no" >&6; }
3162
+fi
3163
+
3164
+  if test "x$ac_ct_RANLIB" = x; then
3165
+    RANLIB=":"
3166
+  else
3167
+    case $cross_compiling:$ac_tool_warned in
3168
+yes:)
3169
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171
+ac_tool_warned=yes ;;
3172
+esac
3173
+    RANLIB=$ac_ct_RANLIB
3174
+  fi
3175
+else
3176
+  RANLIB="$ac_cv_prog_RANLIB"
3177
+fi
3178
+
3179
+# By default we simply use the C compiler to build assembly code.
3180
+
3181
+test "${CCAS+set}" = set || CCAS=$CC
3182
+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3183
+
3184
+
3185
+
3186
+
3187
+host_makefile_frag=${srcdir}/../config/default.mh
3188
+target_makefile_frag=${srcdir}/../config/default.mt
3189
+
3190
+host_makefile_frag_path=$host_makefile_frag
3191
+
3192
+
3193
+target_makefile_frag_path=$target_makefile_frag
3194
+
3195
+
3196
+
3197
+ac_config_files="$ac_config_files Makefile"
3198
+
3199
+cat >confcache <<\_ACEOF
3200
+# This file is a shell script that caches the results of configure
3201
+# tests run on this system so they can be shared between configure
3202
+# scripts and configure runs, see configure's option --config-cache.
3203
+# It is not useful on other systems.  If it contains results you don't
3204
+# want to keep, you may remove or edit it.
3205
+#
3206
+# config.status only pays attention to the cache file if you give it
3207
+# the --recheck option to rerun configure.
3208
+#
3209
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
3210
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
3211
+# following values.
3212
+
3213
+_ACEOF
3214
+
3215
+# The following way of writing the cache mishandles newlines in values,
3216
+# but we know of no workaround that is simple, portable, and efficient.
3217
+# So, we kill variables containing newlines.
3218
+# Ultrix sh set writes to stderr and can't be redirected directly,
3219
+# and sets the high bit in the cache file unless we assign to the vars.
3220
+(
3221
+  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3222
+    eval ac_val=\$$ac_var
3223
+    case $ac_val in #(
3224
+    *${as_nl}*)
3225
+      case $ac_var in #(
3226
+      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3227
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3228
+      esac
3229
+      case $ac_var in #(
3230
+      _ | IFS | as_nl) ;; #(
3231
+      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3232
+      *) { eval $ac_var=; unset $ac_var;} ;;
3233
+      esac ;;
3234
+    esac
3235
+  done
3236
+
3237
+  (set) 2>&1 |
3238
+    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3239
+    *${as_nl}ac_space=\ *)
3240
+      # `set' does not quote correctly, so add quotes: double-quote
3241
+      # substitution turns \\\\ into \\, and sed turns \\ into \.
3242
+      sed -n \
3243
+       "s/'/'\\\\''/g;
3244
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3245
+      ;; #(
3246
+    *)
3247
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
3248
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3249
+      ;;
3250
+    esac |
3251
+    sort
3252
+) |
3253
+  sed '
3254
+     /^ac_cv_env_/b end
3255
+     t clear
3256
+     :clear
3257
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3258
+     t end
3259
+     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3260
+     :end' >>confcache
3261
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3262
+  if test -w "$cache_file"; then
3263
+    if test "x$cache_file" != "x/dev/null"; then
3264
+      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3265
+$as_echo "$as_me: updating cache $cache_file" >&6;}
3266
+      if test ! -f "$cache_file" || test -h "$cache_file"; then
3267
+       cat confcache >"$cache_file"
3268
+      else
3269
+        case $cache_file in #(
3270
+        */* | ?:*)
3271
+         mv -f confcache "$cache_file"$$ &&
3272
+         mv -f "$cache_file"$$ "$cache_file" ;; #(
3273
+        *)
3274
+         mv -f confcache "$cache_file" ;;
3275
+       esac
3276
+      fi
3277
+    fi
3278
+  else
3279
+    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3280
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3281
+  fi
3282
+fi
3283
+rm -f confcache
3284
+
3285
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
3286
+# Let make expand exec_prefix.
3287
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3288
+
3289
+# Transform confdefs.h into DEFS.
3290
+# Protect against shell expansion while executing Makefile rules.
3291
+# Protect against Makefile macro expansion.
3292
+#
3293
+# If the first sed substitution is executed (which looks for macros that
3294
+# take arguments), then branch to the quote section.  Otherwise,
3295
+# look for a macro that doesn't take arguments.
3296
+ac_script='
3297
+:mline
3298
+/\\$/{
3299
+ N
3300
+ s,\\\n,,
3301
+ b mline
3302
+}
3303
+t clear
3304
+:clear
3305
+s/^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3306
+t quote
3307
+s/^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3308
+t quote
3309
+b any
3310
+:quote
3311
+s/[     `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3312
+s/\[/\\&/g
3313
+s/\]/\\&/g
3314
+s/\$/$$/g
3315
+H
3316
+:any
3317
+${
3318
+       g
3319
+       s/^\n//
3320
+       s/\n/ /g
3321
+       p
3322
+}
3323
+'
3324
+DEFS=`sed -n "$ac_script" confdefs.h`
3325
+
3326
+
3327
+ac_libobjs=
3328
+ac_ltlibobjs=
3329
+U=
3330
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3331
+  # 1. Remove the extension, and $U if already installed.
3332
+  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3333
+  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3334
+  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3335
+  #    will be set to the directory where LIBOBJS objects are built.
3336
+  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3337
+  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3338
+done
3339
+LIBOBJS=$ac_libobjs
3340
+
3341
+LTLIBOBJS=$ac_ltlibobjs
3342
+
3343
+
3344
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3345
+  as_fn_error $? "conditional \"AMDEP\" was never defined.
3346
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
3347
+fi
3348
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3349
+  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3350
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
3351
+fi
3352
+
3353
+: "${CONFIG_STATUS=./config.status}"
3354
+ac_write_fail=0
3355
+ac_clean_files_save=$ac_clean_files
3356
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3357
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3358
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3359
+as_write_fail=0
3360
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3361
+#! $SHELL
3362
+# Generated by $as_me.
3363
+# Run this file to recreate the current configuration.
3364
+# Compiler output produced by configure, useful for debugging
3365
+# configure, is in config.log if it exists.
3366
+
3367
+debug=false
3368
+ac_cs_recheck=false
3369
+ac_cs_silent=false
3370
+
3371
+SHELL=\${CONFIG_SHELL-$SHELL}
3372
+export SHELL
3373
+_ASEOF
3374
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3375
+## -------------------- ##
3376
+## M4sh Initialization. ##
3377
+## -------------------- ##
3378
+
3379
+# Be more Bourne compatible
3380
+DUALCASE=1; export DUALCASE # for MKS sh
3381
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3382
+  emulate sh
3383
+  NULLCMD=:
3384
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3385
+  # is contrary to our usage.  Disable this feature.
3386
+  alias -g '${1+"$@"}'='"$@"'
3387
+  setopt NO_GLOB_SUBST
3388
+else
3389
+  case `(set -o) 2>/dev/null` in #(
3390
+  *posix*) :
3391
+    set -o posix ;; #(
3392
+  *) :
3393
+     ;;
3394
+esac
3395
+fi
3396
+
3397
+
3398
+as_nl='
3399
+'
3400
+export as_nl
3401
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
3402
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3403
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3404
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3405
+# Prefer a ksh shell builtin over an external printf program on Solaris,
3406
+# but without wasting forks for bash or zsh.
3407
+if test -z "$BASH_VERSION$ZSH_VERSION" \
3408
+    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3409
+  as_echo='print -r --'
3410
+  as_echo_n='print -rn --'
3411
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3412
+  as_echo='printf %s\n'
3413
+  as_echo_n='printf %s'
3414
+else
3415
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3416
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3417
+    as_echo_n='/usr/ucb/echo -n'
3418
+  else
3419
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3420
+    as_echo_n_body='eval
3421
+      arg=$1;
3422
+      case $arg in #(
3423
+      *"$as_nl"*)
3424
+       expr "X$arg" : "X\\(.*\\)$as_nl";
3425
+       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3426
+      esac;
3427
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3428
+    '
3429
+    export as_echo_n_body
3430
+    as_echo_n='sh -c $as_echo_n_body as_echo'
3431
+  fi
3432
+  export as_echo_body
3433
+  as_echo='sh -c $as_echo_body as_echo'
3434
+fi
3435
+
3436
+# The user is always right.
3437
+if test "${PATH_SEPARATOR+set}" != set; then
3438
+  PATH_SEPARATOR=:
3439
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3440
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3441
+      PATH_SEPARATOR=';'
3442
+  }
3443
+fi
3444
+
3445
+
3446
+# IFS
3447
+# We need space, tab and new line, in precisely that order.  Quoting is
3448
+# there to prevent editors from complaining about space-tab.
3449
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3450
+# splitting by setting IFS to empty value.)
3451
+IFS=" ""       $as_nl"
3452
+
3453
+# Find who we are.  Look in the path if we contain no directory separator.
3454
+as_myself=
3455
+case $0 in #((
3456
+  *[\\/]* ) as_myself=$0 ;;
3457
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458
+for as_dir in $PATH
3459
+do
3460
+  IFS=$as_save_IFS
3461
+  test -z "$as_dir" && as_dir=.
3462
+    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3463
+  done
3464
+IFS=$as_save_IFS
3465
+
3466
+     ;;
3467
+esac
3468
+# We did not find ourselves, most probably we were run as `sh COMMAND'
3469
+# in which case we are not to be found in the path.
3470
+if test "x$as_myself" = x; then
3471
+  as_myself=$0
3472
+fi
3473
+if test ! -f "$as_myself"; then
3474
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3475
+  exit 1
3476
+fi
3477
+
3478
+# Unset variables that we do not need and which cause bugs (e.g. in
3479
+# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3480
+# suppresses any "Segmentation fault" message there.  '((' could
3481
+# trigger a bug in pdksh 5.2.14.
3482
+for as_var in BASH_ENV ENV MAIL MAILPATH
3483
+do eval test x\${$as_var+set} = xset \
3484
+  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3485
+done
3486
+PS1='$ '
3487
+PS2='> '
3488
+PS4='+ '
3489
+
3490
+# NLS nuisances.
3491
+LC_ALL=C
3492
+export LC_ALL
3493
+LANGUAGE=C
3494
+export LANGUAGE
3495
+
3496
+# CDPATH.
3497
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3498
+
3499
+
3500
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
3501
+# ----------------------------------------
3502
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3503
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3504
+# script with STATUS, using 1 if that was 0.
3505
+as_fn_error ()
3506
+{
3507
+  as_status=$1; test $as_status -eq 0 && as_status=1
3508
+  if test "$4"; then
3509
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3510
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3511
+  fi
3512
+  $as_echo "$as_me: error: $2" >&2
3513
+  as_fn_exit $as_status
3514
+} # as_fn_error
3515
+
3516
+
3517
+# as_fn_set_status STATUS
3518
+# -----------------------
3519
+# Set $? to STATUS, without forking.
3520
+as_fn_set_status ()
3521
+{
3522
+  return $1
3523
+} # as_fn_set_status
3524
+
3525
+# as_fn_exit STATUS
3526
+# -----------------
3527
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3528
+as_fn_exit ()
3529
+{
3530
+  set +e
3531
+  as_fn_set_status $1
3532
+  exit $1
3533
+} # as_fn_exit
3534
+
3535
+# as_fn_unset VAR
3536
+# ---------------
3537
+# Portably unset VAR.
3538
+as_fn_unset ()
3539
+{
3540
+  { eval $1=; unset $1;}
3541
+}
3542
+as_unset=as_fn_unset
3543
+# as_fn_append VAR VALUE
3544
+# ----------------------
3545
+# Append the text in VALUE to the end of the definition contained in VAR. Take
3546
+# advantage of any shell optimizations that allow amortized linear growth over
3547
+# repeated appends, instead of the typical quadratic growth present in naive
3548
+# implementations.
3549
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3550
+  eval 'as_fn_append ()
3551
+  {
3552
+    eval $1+=\$2
3553
+  }'
3554
+else
3555
+  as_fn_append ()
3556
+  {
3557
+    eval $1=\$$1\$2
3558
+  }
3559
+fi # as_fn_append
3560
+
3561
+# as_fn_arith ARG...
3562
+# ------------------
3563
+# Perform arithmetic evaluation on the ARGs, and store the result in the
3564
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
3565
+# must be portable across $(()) and expr.
3566
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3567
+  eval 'as_fn_arith ()
3568
+  {
3569
+    as_val=$(( $* ))
3570
+  }'
3571
+else
3572
+  as_fn_arith ()
3573
+  {
3574
+    as_val=`expr "$@" || test $? -eq 1`
3575
+  }
3576
+fi # as_fn_arith
3577
+
3578
+
3579
+if expr a : '\(a\)' >/dev/null 2>&1 &&
3580
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3581
+  as_expr=expr
3582
+else
3583
+  as_expr=false
3584
+fi
3585
+
3586
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3587
+  as_basename=basename
3588
+else
3589
+  as_basename=false
3590
+fi
3591
+
3592
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3593
+  as_dirname=dirname
3594
+else
3595
+  as_dirname=false
3596
+fi
3597
+
3598
+as_me=`$as_basename -- "$0" ||
3599
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3600
+        X"$0" : 'X\(//\)$' \| \
3601
+        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3602
+$as_echo X/"$0" |
3603
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
3604
+           s//\1/
3605
+           q
3606
+         }
3607
+         /^X\/\(\/\/\)$/{
3608
+           s//\1/
3609
+           q
3610
+         }
3611
+         /^X\/\(\/\).*/{
3612
+           s//\1/
3613
+           q
3614
+         }
3615
+         s/.*/./; q'`
3616
+
3617
+# Avoid depending upon Character Ranges.
3618
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3619
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3620
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3621
+as_cr_digits='0123456789'
3622
+as_cr_alnum=$as_cr_Letters$as_cr_digits
3623
+
3624
+ECHO_C= ECHO_N= ECHO_T=
3625
+case `echo -n x` in #(((((
3626
+-n*)
3627
+  case `echo 'xy\c'` in
3628
+  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
3629
+  xy)  ECHO_C='\c';;
3630
+  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3631
+       ECHO_T='        ';;
3632
+  esac;;
3633
+*)
3634
+  ECHO_N='-n';;
3635
+esac
3636
+
3637
+rm -f conf$$ conf$$.exe conf$$.file
3638
+if test -d conf$$.dir; then
3639
+  rm -f conf$$.dir/conf$$.file
3640
+else
3641
+  rm -f conf$$.dir
3642
+  mkdir conf$$.dir 2>/dev/null
3643
+fi
3644
+if (echo >conf$$.file) 2>/dev/null; then
3645
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
3646
+    as_ln_s='ln -s'
3647
+    # ... but there are two gotchas:
3648
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3649
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3650
+    # In both cases, we have to default to `cp -p'.
3651
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3652
+      as_ln_s='cp -p'
3653
+  elif ln conf$$.file conf$$ 2>/dev/null; then
3654
+    as_ln_s=ln
3655
+  else
3656
+    as_ln_s='cp -p'
3657
+  fi
3658
+else
3659
+  as_ln_s='cp -p'
3660
+fi
3661
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3662
+rmdir conf$$.dir 2>/dev/null
3663
+
3664
+
3665
+# as_fn_mkdir_p
3666
+# -------------
3667
+# Create "$as_dir" as a directory, including parents if necessary.
3668
+as_fn_mkdir_p ()
3669
+{
3670
+
3671
+  case $as_dir in #(
3672
+  -*) as_dir=./$as_dir;;
3673
+  esac
3674
+  test -d "$as_dir" || eval $as_mkdir_p || {
3675
+    as_dirs=
3676
+    while :; do
3677
+      case $as_dir in #(
3678
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3679
+      *) as_qdir=$as_dir;;
3680
+      esac
3681
+      as_dirs="'$as_qdir' $as_dirs"
3682
+      as_dir=`$as_dirname -- "$as_dir" ||
3683
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3684
+        X"$as_dir" : 'X\(//\)[^/]' \| \
3685
+        X"$as_dir" : 'X\(//\)$' \| \
3686
+        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3687
+$as_echo X"$as_dir" |
3688
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3689
+           s//\1/
3690
+           q
3691
+         }
3692
+         /^X\(\/\/\)[^/].*/{
3693
+           s//\1/
3694
+           q
3695
+         }
3696
+         /^X\(\/\/\)$/{
3697
+           s//\1/
3698
+           q
3699
+         }
3700
+         /^X\(\/\).*/{
3701
+           s//\1/
3702
+           q
3703
+         }
3704
+         s/.*/./; q'`
3705
+      test -d "$as_dir" && break
3706
+    done
3707
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
3708
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3709
+
3710
+
3711
+} # as_fn_mkdir_p
3712
+if mkdir -p . 2>/dev/null; then
3713
+  as_mkdir_p='mkdir -p "$as_dir"'
3714
+else
3715
+  test -d ./-p && rmdir ./-p
3716
+  as_mkdir_p=false
3717
+fi
3718
+
3719
+if test -x / >/dev/null 2>&1; then
3720
+  as_test_x='test -x'
3721
+else
3722
+  if ls -dL / >/dev/null 2>&1; then
3723
+    as_ls_L_option=L
3724
+  else
3725
+    as_ls_L_option=
3726
+  fi
3727
+  as_test_x='
3728
+    eval sh -c '\''
3729
+      if test -d "$1"; then
3730
+       test -d "$1/.";
3731
+      else
3732
+       case $1 in #(
3733
+       -*)set "./$1";;
3734
+       esac;
3735
+       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3736
+       ???[sx]*):;;*)false;;esac;fi
3737
+    '\'' sh
3738
+  '
3739
+fi
3740
+as_executable_p=$as_test_x
3741
+
3742
+# Sed expression to map a string onto a valid CPP name.
3743
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3744
+
3745
+# Sed expression to map a string onto a valid variable name.
3746
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3747
+
3748
+
3749
+exec 6>&1
3750
+## ----------------------------------- ##
3751
+## Main body of $CONFIG_STATUS script. ##
3752
+## ----------------------------------- ##
3753
+_ASEOF
3754
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3755
+
3756
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3757
+# Save the log message, to keep $0 and so on meaningful, and to
3758
+# report actual input values of CONFIG_FILES etc. instead of their
3759
+# values after options handling.
3760
+ac_log="
3761
+This file was extended by libor1k $as_me 0.0.1, which was
3762
+generated by GNU Autoconf 2.68.  Invocation command line was
3763
+
3764
+  CONFIG_FILES    = $CONFIG_FILES
3765
+  CONFIG_HEADERS  = $CONFIG_HEADERS
3766
+  CONFIG_LINKS    = $CONFIG_LINKS
3767
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
3768
+  $ $0 $@
3769
+
3770
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
3771
+"
3772
+
3773
+_ACEOF
3774
+
3775
+case $ac_config_files in *"
3776
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
3777
+esac
3778
+
3779
+
3780
+
3781
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3782
+# Files that config.status was made for.
3783
+config_files="$ac_config_files"
3784
+config_commands="$ac_config_commands"
3785
+
3786
+_ACEOF
3787
+
3788
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3789
+ac_cs_usage="\
3790
+\`$as_me' instantiates files and other configuration actions
3791
+from templates according to the current configuration.  Unless the files
3792
+and actions are specified as TAGs, all are instantiated by default.
3793
+
3794
+Usage: $0 [OPTION]... [TAG]...
3795
+
3796
+  -h, --help       print this help, then exit
3797
+  -V, --version    print version number and configuration settings, then exit
3798
+      --config     print configuration, then exit
3799
+  -q, --quiet, --silent
3800
+                   do not print progress messages
3801
+  -d, --debug      don't remove temporary files
3802
+      --recheck    update $as_me by reconfiguring in the same conditions
3803
+      --file=FILE[:TEMPLATE]
3804
+                   instantiate the configuration file FILE
3805
+
3806
+Configuration files:
3807
+$config_files
3808
+
3809
+Configuration commands:
3810
+$config_commands
3811
+
3812
+Report bugs to the package provider."
3813
+
3814
+_ACEOF
3815
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3816
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3817
+ac_cs_version="\\
3818
+libor1k config.status 0.0.1
3819
+configured by $0, generated by GNU Autoconf 2.68,
3820
+  with options \\"\$ac_cs_config\\"
3821
+
3822
+Copyright (C) 2010 Free Software Foundation, Inc.
3823
+This config.status script is free software; the Free Software Foundation
3824
+gives unlimited permission to copy, distribute and modify it."
3825
+
3826
+ac_pwd='$ac_pwd'
3827
+srcdir='$srcdir'
3828
+INSTALL='$INSTALL'
3829
+test -n "\$AWK" || AWK=awk
3830
+_ACEOF
3831
+
3832
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3833
+# The default lists apply if the user does not specify any file.
3834
+ac_need_defaults=:
3835
+while test $# != 0
3836
+do
3837
+  case $1 in
3838
+  --*=?*)
3839
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3840
+    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3841
+    ac_shift=:
3842
+    ;;
3843
+  --*=)
3844
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3845
+    ac_optarg=
3846
+    ac_shift=:
3847
+    ;;
3848
+  *)
3849
+    ac_option=$1
3850
+    ac_optarg=$2
3851
+    ac_shift=shift
3852
+    ;;
3853
+  esac
3854
+
3855
+  case $ac_option in
3856
+  # Handling of the options.
3857
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3858
+    ac_cs_recheck=: ;;
3859
+  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3860
+    $as_echo "$ac_cs_version"; exit ;;
3861
+  --config | --confi | --conf | --con | --co | --c )
3862
+    $as_echo "$ac_cs_config"; exit ;;
3863
+  --debug | --debu | --deb | --de | --d | -d )
3864
+    debug=: ;;
3865
+  --file | --fil | --fi | --f )
3866
+    $ac_shift
3867
+    case $ac_optarg in
3868
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3869
+    '') as_fn_error $? "missing file argument" ;;
3870
+    esac
3871
+    as_fn_append CONFIG_FILES " '$ac_optarg'"
3872
+    ac_need_defaults=false;;
3873
+  --he | --h |  --help | --hel | -h )
3874
+    $as_echo "$ac_cs_usage"; exit ;;
3875
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3876
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3877
+    ac_cs_silent=: ;;
3878
+
3879
+  # This is an error.
3880
+  -*) as_fn_error $? "unrecognized option: \`$1'
3881
+Try \`$0 --help' for more information." ;;
3882
+
3883
+  *) as_fn_append ac_config_targets " $1"
3884
+     ac_need_defaults=false ;;
3885
+
3886
+  esac
3887
+  shift
3888
+done
3889
+
3890
+ac_configure_extra_args=
3891
+
3892
+if $ac_cs_silent; then
3893
+  exec 6>/dev/null
3894
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
3895
+fi
3896
+
3897
+_ACEOF
3898
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3899
+if \$ac_cs_recheck; then
3900
+  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3901
+  shift
3902
+  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3903
+  CONFIG_SHELL='$SHELL'
3904
+  export CONFIG_SHELL
3905
+  exec "\$@"
3906
+fi
3907
+
3908
+_ACEOF
3909
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3910
+exec 5>>config.log
3911
+{
3912
+  echo
3913
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3914
+## Running $as_me. ##
3915
+_ASBOX
3916
+  $as_echo "$ac_log"
3917
+} >&5
3918
+
3919
+_ACEOF
3920
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3921
+#
3922
+# INIT-COMMANDS
3923
+#
3924
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3925
+srcdir=${srcdir}
3926
+target=${target}
3927
+with_multisubdir=${with_multisubdir}
3928
+ac_configure_args="${ac_configure_args} --enable-multilib"
3929
+CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3930
+libgloss_topdir=${libgloss_topdir}
3931
+
3932
+
3933
+_ACEOF
3934
+
3935
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3936
+
3937
+# Handling of arguments.
3938
+for ac_config_target in $ac_config_targets
3939
+do
3940
+  case $ac_config_target in
3941
+    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3942
+    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3943
+
3944
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3945
+  esac
3946
+done
3947
+
3948
+
3949
+# If the user did not use the arguments to specify the items to instantiate,
3950
+# then the envvar interface is used.  Set only those that are not.
3951
+# We use the long form for the default assignment because of an extremely
3952
+# bizarre bug on SunOS 4.1.3.
3953
+if $ac_need_defaults; then
3954
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3955
+  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3956
+fi
3957
+
3958
+# Have a temporary directory for convenience.  Make it in the build tree
3959
+# simply because there is no reason against having it here, and in addition,
3960
+# creating and moving files from /tmp can sometimes cause problems.
3961
+# Hook for its removal unless debugging.
3962
+# Note that there is a small window in which the directory will not be cleaned:
3963
+# after its creation but before its name has been assigned to `$tmp'.
3964
+$debug ||
3965
+{
3966
+  tmp= ac_tmp=
3967
+  trap 'exit_status=$?
3968
+  : "${ac_tmp:=$tmp}"
3969
+  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3970
+' 0
3971
+  trap 'as_fn_exit 1' 1 2 13 15
3972
+}
3973
+# Create a (secure) tmp directory for tmp files.
3974
+
3975
+{
3976
+  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3977
+  test -d "$tmp"
3978
+}  ||
3979
+{
3980
+  tmp=./conf$$-$RANDOM
3981
+  (umask 077 && mkdir "$tmp")
3982
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3983
+ac_tmp=$tmp
3984
+
3985
+# Set up the scripts for CONFIG_FILES section.
3986
+# No need to generate them if there are no CONFIG_FILES.
3987
+# This happens for instance with `./config.status config.h'.
3988
+if test -n "$CONFIG_FILES"; then
3989
+
3990
+if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
3991
+  ac_cs_awk_getline=:
3992
+  ac_cs_awk_pipe_init=
3993
+  ac_cs_awk_read_file='
3994
+      while ((getline aline < (F[key])) > 0)
3995
+       print(aline)
3996
+      close(F[key])'
3997
+  ac_cs_awk_pipe_fini=
3998
+else
3999
+  ac_cs_awk_getline=false
4000
+  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
4001
+  ac_cs_awk_read_file='
4002
+      print "|#_!!_#|"
4003
+      print "cat " F[key] " &&"
4004
+      '$ac_cs_awk_pipe_init
4005
+  # The final `:' finishes the AND list.
4006
+  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
4007
+fi
4008
+ac_cr=`echo X | tr X '\015'`
4009
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
4010
+# But we know of no other shell where ac_cr would be empty at this
4011
+# point, so we can use a bashism as a fallback.
4012
+if test "x$ac_cr" = x; then
4013
+  eval ac_cr=\$\'\\r\'
4014
+fi
4015
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4016
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4017
+  ac_cs_awk_cr='\\r'
4018
+else
4019
+  ac_cs_awk_cr=$ac_cr
4020
+fi
4021
+
4022
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4023
+_ACEOF
4024
+
4025
+# Create commands to substitute file output variables.
4026
+{
4027
+  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
4028
+  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
4029
+  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
4030
+  echo "_ACAWK" &&
4031
+  echo "_ACEOF"
4032
+} >conf$$files.sh &&
4033
+. ./conf$$files.sh ||
4034
+  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4035
+rm -f conf$$files.sh
4036
+
4037
+{
4038
+  echo "cat >conf$$subs.awk <<_ACEOF" &&
4039
+  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4040
+  echo "_ACEOF"
4041
+} >conf$$subs.sh ||
4042
+  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4043
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4044
+ac_delim='%!_!# '
4045
+for ac_last_try in false false false false false :; do
4046
+  . ./conf$$subs.sh ||
4047
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4048
+
4049
+  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4050
+  if test $ac_delim_n = $ac_delim_num; then
4051
+    break
4052
+  elif $ac_last_try; then
4053
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4054
+  else
4055
+    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4056
+  fi
4057
+done
4058
+rm -f conf$$subs.sh
4059
+
4060
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4061
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4062
+_ACEOF
4063
+sed -n '
4064
+h
4065
+s/^/S["/; s/!.*/"]=/
4066
+p
4067
+g
4068
+s/^[^!]*!//
4069
+:repl
4070
+t repl
4071
+s/'"$ac_delim"'$//
4072
+t delim
4073
+:nl
4074
+h
4075
+s/\(.\{148\}\)..*/\1/
4076
+t more1
4077
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4078
+p
4079
+n
4080
+b repl
4081
+:more1
4082
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4083
+p
4084
+g
4085
+s/.\{148\}//
4086
+t nl
4087
+:delim
4088
+h
4089
+s/\(.\{148\}\)..*/\1/
4090
+t more2
4091
+s/["\\]/\\&/g; s/^/"/; s/$/"/
4092
+p
4093
+b
4094
+:more2
4095
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4096
+p
4097
+g
4098
+s/.\{148\}//
4099
+t delim
4100
+' <conf$$subs.awk | sed '
4101
+/^[^""]/{
4102
+  N
4103
+  s/\n//
4104
+}
4105
+' >>$CONFIG_STATUS || ac_write_fail=1
4106
+rm -f conf$$subs.awk
4107
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4108
+_ACAWK
4109
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4110
+  for (key in S) S_is_set[key] = 1
4111
+  FS = ""
4112
+  \$ac_cs_awk_pipe_init
4113
+}
4114
+{
4115
+  line = $ 0
4116
+  nfields = split(line, field, "@")
4117
+  substed = 0
4118
+  len = length(field[1])
4119
+  for (i = 2; i < nfields; i++) {
4120
+    key = field[i]
4121
+    keylen = length(key)
4122
+    if (S_is_set[key]) {
4123
+      value = S[key]
4124
+      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4125
+      len += length(value) + length(field[++i])
4126
+      substed = 1
4127
+    } else
4128
+      len += 1 + keylen
4129
+  }
4130
+  if (nfields == 3 && !substed) {
4131
+    key = field[2]
4132
+    if (F[key] != "" && line ~ /^[      ]*@.*@[         ]*$/) {
4133
+      \$ac_cs_awk_read_file
4134
+      next
4135
+    }
4136
+  }
4137
+  print line
4138
+}
4139
+\$ac_cs_awk_pipe_fini
4140
+_ACAWK
4141
+_ACEOF
4142
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4143
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4144
+  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4145
+else
4146
+  cat
4147
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4148
+  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4149
+_ACEOF
4150
+
4151
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4152
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4153
+# trailing colons and then remove the whole line if VPATH becomes empty
4154
+# (actually we leave an empty line to preserve line numbers).
4155
+if test "x$srcdir" = x.; then
4156
+  ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
4157
+h
4158
+s///
4159
+s/^/:/
4160
+s/[     ]*$/:/
4161
+s/:\$(srcdir):/:/g
4162
+s/:\${srcdir}:/:/g
4163
+s/:@srcdir@:/:/g
4164
+s/^:*//
4165
+s/:*$//
4166
+x
4167
+s/\(=[  ]*\).*/\1/
4168
+G
4169
+s/\n//
4170
+s/^[^=]*=[      ]*$//
4171
+}'
4172
+fi
4173
+
4174
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4175
+fi # test -n "$CONFIG_FILES"
4176
+
4177
+
4178
+eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
4179
+shift
4180
+for ac_tag
4181
+do
4182
+  case $ac_tag in
4183
+  :[FHLC]) ac_mode=$ac_tag; continue;;
4184
+  esac
4185
+  case $ac_mode$ac_tag in
4186
+  :[FHL]*:*);;
4187
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4188
+  :[FH]-) ac_tag=-:-;;
4189
+  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4190
+  esac
4191
+  ac_save_IFS=$IFS
4192
+  IFS=:
4193
+  set x $ac_tag
4194
+  IFS=$ac_save_IFS
4195
+  shift
4196
+  ac_file=$1
4197
+  shift
4198
+
4199
+  case $ac_mode in
4200
+  :L) ac_source=$1;;
4201
+  :[FH])
4202
+    ac_file_inputs=
4203
+    for ac_f
4204
+    do
4205
+      case $ac_f in
4206
+      -) ac_f="$ac_tmp/stdin";;
4207
+      *) # Look for the file first in the build tree, then in the source tree
4208
+        # (if the path is not absolute).  The absolute path cannot be DOS-style,
4209
+        # because $ac_f cannot contain `:'.
4210
+        test -f "$ac_f" ||
4211
+          case $ac_f in
4212
+          [\\/$]*) false;;
4213
+          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4214
+          esac ||
4215
+          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4216
+      esac
4217
+      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4218
+      as_fn_append ac_file_inputs " '$ac_f'"
4219
+    done
4220
+
4221
+    # Let's still pretend it is `configure' which instantiates (i.e., don't
4222
+    # use $as_me), people would be surprised to read:
4223
+    #    /* config.h.  Generated by config.status.  */
4224
+    configure_input='Generated from '`
4225
+         $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4226
+       `' by configure.'
4227
+    if test x"$ac_file" != x-; then
4228
+      configure_input="$ac_file.  $configure_input"
4229
+      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4230
+$as_echo "$as_me: creating $ac_file" >&6;}
4231
+    fi
4232
+    # Neutralize special characters interpreted by sed in replacement strings.
4233
+    case $configure_input in #(
4234
+    *\&* | *\|* | *\\* )
4235
+       ac_sed_conf_input=`$as_echo "$configure_input" |
4236
+       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4237
+    *) ac_sed_conf_input=$configure_input;;
4238
+    esac
4239
+
4240
+    case $ac_tag in
4241
+    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4242
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4243
+    esac
4244
+    ;;
4245
+  esac
4246
+
4247
+  ac_dir=`$as_dirname -- "$ac_file" ||
4248
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4249
+        X"$ac_file" : 'X\(//\)[^/]' \| \
4250
+        X"$ac_file" : 'X\(//\)$' \| \
4251
+        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4252
+$as_echo X"$ac_file" |
4253
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4254
+           s//\1/
4255
+           q
4256
+         }
4257
+         /^X\(\/\/\)[^/].*/{
4258
+           s//\1/
4259
+           q
4260
+         }
4261
+         /^X\(\/\/\)$/{
4262
+           s//\1/
4263
+           q
4264
+         }
4265
+         /^X\(\/\).*/{
4266
+           s//\1/
4267
+           q
4268
+         }
4269
+         s/.*/./; q'`
4270
+  as_dir="$ac_dir"; as_fn_mkdir_p
4271
+  ac_builddir=.
4272
+
4273
+case "$ac_dir" in
4274
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4275
+*)
4276
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4277
+  # A ".." for each directory in $ac_dir_suffix.
4278
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4279
+  case $ac_top_builddir_sub in
4280
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4281
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4282
+  esac ;;
4283
+esac
4284
+ac_abs_top_builddir=$ac_pwd
4285
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
4286
+# for backward compatibility:
4287
+ac_top_builddir=$ac_top_build_prefix
4288
+
4289
+case $srcdir in
4290
+  .)  # We are building in place.
4291
+    ac_srcdir=.
4292
+    ac_top_srcdir=$ac_top_builddir_sub
4293
+    ac_abs_top_srcdir=$ac_pwd ;;
4294
+  [\\/]* | ?:[\\/]* )  # Absolute name.
4295
+    ac_srcdir=$srcdir$ac_dir_suffix;
4296
+    ac_top_srcdir=$srcdir
4297
+    ac_abs_top_srcdir=$srcdir ;;
4298
+  *) # Relative name.
4299
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4300
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
4301
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4302
+esac
4303
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4304
+
4305
+
4306
+  case $ac_mode in
4307
+  :F)
4308
+  #
4309
+  # CONFIG_FILE
4310
+  #
4311
+
4312
+  case $INSTALL in
4313
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4314
+  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4315
+  esac
4316
+_ACEOF
4317
+
4318
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4319
+# If the template does not know about datarootdir, expand it.
4320
+# FIXME: This hack should be removed a few years after 2.60.
4321
+ac_datarootdir_hack=; ac_datarootdir_seen=
4322
+ac_sed_dataroot='
4323
+/datarootdir/ {
4324
+  p
4325
+  q
4326
+}
4327
+/@datadir@/p
4328
+/@docdir@/p
4329
+/@infodir@/p
4330
+/@localedir@/p
4331
+/@mandir@/p'
4332
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4333
+*datarootdir*) ac_datarootdir_seen=yes;;
4334
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4335
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4336
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4337
+_ACEOF
4338
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4339
+  ac_datarootdir_hack='
4340
+  s&@datadir@&$datadir&g
4341
+  s&@docdir@&$docdir&g
4342
+  s&@infodir@&$infodir&g
4343
+  s&@localedir@&$localedir&g
4344
+  s&@mandir@&$mandir&g
4345
+  s&\\\${datarootdir}&$datarootdir&g' ;;
4346
+esac
4347
+_ACEOF
4348
+
4349
+# Neutralize VPATH when `$srcdir' = `.'.
4350
+# Shell code in configure.ac might set extrasub.
4351
+# FIXME: do we really want to maintain this feature?
4352
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4353
+ac_sed_extra="$ac_vpsub
4354
+$extrasub
4355
+_ACEOF
4356
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4357
+:t
4358
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4359
+s|@configure_input@|$ac_sed_conf_input|;t t
4360
+s&@top_builddir@&$ac_top_builddir_sub&;t t
4361
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
4362
+s&@srcdir@&$ac_srcdir&;t t
4363
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
4364
+s&@top_srcdir@&$ac_top_srcdir&;t t
4365
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4366
+s&@builddir@&$ac_builddir&;t t
4367
+s&@abs_builddir@&$ac_abs_builddir&;t t
4368
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4369
+s&@INSTALL@&$ac_INSTALL&;t t
4370
+$ac_datarootdir_hack
4371
+"
4372
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
4373
+if $ac_cs_awk_getline; then
4374
+  $AWK -f "$ac_tmp/subs.awk"
4375
+else
4376
+  $AWK -f "$ac_tmp/subs.awk" | $SHELL
4377
+fi \
4378
+  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4379
+
4380
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4381
+  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4382
+  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
4383
+      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4384
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4385
+which seems to be undefined.  Please make sure it is defined" >&5
4386
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4387
+which seems to be undefined.  Please make sure it is defined" >&2;}
4388
+
4389
+  rm -f "$ac_tmp/stdin"
4390
+  case $ac_file in
4391
+  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4392
+  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4393
+  esac \
4394
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4395
+ ;;
4396
+
4397
+
4398
+  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4399
+$as_echo "$as_me: executing $ac_file commands" >&6;}
4400
+ ;;
4401
+  esac
4402
+
4403
+
4404
+  case $ac_file$ac_mode in
4405
+    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4406
+  # Autoconf 2.62 quotes --file arguments for eval, but not when files
4407
+  # are listed without --file.  Let's play safe and only enable the eval
4408
+  # if we detect the quoting.
4409
+  case $CONFIG_FILES in
4410
+  *\'*) eval set x "$CONFIG_FILES" ;;
4411
+  *)   set x $CONFIG_FILES ;;
4412
+  esac
4413
+  shift
4414
+  for mf
4415
+  do
4416
+    # Strip MF so we end up with the name of the file.
4417
+    mf=`echo "$mf" | sed -e 's/:.*$//'`
4418
+    # Check whether this is an Automake generated Makefile or not.
4419
+    # We used to match only the files named `Makefile.in', but
4420
+    # some people rename them; so instead we look at the file content.
4421
+    # Grep'ing the first line is not enough: some people post-process
4422
+    # each Makefile.in and add a new line on top of each file to say so.
4423
+    # Grep'ing the whole file is not good either: AIX grep has a line
4424
+    # limit of 2048, but all sed's we know have understand at least 4000.
4425
+    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4426
+      dirpart=`$as_dirname -- "$mf" ||
4427
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4428
+        X"$mf" : 'X\(//\)[^/]' \| \
4429
+        X"$mf" : 'X\(//\)$' \| \
4430
+        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4431
+$as_echo X"$mf" |
4432
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4433
+           s//\1/
4434
+           q
4435
+         }
4436
+         /^X\(\/\/\)[^/].*/{
4437
+           s//\1/
4438
+           q
4439
+         }
4440
+         /^X\(\/\/\)$/{
4441
+           s//\1/
4442
+           q
4443
+         }
4444
+         /^X\(\/\).*/{
4445
+           s//\1/
4446
+           q
4447
+         }
4448
+         s/.*/./; q'`
4449
+    else
4450
+      continue
4451
+    fi
4452
+    # Extract the definition of DEPDIR, am__include, and am__quote
4453
+    # from the Makefile without running `make'.
4454
+    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4455
+    test -z "$DEPDIR" && continue
4456
+    am__include=`sed -n 's/^am__include = //p' < "$mf"`
4457
+    test -z "am__include" && continue
4458
+    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4459
+    # When using ansi2knr, U may be empty or an underscore; expand it
4460
+    U=`sed -n 's/^U = //p' < "$mf"`
4461
+    # Find all dependency output files, they are included files with
4462
+    # $(DEPDIR) in their names.  We invoke sed twice because it is the
4463
+    # simplest approach to changing $(DEPDIR) to its actual value in the
4464
+    # expansion.
4465
+    for file in `sed -n "
4466
+      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4467
+        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4468
+      # Make sure the directory exists.
4469
+      test -f "$dirpart/$file" && continue
4470
+      fdir=`$as_dirname -- "$file" ||
4471
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4472
+        X"$file" : 'X\(//\)[^/]' \| \
4473
+        X"$file" : 'X\(//\)$' \| \
4474
+        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4475
+$as_echo X"$file" |
4476
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4477
+           s//\1/
4478
+           q
4479
+         }
4480
+         /^X\(\/\/\)[^/].*/{
4481
+           s//\1/
4482
+           q
4483
+         }
4484
+         /^X\(\/\/\)$/{
4485
+           s//\1/
4486
+           q
4487
+         }
4488
+         /^X\(\/\).*/{
4489
+           s//\1/
4490
+           q
4491
+         }
4492
+         s/.*/./; q'`
4493
+      as_dir=$dirpart/$fdir; as_fn_mkdir_p
4494
+      # echo "creating $dirpart/$file"
4495
+      echo '# dummy' > "$dirpart/$file"
4496
+    done
4497
+  done
4498
+}
4499
+ ;;
4500
+    "Makefile":F) . ${libgloss_topdir}/config-ml.in ;;
4501
+
4502
+  esac
4503
+done # for ac_tag
4504
+
4505
+
4506
+as_fn_exit 0
4507
+_ACEOF
4508
+ac_clean_files=$ac_clean_files_save
4509
+
4510
+test $ac_write_fail = 0 ||
4511
+  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4512
+
4513
+
4514
+# configure is writing to config.log, and then calls config.status.
4515
+# config.status does its own redirection, appending to config.log.
4516
+# Unfortunately, on DOS this fails, as config.log is still kept open
4517
+# by configure, so config.status won't be able to write to it; its
4518
+# output is simply discarded.  So we exec the FD to /dev/null,
4519
+# effectively closing config.log, so it can be properly (re)opened and
4520
+# appended to by config.status.  When coming back to configure, we
4521
+# need to make the FD available again.
4522
+if test "$no_create" != yes; then
4523
+  ac_cs_success=:
4524
+  ac_config_status_args=
4525
+  test "$silent" = yes &&
4526
+    ac_config_status_args="$ac_config_status_args --quiet"
4527
+  exec 5>/dev/null
4528
+  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4529
+  exec 5>>config.log
4530
+  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4531
+  # would make configure fail if this is the last instruction.
4532
+  $ac_cs_success || as_fn_exit 1
4533
+fi
4534
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4535
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4536
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4537
+fi
4538
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/configure.in newlib-2.5.0-zip/libgloss/zip/configure.in
4539
--- newlib-2.5.0/libgloss/zip/configure.in      1969-12-31 19:00:00.000000000 -0500
4540
+++ newlib-2.5.0-zip/libgloss/zip/configure.in  2017-01-13 12:13:39.668316626 -0500
4541
@@ -0,0 +1,200 @@
4542
+# Copyright (c) 1995, 1996 Cygnus Support
4543
+#
4544
+# The authors hereby grant permission to use, copy, modify, distribute,
4545
+# and license this software and its documentation for any purpose, provided
4546
+# that existing copyright notices are retained in all copies and that this
4547
+# notice is included verbatim in any distributions. No written agreement,
4548
+# license, or royalty fee is required for any of the authorized uses.
4549
+# Modifications to this software may be copyrighted by their authors
4550
+# and need not follow the licensing terms described here, provided that
4551
+# the new terms are clearly indicated on the first page of each file where
4552
+# they apply.
4553
+#
4554
+# Process this file with autoconf to produce a configure script.
4555
+#
4556
+AC_PREREQ(2.59)
4557
+AC_INIT(libzip.a)
4558
+AC_CONFIG_HEADER(config.h)
4559
+
4560
+if test "${enable_shared}" = "yes" ; then
4561
+    echo "Shared libraries not supported for cross compiling, ignored"
4562
+fi
4563
+
4564
+if test "$srcdir" = "." ; then
4565
+  if test "${with_target_subdir}" != "." ; then
4566
+    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
4567
+  else
4568
+    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
4569
+  fi
4570
+else
4571
+  libgloss_topdir="${srcdir}/../.."
4572
+fi
4573
+AC_CONFIG_AUX_DIR($libgloss_topdir)
4574
+
4575
+AC_CANONICAL_SYSTEM
4576
+AC_ARG_PROGRAM
4577
+
4578
+AC_PROG_INSTALL
4579
+
4580
+AC_DEFINE(HAVE_GNU_LD)
4581
+dnl Make sure syscall names match those being used by newlib
4582
+case "${target}" in
4583
+  *-*-cygwin*)
4584
+       ;;
4585
+  a29k-amd-udi)
4586
+       ;;
4587
+  arc-*-*)
4588
+       ;;
4589
+  arm*-*-*)
4590
+       ;;
4591
+  bfin-*-*)
4592
+       ;;
4593
+  cris-*-* | crisv32-*-*)
4594
+       ;;
4595
+  d10v*)
4596
+       ;;
4597
+  h8300*-*-*)
4598
+       ;;
4599
+  h8500-*-*)
4600
+       ;;
4601
+  i[3456]86-*-sco*)
4602
+       ;;
4603
+  lm32-*-*)
4604
+       ;;
4605
+  m32r-*-*)
4606
+       ;;
4607
+  mn10?00-*-*)
4608
+       ;;
4609
+  powerpcle-*-pe)
4610
+       ;;
4611
+  sh*-*-*)
4612
+       ;;
4613
+  sparc-sun-sunos*)
4614
+       ;;
4615
+  sparc64-*-*)
4616
+       ;;
4617
+  v850*-*-*)
4618
+       ;;
4619
+  w65-*-*)
4620
+       ;;
4621
+  xstormy16-*-*)
4622
+       ;;
4623
+  z8k-*-*)
4624
+       ;;
4625
+  zip*)
4626
+       ;;
4627
+  *)
4628
+       AC_DEFINE(MISSING_SYSCALL_NAMES)
4629
+       ;;
4630
+esac
4631
+
4632
+AC_DEFINE(HAVE_ELF)
4633
+
4634
+dnl Make sure we know if elf format used
4635
+case "${target}" in
4636
+  *-*-elf | zip*)
4637
+        AC_DEFINE(HAVE_ELF)
4638
+
4639
+        AC_CACHE_CHECK([for .previous assembler directive],
4640
+                         libc_cv_asm_previous_directive, [dnl
4641
+        libc_cv_asm_previous_directive=no
4642
+        cat > conftest.s <<EOF
4643
+.section foo_section
4644
+.previous
4645
+EOF
4646
+        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
4647
+          libc_cv_asm_previous_directive=yes
4648
+        fi
4649
+        rm -f conftest*])
4650
+
4651
+       if test "x${libc_cv_asm_previous_directive}" = "xyes"; then
4652
+          AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE)
4653
+       fi
4654
+
4655
+        AC_CACHE_CHECK([for .popsection assembler directive],
4656
+                         libc_cv_asm_popsection_directive, [dnl
4657
+        libc_cv_asm_popsection_directive=no
4658
+        cat > conftest.s <<EOF
4659
+.pushsection foo_section
4660
+.popsection
4661
+EOF
4662
+        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
4663
+          libc_cv_asm_popsection_directive=yes
4664
+        fi
4665
+        rm -f conftest*])
4666
+
4667
+       if test "x${libc_cv_asm_popsection_directive}" = "xyes"; then
4668
+          AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE)
4669
+       fi
4670
+
4671
+        AC_CACHE_CHECK([for section attributes],
4672
+                         libc_cv_section_attributes, [dnl
4673
+        libc_cv_section_attributes=no
4674
+        cat > conftest.c <<EOF
4675
+int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
4676
+int main() {}
4677
+EOF
4678
+        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
4679
+          libc_cv_section_attributes=yes
4680
+        fi
4681
+        rm -f conftest*])
4682
+       if test "x${libc_cv_section_attributes}" = "xyes"; then
4683
+          AC_DEFINE(HAVE_SECTION_ATTRIBUTES)
4684
+       fi
4685
+        ;;
4686
+esac
4687
+
4688
+AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl
4689
+cat > conftest.c <<\EOF
4690
+foo () { }
4691
+EOF
4692
+dnl
4693
+libc_cv_symbol_prefix=none
4694
+if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
4695
+then
4696
+  libc_cv_symbol_prefix='$'
4697
+else
4698
+  if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
4699
+  then
4700
+    libc_cv_symbol_prefix=_
4701
+  fi
4702
+fi
4703
+rm -f conftest* ])
4704
+if test $libc_cv_symbol_prefix != none; then
4705
+  AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix")
4706
+else
4707
+  AC_DEFINE(__SYMBOL_PREFIX, "")
4708
+fi
4709
+
4710
+LIB_AC_PROG_CC
4711
+AS=${AS-as}
4712
+AC_SUBST(AS)
4713
+AR=${AR-ar}
4714
+AC_SUBST(AR)
4715
+LD=${LD-ld}
4716
+AC_SUBST(LD)
4717
+AC_PROG_RANLIB
4718
+LIB_AM_PROG_AS
4719
+
4720
+host_makefile_frag=${srcdir}/../config/default.mh
4721
+
4722
+dnl We have to assign the same value to other variables because autoconf
4723
+dnl doesn't provide a mechanism to substitute a replacement keyword with
4724
+dnl arbitrary data or pathnames.
4725
+dnl
4726
+host_makefile_frag_path=$host_makefile_frag
4727
+AC_SUBST(host_makefile_frag_path)
4728
+AC_SUBST_FILE(host_makefile_frag)
4729
+
4730
+AC_CONFIG_FILES(Makefile,
4731
+ac_file=Makefile . ${libgloss_topdir}/config-ml.in,
4732
+srcdir=${srcdir}
4733
+target=${target}
4734
+with_multisubdir=${with_multisubdir}
4735
+ac_configure_args="${ac_configure_args} --enable-multilib"
4736
+CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4737
+libgloss_topdir=${libgloss_topdir}
4738
+)
4739
+AC_OUTPUT
4740
+
4741
+
4742
diff -Naur '--exclude=*.swp' newlib-2.5.0/libgloss/zip/crt0.c newlib-2.5.0-zip/libgloss/zip/crt0.c
4743
--- newlib-2.5.0/libgloss/zip/crt0.c    1969-12-31 19:00:00.000000000 -0500
4744
+++ newlib-2.5.0-zip/libgloss/zip/crt0.c        2017-02-21 16:48:24.891606509 -0500
4745
@@ -0,0 +1,288 @@
4746
+////////////////////////////////////////////////////////////////////////////////
4747
+//
4748
+// Filename:   crt0.c
4749
+//
4750
+// Project:    Zip CPU -- a small, lightweight, RISC CPU soft core
4751
+//
4752
+// Purpose:    To start a program from flash, loading its various components
4753
+//             into on-chip block RAM, or off-chip DDR3 SDRAM, as indicated
4754
+//     by the symbols/pointers within the program itself.  As you will notice
4755
+//     by the names of the symbols, it is assumed that a kernel will be placed
4756
+//     into block RAM.
4757
+//
4758
+//     This particular implementation depends upon the following symbols
4759
+//     being defined:
4760
+//
4761
+//     int main(int argc, char **argv)
4762
+//             The location where your program will start from, once fully
4763
+//             loaded.  argc will always be set to zero, and ARGV to a pointer
4764
+//             to zero.
4765
+//
4766
+//     _top_of_stack:
4767
+//             A pointer to a location in memory which we can use for a stack.
4768
+//             The bootloader doesn't use much of this memory, although it does
4769
+//             use it.  It then resets the stack to this location and calls
4770
+//             your program.
4771
+//
4772
+//     _top_of_heap:
4773
+//             While not used by this program, this is assumed to be defined
4774
+//             by the linker as the lowest memory address in a space that can
4775
+//             be used by a malloc/free restore capability.
4776
+//
4777
+//     _flash:
4778
+//             The address of the beginning of physical FLASH device.  This is
4779
+//             not the first usable address on that device, as that is often
4780
+//             reserved for the first two FPGA configurations.
4781
+//
4782
+//     _blkram:
4783
+//             The first address of the block RAM memory within the FPGA.
4784
+//
4785
+//     _sdram:
4786
+//             The address of the beginning of physical SDRAM.
4787
+//
4788
+//     _kernel_image_start:
4789
+//             The address of that location within FLASH where the sections
4790
+//             needing to be moved begin at.
4791
+//
4792
+//     _kernel_image_end:
4793
+//             The last address within block RAM that needs to be filled in.
4794
+//
4795
+//     _sdram_image_start:
4796
+//             This address is more confusing.  This is equal to one past the
4797
+//             last used block RAM address, or the last used flash address if
4798
+//             no block RAM is used.  It is used for determining whether or not
4799
+//             block RAM was used at all.
4800
+//
4801
+//     _sdram_image_end:
4802
+//             This is one past the last address in SDRAM that needs to be
4803
+//             set with valid data.
4804
+//
4805
+//             This pointer is made even more confusing by the fact that,
4806
+//             if there is nothing allocated in SDRAM, this pointer will
4807
+//             still point to block RAM.  To make matters worse, the MAP
4808
+//             file won't match the pointer in memory.  (I spent three days
4809
+//             trying to chase this down, and came up empty.  Basically,
4810
+//             the BFD structures may set this to point to block RAM, whereas
4811
+//             the MAP--which uses different data and different methods of
4812
+//             computation--may leave this pointing to SDRAM.  Go figure.)
4813
+//
4814
+//     _bss_image_end:
4815
+//             This is the last address of memory that must be cleared upon
4816
+//             startup, for which the program is assuming that it is zero.
4817
+//             While it may not be necessary to clear the BSS memory, since
4818
+//             BSS memory is always zero on power up, this bootloader does so
4819
+//             anyway--since we might be starting from a reset instead of power
4820
+//             up.
4821
+//
4822
+//
4823
+//
4824
+// Creator:    Dan Gisselquist, Ph.D.
4825
+//             Gisselquist Technology, LLC
4826
+//
4827
+////////////////////////////////////////////////////////////////////////////////
4828
+//
4829
+// Copyright (C) 2017, Gisselquist Technology, LLC
4830
+//
4831
+// This program is free software (firmware): you can redistribute it and/or
4832
+// modify it under the terms of  the GNU General Public License as published
4833
+// by the Free Software Foundation, either version 3 of the License, or (at
4834
+// your option) any later version.
4835
+//
4836
+// This program is distributed in the hope that it will be useful, but WITHOUT
4837
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
4838
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4839
+// for more details.
4840
+//
4841
+// License:    GPL, v3, as defined and found on www.gnu.org,
4842
+//             http://www.gnu.org/licenses/gpl.html
4843
+//
4844
+//
4845
+////////////////////////////////////////////////////////////////////////////////
4846
+//
4847
+//
4848
+#include "zipcpu.h"
4849
+#include "board.h"             // Our current board support file
4850
+#include "bootloader.h"
4851
+
4852
+// A bootloader is about nothing more than copying memory from a couple
4853
+// particular locations (Flash/ROM) to other locations in memory (BLKRAM
4854
+// and SDRAM).  Our DMA is a hardware accelerator that does nothing but
4855
+// copy memory from one location to another.  Why not use the DMA for this
4856
+// purpose then?
4857
+//
4858
+// Here, we have a USE_DMA #define.  When this is defined, the memory copy
4859
+// will be done using the DMA hardware accelerator.  This is a good thing,
4860
+// and this should be defined.  There are two problems with defining this
4861
+// however: 1) It obscures for any readers of this code what is actually
4862
+// happening, and 2) it makes the code dependent upon yet another piece of the
4863
+// hardware design working.  For these reasons, we allow you to turn it off.
4864
+#ifdef _HAS_ZIPSYS_DMA
4865
+#define        USE_DMA
4866
+#endif
4867
+
4868
+//
4869
+// _start:
4870
+//
4871
+// Every computer needs to start processing from somewhere on reboot, and every
4872
+// program needs some entry point.  For the ZipCPU, that starting place is the
4873
+// routine with the _start symbol.  It is important that this start symbol be
4874
+// placed at the boot address for the CPU.  This is the very first address of
4875
+// program memory, and (currently) on the Arty board it is placed in Flash at
4876
+// _start = 0x4e0000.  To make certain this routine goes into the very first
4877
+// address in flash, we place it into it's own special section, the .start
4878
+// section, and then tell the linker that the .start section is the first
4879
+// section where it needs to start placing code.
4880
+//
4881
+// If you read through this short assembly routine below, you'll find that it
4882
+// does only a small number of tasks.  It sets the stack pointer to point to
4883
+// the top of the stack (a symbol defined in the linker file), calls the
4884
+// bootloader, resets the stack pointer, clears any data cache, and then calls
4885
+// the kernel entry function.  It also sets up a return address for the kernel
4886
+// entry function so that, should the kernel ever exit, it wouldn't exit on
4887
+// any error but rather it would exit by halting the CPU.
4888
+//
4889
+asm("\t.section\t.start,\"ax\",@progbits\n"
4890
+       "\t.global\t_start\n"
4891
+"_start:"      "\t; Here's the global ZipCPU entry point upon reset/reboot\n"
4892
+       "\tLDI\t_top_of_stack,SP"       "\t; Set up our supervisor stack ptr\n"
4893
+       "\tMOV\t_kernel_is_dead(PC),uPC" "\t; Set user PC pointer to somewhere valid\n"
4894
+#ifndef        SKIP_BOOTLOADER
4895
+       "\tMOV\t_after_bootloader(PC),R0" " ; JSR to the bootloader routine\n"
4896
+       "\tBRA\t_bootloader\n"
4897
+"_after_bootloader:\n"
4898
+       "\tLDI\t_top_of_stack,SP"       "\t; Set up our supervisor stack ptr\n"
4899
+       "\tOR\t0x4000,CC"               "\t; Clear the data cache\n"
4900
+#endif
4901
+#ifdef __USE_INIT_FINIT
4902
+       "\tJSR\tinit"           "\t; Initialize any constructor code\n"
4903
+       //
4904
+       "\tLDI\tfini,R1"        "\t; \n"
4905
+       "\tJSR\t_atexit"        "\t; Initialize any constructor code\n"
4906
+#endif
4907
+       //
4908
+       "\tCLR\tR1"                     "\t; argc = 0\n"
4909
+       "\tMOV\t_argv(PC),R2"           "\t; argv = &0\n"
4910
+       "\tLDI\t__env,R3"               "\t; env = NULL\n"
4911
+       "\tJSR\tmain"           "\t; Call the user main() function\n"
4912
+       //
4913
+"_graceful_kernel_exit:"       "\t; Halt on any return from main--gracefully\n"
4914
+       "\tJSR\texit\n" "\t; Call the _exit as part of exiting\n"
4915
+"\t.global\t_exit\n"
4916
+"_exit:\n"
4917
+#ifdef _ZIP_HAS_WBUART
4918
+       "\tLW 0x15c,R2\n"       "\t; Wait for the serial port to clear\n"
4919
+       "\tTEST 0x100,R2\n"
4920
+       "\tBNZ _exit\n"
4921
+#endif
4922
+       "\tNEXIT\tR1\n"         "\t; If in simulation, call an exit function\n"
4923
+"_kernel_is_dead:"             "\t; Halt the CPU\n"
4924
+       "\tHALT\n"              "\t; We should *never* continue following a\n"
4925
+       "\tBRA\t_kernel_is_dead" "\t; halt, do something useful if so ??\n"
4926
+"_argv:\n"
4927
+       "\t.WORD\t0,0\n"
4928
+       "\t.section\t.text");
4929
+
4930
+//
4931
+// We need to insist that the bootloader be kept in Flash, else it would depend
4932
+// upon running a routine from memory that ... wasn't in memory yet.  For this
4933
+// purpose, we place the bootloader in a special .boot section.  We'll also tell
4934
+// the linker, via the linker script, that this .boot section needs to be placed
4935
+// into flash.
4936
+//
4937
+extern void    _bootloader(void) __attribute__ ((section (".boot")));
4938
+
4939
+//
4940
+// bootloader()
4941
+//
4942
+// Here's the actual boot loader itself.  It copies three areas from flash:
4943
+//     1. An area from flash to block RAM
4944
+//     2. A second area from flash to SDRAM
4945
+//     3. The third area isn't copied from flash, but rather it is just set to
4946
+//             zero.  This is sometimes called the BSS segment.
4947
+//
4948
+#ifndef        SKIP_BOOTLOADER
4949
+void   _bootloader(void) {
4950
+       int *sdend = _sdram_image_end, *bsend = _bss_image_end;
4951
+       if (sdend < _sdram)
4952
+               sdend = _sdram; // R7
4953
+       if (bsend < sdend)
4954
+               bsend = sdend;  // R6
4955
+
4956
+#ifdef USE_DMA
4957
+       zip->z_dma.d_ctrl= DMACLEAR;
4958
+       zip->z_dma.d_rd = _kernel_image_start;
4959
+       if (_kernel_image_end != _blkram) {
4960
+               zip->z_dma.d_len = _kernel_image_end - _blkram;
4961
+               zip->z_dma.d_wr  = _blkram;
4962
+               zip->z_dma.d_ctrl= DMACCOPY;
4963
+
4964
+               zip->z_pic = SYSINT_DMAC;
4965
+               while((zip->z_pic & SYSINT_DMAC)==0)
4966
+                       ;
4967
+       }
4968
+
4969
+       // zip->z_dma.d_rd // Keeps the same value
4970
+       zip->z_dma.d_wr  = _sdram;
4971
+       if (sdend != _sdram) {
4972
+               zip->z_dma.d_len = sdend - _sdram;
4973
+               zip->z_dma.d_ctrl= DMACCOPY;
4974
+
4975
+               zip->z_pic = SYSINT_DMAC;
4976
+               while((zip->z_pic & SYSINT_DMAC)==0)
4977
+                       ;
4978
+       }
4979
+
4980
+       if (bsend != sdend) {
4981
+               volatile int    zero = 0;
4982
+
4983
+               zip->z_dma.d_len = bsend - sdend;
4984
+               zip->z_dma.d_rd  = (unsigned *)&zero;
4985
+               // zip->z_dma.wr // Keeps the same value
4986
+               zip->z_dma.d_ctrl = DMACCOPY|DMA_CONSTSRC;
4987
+
4988
+               zip->z_pic = SYSINT_DMAC;
4989
+               while((zip->z_pic & SYSINT_DMAC)==0)
4990
+                       ;
4991
+       }
4992
+#else
4993
+       int     *rdp = _kernel_image_start, *wrp = _blkram;
4994
+
4995
+       if (BKRAM == NULL)
4996
+               wrp = _sdram;
4997
+
4998
+       //
4999
+       // Load any part of the image into block RAM, but *only* if there's a
5000
+       // block RAM section in the image.  Based upon our LD script, the
5001