]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/frodo/frodo-4.1b/frodo-qte.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / frodo / frodo-4.1b / frodo-qte.diff
1 diff -urN Src/C64.cpp Src/C64.cpp
2 --- Src/C64.cpp 2002-01-02 22:18:46.000000000 +0100
3 +++ Src/C64.cpp 2002-11-21 17:07:04.000000000 +0100
4 @@ -600,7 +600,7 @@
5  #ifndef FRODO_SC
6                         long vicptr;    // File offset of VIC data
7  #endif
8 -
9
10                         while (c != 10)
11                                 c = fgetc(f);   // Shouldn't be necessary
12                         if (fgetc(f) != 0) {
13 @@ -698,7 +698,11 @@
14  #endif
15  
16  #ifdef __unix
17 -#include "C64_x.i"
18 +# ifdef QTOPIA
19 +#  include "C64_Qtopia.i"
20 +# else
21 +#  include "C64_x.i"
22 +# endif
23  #endif
24  
25  #ifdef __mac__
26 diff -urN Src/C64.h Src/C64.h
27 --- Src/C64.h   2002-01-02 22:15:10.000000000 +0100
28 +++ Src/C64.h   2002-11-21 17:07:02.000000000 +0100
29 @@ -22,7 +22,6 @@
30  #include "ROlib.h"
31  #endif
32  
33 -
34  // false: Frodo, true: FrodoSC
35  extern bool IsFrodoSC;
36  
37 @@ -142,6 +141,14 @@
38         CmdPipe *gui;
39  #endif
40  
41 +#ifdef QTOPIA
42 +private:
43 +       static CmdPipe *staticGUI;
44 +public:
45 +       static void StartGUI();
46 +       static void StopGUI();
47 +#endif
48 +
49  #ifdef WIN32
50  private:
51         void CheckTimerChange();
52 diff -urN Src/C64_Qtopia.i Src/C64_Qtopia.i
53 --- Src/C64_Qtopia.i    1970-01-01 01:00:00.000000000 +0100
54 +++ Src/C64_Qtopia.i    2002-11-21 17:07:04.000000000 +0100
55 @@ -0,0 +1,459 @@
56 +/*
57 + *  C64_Qtopia.i - Put the pieces together, X specific stuff
58 + *
59 + *  Frodo (C) 1994-1997,2002 Christian Bauer
60 + *  Unix stuff by Bernd Schmidt/Lutz Vieweg
61 + *  Qtopia changes (against C64_x.i) from Bernd Lachner
62 + */
63 +
64 +#include "main.h"
65 +
66 +
67 +static struct timeval tv_start;
68 +
69 +#ifndef HAVE_USLEEP
70 +/*
71 + *  NAME:
72 + *      usleep     -- This is the precision timer for Test Set
73 + *                    Automation. It uses the select(2) system
74 + *                    call to delay for the desired number of
75 + *                    micro-seconds. This call returns ZERO
76 + *                    (which is usually ignored) on successful
77 + *                    completion, -1 otherwise.
78 + *
79 + *  ALGORITHM:
80 + *      1) We range check the passed in microseconds and log a
81 + *         warning message if appropriate. We then return without
82 + *         delay, flagging an error.
83 + *      2) Load the Seconds and micro-seconds portion of the
84 + *         interval timer structure.
85 + *      3) Call select(2) with no file descriptors set, just the
86 + *         timer, this results in either delaying the proper
87 + *         ammount of time or being interupted early by a signal.
88 + *
89 + *  HISTORY:
90 + *      Added when the need for a subsecond timer was evident.
91 + *
92 + *  AUTHOR:
93 + *      Michael J. Dyer                   Telephone:   AT&T 414.647.4044
94 + *      General Electric Medical Systems        GE DialComm  8 *767.4044
95 + *      P.O. Box 414  Mail Stop 12-27         Sect'y   AT&T 414.647.4584
96 + *      Milwaukee, Wisconsin  USA 53201                      8 *767.4584
97 + *      internet:  mike@sherlock.med.ge.com     GEMS WIZARD e-mail: DYER
98 + */
99 +
100 +#include <unistd.h>
101 +#include <stdlib.h>
102 +#include <stdio.h>
103 +#include <errno.h>
104 +#include <time.h>
105 +#include <sys/time.h>
106 +#include <sys/param.h>
107 +#include <sys/types.h>
108 +
109 +int usleep(unsigned long int microSeconds)
110 +{
111 +        unsigned int            Seconds, uSec;
112 +        int                     nfds, readfds, writefds, exceptfds;
113 +        struct  timeval         Timer;
114 +
115 +        nfds = readfds = writefds = exceptfds = 0;
116 +
117 +        if( (microSeconds == (unsigned long) 0)
118 +                || microSeconds > (unsigned long) 4000000 )
119 +        {
120 +                errno = ERANGE;         /* value out of range */
121 +                perror( "usleep time out of range ( 0 -> 4000000 ) " );
122 +                return -1;
123 +        }
124 +
125 +        Seconds = microSeconds / (unsigned long) 1000000;
126 +        uSec    = microSeconds % (unsigned long) 1000000;
127 +
128 +        Timer.tv_sec            = Seconds;
129 +        Timer.tv_usec           = uSec;
130 +
131 +        if( select( nfds, &readfds, &writefds, &exceptfds, &Timer ) < 0 )
132 +        {
133 +                perror( "usleep (select) failed" );
134 +                return -1;
135 +        }
136 +
137 +        return 0;
138 +}
139 +#endif
140 +
141 +CmdPipe *C64::staticGUI = 0;
142 +
143 +/*
144 + * Static StartGUI method to start gui before SDL initilization
145 + */
146 +
147 +void C64::StartGUI()
148 +{
149 +       // we need to create a potential GUI subprocess here, because we don't want
150 +       // it to inherit file-descriptors (such as for the audio-device and alike..)
151 +       if (!staticGUI)
152 +       {
153 +               // try to start up FrodoGUI.
154 +               staticGUI = new CmdPipe("frodogui", "");
155 +               if (staticGUI)
156 +               {
157 +                       if (staticGUI->fail)
158 +                       {
159 +                               delete staticGUI;
160 +                               staticGUI = 0;
161 +                       }
162 +               }
163 +               // wait until the GUI process responds (if it does...)
164 +               if (staticGUI)
165 +               {
166 +                       if (5 != staticGUI->ewrite("ping\n",5))
167 +                       {
168 +                               delete staticGUI;
169 +                               staticGUI = 0;
170 +                       }
171 +                       else
172 +                       {
173 +                               char c;
174 +                               fd_set set;
175 +                               FD_ZERO(&set);
176 +                               FD_SET(staticGUI->get_read_fd(), &set);
177 +                               struct timeval tv;
178 +                               tv.tv_usec = 0;
179 +                               tv.tv_sec = 5;
180 +                               if (select(FD_SETSIZE, &set, NULL, NULL, &tv) <= 0)
181 +                               {
182 +                                       delete staticGUI;
183 +                                       staticGUI = 0;
184 +                               }
185 +                               else
186 +                               {
187 +                                       if (1 != staticGUI->eread(&c, 1))
188 +                                       {
189 +                                               delete staticGUI;
190 +                                               staticGUI = 0;
191 +                                       }
192 +                                       else
193 +                                       {
194 +                                               if (c != 'o')
195 +                                               {
196 +                                                       delete staticGUI;
197 +                                                       staticGUI = 0;
198 +                                               }
199 +                                       }
200 +                               }
201 +                       }
202 +               }
203 +       }
204 +}
205 +
206 +/*
207 + * Static StopGUI method 
208 + */
209 +
210 +void C64::StopGUI()
211 +{
212 +       if (staticGUI)
213 +       {
214 +               staticGUI->ewrite("quit\n",5);
215 +               delete staticGUI;
216 +       }
217 +}
218 +
219 +/*
220 + *  Constructor, system-dependent things
221 + */
222 +
223 +void C64::c64_ctor1(void)
224 +{
225 +       // Initialize joystick variables
226 +       joyfd[0] = joyfd[1] = -1;
227 +       joy_minx = joy_miny = 32767;
228 +       joy_maxx = joy_maxy = -32768;
229 +
230 +       gui = staticGUI;
231 +}
232 +
233 +void C64::c64_ctor2(void)
234 +{
235 +#ifndef  __svgalib__
236 +   if (!gui) {
237 +       fprintf(stderr,"Alas, master, no preferences window will be available.\n"
238 +                      "If you wish to see one, make sure the 'wish' interpreter\n"
239 +                      "(Tk version >= 4.1) is installed in your path.\n"
240 +                      "You can still use Frodo, though. Use F10 to quit, \n"
241 +                      "F11 to cause an NMI and F12 to reset the C64.\n"
242 +                      "You can change the preferences by editing ~/.frodorc\n");
243 +   }
244 +#endif // SVGAlib
245 +
246 +       gettimeofday(&tv_start, NULL);
247 +}
248 +
249 +
250 +/*
251 + *  Destructor, system-dependent things
252 + */
253 +
254 +void C64::c64_dtor(void)
255 +{
256 +}
257 +
258 +
259 +/*
260 + *  Start main emulation thread
261 + */
262 +
263 +void C64::Run(void)
264 +{
265 +       // Reset chips
266 +       TheCPU->Reset();
267 +       TheSID->Reset();
268 +       TheCIA1->Reset();
269 +       TheCIA2->Reset();
270 +       TheCPU1541->Reset();
271 +
272 +       // Patch kernal IEC routines
273 +       orig_kernal_1d84 = Kernal[0x1d84];
274 +       orig_kernal_1d85 = Kernal[0x1d85];
275 +       PatchKernal(ThePrefs.FastReset, ThePrefs.Emul1541Proc);
276 +
277 +       quit_thyself = false;
278 +       thread_func();
279 +}
280 +
281 +
282 +/*
283 + *  Vertical blank: Poll keyboard and joysticks, update window
284 + */
285 +
286 +void C64::VBlank(bool draw_frame)
287 +{
288 +       // Poll keyboard
289 +       TheDisplay->PollKeyboard(TheCIA1->KeyMatrix, TheCIA1->RevMatrix, &joykey);
290 +       if (TheDisplay->quit_requested)
291 +               quit_thyself = true;
292 +
293 +       // Poll joysticks
294 +       TheCIA1->Joystick1 = poll_joystick(0);
295 +       TheCIA1->Joystick2 = poll_joystick(1);
296 +
297 +       if (ThePrefs.JoystickSwap) {
298 +               uint8 tmp = TheCIA1->Joystick1;
299 +               TheCIA1->Joystick1 = TheCIA1->Joystick2;
300 +               TheCIA1->Joystick2 = tmp;
301 +       }
302 +
303 +       // Joystick keyboard emulation
304 +       if (TheDisplay->NumLock())
305 +               TheCIA1->Joystick1 &= joykey;
306 +       else
307 +               TheCIA1->Joystick2 &= joykey;
308 +
309 +       // Count TOD clocks
310 +       TheCIA1->CountTOD();
311 +       TheCIA2->CountTOD();
312 +
313 +       // Update window if needed
314 +       if (draw_frame) {
315 +       TheDisplay->Update();
316 +
317 +               // Calculate time between VBlanks, display speedometer
318 +               struct timeval tv;
319 +               gettimeofday(&tv, NULL);
320 +               if ((tv.tv_usec -= tv_start.tv_usec) < 0) {
321 +                       tv.tv_usec += 1000000;
322 +                       tv.tv_sec -= 1;
323 +               }
324 +               tv.tv_sec -= tv_start.tv_sec;
325 +               double elapsed_time = (double)tv.tv_sec * 1000000 + tv.tv_usec;
326 +               speed_index = 20000 / (elapsed_time + 1) * ThePrefs.SkipFrames * 100;
327 +
328 +               // Limit speed to 100% if desired
329 +               if ((speed_index > 100) && ThePrefs.LimitSpeed) {
330 +                       usleep((unsigned long)(ThePrefs.SkipFrames * 20000 - elapsed_time));
331 +                       speed_index = 100;
332 +               }
333 +
334 +               gettimeofday(&tv_start, NULL);
335 +
336 +               TheDisplay->Speedometer((int)speed_index);
337 +       }
338 +}
339 +
340 +
341 +/*
342 + *  Open/close joystick drivers given old and new state of
343 + *  joystick preferences
344 + */
345 +
346 +void C64::open_close_joysticks(bool oldjoy1, bool oldjoy2, bool newjoy1, bool newjoy2)
347 +{
348 +#ifdef HAVE_LINUX_JOYSTICK_H
349 +       if (oldjoy1 != newjoy1) {
350 +               joy_minx = joy_miny = 32767;    // Reset calibration
351 +               joy_maxx = joy_maxy = -32768;
352 +               if (newjoy1) {
353 +                       joyfd[0] = open("/dev/js0", O_RDONLY);
354 +                       if (joyfd[0] < 0)
355 +                               fprintf(stderr, "Couldn't open joystick 1\n");
356 +               } else {
357 +                       close(joyfd[0]);
358 +                       joyfd[0] = -1;
359 +               }
360 +       }
361 +
362 +       if (oldjoy2 != newjoy2) {
363 +               joy_minx = joy_miny = 32767;    // Reset calibration
364 +               joy_maxx = joy_maxy = -32768;
365 +               if (newjoy2) {
366 +                       joyfd[1] = open("/dev/js1", O_RDONLY);
367 +                       if (joyfd[1] < 0)
368 +                               fprintf(stderr, "Couldn't open joystick 2\n");
369 +               } else {
370 +                       close(joyfd[1]);
371 +                       joyfd[1] = -1;
372 +               }
373 +       }
374 +#endif
375 +}
376 +
377 +
378 +/*
379 + *  Poll joystick port, return CIA mask
380 + */
381 +
382 +uint8 C64::poll_joystick(int port)
383 +{
384 +#ifdef HAVE_LINUX_JOYSTICK_H
385 +       JS_DATA_TYPE js;
386 +       uint8 j = 0xff;
387 +
388 +       if (joyfd[port] >= 0) {
389 +               if (read(joyfd[port], &js, JS_RETURN) == JS_RETURN) {
390 +                       if (js.x > joy_maxx)
391 +                               joy_maxx = js.x;
392 +                       if (js.x < joy_minx)
393 +                               joy_minx = js.x;
394 +                       if (js.y > joy_maxy)
395 +                               joy_maxy = js.y;
396 +                       if (js.y < joy_miny)
397 +                               joy_miny = js.y;
398 +
399 +                       if (joy_maxx-joy_minx < 100 || joy_maxy-joy_miny < 100)
400 +                               return 0xff;
401 +
402 +                       if (js.x < (joy_minx + (joy_maxx-joy_minx)/3))
403 +                               j &= 0xfb;                                                      // Left
404 +                       else if (js.x > (joy_minx + 2*(joy_maxx-joy_minx)/3))
405 +                               j &= 0xf7;                                                      // Right
406 +
407 +                       if (js.y < (joy_miny + (joy_maxy-joy_miny)/3))
408 +                               j &= 0xfe;                                                      // Up
409 +                       else if (js.y > (joy_miny + 2*(joy_maxy-joy_miny)/3))
410 +                               j &= 0xfd;                                                      // Down
411 +
412 +                       if (js.buttons & 1)
413 +                               j &= 0xef;                                                      // Button
414 +               }
415 +       }
416 +       return j;
417 +#else
418 +       return 0xff;
419 +#endif
420 +}
421 +
422 +
423 +/*
424 + * The emulation's main loop
425 + */
426 +
427 +void C64::thread_func(void)
428 +{
429 +       int linecnt = 0;
430 +
431 +#ifdef FRODO_SC
432 +       while (!quit_thyself) {
433 +
434 +               // The order of calls is important here
435 +               if (TheVIC->EmulateCycle())
436 +                       TheSID->EmulateLine();
437 +               TheCIA1->CheckIRQs();
438 +               TheCIA2->CheckIRQs();
439 +               TheCIA1->EmulateCycle();
440 +               TheCIA2->EmulateCycle();
441 +               TheCPU->EmulateCycle();
442 +
443 +               if (ThePrefs.Emul1541Proc) {
444 +                       TheCPU1541->CountVIATimers(1);
445 +                       if (!TheCPU1541->Idle)
446 +                               TheCPU1541->EmulateCycle();
447 +               }
448 +               CycleCounter++;
449 +#else
450 +       while (!quit_thyself) {
451 +
452 +               // The order of calls is important here
453 +               int cycles = TheVIC->EmulateLine();
454 +               TheSID->EmulateLine();
455 +#if !PRECISE_CIA_CYCLES
456 +               TheCIA1->EmulateLine(ThePrefs.CIACycles);
457 +               TheCIA2->EmulateLine(ThePrefs.CIACycles);
458 +#endif
459 +
460 +               if (ThePrefs.Emul1541Proc) {
461 +                       int cycles_1541 = ThePrefs.FloppyCycles;
462 +                       TheCPU1541->CountVIATimers(cycles_1541);
463 +
464 +                       if (!TheCPU1541->Idle) {
465 +                               // 1541 processor active, alternately execute
466 +                               //  6502 and 6510 instructions until both have
467 +                               //  used up their cycles
468 +                               while (cycles >= 0 || cycles_1541 >= 0)
469 +                                       if (cycles > cycles_1541)
470 +                                               cycles -= TheCPU->EmulateLine(1);
471 +                                       else
472 +                                               cycles_1541 -= TheCPU1541->EmulateLine(1);
473 +                       } else
474 +                               TheCPU->EmulateLine(cycles);
475 +               } else
476 +                       // 1541 processor disabled, only emulate 6510
477 +                       TheCPU->EmulateLine(cycles);
478 +#endif
479 +               linecnt++;
480 +#if !defined(__svgalib__)
481 +               if ((linecnt & 0xfff) == 0 && gui) {
482 +
483 +                       // check for command from GUI process
484 +               // fprintf(stderr,":");
485 +                       while (gui->probe()) {
486 +                               char c;
487 +                               if (gui->eread(&c, 1) != 1) {
488 +                                       delete gui;
489 +                                       gui = 0;
490 +                                       fprintf(stderr,"Oops, GUI process died...\n");
491 +                               } else {
492 +               // fprintf(stderr,"%c",c);
493 +                                       switch (c) {
494 +                                               case 'q':
495 +                                                       quit_thyself = true;
496 +                                                       break;
497 +                                               case 'r':
498 +                                                       Reset();
499 +                                                       break;
500 +                                               case 'p':{
501 +                                                       Prefs *np = Frodo::reload_prefs();
502 +                                                       NewPrefs(np);
503 +                                                       ThePrefs = *np;
504 +                                                       break;
505 +                                               }
506 +                                               default:
507 +                                                       break;
508 +                                       }
509 +                               }
510 +                       }
511 +               }
512 +#endif
513 +       }
514 +}
515 diff -urN Src/configarm Src/configarm
516 --- Src/configarm       1970-01-01 01:00:00.000000000 +0100
517 +++ Src/configarm       2002-11-21 17:07:02.000000000 +0100
518 @@ -0,0 +1,2 @@
519 +configure --host=i386-linux --x-includes=/opt/Qtopia/sharp/include/ --x-libraries=/opt/Qtopia/sharp/lib/ --with-sdl-prefix=/opt/Qtopia/sharp/ --enable-qtopia
520 +
521 diff -urN Src/configure Src/configure
522 --- Src/configure       2002-01-02 17:44:11.000000000 +0100
523 +++ Src/configure       2002-11-21 17:07:03.000000000 +0100
524 @@ -1,24 +1,18 @@
525  #! /bin/sh
526  # Guess values for system-dependent variables and create Makefiles.
527 -# Generated by Autoconf 2.52d.
528 +# Generated by GNU Autoconf 2.53.
529  #
530 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
531 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
532  # Free Software Foundation, Inc.
533  # This configure script is free software; the Free Software Foundation
534  # gives unlimited permission to copy, distribute and modify it.
535  
536 -# Avoid depending upon Character Ranges.
537 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
538 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
539 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
540 -as_cr_digits='0123456789'
541 -as_cr_alnum=$as_cr_Letters$as_cr_digits
542 -
543 -# Sed expression to map a string onto a valid variable name.
544 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
545 +if expr a : '\(a\)' >/dev/null 2>&1; then
546 +  as_expr=expr
547 +else
548 +  as_expr=false
549 +fi
550  
551 -# Sed expression to map a string onto a valid CPP name.
552 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
553  
554  ## --------------------- ##
555  ## M4sh Initialization.  ##
556 @@ -32,8 +26,165 @@
557    set -o posix
558  fi
559  
560 +# NLS nuisances.
561 +# Support unset when possible.
562 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
563 +  as_unset=unset
564 +else
565 +  as_unset=false
566 +fi
567 +
568 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
569 +    { $as_unset LANG || test "${LANG+set}" != set; } ||
570 +      { LANG=C; export LANG; }
571 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
572 +    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
573 +      { LC_ALL=C; export LC_ALL; }
574 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
575 +    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
576 +      { LC_TIME=C; export LC_TIME; }
577 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
578 +    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
579 +      { LC_CTYPE=C; export LC_CTYPE; }
580 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
581 +    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
582 +      { LANGUAGE=C; export LANGUAGE; }
583 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
584 +    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
585 +      { LC_COLLATE=C; export LC_COLLATE; }
586 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
587 +    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
588 +      { LC_NUMERIC=C; export LC_NUMERIC; }
589 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
590 +    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
591 +      { LC_MESSAGES=C; export LC_MESSAGES; }
592 +
593 +
594  # Name of the executable.
595 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
596 +as_me=`(basename "$0") 2>/dev/null ||
597 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
598 +        X"$0" : 'X\(//\)$' \| \
599 +        X"$0" : 'X\(/\)$' \| \
600 +        .     : '\(.\)' 2>/dev/null ||
601 +echo X/"$0" |
602 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
603 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
604 +         /^X\/\(\/\).*/{ s//\1/; q; }
605 +         s/.*/./; q'`
606 +
607 +# PATH needs CR, and LINENO needs CR and PATH.
608 +# Avoid depending upon Character Ranges.
609 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
610 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
611 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
612 +as_cr_digits='0123456789'
613 +as_cr_alnum=$as_cr_Letters$as_cr_digits
614 +
615 +# The user is always right.
616 +if test "${PATH_SEPARATOR+set}" != set; then
617 +  echo "#! /bin/sh" >conftest.sh
618 +  echo  "exit 0"   >>conftest.sh
619 +  chmod +x conftest.sh
620 +  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
621 +    PATH_SEPARATOR=';'
622 +  else
623 +    PATH_SEPARATOR=:
624 +  fi
625 +  rm -f conftest.sh
626 +fi
627 +
628 +
629 +  as_lineno_1=$LINENO
630 +  as_lineno_2=$LINENO
631 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
632 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
633 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
634 +  # Find who we are.  Look in the path if we contain no path at all
635 +  # relative or not.
636 +  case $0 in
637 +    *[\\/]* ) as_myself=$0 ;;
638 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
639 +for as_dir in $PATH
640 +do
641 +  IFS=$as_save_IFS
642 +  test -z "$as_dir" && as_dir=.
643 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
644 +done
645 +
646 +       ;;
647 +  esac
648 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
649 +  # in which case we are not to be found in the path.
650 +  if test "x$as_myself" = x; then
651 +    as_myself=$0
652 +  fi
653 +  if test ! -f "$as_myself"; then
654 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
655 +   { (exit 1); exit 1; }; }
656 +  fi
657 +  case $CONFIG_SHELL in
658 +  '')
659 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
660 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
661 +do
662 +  IFS=$as_save_IFS
663 +  test -z "$as_dir" && as_dir=.
664 +  for as_base in sh bash ksh sh5; do
665 +        case $as_dir in
666 +        /*)
667 +          if ("$as_dir/$as_base" -c '
668 +  as_lineno_1=$LINENO
669 +  as_lineno_2=$LINENO
670 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
671 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
672 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
673 +            CONFIG_SHELL=$as_dir/$as_base
674 +            export CONFIG_SHELL
675 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
676 +          fi;;
677 +        esac
678 +       done
679 +done
680 +;;
681 +  esac
682 +
683 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
684 +  # uniformly replaced by the line number.  The first 'sed' inserts a
685 +  # line-number line before each line; the second 'sed' does the real
686 +  # work.  The second script uses 'N' to pair each line-number line
687 +  # with the numbered line, and appends trailing '-' during
688 +  # substitution so that $LINENO is not a special case at line end.
689 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
690 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
691 +  sed '=' <$as_myself |
692 +    sed '
693 +      N
694 +      s,$,-,
695 +      : loop
696 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
697 +      t loop
698 +      s,-$,,
699 +      s,^['$as_cr_digits']*\n,,
700 +    ' >$as_me.lineno &&
701 +  chmod +x $as_me.lineno ||
702 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
703 +   { (exit 1); exit 1; }; }
704 +
705 +  # Don't try to exec as it changes $[0], causing all sort of problems
706 +  # (the dirname of $[0] is not the place where we might find the
707 +  # original and so on.  Autoconf is especially sensible to this).
708 +  . ./$as_me.lineno
709 +  # Exit status is that of the last command.
710 +  exit
711 +}
712 +
713 +
714 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
715 +  *c*,-n*) ECHO_N= ECHO_C='
716 +' ECHO_T='     ' ;;
717 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
718 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
719 +esac
720  
721  if expr a : '\(a\)' >/dev/null 2>&1; then
722    as_expr=expr
723 @@ -61,22 +212,12 @@
724  
725  as_executable_p="test -f"
726  
727 -# Support unset when possible.
728 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
729 -  as_unset=unset
730 -else
731 -  as_unset=false
732 -fi
733 +# Sed expression to map a string onto a valid CPP name.
734 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
735 +
736 +# Sed expression to map a string onto a valid variable name.
737 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
738  
739 -# NLS nuisances.
740 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
741 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
742 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
743 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
744 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
745 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
746 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
747 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
748  
749  # IFS
750  # We need space, tab and new line, in precisely that order.
751 @@ -85,7 +226,8 @@
752  IFS="  $as_nl"
753  
754  # CDPATH.
755 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
756 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
757 +
758  
759  # Name of the host.
760  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
761 @@ -100,7 +242,8 @@
762  ac_default_prefix=/usr/local
763  cross_compiling=no
764  subdirs=
765 -MFLAGS= MAKEFLAGS=
766 +MFLAGS=
767 +MAKEFLAGS=
768  SHELL=${CONFIG_SHELL-/bin/sh}
769  
770  # Maximum number of lines to put in a shell here document.
771 @@ -108,6 +251,13 @@
772  # only ac_max_sed_lines should be used.
773  : ${ac_max_here_lines=38}
774  
775 +# Identity of this package.
776 +PACKAGE_NAME=
777 +PACKAGE_TARNAME=
778 +PACKAGE_VERSION=
779 +PACKAGE_STRING=
780 +PACKAGE_BUGREPORT=
781 +
782  ac_unique_file="VIC.cpp"
783  # Factoring default headers for most tests.
784  ac_includes_default="\
785 @@ -146,6 +296,7 @@
786  # include <unistd.h>
787  #endif"
788  
789 +
790  # Initialize some variables set by options.
791  ac_init_help=
792  ac_init_version=false
793 @@ -184,13 +335,6 @@
794  infodir='${prefix}/info'
795  mandir='${prefix}/man'
796  
797 -# Identity of this package.
798 -PACKAGE_NAME=
799 -PACKAGE_TARNAME=
800 -PACKAGE_VERSION=
801 -PACKAGE_STRING=
802 -PACKAGE_BUGREPORT=
803 -
804  ac_prev=
805  for ac_option
806  do
807 @@ -323,7 +467,7 @@
808      with_fp=no ;;
809  
810    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
811 -  | --no-cr | --no-c)
812 +  | --no-cr | --no-c | -n)
813      no_create=yes ;;
814  
815    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
816 @@ -502,7 +646,7 @@
817    eval ac_val=$`echo $ac_var`
818    case $ac_val in
819      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 -    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
821 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822     { (exit 1); exit 1; }; };;
823    esac
824  done
825 @@ -514,18 +658,19 @@
826    eval ac_val=$`echo $ac_var`
827    case $ac_val in
828      [\\/$]* | ?:[\\/]* ) ;;
829 -    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
830 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831     { (exit 1); exit 1; }; };;
832    esac
833  done
834  
835  # There might be people who depend on the old broken behavior: `$host'
836  # used to hold the argument of --host etc.
837 +# FIXME: To remove some day.
838  build=$build_alias
839  host=$host_alias
840  target=$target_alias
841  
842 -# FIXME: should be removed in autoconf 3.0.
843 +# FIXME: To remove some day.
844  if test "x$host_alias" != x; then
845    if test "x$build_alias" = x; then
846      cross_compiling=maybe
847 @@ -541,13 +686,23 @@
848  
849  test "$silent" = yes && exec 6>/dev/null
850  
851 +
852  # Find the source files, if location was not specified.
853  if test -z "$srcdir"; then
854    ac_srcdir_defaulted=yes
855    # Try the directory containing this script, then its parent.
856 -  ac_prog=$0
857 -  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
858 -  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
859 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
860 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 +         X"$0" : 'X\(//\)[^/]' \| \
862 +         X"$0" : 'X\(//\)$' \| \
863 +         X"$0" : 'X\(/\)' \| \
864 +         .     : '\(.\)' 2>/dev/null ||
865 +echo X"$0" |
866 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 +         /^X\(\/\/\)$/{ s//\1/; q; }
869 +         /^X\(\/\).*/{ s//\1/; q; }
870 +         s/.*/./; q'`
871    srcdir=$ac_confdir
872    if test ! -r $srcdir/$ac_unique_file; then
873      srcdir=..
874 @@ -680,6 +835,7 @@
875    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
876    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
877    --disable-sdltest       Do not try to compile and run a test SDL program
878 +  --enable-qtopia         Make a Qtopia Version (Sharp Zaurus) of Frodo
879    --enable-kbd-lang-de    Use german keyboard layout
880    --enable-kbd-lang-us    Use american keyboard layout
881  
882 @@ -711,11 +867,13 @@
883    # If there are subdirs, report their specific --help.
884    ac_popdir=`pwd`
885    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 -    cd $ac_dir
887 -    if test "$ac_dir" != .; then
888 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
889 +    test -d $ac_dir || continue
890 +    ac_builddir=.
891 +
892 +if test "$ac_dir" != .; then
893 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894    # A "../" for each directory in $ac_dir_suffix.
895 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
896 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897  else
898    ac_dir_suffix= ac_top_builddir=
899  fi
900 @@ -735,7 +893,14 @@
901      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902      ac_top_srcdir=$ac_top_builddir$srcdir ;;
903  esac
904 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905 +# absolute.
906 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907 +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
908 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910  
911 +    cd $ac_dir
912      # Check for guested configure; otherwise get Cygnus style configure.
913      if test -f $ac_srcdir/configure.gnu; then
914        echo
915 @@ -758,7 +923,7 @@
916  if $ac_init_version; then
917    cat <<\_ACEOF
918  
919 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
920 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921  Free Software Foundation, Inc.
922  This configure script is free software; the Free Software Foundation
923  gives unlimited permission to copy, distribute and modify it.
924 @@ -771,7 +936,7 @@
925  running configure, to aid debugging if configure makes a mistake.
926  
927  It was created by $as_me, which was
928 -generated by GNU Autoconf 2.52d.  Invocation command line was
929 +generated by GNU Autoconf 2.53.  Invocation command line was
930  
931    $ $0 $@
932  
933 @@ -799,18 +964,28 @@
934  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
935  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
936  
937 -PATH = $PATH
938 -
939  _ASUNAME
940 +
941 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
942 +for as_dir in $PATH
943 +do
944 +  IFS=$as_save_IFS
945 +  test -z "$as_dir" && as_dir=.
946 +  echo "PATH: $as_dir"
947 +done
948 +
949  } >&5
950  
951  cat >&5 <<_ACEOF
952 +
953 +
954  ## ----------- ##
955  ## Core tests. ##
956  ## ----------- ##
957  
958  _ACEOF
959  
960 +
961  # Keep a trace of the command line.
962  # Strip out --no-create and --no-recursion so they do not pile up.
963  # Also quote any args containing shell meta-characters.
964 @@ -820,15 +995,17 @@
965  do
966    case $ac_arg in
967    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 -  | --no-cr | --no-c) ;;
969 +  | --no-cr | --no-c | -n ) continue ;;
970    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
972 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 +    continue ;;
974    *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
975 -    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
976 -    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
977 -    ac_sep=" " ;;
978 -  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
979 -     ac_sep=" " ;;
980 +    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
981 +  esac
982 +  case " $ac_configure_args " in
983 +    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
984 +    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
985 +       ac_sep=" " ;;
986    esac
987    # Get rid of the leading space.
988  done
989 @@ -878,7 +1055,8 @@
990        echo "$as_me: caught signal $ac_signal"
991      echo "$as_me: exit $exit_status"
992    } >&5
993 -  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 +  rm -f core core.* *.core &&
995 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
996      exit $exit_status
997       ' 0
998  for ac_signal in 1 2 13 15; do
999 @@ -891,6 +1069,33 @@
1000  # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1001  echo >confdefs.h
1002  
1003 +# Predefined preprocessor variables.
1004 +
1005 +cat >>confdefs.h <<_ACEOF
1006 +#define PACKAGE_NAME "$PACKAGE_NAME"
1007 +_ACEOF
1008 +
1009 +
1010 +cat >>confdefs.h <<_ACEOF
1011 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1012 +_ACEOF
1013 +
1014 +
1015 +cat >>confdefs.h <<_ACEOF
1016 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1017 +_ACEOF
1018 +
1019 +
1020 +cat >>confdefs.h <<_ACEOF
1021 +#define PACKAGE_STRING "$PACKAGE_STRING"
1022 +_ACEOF
1023 +
1024 +
1025 +cat >>confdefs.h <<_ACEOF
1026 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1027 +_ACEOF
1028 +
1029 +
1030  # Let the site file select an alternate cache file if it wants to.
1031  # Prefer explicitly selected file to automatically selected ones.
1032  if test -z "$CONFIG_SITE"; then
1033 @@ -902,7 +1107,7 @@
1034  fi
1035  for ac_site_file in $CONFIG_SITE; do
1036    if test -r "$ac_site_file"; then
1037 -    { echo "$as_me:905: loading site script $ac_site_file" >&5
1038 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1039  echo "$as_me: loading site script $ac_site_file" >&6;}
1040      sed 's/^/| /' "$ac_site_file" >&5
1041      . "$ac_site_file"
1042 @@ -913,7 +1118,7 @@
1043    # Some versions of bash will fail to source /dev/null (special
1044    # files actually), so we avoid doing that.
1045    if test -f "$cache_file"; then
1046 -    { echo "$as_me:916: loading cache $cache_file" >&5
1047 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1048  echo "$as_me: loading cache $cache_file" >&6;}
1049      case $cache_file in
1050        [\\/]* | ?:[\\/]* ) . $cache_file;;
1051 @@ -921,7 +1126,7 @@
1052      esac
1053    fi
1054  else
1055 -  { echo "$as_me:924: creating cache $cache_file" >&5
1056 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1057  echo "$as_me: creating cache $cache_file" >&6;}
1058    >$cache_file
1059  fi
1060 @@ -937,42 +1142,42 @@
1061    eval ac_new_val="\$ac_env_${ac_var}_value"
1062    case $ac_old_set,$ac_new_set in
1063      set,)
1064 -      { echo "$as_me:940: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1065 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1066  echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1067        ac_cache_corrupted=: ;;
1068      ,set)
1069 -      { echo "$as_me:944: error: \`$ac_var' was not set in the previous run" >&5
1070 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1071  echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1072        ac_cache_corrupted=: ;;
1073      ,);;
1074      *)
1075        if test "x$ac_old_val" != "x$ac_new_val"; then
1076 -        { echo "$as_me:950: error: \`$ac_var' has changed since the previous run:" >&5
1077 +        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1078  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1079 -        { echo "$as_me:952:   former value:  $ac_old_val" >&5
1080 +        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1081  echo "$as_me:   former value:  $ac_old_val" >&2;}
1082 -        { echo "$as_me:954:   current value: $ac_new_val" >&5
1083 +        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1084  echo "$as_me:   current value: $ac_new_val" >&2;}
1085          ac_cache_corrupted=:
1086        fi;;
1087    esac
1088 -  # Pass precious variables to config.status.  It doesn't matter if
1089 -  # we pass some twice (in addition to the command line arguments).
1090 +  # Pass precious variables to config.status.
1091    if test "$ac_new_set" = set; then
1092      case $ac_new_val in
1093      *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1095 -      ac_configure_args="$ac_configure_args '$ac_arg'"
1096 -      ;;
1097 -    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1098 -       ;;
1099 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 +    *) ac_arg=$ac_var=$ac_new_val ;;
1101 +    esac
1102 +    case " $ac_configure_args " in
1103 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1104 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1105      esac
1106    fi
1107  done
1108  if $ac_cache_corrupted; then
1109 -  { echo "$as_me:973: error: changes in the environment can compromise the build" >&5
1110 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1111  echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1112 -  { { echo "$as_me:975: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1113 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1114  echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1115     { (exit 1); exit 1; }; }
1116  fi
1117 @@ -983,26 +1188,25 @@
1118  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1119  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1120  
1121 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1122 -  *c*,-n*) ECHO_N= ECHO_C='
1123 -' ECHO_T='     ' ;;
1124 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1125 -  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1126 -esac
1127 -echo "#! $SHELL" >conftest.sh
1128 -echo  "exit 0"   >>conftest.sh
1129 -chmod +x conftest.sh
1130 -if { (echo "$as_me:995: PATH=\".;.\"; conftest.sh") >&5
1131 -  (PATH=".;."; conftest.sh) 2>&5
1132 -  ac_status=$?
1133 -  echo "$as_me:998: \$? = $ac_status" >&5
1134 -  (exit $ac_status); }; then
1135 -  ac_path_separator=';'
1136 -else
1137 -  ac_path_separator=:
1138 -fi
1139 -PATH_SEPARATOR="$ac_path_separator"
1140 -rm -f conftest.sh
1141 +
1142 +
1143 +
1144 +
1145 +
1146 +
1147 +
1148 +
1149 +
1150 +
1151 +
1152 +
1153 +
1154 +
1155 +
1156 +
1157 +
1158 +
1159 +
1160  
1161  ac_ext=c
1162  ac_cpp='$CPP $CPPFLAGS'
1163 @@ -1012,7 +1216,7 @@
1164  if test -n "$ac_tool_prefix"; then
1165    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1166  set dummy ${ac_tool_prefix}gcc; ac_word=$2
1167 -echo "$as_me:1015: checking for $ac_word" >&5
1168 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1169  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1170  if test "${ac_cv_prog_CC+set}" = set; then
1171    echo $ECHO_N "(cached) $ECHO_C" >&6
1172 @@ -1020,25 +1224,28 @@
1173    if test -n "$CC"; then
1174    ac_cv_prog_CC="$CC" # Let the user override the test.
1175  else
1176 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1177 -ac_dummy="$PATH"
1178 -for ac_dir in $ac_dummy; do
1179 -  IFS=$ac_save_IFS
1180 -  test -z "$ac_dir" && ac_dir=.
1181 -  $as_executable_p "$ac_dir/$ac_word" || continue
1182 -ac_cv_prog_CC="${ac_tool_prefix}gcc"
1183 -echo "$as_me:1030: found $ac_dir/$ac_word" >&5
1184 -break
1185 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 +for as_dir in $PATH
1187 +do
1188 +  IFS=$as_save_IFS
1189 +  test -z "$as_dir" && as_dir=.
1190 +  for ac_exec_ext in '' $ac_executable_extensions; do
1191 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1192 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1193 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1194 +    break 2
1195 +  fi
1196 +done
1197  done
1198  
1199  fi
1200  fi
1201  CC=$ac_cv_prog_CC
1202  if test -n "$CC"; then
1203 -  echo "$as_me:1038: result: $CC" >&5
1204 +  echo "$as_me:$LINENO: result: $CC" >&5
1205  echo "${ECHO_T}$CC" >&6
1206  else
1207 -  echo "$as_me:1041: result: no" >&5
1208 +  echo "$as_me:$LINENO: result: no" >&5
1209  echo "${ECHO_T}no" >&6
1210  fi
1211  
1212 @@ -1047,7 +1254,7 @@
1213    ac_ct_CC=$CC
1214    # Extract the first word of "gcc", so it can be a program name with args.
1215  set dummy gcc; ac_word=$2
1216 -echo "$as_me:1050: checking for $ac_word" >&5
1217 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1218  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1220    echo $ECHO_N "(cached) $ECHO_C" >&6
1221 @@ -1055,25 +1262,28 @@
1222    if test -n "$ac_ct_CC"; then
1223    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1224  else
1225 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1226 -ac_dummy="$PATH"
1227 -for ac_dir in $ac_dummy; do
1228 -  IFS=$ac_save_IFS
1229 -  test -z "$ac_dir" && ac_dir=.
1230 -  $as_executable_p "$ac_dir/$ac_word" || continue
1231 -ac_cv_prog_ac_ct_CC="gcc"
1232 -echo "$as_me:1065: found $ac_dir/$ac_word" >&5
1233 -break
1234 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 +for as_dir in $PATH
1236 +do
1237 +  IFS=$as_save_IFS
1238 +  test -z "$as_dir" && as_dir=.
1239 +  for ac_exec_ext in '' $ac_executable_extensions; do
1240 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1241 +    ac_cv_prog_ac_ct_CC="gcc"
1242 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1243 +    break 2
1244 +  fi
1245 +done
1246  done
1247  
1248  fi
1249  fi
1250  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1251  if test -n "$ac_ct_CC"; then
1252 -  echo "$as_me:1073: result: $ac_ct_CC" >&5
1253 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1254  echo "${ECHO_T}$ac_ct_CC" >&6
1255  else
1256 -  echo "$as_me:1076: result: no" >&5
1257 +  echo "$as_me:$LINENO: result: no" >&5
1258  echo "${ECHO_T}no" >&6
1259  fi
1260  
1261 @@ -1086,7 +1296,7 @@
1262    if test -n "$ac_tool_prefix"; then
1263    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1264  set dummy ${ac_tool_prefix}cc; ac_word=$2
1265 -echo "$as_me:1089: checking for $ac_word" >&5
1266 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1267  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268  if test "${ac_cv_prog_CC+set}" = set; then
1269    echo $ECHO_N "(cached) $ECHO_C" >&6
1270 @@ -1094,25 +1304,28 @@
1271    if test -n "$CC"; then
1272    ac_cv_prog_CC="$CC" # Let the user override the test.
1273  else
1274 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 -ac_dummy="$PATH"
1276 -for ac_dir in $ac_dummy; do
1277 -  IFS=$ac_save_IFS
1278 -  test -z "$ac_dir" && ac_dir=.
1279 -  $as_executable_p "$ac_dir/$ac_word" || continue
1280 -ac_cv_prog_CC="${ac_tool_prefix}cc"
1281 -echo "$as_me:1104: found $ac_dir/$ac_word" >&5
1282 -break
1283 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 +for as_dir in $PATH
1285 +do
1286 +  IFS=$as_save_IFS
1287 +  test -z "$as_dir" && as_dir=.
1288 +  for ac_exec_ext in '' $ac_executable_extensions; do
1289 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1290 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
1291 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1292 +    break 2
1293 +  fi
1294 +done
1295  done
1296  
1297  fi
1298  fi
1299  CC=$ac_cv_prog_CC
1300  if test -n "$CC"; then
1301 -  echo "$as_me:1112: result: $CC" >&5
1302 +  echo "$as_me:$LINENO: result: $CC" >&5
1303  echo "${ECHO_T}$CC" >&6
1304  else
1305 -  echo "$as_me:1115: result: no" >&5
1306 +  echo "$as_me:$LINENO: result: no" >&5
1307  echo "${ECHO_T}no" >&6
1308  fi
1309  
1310 @@ -1121,7 +1334,7 @@
1311    ac_ct_CC=$CC
1312    # Extract the first word of "cc", so it can be a program name with args.
1313  set dummy cc; ac_word=$2
1314 -echo "$as_me:1124: checking for $ac_word" >&5
1315 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1316  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1318    echo $ECHO_N "(cached) $ECHO_C" >&6
1319 @@ -1129,25 +1342,28 @@
1320    if test -n "$ac_ct_CC"; then
1321    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1322  else
1323 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1324 -ac_dummy="$PATH"
1325 -for ac_dir in $ac_dummy; do
1326 -  IFS=$ac_save_IFS
1327 -  test -z "$ac_dir" && ac_dir=.
1328 -  $as_executable_p "$ac_dir/$ac_word" || continue
1329 -ac_cv_prog_ac_ct_CC="cc"
1330 -echo "$as_me:1139: found $ac_dir/$ac_word" >&5
1331 -break
1332 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 +for as_dir in $PATH
1334 +do
1335 +  IFS=$as_save_IFS
1336 +  test -z "$as_dir" && as_dir=.
1337 +  for ac_exec_ext in '' $ac_executable_extensions; do
1338 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 +    ac_cv_prog_ac_ct_CC="cc"
1340 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 +    break 2
1342 +  fi
1343 +done
1344  done
1345  
1346  fi
1347  fi
1348  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349  if test -n "$ac_ct_CC"; then
1350 -  echo "$as_me:1147: result: $ac_ct_CC" >&5
1351 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1352  echo "${ECHO_T}$ac_ct_CC" >&6
1353  else
1354 -  echo "$as_me:1150: result: no" >&5
1355 +  echo "$as_me:$LINENO: result: no" >&5
1356  echo "${ECHO_T}no" >&6
1357  fi
1358  
1359 @@ -1160,7 +1376,7 @@
1360  if test -z "$CC"; then
1361    # Extract the first word of "cc", so it can be a program name with args.
1362  set dummy cc; ac_word=$2
1363 -echo "$as_me:1163: checking for $ac_word" >&5
1364 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1365  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366  if test "${ac_cv_prog_CC+set}" = set; then
1367    echo $ECHO_N "(cached) $ECHO_C" >&6
1368 @@ -1169,19 +1385,22 @@
1369    ac_cv_prog_CC="$CC" # Let the user override the test.
1370  else
1371    ac_prog_rejected=no
1372 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1373 -ac_dummy="$PATH"
1374 -for ac_dir in $ac_dummy; do
1375 -  IFS=$ac_save_IFS
1376 -  test -z "$ac_dir" && ac_dir=.
1377 -  $as_executable_p "$ac_dir/$ac_word" || continue
1378 -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1379 -  ac_prog_rejected=yes
1380 -  continue
1381 -fi
1382 -ac_cv_prog_CC="cc"
1383 -echo "$as_me:1183: found $ac_dir/$ac_word" >&5
1384 -break
1385 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 +for as_dir in $PATH
1387 +do
1388 +  IFS=$as_save_IFS
1389 +  test -z "$as_dir" && as_dir=.
1390 +  for ac_exec_ext in '' $ac_executable_extensions; do
1391 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1393 +       ac_prog_rejected=yes
1394 +       continue
1395 +     fi
1396 +    ac_cv_prog_CC="cc"
1397 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 +    break 2
1399 +  fi
1400 +done
1401  done
1402  
1403  if test $ac_prog_rejected = yes; then
1404 @@ -1193,7 +1412,7 @@
1405      # However, it has the same basename, so the bogon will be chosen
1406      # first if we set CC to just the basename; use the full file name.
1407      shift
1408 -    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1409 +    set dummy "$as_dir/$ac_word" ${1+"$@"}
1410      shift
1411      ac_cv_prog_CC="$@"
1412    fi
1413 @@ -1202,10 +1421,10 @@
1414  fi
1415  CC=$ac_cv_prog_CC
1416  if test -n "$CC"; then
1417 -  echo "$as_me:1205: result: $CC" >&5
1418 +  echo "$as_me:$LINENO: result: $CC" >&5
1419  echo "${ECHO_T}$CC" >&6
1420  else
1421 -  echo "$as_me:1208: result: no" >&5
1422 +  echo "$as_me:$LINENO: result: no" >&5
1423  echo "${ECHO_T}no" >&6
1424  fi
1425  
1426 @@ -1216,7 +1435,7 @@
1427    do
1428      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1429  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1430 -echo "$as_me:1219: checking for $ac_word" >&5
1431 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1432  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433  if test "${ac_cv_prog_CC+set}" = set; then
1434    echo $ECHO_N "(cached) $ECHO_C" >&6
1435 @@ -1224,25 +1443,28 @@
1436    if test -n "$CC"; then
1437    ac_cv_prog_CC="$CC" # Let the user override the test.
1438  else
1439 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 -ac_dummy="$PATH"
1441 -for ac_dir in $ac_dummy; do
1442 -  IFS=$ac_save_IFS
1443 -  test -z "$ac_dir" && ac_dir=.
1444 -  $as_executable_p "$ac_dir/$ac_word" || continue
1445 -ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1446 -echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1447 -break
1448 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 +for as_dir in $PATH
1450 +do
1451 +  IFS=$as_save_IFS
1452 +  test -z "$as_dir" && as_dir=.
1453 +  for ac_exec_ext in '' $ac_executable_extensions; do
1454 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1456 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 +    break 2
1458 +  fi
1459 +done
1460  done
1461  
1462  fi
1463  fi
1464  CC=$ac_cv_prog_CC
1465  if test -n "$CC"; then
1466 -  echo "$as_me:1242: result: $CC" >&5
1467 +  echo "$as_me:$LINENO: result: $CC" >&5
1468  echo "${ECHO_T}$CC" >&6
1469  else
1470 -  echo "$as_me:1245: result: no" >&5
1471 +  echo "$as_me:$LINENO: result: no" >&5
1472  echo "${ECHO_T}no" >&6
1473  fi
1474  
1475 @@ -1255,7 +1477,7 @@
1476  do
1477    # Extract the first word of "$ac_prog", so it can be a program name with args.
1478  set dummy $ac_prog; ac_word=$2
1479 -echo "$as_me:1258: checking for $ac_word" >&5
1480 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1481  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483    echo $ECHO_N "(cached) $ECHO_C" >&6
1484 @@ -1263,25 +1485,28 @@
1485    if test -n "$ac_ct_CC"; then
1486    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487  else
1488 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1489 -ac_dummy="$PATH"
1490 -for ac_dir in $ac_dummy; do
1491 -  IFS=$ac_save_IFS
1492 -  test -z "$ac_dir" && ac_dir=.
1493 -  $as_executable_p "$ac_dir/$ac_word" || continue
1494 -ac_cv_prog_ac_ct_CC="$ac_prog"
1495 -echo "$as_me:1273: found $ac_dir/$ac_word" >&5
1496 -break
1497 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 +for as_dir in $PATH
1499 +do
1500 +  IFS=$as_save_IFS
1501 +  test -z "$as_dir" && as_dir=.
1502 +  for ac_exec_ext in '' $ac_executable_extensions; do
1503 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 +    ac_cv_prog_ac_ct_CC="$ac_prog"
1505 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 +    break 2
1507 +  fi
1508 +done
1509  done
1510  
1511  fi
1512  fi
1513  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514  if test -n "$ac_ct_CC"; then
1515 -  echo "$as_me:1281: result: $ac_ct_CC" >&5
1516 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1517  echo "${ECHO_T}$ac_ct_CC" >&6
1518  else
1519 -  echo "$as_me:1284: result: no" >&5
1520 +  echo "$as_me:$LINENO: result: no" >&5
1521  echo "${ECHO_T}no" >&6
1522  fi
1523  
1524 @@ -1293,32 +1518,33 @@
1525  
1526  fi
1527  
1528 -test -z "$CC" && { { echo "$as_me:1296: error: no acceptable cc found in \$PATH" >&5
1529 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1530 +
1531 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1532 +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1533     { (exit 1); exit 1; }; }
1534  
1535  # Provide some information about the compiler.
1536 -echo "$as_me:1301:" \
1537 +echo "$as_me:$LINENO:" \
1538       "checking for C compiler version" >&5
1539  ac_compiler=`set X $ac_compile; echo $2`
1540 -{ (eval echo "$as_me:1304: \"$ac_compiler --version </dev/null >&5\"") >&5
1541 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1542    (eval $ac_compiler --version </dev/null >&5) 2>&5
1543    ac_status=$?
1544 -  echo "$as_me:1307: \$? = $ac_status" >&5
1545 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1546    (exit $ac_status); }
1547 -{ (eval echo "$as_me:1309: \"$ac_compiler -v </dev/null >&5\"") >&5
1548 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1549    (eval $ac_compiler -v </dev/null >&5) 2>&5
1550    ac_status=$?
1551 -  echo "$as_me:1312: \$? = $ac_status" >&5
1552 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1553    (exit $ac_status); }
1554 -{ (eval echo "$as_me:1314: \"$ac_compiler -V </dev/null >&5\"") >&5
1555 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1556    (eval $ac_compiler -V </dev/null >&5) 2>&5
1557    ac_status=$?
1558 -  echo "$as_me:1317: \$? = $ac_status" >&5
1559 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1560    (exit $ac_status); }
1561  
1562  cat >conftest.$ac_ext <<_ACEOF
1563 -#line 1321 "configure"
1564 +#line $LINENO "configure"
1565  #include "confdefs.h"
1566  
1567  #ifdef F77_DUMMY_MAIN
1568 @@ -1340,18 +1566,22 @@
1569  # Try to create an executable without -o first, disregard a.out.
1570  # It will help us diagnose broken compilers, and finding out an intuition
1571  # of exeext.
1572 -echo "$as_me:1343: checking for C compiler default output" >&5
1573 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
1574  echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1575  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1576 -if { (eval echo "$as_me:1346: \"$ac_link_default\"") >&5
1577 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1578    (eval $ac_link_default) 2>&5
1579    ac_status=$?
1580 -  echo "$as_me:1349: \$? = $ac_status" >&5
1581 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1582    (exit $ac_status); }; then
1583    # Find the output, starting from the most likely.  This scheme is
1584  # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1585  # resort.
1586 -for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1587 +
1588 +# Be careful to initialize this variable, since it used to be cached.
1589 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1590 +ac_cv_exeext=
1591 +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1592                  ls a.out conftest 2>/dev/null;
1593                  ls a.* conftest.* 2>/dev/null`; do
1594    case $ac_file in
1595 @@ -1369,34 +1599,34 @@
1596  else
1597    echo "$as_me: failed program was:" >&5
1598  cat conftest.$ac_ext >&5
1599 -{ { echo "$as_me:1372: error: C compiler cannot create executables" >&5
1600 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1601  echo "$as_me: error: C compiler cannot create executables" >&2;}
1602     { (exit 77); exit 77; }; }
1603  fi
1604  
1605  ac_exeext=$ac_cv_exeext
1606 -echo "$as_me:1378: result: $ac_file" >&5
1607 +echo "$as_me:$LINENO: result: $ac_file" >&5
1608  echo "${ECHO_T}$ac_file" >&6
1609  
1610  # Check the compiler produces executables we can run.  If not, either
1611  # the compiler is broken, or we cross compile.
1612 -echo "$as_me:1383: checking whether the C compiler works" >&5
1613 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1614  echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1615  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1616  # If not cross compiling, check that we can run a simple program.
1617  if test "$cross_compiling" != yes; then
1618    if { ac_try='./$ac_file'
1619 -  { (eval echo "$as_me:1389: \"$ac_try\"") >&5
1620 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1621    (eval $ac_try) 2>&5
1622    ac_status=$?
1623 -  echo "$as_me:1392: \$? = $ac_status" >&5
1624 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625    (exit $ac_status); }; }; then
1626      cross_compiling=no
1627    else
1628      if test "$cross_compiling" = maybe; then
1629         cross_compiling=yes
1630      else
1631 -       { { echo "$as_me:1399: error: cannot run C compiled programs.
1632 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1633  If you meant to cross compile, use \`--host'." >&5
1634  echo "$as_me: error: cannot run C compiled programs.
1635  If you meant to cross compile, use \`--host'." >&2;}
1636 @@ -1404,24 +1634,24 @@
1637      fi
1638    fi
1639  fi
1640 -echo "$as_me:1407: result: yes" >&5
1641 +echo "$as_me:$LINENO: result: yes" >&5
1642  echo "${ECHO_T}yes" >&6
1643  
1644  rm -f a.out a.exe conftest$ac_cv_exeext
1645  ac_clean_files=$ac_clean_files_save
1646  # Check the compiler produces executables we can run.  If not, either
1647  # the compiler is broken, or we cross compile.
1648 -echo "$as_me:1414: checking whether we are cross compiling" >&5
1649 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1650  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1651 -echo "$as_me:1416: result: $cross_compiling" >&5
1652 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
1653  echo "${ECHO_T}$cross_compiling" >&6
1654  
1655 -echo "$as_me:1419: checking for executable suffix" >&5
1656 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1657 -if { (eval echo "$as_me:1421: \"$ac_link\"") >&5
1658 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
1659 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1660 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1661    (eval $ac_link) 2>&5
1662    ac_status=$?
1663 -  echo "$as_me:1424: \$? = $ac_status" >&5
1664 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665    (exit $ac_status); }; then
1666    # If both `conftest.exe' and `conftest' are `present' (well, observable)
1667  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1668 @@ -1437,25 +1667,25 @@
1669    esac
1670  done
1671  else
1672 -  { { echo "$as_me:1440: error: cannot compute EXEEXT: cannot compile and link" >&5
1673 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1674 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1675 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1676     { (exit 1); exit 1; }; }
1677  fi
1678  
1679  rm -f conftest$ac_cv_exeext
1680 -echo "$as_me:1446: result: $ac_cv_exeext" >&5
1681 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1682  echo "${ECHO_T}$ac_cv_exeext" >&6
1683  
1684  rm -f conftest.$ac_ext
1685  EXEEXT=$ac_cv_exeext
1686  ac_exeext=$EXEEXT
1687 -echo "$as_me:1452: checking for object suffix" >&5
1688 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1689 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
1690 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1691  if test "${ac_cv_objext+set}" = set; then
1692    echo $ECHO_N "(cached) $ECHO_C" >&6
1693  else
1694    cat >conftest.$ac_ext <<_ACEOF
1695 -#line 1458 "configure"
1696 +#line $LINENO "configure"
1697  #include "confdefs.h"
1698  
1699  #ifdef F77_DUMMY_MAIN
1700 @@ -1473,10 +1703,10 @@
1701  }
1702  _ACEOF
1703  rm -f conftest.o conftest.obj
1704 -if { (eval echo "$as_me:1476: \"$ac_compile\"") >&5
1705 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1706    (eval $ac_compile) 2>&5
1707    ac_status=$?
1708 -  echo "$as_me:1479: \$? = $ac_status" >&5
1709 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710    (exit $ac_status); }; then
1711    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1712    case $ac_file in
1713 @@ -1488,24 +1718,24 @@
1714  else
1715    echo "$as_me: failed program was:" >&5
1716  cat conftest.$ac_ext >&5
1717 -{ { echo "$as_me:1491: error: cannot compute OBJEXT: cannot compile" >&5
1718 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1719 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1720 +echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1721     { (exit 1); exit 1; }; }
1722  fi
1723  
1724  rm -f conftest.$ac_cv_objext conftest.$ac_ext
1725  fi
1726 -echo "$as_me:1498: result: $ac_cv_objext" >&5
1727 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1728  echo "${ECHO_T}$ac_cv_objext" >&6
1729  OBJEXT=$ac_cv_objext
1730  ac_objext=$OBJEXT
1731 -echo "$as_me:1502: checking whether we are using the GNU C compiler" >&5
1732 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1733  echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1734  if test "${ac_cv_c_compiler_gnu+set}" = set; then
1735    echo $ECHO_N "(cached) $ECHO_C" >&6
1736  else
1737    cat >conftest.$ac_ext <<_ACEOF
1738 -#line 1508 "configure"
1739 +#line $LINENO "configure"
1740  #include "confdefs.h"
1741  
1742  #ifdef F77_DUMMY_MAIN
1743 @@ -1526,16 +1756,16 @@
1744  }
1745  _ACEOF
1746  rm -f conftest.$ac_objext
1747 -if { (eval echo "$as_me:1529: \"$ac_compile\"") >&5
1748 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1749    (eval $ac_compile) 2>&5
1750    ac_status=$?
1751 -  echo "$as_me:1532: \$? = $ac_status" >&5
1752 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753    (exit $ac_status); } &&
1754           { ac_try='test -s conftest.$ac_objext'
1755 -  { (eval echo "$as_me:1535: \"$ac_try\"") >&5
1756 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1757    (eval $ac_try) 2>&5
1758    ac_status=$?
1759 -  echo "$as_me:1538: \$? = $ac_status" >&5
1760 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761    (exit $ac_status); }; }; then
1762    ac_compiler_gnu=yes
1763  else
1764 @@ -1547,19 +1777,19 @@
1765  ac_cv_c_compiler_gnu=$ac_compiler_gnu
1766  
1767  fi
1768 -echo "$as_me:1550: result: $ac_cv_c_compiler_gnu" >&5
1769 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1770  echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1771  GCC=`test $ac_compiler_gnu = yes && echo yes`
1772  ac_test_CFLAGS=${CFLAGS+set}
1773  ac_save_CFLAGS=$CFLAGS
1774  CFLAGS="-g"
1775 -echo "$as_me:1556: checking whether $CC accepts -g" >&5
1776 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1777  echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1778  if test "${ac_cv_prog_cc_g+set}" = set; then
1779    echo $ECHO_N "(cached) $ECHO_C" >&6
1780  else
1781    cat >conftest.$ac_ext <<_ACEOF
1782 -#line 1562 "configure"
1783 +#line $LINENO "configure"
1784  #include "confdefs.h"
1785  
1786  #ifdef F77_DUMMY_MAIN
1787 @@ -1577,16 +1807,16 @@
1788  }
1789  _ACEOF
1790  rm -f conftest.$ac_objext
1791 -if { (eval echo "$as_me:1580: \"$ac_compile\"") >&5
1792 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1793    (eval $ac_compile) 2>&5
1794    ac_status=$?
1795 -  echo "$as_me:1583: \$? = $ac_status" >&5
1796 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797    (exit $ac_status); } &&
1798           { ac_try='test -s conftest.$ac_objext'
1799 -  { (eval echo "$as_me:1586: \"$ac_try\"") >&5
1800 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1801    (eval $ac_try) 2>&5
1802    ac_status=$?
1803 -  echo "$as_me:1589: \$? = $ac_status" >&5
1804 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805    (exit $ac_status); }; }; then
1806    ac_cv_prog_cc_g=yes
1807  else
1808 @@ -1596,7 +1826,7 @@
1809  fi
1810  rm -f conftest.$ac_objext conftest.$ac_ext
1811  fi
1812 -echo "$as_me:1599: result: $ac_cv_prog_cc_g" >&5
1813 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1814  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1815  if test "$ac_test_CFLAGS" = set; then
1816    CFLAGS=$ac_save_CFLAGS
1817 @@ -1623,16 +1853,16 @@
1818  #endif
1819  _ACEOF
1820  rm -f conftest.$ac_objext
1821 -if { (eval echo "$as_me:1626: \"$ac_compile\"") >&5
1822 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823    (eval $ac_compile) 2>&5
1824    ac_status=$?
1825 -  echo "$as_me:1629: \$? = $ac_status" >&5
1826 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827    (exit $ac_status); } &&
1828           { ac_try='test -s conftest.$ac_objext'
1829 -  { (eval echo "$as_me:1632: \"$ac_try\"") >&5
1830 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831    (eval $ac_try) 2>&5
1832    ac_status=$?
1833 -  echo "$as_me:1635: \$? = $ac_status" >&5
1834 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835    (exit $ac_status); }; }; then
1836    for ac_declaration in \
1837     ''\
1838 @@ -1644,7 +1874,7 @@
1839     'void exit (int);'
1840  do
1841    cat >conftest.$ac_ext <<_ACEOF
1842 -#line 1647 "configure"
1843 +#line $LINENO "configure"
1844  #include "confdefs.h"
1845  #include <stdlib.h>
1846  $ac_declaration
1847 @@ -1663,16 +1893,16 @@
1848  }
1849  _ACEOF
1850  rm -f conftest.$ac_objext
1851 -if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5
1852 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1853    (eval $ac_compile) 2>&5
1854    ac_status=$?
1855 -  echo "$as_me:1669: \$? = $ac_status" >&5
1856 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857    (exit $ac_status); } &&
1858           { ac_try='test -s conftest.$ac_objext'
1859 -  { (eval echo "$as_me:1672: \"$ac_try\"") >&5
1860 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1861    (eval $ac_try) 2>&5
1862    ac_status=$?
1863 -  echo "$as_me:1675: \$? = $ac_status" >&5
1864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865    (exit $ac_status); }; }; then
1866    :
1867  else
1868 @@ -1682,7 +1912,7 @@
1869  fi
1870  rm -f conftest.$ac_objext conftest.$ac_ext
1871    cat >conftest.$ac_ext <<_ACEOF
1872 -#line 1685 "configure"
1873 +#line $LINENO "configure"
1874  #include "confdefs.h"
1875  $ac_declaration
1876  #ifdef F77_DUMMY_MAIN
1877 @@ -1700,16 +1930,16 @@
1878  }
1879  _ACEOF
1880  rm -f conftest.$ac_objext
1881 -if { (eval echo "$as_me:1703: \"$ac_compile\"") >&5
1882 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1883    (eval $ac_compile) 2>&5
1884    ac_status=$?
1885 -  echo "$as_me:1706: \$? = $ac_status" >&5
1886 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887    (exit $ac_status); } &&
1888           { ac_try='test -s conftest.$ac_objext'
1889 -  { (eval echo "$as_me:1709: \"$ac_try\"") >&5
1890 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891    (eval $ac_try) 2>&5
1892    ac_status=$?
1893 -  echo "$as_me:1712: \$? = $ac_status" >&5
1894 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895    (exit $ac_status); }; }; then
1896    break
1897  else
1898 @@ -1746,7 +1976,7 @@
1899    do
1900      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1901  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1902 -echo "$as_me:1749: checking for $ac_word" >&5
1903 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1904  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905  if test "${ac_cv_prog_CXX+set}" = set; then
1906    echo $ECHO_N "(cached) $ECHO_C" >&6
1907 @@ -1754,25 +1984,28 @@
1908    if test -n "$CXX"; then
1909    ac_cv_prog_CXX="$CXX" # Let the user override the test.
1910  else
1911 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1912 -ac_dummy="$PATH"
1913 -for ac_dir in $ac_dummy; do
1914 -  IFS=$ac_save_IFS
1915 -  test -z "$ac_dir" && ac_dir=.
1916 -  $as_executable_p "$ac_dir/$ac_word" || continue
1917 -ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1918 -echo "$as_me:1764: found $ac_dir/$ac_word" >&5
1919 -break
1920 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 +for as_dir in $PATH
1922 +do
1923 +  IFS=$as_save_IFS
1924 +  test -z "$as_dir" && as_dir=.
1925 +  for ac_exec_ext in '' $ac_executable_extensions; do
1926 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1928 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 +    break 2
1930 +  fi
1931 +done
1932  done
1933  
1934  fi
1935  fi
1936  CXX=$ac_cv_prog_CXX
1937  if test -n "$CXX"; then
1938 -  echo "$as_me:1772: result: $CXX" >&5
1939 +  echo "$as_me:$LINENO: result: $CXX" >&5
1940  echo "${ECHO_T}$CXX" >&6
1941  else
1942 -  echo "$as_me:1775: result: no" >&5
1943 +  echo "$as_me:$LINENO: result: no" >&5
1944  echo "${ECHO_T}no" >&6
1945  fi
1946  
1947 @@ -1785,7 +2018,7 @@
1948  do
1949    # Extract the first word of "$ac_prog", so it can be a program name with args.
1950  set dummy $ac_prog; ac_word=$2
1951 -echo "$as_me:1788: checking for $ac_word" >&5
1952 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1953  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1955    echo $ECHO_N "(cached) $ECHO_C" >&6
1956 @@ -1793,25 +2026,28 @@
1957    if test -n "$ac_ct_CXX"; then
1958    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1959  else
1960 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1961 -ac_dummy="$PATH"
1962 -for ac_dir in $ac_dummy; do
1963 -  IFS=$ac_save_IFS
1964 -  test -z "$ac_dir" && ac_dir=.
1965 -  $as_executable_p "$ac_dir/$ac_word" || continue
1966 -ac_cv_prog_ac_ct_CXX="$ac_prog"
1967 -echo "$as_me:1803: found $ac_dir/$ac_word" >&5
1968 -break
1969 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 +for as_dir in $PATH
1971 +do
1972 +  IFS=$as_save_IFS
1973 +  test -z "$as_dir" && as_dir=.
1974 +  for ac_exec_ext in '' $ac_executable_extensions; do
1975 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
1977 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 +    break 2
1979 +  fi
1980 +done
1981  done
1982  
1983  fi
1984  fi
1985  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1986  if test -n "$ac_ct_CXX"; then
1987 -  echo "$as_me:1811: result: $ac_ct_CXX" >&5
1988 +  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1989  echo "${ECHO_T}$ac_ct_CXX" >&6
1990  else
1991 -  echo "$as_me:1814: result: no" >&5
1992 +  echo "$as_me:$LINENO: result: no" >&5
1993  echo "${ECHO_T}no" >&6
1994  fi
1995  
1996 @@ -1822,33 +2058,34 @@
1997    CXX=$ac_ct_CXX
1998  fi
1999  
2000 +
2001  # Provide some information about the compiler.
2002 -echo "$as_me:1826:" \
2003 +echo "$as_me:$LINENO:" \
2004       "checking for C++ compiler version" >&5
2005  ac_compiler=`set X $ac_compile; echo $2`
2006 -{ (eval echo "$as_me:1829: \"$ac_compiler --version </dev/null >&5\"") >&5
2007 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2008    (eval $ac_compiler --version </dev/null >&5) 2>&5
2009    ac_status=$?
2010 -  echo "$as_me:1832: \$? = $ac_status" >&5
2011 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012    (exit $ac_status); }
2013 -{ (eval echo "$as_me:1834: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2015    (eval $ac_compiler -v </dev/null >&5) 2>&5
2016    ac_status=$?
2017 -  echo "$as_me:1837: \$? = $ac_status" >&5
2018 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019    (exit $ac_status); }
2020 -{ (eval echo "$as_me:1839: \"$ac_compiler -V </dev/null >&5\"") >&5
2021 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022    (eval $ac_compiler -V </dev/null >&5) 2>&5
2023    ac_status=$?
2024 -  echo "$as_me:1842: \$? = $ac_status" >&5
2025 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026    (exit $ac_status); }
2027  
2028 -echo "$as_me:1845: checking whether we are using the GNU C++ compiler" >&5
2029 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030  echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032    echo $ECHO_N "(cached) $ECHO_C" >&6
2033  else
2034    cat >conftest.$ac_ext <<_ACEOF
2035 -#line 1851 "configure"
2036 +#line $LINENO "configure"
2037  #include "confdefs.h"
2038  
2039  #ifdef F77_DUMMY_MAIN
2040 @@ -1869,16 +2106,16 @@
2041  }
2042  _ACEOF
2043  rm -f conftest.$ac_objext
2044 -if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
2045 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046    (eval $ac_compile) 2>&5
2047    ac_status=$?
2048 -  echo "$as_me:1875: \$? = $ac_status" >&5
2049 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050    (exit $ac_status); } &&
2051           { ac_try='test -s conftest.$ac_objext'
2052 -  { (eval echo "$as_me:1878: \"$ac_try\"") >&5
2053 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054    (eval $ac_try) 2>&5
2055    ac_status=$?
2056 -  echo "$as_me:1881: \$? = $ac_status" >&5
2057 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058    (exit $ac_status); }; }; then
2059    ac_compiler_gnu=yes
2060  else
2061 @@ -1890,19 +2127,19 @@
2062  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2063  
2064  fi
2065 -echo "$as_me:1893: result: $ac_cv_cxx_compiler_gnu" >&5
2066 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2067  echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2068  GXX=`test $ac_compiler_gnu = yes && echo yes`
2069  ac_test_CXXFLAGS=${CXXFLAGS+set}
2070  ac_save_CXXFLAGS=$CXXFLAGS
2071  CXXFLAGS="-g"
2072 -echo "$as_me:1899: checking whether $CXX accepts -g" >&5
2073 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2074  echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2075  if test "${ac_cv_prog_cxx_g+set}" = set; then
2076    echo $ECHO_N "(cached) $ECHO_C" >&6
2077  else
2078    cat >conftest.$ac_ext <<_ACEOF
2079 -#line 1905 "configure"
2080 +#line $LINENO "configure"
2081  #include "confdefs.h"
2082  
2083  #ifdef F77_DUMMY_MAIN
2084 @@ -1920,16 +2157,16 @@
2085  }
2086  _ACEOF
2087  rm -f conftest.$ac_objext
2088 -if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
2089 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090    (eval $ac_compile) 2>&5
2091    ac_status=$?
2092 -  echo "$as_me:1926: \$? = $ac_status" >&5
2093 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094    (exit $ac_status); } &&
2095           { ac_try='test -s conftest.$ac_objext'
2096 -  { (eval echo "$as_me:1929: \"$ac_try\"") >&5
2097 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098    (eval $ac_try) 2>&5
2099    ac_status=$?
2100 -  echo "$as_me:1932: \$? = $ac_status" >&5
2101 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102    (exit $ac_status); }; }; then
2103    ac_cv_prog_cxx_g=yes
2104  else
2105 @@ -1939,7 +2176,7 @@
2106  fi
2107  rm -f conftest.$ac_objext conftest.$ac_ext
2108  fi
2109 -echo "$as_me:1942: result: $ac_cv_prog_cxx_g" >&5
2110 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2111  echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2112  if test "$ac_test_CXXFLAGS" = set; then
2113    CXXFLAGS=$ac_save_CXXFLAGS
2114 @@ -1966,7 +2203,7 @@
2115     'void exit (int);'
2116  do
2117    cat >conftest.$ac_ext <<_ACEOF
2118 -#line 1969 "configure"
2119 +#line $LINENO "configure"
2120  #include "confdefs.h"
2121  #include <stdlib.h>
2122  $ac_declaration
2123 @@ -1985,16 +2222,16 @@
2124  }
2125  _ACEOF
2126  rm -f conftest.$ac_objext
2127 -if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
2128 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129    (eval $ac_compile) 2>&5
2130    ac_status=$?
2131 -  echo "$as_me:1991: \$? = $ac_status" >&5
2132 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133    (exit $ac_status); } &&
2134           { ac_try='test -s conftest.$ac_objext'
2135 -  { (eval echo "$as_me:1994: \"$ac_try\"") >&5
2136 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137    (eval $ac_try) 2>&5
2138    ac_status=$?
2139 -  echo "$as_me:1997: \$? = $ac_status" >&5
2140 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141    (exit $ac_status); }; }; then
2142    :
2143  else
2144 @@ -2004,7 +2241,7 @@
2145  fi
2146  rm -f conftest.$ac_objext conftest.$ac_ext
2147    cat >conftest.$ac_ext <<_ACEOF
2148 -#line 2007 "configure"
2149 +#line $LINENO "configure"
2150  #include "confdefs.h"
2151  $ac_declaration
2152  #ifdef F77_DUMMY_MAIN
2153 @@ -2022,16 +2259,16 @@
2154  }
2155  _ACEOF
2156  rm -f conftest.$ac_objext
2157 -if { (eval echo "$as_me:2025: \"$ac_compile\"") >&5
2158 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159    (eval $ac_compile) 2>&5
2160    ac_status=$?
2161 -  echo "$as_me:2028: \$? = $ac_status" >&5
2162 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163    (exit $ac_status); } &&
2164           { ac_try='test -s conftest.$ac_objext'
2165 -  { (eval echo "$as_me:2031: \"$ac_try\"") >&5
2166 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167    (eval $ac_try) 2>&5
2168    ac_status=$?
2169 -  echo "$as_me:2034: \$? = $ac_status" >&5
2170 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171    (exit $ac_status); }; }; then
2172    break
2173  else
2174 @@ -2058,7 +2295,7 @@
2175  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 -echo "$as_me:2061: checking how to run the C preprocessor" >&5
2179 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2180  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2181  # On Suns, sometimes $CPP names a directory.
2182  if test -n "$CPP" && test -d "$CPP"; then
2183 @@ -2079,18 +2316,18 @@
2184    # On the NeXT, cc -E runs the code through the compiler's parser,
2185    # not just through cpp. "Syntax error" is here to catch this case.
2186    cat >conftest.$ac_ext <<_ACEOF
2187 -#line 2082 "configure"
2188 +#line $LINENO "configure"
2189  #include "confdefs.h"
2190  #include <assert.h>
2191                       Syntax error
2192  _ACEOF
2193 -if { (eval echo "$as_me:2087: \"$ac_cpp conftest.$ac_ext\"") >&5
2194 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2195    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2196    ac_status=$?
2197    egrep -v '^ *\+' conftest.er1 >conftest.err
2198    rm -f conftest.er1
2199    cat conftest.err >&5
2200 -  echo "$as_me:2093: \$? = $ac_status" >&5
2201 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202    (exit $ac_status); } >/dev/null; then
2203    if test -s conftest.err; then
2204      ac_cpp_err=$ac_c_preproc_warn_flag
2205 @@ -2113,17 +2350,17 @@
2206    # OK, works on sane cases.  Now check whether non-existent headers
2207    # can be detected and how.
2208    cat >conftest.$ac_ext <<_ACEOF
2209 -#line 2116 "configure"
2210 +#line $LINENO "configure"
2211  #include "confdefs.h"
2212  #include <ac_nonexistent.h>
2213  _ACEOF
2214 -if { (eval echo "$as_me:2120: \"$ac_cpp conftest.$ac_ext\"") >&5
2215 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2216    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2217    ac_status=$?
2218    egrep -v '^ *\+' conftest.er1 >conftest.err
2219    rm -f conftest.er1
2220    cat conftest.err >&5
2221 -  echo "$as_me:2126: \$? = $ac_status" >&5
2222 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223    (exit $ac_status); } >/dev/null; then
2224    if test -s conftest.err; then
2225      ac_cpp_err=$ac_c_preproc_warn_flag
2226 @@ -2160,7 +2397,7 @@
2227  else
2228    ac_cv_prog_CPP=$CPP
2229  fi
2230 -echo "$as_me:2163: result: $CPP" >&5
2231 +echo "$as_me:$LINENO: result: $CPP" >&5
2232  echo "${ECHO_T}$CPP" >&6
2233  ac_preproc_ok=false
2234  for ac_c_preproc_warn_flag in '' yes
2235 @@ -2170,18 +2407,18 @@
2236    # On the NeXT, cc -E runs the code through the compiler's parser,
2237    # not just through cpp. "Syntax error" is here to catch this case.
2238    cat >conftest.$ac_ext <<_ACEOF
2239 -#line 2173 "configure"
2240 +#line $LINENO "configure"
2241  #include "confdefs.h"
2242  #include <assert.h>
2243                       Syntax error
2244  _ACEOF
2245 -if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2246 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2247    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2248    ac_status=$?
2249    egrep -v '^ *\+' conftest.er1 >conftest.err
2250    rm -f conftest.er1
2251    cat conftest.err >&5
2252 -  echo "$as_me:2184: \$? = $ac_status" >&5
2253 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254    (exit $ac_status); } >/dev/null; then
2255    if test -s conftest.err; then
2256      ac_cpp_err=$ac_c_preproc_warn_flag
2257 @@ -2204,17 +2441,17 @@
2258    # OK, works on sane cases.  Now check whether non-existent headers
2259    # can be detected and how.
2260    cat >conftest.$ac_ext <<_ACEOF
2261 -#line 2207 "configure"
2262 +#line $LINENO "configure"
2263  #include "confdefs.h"
2264  #include <ac_nonexistent.h>
2265  _ACEOF
2266 -if { (eval echo "$as_me:2211: \"$ac_cpp conftest.$ac_ext\"") >&5
2267 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2268    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2269    ac_status=$?
2270    egrep -v '^ *\+' conftest.er1 >conftest.err
2271    rm -f conftest.er1
2272    cat conftest.err >&5
2273 -  echo "$as_me:2217: \$? = $ac_status" >&5
2274 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275    (exit $ac_status); } >/dev/null; then
2276    if test -s conftest.err; then
2277      ac_cpp_err=$ac_c_preproc_warn_flag
2278 @@ -2242,7 +2479,7 @@
2279  if $ac_preproc_ok; then
2280    :
2281  else
2282 -  { { echo "$as_me:2245: error: C preprocessor \"$CPP\" fails sanity check" >&5
2283 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2284  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2285     { (exit 1); exit 1; }; }
2286  fi
2287 @@ -2253,7 +2490,7 @@
2288  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290  
2291 -echo "$as_me:2256: checking whether ${MAKE-make} sets \${MAKE}" >&5
2292 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2293  echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2294  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2295  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2296 @@ -2273,15 +2510,16 @@
2297  rm -f conftest.make
2298  fi
2299  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2300 -  echo "$as_me:2276: result: yes" >&5
2301 +  echo "$as_me:$LINENO: result: yes" >&5
2302  echo "${ECHO_T}yes" >&6
2303    SET_MAKE=
2304  else
2305 -  echo "$as_me:2280: result: no" >&5
2306 +  echo "$as_me:$LINENO: result: no" >&5
2307  echo "${ECHO_T}no" >&6
2308    SET_MAKE="MAKE=${MAKE-make}"
2309  fi
2310  
2311 +
2312  if [ x"$GXX" = "xyes" ]; then
2313    CFLAGS="-O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format"
2314  fi
2315 @@ -2294,10 +2532,13 @@
2316    HPUX_REV=`echo $UNAME_RELEASE | sed -e 's/^.*.0B*//' -e 's/\..*$//'`
2317  fi
2318  
2319 -echo "$as_me:2297: checking for AIX" >&5
2320 +
2321 +
2322 +
2323 +echo "$as_me:$LINENO: checking for AIX" >&5
2324  echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2325  cat >conftest.$ac_ext <<_ACEOF
2326 -#line 2300 "configure"
2327 +#line $LINENO "configure"
2328  #include "confdefs.h"
2329  #ifdef _AIX
2330    yes
2331 @@ -2306,44 +2547,130 @@
2332  _ACEOF
2333  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2334    egrep "yes" >/dev/null 2>&1; then
2335 -  echo "$as_me:2309: result: yes" >&5
2336 +  echo "$as_me:$LINENO: result: yes" >&5
2337  echo "${ECHO_T}yes" >&6
2338  cat >>confdefs.h <<\_ACEOF
2339  #define _ALL_SOURCE 1
2340  _ACEOF
2341  
2342  else
2343 -  echo "$as_me:2316: result: no" >&5
2344 +  echo "$as_me:$LINENO: result: no" >&5
2345  echo "${ECHO_T}no" >&6
2346  fi
2347  rm -f conftest*
2348  
2349 -echo "$as_me:2321: checking for POSIXized ISC" >&5
2350 -echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2351 -if test -d /etc/conf/kconfig.d &&
2352 -   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2353 -then
2354 -  echo "$as_me:2326: result: yes" >&5
2355 -echo "${ECHO_T}yes" >&6
2356 -  ISC=yes # If later tests want to check for ISC.
2357  
2358 -cat >>confdefs.h <<\_ACEOF
2359 -#define _POSIX_SOURCE 1
2360 +echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 +if test "${ac_cv_search_strerror+set}" = set; then
2363 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2364 +else
2365 +  ac_func_search_save_LIBS=$LIBS
2366 +ac_cv_search_strerror=no
2367 +cat >conftest.$ac_ext <<_ACEOF
2368 +#line $LINENO "configure"
2369 +#include "confdefs.h"
2370 +
2371 +/* Override any gcc2 internal prototype to avoid an error.  */
2372 +#ifdef __cplusplus
2373 +extern "C"
2374 +#endif
2375 +/* We use char because int might match the return type of a gcc2
2376 +   builtin and then its argument prototype would still apply.  */
2377 +char strerror ();
2378 +#ifdef F77_DUMMY_MAIN
2379 +#  ifdef __cplusplus
2380 +     extern "C"
2381 +#  endif
2382 +   int F77_DUMMY_MAIN() { return 1; }
2383 +#endif
2384 +int
2385 +main ()
2386 +{
2387 +strerror ();
2388 +  ;
2389 +  return 0;
2390 +}
2391  _ACEOF
2392 +rm -f conftest.$ac_objext conftest$ac_exeext
2393 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 +  (eval $ac_link) 2>&5
2395 +  ac_status=$?
2396 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 +  (exit $ac_status); } &&
2398 +         { ac_try='test -s conftest$ac_exeext'
2399 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 +  (eval $ac_try) 2>&5
2401 +  ac_status=$?
2402 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 +  (exit $ac_status); }; }; then
2404 +  ac_cv_search_strerror="none required"
2405 +else
2406 +  echo "$as_me: failed program was:" >&5
2407 +cat conftest.$ac_ext >&5
2408 +fi
2409 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2410 +if test "$ac_cv_search_strerror" = no; then
2411 +  for ac_lib in cposix; do
2412 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2413 +    cat >conftest.$ac_ext <<_ACEOF
2414 +#line $LINENO "configure"
2415 +#include "confdefs.h"
2416  
2417 -  if test "$GCC" = yes; then
2418 -    CC="$CC -posix"
2419 -  else
2420 -    CC="$CC -Xp"
2421 -  fi
2422 +/* Override any gcc2 internal prototype to avoid an error.  */
2423 +#ifdef __cplusplus
2424 +extern "C"
2425 +#endif
2426 +/* We use char because int might match the return type of a gcc2
2427 +   builtin and then its argument prototype would still apply.  */
2428 +char strerror ();
2429 +#ifdef F77_DUMMY_MAIN
2430 +#  ifdef __cplusplus
2431 +     extern "C"
2432 +#  endif
2433 +   int F77_DUMMY_MAIN() { return 1; }
2434 +#endif
2435 +int
2436 +main ()
2437 +{
2438 +strerror ();
2439 +  ;
2440 +  return 0;
2441 +}
2442 +_ACEOF
2443 +rm -f conftest.$ac_objext conftest$ac_exeext
2444 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 +  (eval $ac_link) 2>&5
2446 +  ac_status=$?
2447 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 +  (exit $ac_status); } &&
2449 +         { ac_try='test -s conftest$ac_exeext'
2450 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 +  (eval $ac_try) 2>&5
2452 +  ac_status=$?
2453 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 +  (exit $ac_status); }; }; then
2455 +  ac_cv_search_strerror="-l$ac_lib"
2456 +break
2457  else
2458 -  echo "$as_me:2340: result: no" >&5
2459 -echo "${ECHO_T}no" >&6
2460 -  ISC=
2461 +  echo "$as_me: failed program was:" >&5
2462 +cat conftest.$ac_ext >&5
2463 +fi
2464 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2465 +  done
2466 +fi
2467 +LIBS=$ac_func_search_save_LIBS
2468  fi
2469 +echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2470 +echo "${ECHO_T}$ac_cv_search_strerror" >&6
2471 +if test "$ac_cv_search_strerror" != no; then
2472 +  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2473 +
2474 +fi
2475 +
2476  
2477  HAVE_BEBOX=no
2478 -echo "$as_me:2346: checking for OpenLibrary in -lamiga" >&5
2479 +echo "$as_me:$LINENO: checking for OpenLibrary in -lamiga" >&5
2480  echo $ECHO_N "checking for OpenLibrary in -lamiga... $ECHO_C" >&6
2481  if test "${ac_cv_lib_amiga_OpenLibrary+set}" = set; then
2482    echo $ECHO_N "(cached) $ECHO_C" >&6
2483 @@ -2351,7 +2678,7 @@
2484    ac_check_lib_save_LIBS=$LIBS
2485  LIBS="-lamiga  $LIBS"
2486  cat >conftest.$ac_ext <<_ACEOF
2487 -#line 2354 "configure"
2488 +#line $LINENO "configure"
2489  #include "confdefs.h"
2490  
2491  /* Override any gcc2 internal prototype to avoid an error.  */
2492 @@ -2376,16 +2703,16 @@
2493  }
2494  _ACEOF
2495  rm -f conftest.$ac_objext conftest$ac_exeext
2496 -if { (eval echo "$as_me:2379: \"$ac_link\"") >&5
2497 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2498    (eval $ac_link) 2>&5
2499    ac_status=$?
2500 -  echo "$as_me:2382: \$? = $ac_status" >&5
2501 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502    (exit $ac_status); } &&
2503           { ac_try='test -s conftest$ac_exeext'
2504 -  { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2505 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506    (eval $ac_try) 2>&5
2507    ac_status=$?
2508 -  echo "$as_me:2388: \$? = $ac_status" >&5
2509 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510    (exit $ac_status); }; }; then
2511    ac_cv_lib_amiga_OpenLibrary=yes
2512  else
2513 @@ -2396,7 +2723,7 @@
2514  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2515  LIBS=$ac_check_lib_save_LIBS
2516  fi
2517 -echo "$as_me:2399: result: $ac_cv_lib_amiga_OpenLibrary" >&5
2518 +echo "$as_me:$LINENO: result: $ac_cv_lib_amiga_OpenLibrary" >&5
2519  echo "${ECHO_T}$ac_cv_lib_amiga_OpenLibrary" >&6
2520  if test $ac_cv_lib_amiga_OpenLibrary = yes; then
2521    HAVE_AMIGA_LIB=yes
2522 @@ -2404,7 +2731,7 @@
2523    HAVE_AMIGA_LIB=no
2524  fi
2525  
2526 -echo "$as_me:2407: checking for vga_setmode in -lvga" >&5
2527 +echo "$as_me:$LINENO: checking for vga_setmode in -lvga" >&5
2528  echo $ECHO_N "checking for vga_setmode in -lvga... $ECHO_C" >&6
2529  if test "${ac_cv_lib_vga_vga_setmode+set}" = set; then
2530    echo $ECHO_N "(cached) $ECHO_C" >&6
2531 @@ -2412,7 +2739,7 @@
2532    ac_check_lib_save_LIBS=$LIBS
2533  LIBS="-lvga  $LIBS"
2534  cat >conftest.$ac_ext <<_ACEOF
2535 -#line 2415 "configure"
2536 +#line $LINENO "configure"
2537  #include "confdefs.h"
2538  
2539  /* Override any gcc2 internal prototype to avoid an error.  */
2540 @@ -2437,16 +2764,16 @@
2541  }
2542  _ACEOF
2543  rm -f conftest.$ac_objext conftest$ac_exeext
2544 -if { (eval echo "$as_me:2440: \"$ac_link\"") >&5
2545 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546    (eval $ac_link) 2>&5
2547    ac_status=$?
2548 -  echo "$as_me:2443: \$? = $ac_status" >&5
2549 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550    (exit $ac_status); } &&
2551           { ac_try='test -s conftest$ac_exeext'
2552 -  { (eval echo "$as_me:2446: \"$ac_try\"") >&5
2553 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554    (eval $ac_try) 2>&5
2555    ac_status=$?
2556 -  echo "$as_me:2449: \$? = $ac_status" >&5
2557 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558    (exit $ac_status); }; }; then
2559    ac_cv_lib_vga_vga_setmode=yes
2560  else
2561 @@ -2457,7 +2784,7 @@
2562  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2563  LIBS=$ac_check_lib_save_LIBS
2564  fi
2565 -echo "$as_me:2460: result: $ac_cv_lib_vga_vga_setmode" >&5
2566 +echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_setmode" >&5
2567  echo "${ECHO_T}$ac_cv_lib_vga_vga_setmode" >&6
2568  if test $ac_cv_lib_vga_vga_setmode = yes; then
2569    HAVE_SVGA_LIB=yes
2570 @@ -2465,6 +2792,7 @@
2571    HAVE_SVGA_LIB=no
2572  fi
2573  
2574 +
2575  # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2576  if test "${with_sdl_prefix+set}" = set; then
2577    withval="$with_sdl_prefix"
2578 @@ -2503,7 +2831,7 @@
2579  
2580    # Extract the first word of "sdl-config", so it can be a program name with args.
2581  set dummy sdl-config; ac_word=$2
2582 -echo "$as_me:2506: checking for $ac_word" >&5
2583 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2584  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585  if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2586    echo $ECHO_N "(cached) $ECHO_C" >&6
2587 @@ -2513,16 +2841,18 @@
2588    ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2589    ;;
2590    *)
2591 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
2592 -ac_dummy="$PATH"
2593 -for ac_dir in $ac_dummy; do
2594 -  IFS=$ac_save_IFS
2595 -  test -z "$ac_dir" && ac_dir=.
2596 -  if $as_executable_p "$ac_dir/$ac_word"; then
2597 -   ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
2598 -   echo "$as_me:2523: found $ac_dir/$ac_word" >&5
2599 -   break
2600 -fi
2601 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 +for as_dir in $PATH
2603 +do
2604 +  IFS=$as_save_IFS
2605 +  test -z "$as_dir" && as_dir=.
2606 +  for ac_exec_ext in '' $ac_executable_extensions; do
2607 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 +    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2609 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 +    break 2
2611 +  fi
2612 +done
2613  done
2614  
2615    test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2616 @@ -2532,15 +2862,15 @@
2617  SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2618  
2619  if test -n "$SDL_CONFIG"; then
2620 -  echo "$as_me:2535: result: $SDL_CONFIG" >&5
2621 +  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2622  echo "${ECHO_T}$SDL_CONFIG" >&6
2623  else
2624 -  echo "$as_me:2538: result: no" >&5
2625 +  echo "$as_me:$LINENO: result: no" >&5
2626  echo "${ECHO_T}no" >&6
2627  fi
2628  
2629    min_sdl_version=1.2.0
2630 -  echo "$as_me:2543: checking for SDL - version >= $min_sdl_version" >&5
2631 +  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2632  echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
2633    no_sdl=""
2634    if test "$SDL_CONFIG" = "no" ; then
2635 @@ -2565,7 +2895,7 @@
2636    echo $ac_n "cross compiling; assumed OK... $ac_c"
2637  else
2638    cat >conftest.$ac_ext <<_ACEOF
2639 -#line 2568 "configure"
2640 +#line $LINENO "configure"
2641  #include "confdefs.h"
2642  
2643  #include <stdio.h>
2644 @@ -2624,23 +2954,25 @@
2645      }
2646  }
2647  
2648 +
2649  _ACEOF
2650  rm -f conftest$ac_exeext
2651 -if { (eval echo "$as_me:2629: \"$ac_link\"") >&5
2652 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653    (eval $ac_link) 2>&5
2654    ac_status=$?
2655 -  echo "$as_me:2632: \$? = $ac_status" >&5
2656 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2658 -  { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2659 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660    (eval $ac_try) 2>&5
2661    ac_status=$?
2662 -  echo "$as_me:2637: \$? = $ac_status" >&5
2663 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664    (exit $ac_status); }; }; then
2665    :
2666  else
2667    echo "$as_me: program exited with status $ac_status" >&5
2668  echo "$as_me: failed program was:" >&5
2669  cat conftest.$ac_ext >&5
2670 +( exit $ac_status )
2671  no_sdl=yes
2672  fi
2673  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2674 @@ -2650,11 +2982,11 @@
2675       fi
2676    fi
2677    if test "x$no_sdl" = x ; then
2678 -     echo "$as_me:2653: result: yes" >&5
2679 +     echo "$as_me:$LINENO: result: yes" >&5
2680  echo "${ECHO_T}yes" >&6
2681       HAVE_SDL=yes
2682    else
2683 -     echo "$as_me:2657: result: no" >&5
2684 +     echo "$as_me:$LINENO: result: no" >&5
2685  echo "${ECHO_T}no" >&6
2686       if test "$SDL_CONFIG" = "no" ; then
2687         echo "*** The sdl-config script installed by SDL could not be found"
2688 @@ -2669,7 +3001,7 @@
2689            CFLAGS="$CFLAGS $SDL_CFLAGS"
2690            LIBS="$LIBS $SDL_LIBS"
2691            cat >conftest.$ac_ext <<_ACEOF
2692 -#line 2672 "configure"
2693 +#line $LINENO "configure"
2694  #include "confdefs.h"
2695  
2696  #include <stdio.h>
2697 @@ -2690,16 +3022,16 @@
2698  }
2699  _ACEOF
2700  rm -f conftest.$ac_objext conftest$ac_exeext
2701 -if { (eval echo "$as_me:2693: \"$ac_link\"") >&5
2702 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2703    (eval $ac_link) 2>&5
2704    ac_status=$?
2705 -  echo "$as_me:2696: \$? = $ac_status" >&5
2706 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707    (exit $ac_status); } &&
2708           { ac_try='test -s conftest$ac_exeext'
2709 -  { (eval echo "$as_me:2699: \"$ac_try\"") >&5
2710 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711    (eval $ac_try) 2>&5
2712    ac_status=$?
2713 -  echo "$as_me:2702: \$? = $ac_status" >&5
2714 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715    (exit $ac_status); }; }; then
2716     echo "*** The test program compiled, but did not run. This usually means"
2717            echo "*** that the run-time linker is not finding SDL or finding the wrong"
2718 @@ -2728,11 +3060,14 @@
2719       HAVE_SDL=no
2720    fi
2721  
2722 +
2723    rm -f conf.sdltest
2724  
2725 -echo "$as_me:2733: checking for X" >&5
2726 +
2727 +echo "$as_me:$LINENO: checking for X" >&5
2728  echo $ECHO_N "checking for X... $ECHO_C" >&6
2729  
2730 +
2731  # Check whether --with-x or --without-x was given.
2732  if test "${with_x+set}" = set; then
2733    withval="$with_x"
2734 @@ -2827,17 +3162,17 @@
2735    # Guess where to find include files, by looking for Intrinsic.h.
2736    # First, try using that file with no special directory specified.
2737    cat >conftest.$ac_ext <<_ACEOF
2738 -#line 2830 "configure"
2739 +#line $LINENO "configure"
2740  #include "confdefs.h"
2741  #include <X11/Intrinsic.h>
2742  _ACEOF
2743 -if { (eval echo "$as_me:2834: \"$ac_cpp conftest.$ac_ext\"") >&5
2744 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2746    ac_status=$?
2747    egrep -v '^ *\+' conftest.er1 >conftest.err
2748    rm -f conftest.er1
2749    cat conftest.err >&5
2750 -  echo "$as_me:2840: \$? = $ac_status" >&5
2751 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752    (exit $ac_status); } >/dev/null; then
2753    if test -s conftest.err; then
2754      ac_cpp_err=$ac_c_preproc_warn_flag
2755 @@ -2870,7 +3205,7 @@
2756    ac_save_LIBS=$LIBS
2757    LIBS="-lXt $LIBS"
2758    cat >conftest.$ac_ext <<_ACEOF
2759 -#line 2873 "configure"
2760 +#line $LINENO "configure"
2761  #include "confdefs.h"
2762  #include <X11/Intrinsic.h>
2763  #ifdef F77_DUMMY_MAIN
2764 @@ -2888,16 +3223,16 @@
2765  }
2766  _ACEOF
2767  rm -f conftest.$ac_objext conftest$ac_exeext
2768 -if { (eval echo "$as_me:2891: \"$ac_link\"") >&5
2769 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770    (eval $ac_link) 2>&5
2771    ac_status=$?
2772 -  echo "$as_me:2894: \$? = $ac_status" >&5
2773 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774    (exit $ac_status); } &&
2775           { ac_try='test -s conftest$ac_exeext'
2776 -  { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2777 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778    (eval $ac_try) 2>&5
2779    ac_status=$?
2780 -  echo "$as_me:2900: \$? = $ac_status" >&5
2781 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782    (exit $ac_status); }; }; then
2783    LIBS=$ac_save_LIBS
2784  # We can link X programs with no special library path.
2785 @@ -2935,7 +3270,7 @@
2786  fi # $with_x != no
2787  
2788  if test "$have_x" != yes; then
2789 -  echo "$as_me:2938: result: $have_x" >&5
2790 +  echo "$as_me:$LINENO: result: $have_x" >&5
2791  echo "${ECHO_T}$have_x" >&6
2792    no_x=yes
2793  else
2794 @@ -2945,7 +3280,7 @@
2795    # Update the cache value to reflect the command line values.
2796    ac_cv_have_x="have_x=yes \
2797                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2798 -  echo "$as_me:2948: result: libraries $x_libraries, headers $x_includes" >&5
2799 +  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2800  echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2801  fi
2802  
2803 @@ -2969,11 +3304,11 @@
2804      # others require no space.  Words are not sufficient . . . .
2805      case `(uname -sr) 2>/dev/null` in
2806      "SunOS 5"*)
2807 -      echo "$as_me:2972: checking whether -R must be followed by a space" >&5
2808 +      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2809  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2810        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2811        cat >conftest.$ac_ext <<_ACEOF
2812 -#line 2976 "configure"
2813 +#line $LINENO "configure"
2814  #include "confdefs.h"
2815  
2816  #ifdef F77_DUMMY_MAIN
2817 @@ -2991,16 +3326,16 @@
2818  }
2819  _ACEOF
2820  rm -f conftest.$ac_objext conftest$ac_exeext
2821 -if { (eval echo "$as_me:2994: \"$ac_link\"") >&5
2822 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823    (eval $ac_link) 2>&5
2824    ac_status=$?
2825 -  echo "$as_me:2997: \$? = $ac_status" >&5
2826 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827    (exit $ac_status); } &&
2828           { ac_try='test -s conftest$ac_exeext'
2829 -  { (eval echo "$as_me:3000: \"$ac_try\"") >&5
2830 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831    (eval $ac_try) 2>&5
2832    ac_status=$?
2833 -  echo "$as_me:3003: \$? = $ac_status" >&5
2834 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835    (exit $ac_status); }; }; then
2836    ac_R_nospace=yes
2837  else
2838 @@ -3010,13 +3345,13 @@
2839  fi
2840  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2841        if test $ac_R_nospace = yes; then
2842 -       echo "$as_me:3013: result: no" >&5
2843 +       echo "$as_me:$LINENO: result: no" >&5
2844  echo "${ECHO_T}no" >&6
2845         X_LIBS="$X_LIBS -R$x_libraries"
2846        else
2847         LIBS="$ac_xsave_LIBS -R $x_libraries"
2848         cat >conftest.$ac_ext <<_ACEOF
2849 -#line 3019 "configure"
2850 +#line $LINENO "configure"
2851  #include "confdefs.h"
2852  
2853  #ifdef F77_DUMMY_MAIN
2854 @@ -3034,16 +3369,16 @@
2855  }
2856  _ACEOF
2857  rm -f conftest.$ac_objext conftest$ac_exeext
2858 -if { (eval echo "$as_me:3037: \"$ac_link\"") >&5
2859 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2860    (eval $ac_link) 2>&5
2861    ac_status=$?
2862 -  echo "$as_me:3040: \$? = $ac_status" >&5
2863 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864    (exit $ac_status); } &&
2865           { ac_try='test -s conftest$ac_exeext'
2866 -  { (eval echo "$as_me:3043: \"$ac_try\"") >&5
2867 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868    (eval $ac_try) 2>&5
2869    ac_status=$?
2870 -  echo "$as_me:3046: \$? = $ac_status" >&5
2871 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872    (exit $ac_status); }; }; then
2873    ac_R_space=yes
2874  else
2875 @@ -3053,11 +3388,11 @@
2876  fi
2877  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2878         if test $ac_R_space = yes; then
2879 -         echo "$as_me:3056: result: yes" >&5
2880 +         echo "$as_me:$LINENO: result: yes" >&5
2881  echo "${ECHO_T}yes" >&6
2882           X_LIBS="$X_LIBS -R $x_libraries"
2883         else
2884 -         echo "$as_me:3060: result: neither works" >&5
2885 +         echo "$as_me:$LINENO: result: neither works" >&5
2886  echo "${ECHO_T}neither works" >&6
2887         fi
2888        fi
2889 @@ -3077,7 +3412,7 @@
2890      # the Alpha needs dnet_stub (dnet does not exist).
2891      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2892      cat >conftest.$ac_ext <<_ACEOF
2893 -#line 3080 "configure"
2894 +#line $LINENO "configure"
2895  #include "confdefs.h"
2896  
2897  /* Override any gcc2 internal prototype to avoid an error.  */
2898 @@ -3102,22 +3437,22 @@
2899  }
2900  _ACEOF
2901  rm -f conftest.$ac_objext conftest$ac_exeext
2902 -if { (eval echo "$as_me:3105: \"$ac_link\"") >&5
2903 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904    (eval $ac_link) 2>&5
2905    ac_status=$?
2906 -  echo "$as_me:3108: \$? = $ac_status" >&5
2907 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908    (exit $ac_status); } &&
2909           { ac_try='test -s conftest$ac_exeext'
2910 -  { (eval echo "$as_me:3111: \"$ac_try\"") >&5
2911 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912    (eval $ac_try) 2>&5
2913    ac_status=$?
2914 -  echo "$as_me:3114: \$? = $ac_status" >&5
2915 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916    (exit $ac_status); }; }; then
2917    :
2918  else
2919    echo "$as_me: failed program was:" >&5
2920  cat conftest.$ac_ext >&5
2921 -echo "$as_me:3120: checking for dnet_ntoa in -ldnet" >&5
2922 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2923  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2924  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2925    echo $ECHO_N "(cached) $ECHO_C" >&6
2926 @@ -3125,7 +3460,7 @@
2927    ac_check_lib_save_LIBS=$LIBS
2928  LIBS="-ldnet  $LIBS"
2929  cat >conftest.$ac_ext <<_ACEOF
2930 -#line 3128 "configure"
2931 +#line $LINENO "configure"
2932  #include "confdefs.h"
2933  
2934  /* Override any gcc2 internal prototype to avoid an error.  */
2935 @@ -3150,16 +3485,16 @@
2936  }
2937  _ACEOF
2938  rm -f conftest.$ac_objext conftest$ac_exeext
2939 -if { (eval echo "$as_me:3153: \"$ac_link\"") >&5
2940 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2941    (eval $ac_link) 2>&5
2942    ac_status=$?
2943 -  echo "$as_me:3156: \$? = $ac_status" >&5
2944 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945    (exit $ac_status); } &&
2946           { ac_try='test -s conftest$ac_exeext'
2947 -  { (eval echo "$as_me:3159: \"$ac_try\"") >&5
2948 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949    (eval $ac_try) 2>&5
2950    ac_status=$?
2951 -  echo "$as_me:3162: \$? = $ac_status" >&5
2952 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953    (exit $ac_status); }; }; then
2954    ac_cv_lib_dnet_dnet_ntoa=yes
2955  else
2956 @@ -3170,14 +3505,14 @@
2957  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2958  LIBS=$ac_check_lib_save_LIBS
2959  fi
2960 -echo "$as_me:3173: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2961 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2962  echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2963  if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2964    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2965  fi
2966  
2967      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2968 -      echo "$as_me:3180: checking for dnet_ntoa in -ldnet_stub" >&5
2969 +      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2970  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2971  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2972    echo $ECHO_N "(cached) $ECHO_C" >&6
2973 @@ -3185,7 +3520,7 @@
2974    ac_check_lib_save_LIBS=$LIBS
2975  LIBS="-ldnet_stub  $LIBS"
2976  cat >conftest.$ac_ext <<_ACEOF
2977 -#line 3188 "configure"
2978 +#line $LINENO "configure"
2979  #include "confdefs.h"
2980  
2981  /* Override any gcc2 internal prototype to avoid an error.  */
2982 @@ -3210,16 +3545,16 @@
2983  }
2984  _ACEOF
2985  rm -f conftest.$ac_objext conftest$ac_exeext
2986 -if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
2987 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988    (eval $ac_link) 2>&5
2989    ac_status=$?
2990 -  echo "$as_me:3216: \$? = $ac_status" >&5
2991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992    (exit $ac_status); } &&
2993           { ac_try='test -s conftest$ac_exeext'
2994 -  { (eval echo "$as_me:3219: \"$ac_try\"") >&5
2995 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996    (eval $ac_try) 2>&5
2997    ac_status=$?
2998 -  echo "$as_me:3222: \$? = $ac_status" >&5
2999 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000    (exit $ac_status); }; }; then
3001    ac_cv_lib_dnet_stub_dnet_ntoa=yes
3002  else
3003 @@ -3230,7 +3565,7 @@
3004  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3005  LIBS=$ac_check_lib_save_LIBS
3006  fi
3007 -echo "$as_me:3233: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3008 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3009  echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3010  if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3011    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3012 @@ -3249,13 +3584,13 @@
3013      # on Irix 5.2, according to T.E. Dickey.
3014      # The functions gethostbyname, getservbyname, and inet_addr are
3015      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3016 -    echo "$as_me:3252: checking for gethostbyname" >&5
3017 +    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3018  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3019  if test "${ac_cv_func_gethostbyname+set}" = set; then
3020    echo $ECHO_N "(cached) $ECHO_C" >&6
3021  else
3022    cat >conftest.$ac_ext <<_ACEOF
3023 -#line 3258 "configure"
3024 +#line $LINENO "configure"
3025  #include "confdefs.h"
3026  /* System header to define __stub macros and hopefully few prototypes,
3027      which can conflict with char gethostbyname (); below.  */
3028 @@ -3292,16 +3627,16 @@
3029  }
3030  _ACEOF
3031  rm -f conftest.$ac_objext conftest$ac_exeext
3032 -if { (eval echo "$as_me:3295: \"$ac_link\"") >&5
3033 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3034    (eval $ac_link) 2>&5
3035    ac_status=$?
3036 -  echo "$as_me:3298: \$? = $ac_status" >&5
3037 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038    (exit $ac_status); } &&
3039           { ac_try='test -s conftest$ac_exeext'
3040 -  { (eval echo "$as_me:3301: \"$ac_try\"") >&5
3041 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042    (eval $ac_try) 2>&5
3043    ac_status=$?
3044 -  echo "$as_me:3304: \$? = $ac_status" >&5
3045 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046    (exit $ac_status); }; }; then
3047    ac_cv_func_gethostbyname=yes
3048  else
3049 @@ -3311,11 +3646,11 @@
3050  fi
3051  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3052  fi
3053 -echo "$as_me:3314: result: $ac_cv_func_gethostbyname" >&5
3054 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3055  echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3056  
3057      if test $ac_cv_func_gethostbyname = no; then
3058 -      echo "$as_me:3318: checking for gethostbyname in -lnsl" >&5
3059 +      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3060  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3061  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3062    echo $ECHO_N "(cached) $ECHO_C" >&6
3063 @@ -3323,7 +3658,7 @@
3064    ac_check_lib_save_LIBS=$LIBS
3065  LIBS="-lnsl  $LIBS"
3066  cat >conftest.$ac_ext <<_ACEOF
3067 -#line 3326 "configure"
3068 +#line $LINENO "configure"
3069  #include "confdefs.h"
3070  
3071  /* Override any gcc2 internal prototype to avoid an error.  */
3072 @@ -3348,16 +3683,16 @@
3073  }
3074  _ACEOF
3075  rm -f conftest.$ac_objext conftest$ac_exeext
3076 -if { (eval echo "$as_me:3351: \"$ac_link\"") >&5
3077 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078    (eval $ac_link) 2>&5
3079    ac_status=$?
3080 -  echo "$as_me:3354: \$? = $ac_status" >&5
3081 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082    (exit $ac_status); } &&
3083           { ac_try='test -s conftest$ac_exeext'
3084 -  { (eval echo "$as_me:3357: \"$ac_try\"") >&5
3085 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086    (eval $ac_try) 2>&5
3087    ac_status=$?
3088 -  echo "$as_me:3360: \$? = $ac_status" >&5
3089 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090    (exit $ac_status); }; }; then
3091    ac_cv_lib_nsl_gethostbyname=yes
3092  else
3093 @@ -3368,14 +3703,14 @@
3094  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095  LIBS=$ac_check_lib_save_LIBS
3096  fi
3097 -echo "$as_me:3371: result: $ac_cv_lib_nsl_gethostbyname" >&5
3098 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3099  echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3100  if test $ac_cv_lib_nsl_gethostbyname = yes; then
3101    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3102  fi
3103  
3104        if test $ac_cv_lib_nsl_gethostbyname = no; then
3105 -        echo "$as_me:3378: checking for gethostbyname in -lbsd" >&5
3106 +        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3107  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3108  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3109    echo $ECHO_N "(cached) $ECHO_C" >&6
3110 @@ -3383,7 +3718,7 @@
3111    ac_check_lib_save_LIBS=$LIBS
3112  LIBS="-lbsd  $LIBS"
3113  cat >conftest.$ac_ext <<_ACEOF
3114 -#line 3386 "configure"
3115 +#line $LINENO "configure"
3116  #include "confdefs.h"
3117  
3118  /* Override any gcc2 internal prototype to avoid an error.  */
3119 @@ -3408,16 +3743,16 @@
3120  }
3121  _ACEOF
3122  rm -f conftest.$ac_objext conftest$ac_exeext
3123 -if { (eval echo "$as_me:3411: \"$ac_link\"") >&5
3124 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125    (eval $ac_link) 2>&5
3126    ac_status=$?
3127 -  echo "$as_me:3414: \$? = $ac_status" >&5
3128 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129    (exit $ac_status); } &&
3130           { ac_try='test -s conftest$ac_exeext'
3131 -  { (eval echo "$as_me:3417: \"$ac_try\"") >&5
3132 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133    (eval $ac_try) 2>&5
3134    ac_status=$?
3135 -  echo "$as_me:3420: \$? = $ac_status" >&5
3136 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137    (exit $ac_status); }; }; then
3138    ac_cv_lib_bsd_gethostbyname=yes
3139  else
3140 @@ -3428,7 +3763,7 @@
3141  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142  LIBS=$ac_check_lib_save_LIBS
3143  fi
3144 -echo "$as_me:3431: result: $ac_cv_lib_bsd_gethostbyname" >&5
3145 +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3146  echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3147  if test $ac_cv_lib_bsd_gethostbyname = yes; then
3148    X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3149 @@ -3444,13 +3779,13 @@
3150      # variants that don't use the nameserver (or something).  -lsocket
3151      # must be given before -lnsl if both are needed.  We assume that
3152      # if connect needs -lnsl, so does gethostbyname.
3153 -    echo "$as_me:3447: checking for connect" >&5
3154 +    echo "$as_me:$LINENO: checking for connect" >&5
3155  echo $ECHO_N "checking for connect... $ECHO_C" >&6
3156  if test "${ac_cv_func_connect+set}" = set; then
3157    echo $ECHO_N "(cached) $ECHO_C" >&6
3158  else
3159    cat >conftest.$ac_ext <<_ACEOF
3160 -#line 3453 "configure"
3161 +#line $LINENO "configure"
3162  #include "confdefs.h"
3163  /* System header to define __stub macros and hopefully few prototypes,
3164      which can conflict with char connect (); below.  */
3165 @@ -3487,16 +3822,16 @@
3166  }
3167  _ACEOF
3168  rm -f conftest.$ac_objext conftest$ac_exeext
3169 -if { (eval echo "$as_me:3490: \"$ac_link\"") >&5
3170 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171    (eval $ac_link) 2>&5
3172    ac_status=$?
3173 -  echo "$as_me:3493: \$? = $ac_status" >&5
3174 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175    (exit $ac_status); } &&
3176           { ac_try='test -s conftest$ac_exeext'
3177 -  { (eval echo "$as_me:3496: \"$ac_try\"") >&5
3178 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179    (eval $ac_try) 2>&5
3180    ac_status=$?
3181 -  echo "$as_me:3499: \$? = $ac_status" >&5
3182 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183    (exit $ac_status); }; }; then
3184    ac_cv_func_connect=yes
3185  else
3186 @@ -3506,11 +3841,11 @@
3187  fi
3188  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3189  fi
3190 -echo "$as_me:3509: result: $ac_cv_func_connect" >&5
3191 +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3192  echo "${ECHO_T}$ac_cv_func_connect" >&6
3193  
3194      if test $ac_cv_func_connect = no; then
3195 -      echo "$as_me:3513: checking for connect in -lsocket" >&5
3196 +      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3197  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3198  if test "${ac_cv_lib_socket_connect+set}" = set; then
3199    echo $ECHO_N "(cached) $ECHO_C" >&6
3200 @@ -3518,7 +3853,7 @@
3201    ac_check_lib_save_LIBS=$LIBS
3202  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3203  cat >conftest.$ac_ext <<_ACEOF
3204 -#line 3521 "configure"
3205 +#line $LINENO "configure"
3206  #include "confdefs.h"
3207  
3208  /* Override any gcc2 internal prototype to avoid an error.  */
3209 @@ -3543,16 +3878,16 @@
3210  }
3211  _ACEOF
3212  rm -f conftest.$ac_objext conftest$ac_exeext
3213 -if { (eval echo "$as_me:3546: \"$ac_link\"") >&5
3214 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3215    (eval $ac_link) 2>&5
3216    ac_status=$?
3217 -  echo "$as_me:3549: \$? = $ac_status" >&5
3218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219    (exit $ac_status); } &&
3220           { ac_try='test -s conftest$ac_exeext'
3221 -  { (eval echo "$as_me:3552: \"$ac_try\"") >&5
3222 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223    (eval $ac_try) 2>&5
3224    ac_status=$?
3225 -  echo "$as_me:3555: \$? = $ac_status" >&5
3226 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227    (exit $ac_status); }; }; then
3228    ac_cv_lib_socket_connect=yes
3229  else
3230 @@ -3563,7 +3898,7 @@
3231  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3232  LIBS=$ac_check_lib_save_LIBS
3233  fi
3234 -echo "$as_me:3566: result: $ac_cv_lib_socket_connect" >&5
3235 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3236  echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3237  if test $ac_cv_lib_socket_connect = yes; then
3238    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3239 @@ -3572,13 +3907,13 @@
3240      fi
3241  
3242      # Guillermo Gomez says -lposix is necessary on A/UX.
3243 -    echo "$as_me:3575: checking for remove" >&5
3244 +    echo "$as_me:$LINENO: checking for remove" >&5
3245  echo $ECHO_N "checking for remove... $ECHO_C" >&6
3246  if test "${ac_cv_func_remove+set}" = set; then
3247    echo $ECHO_N "(cached) $ECHO_C" >&6
3248  else
3249    cat >conftest.$ac_ext <<_ACEOF
3250 -#line 3581 "configure"
3251 +#line $LINENO "configure"
3252  #include "confdefs.h"
3253  /* System header to define __stub macros and hopefully few prototypes,
3254      which can conflict with char remove (); below.  */
3255 @@ -3615,16 +3950,16 @@
3256  }
3257  _ACEOF
3258  rm -f conftest.$ac_objext conftest$ac_exeext
3259 -if { (eval echo "$as_me:3618: \"$ac_link\"") >&5
3260 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261    (eval $ac_link) 2>&5
3262    ac_status=$?
3263 -  echo "$as_me:3621: \$? = $ac_status" >&5
3264 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265    (exit $ac_status); } &&
3266           { ac_try='test -s conftest$ac_exeext'
3267 -  { (eval echo "$as_me:3624: \"$ac_try\"") >&5
3268 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269    (eval $ac_try) 2>&5
3270    ac_status=$?
3271 -  echo "$as_me:3627: \$? = $ac_status" >&5
3272 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273    (exit $ac_status); }; }; then
3274    ac_cv_func_remove=yes
3275  else
3276 @@ -3634,11 +3969,11 @@
3277  fi
3278  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3279  fi
3280 -echo "$as_me:3637: result: $ac_cv_func_remove" >&5
3281 +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3282  echo "${ECHO_T}$ac_cv_func_remove" >&6
3283  
3284      if test $ac_cv_func_remove = no; then
3285 -      echo "$as_me:3641: checking for remove in -lposix" >&5
3286 +      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3287  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3288  if test "${ac_cv_lib_posix_remove+set}" = set; then
3289    echo $ECHO_N "(cached) $ECHO_C" >&6
3290 @@ -3646,7 +3981,7 @@
3291    ac_check_lib_save_LIBS=$LIBS
3292  LIBS="-lposix  $LIBS"
3293  cat >conftest.$ac_ext <<_ACEOF
3294 -#line 3649 "configure"
3295 +#line $LINENO "configure"
3296  #include "confdefs.h"
3297  
3298  /* Override any gcc2 internal prototype to avoid an error.  */
3299 @@ -3671,16 +4006,16 @@
3300  }
3301  _ACEOF
3302  rm -f conftest.$ac_objext conftest$ac_exeext
3303 -if { (eval echo "$as_me:3674: \"$ac_link\"") >&5
3304 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305    (eval $ac_link) 2>&5
3306    ac_status=$?
3307 -  echo "$as_me:3677: \$? = $ac_status" >&5
3308 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309    (exit $ac_status); } &&
3310           { ac_try='test -s conftest$ac_exeext'
3311 -  { (eval echo "$as_me:3680: \"$ac_try\"") >&5
3312 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313    (eval $ac_try) 2>&5
3314    ac_status=$?
3315 -  echo "$as_me:3683: \$? = $ac_status" >&5
3316 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317    (exit $ac_status); }; }; then
3318    ac_cv_lib_posix_remove=yes
3319  else
3320 @@ -3691,7 +4026,7 @@
3321  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3322  LIBS=$ac_check_lib_save_LIBS
3323  fi
3324 -echo "$as_me:3694: result: $ac_cv_lib_posix_remove" >&5
3325 +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3326  echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3327  if test $ac_cv_lib_posix_remove = yes; then
3328    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3329 @@ -3700,13 +4035,13 @@
3330      fi
3331  
3332      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3333 -    echo "$as_me:3703: checking for shmat" >&5
3334 +    echo "$as_me:$LINENO: checking for shmat" >&5
3335  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3336  if test "${ac_cv_func_shmat+set}" = set; then
3337    echo $ECHO_N "(cached) $ECHO_C" >&6
3338  else
3339    cat >conftest.$ac_ext <<_ACEOF
3340 -#line 3709 "configure"
3341 +#line $LINENO "configure"
3342  #include "confdefs.h"
3343  /* System header to define __stub macros and hopefully few prototypes,
3344      which can conflict with char shmat (); below.  */
3345 @@ -3743,16 +4078,16 @@
3346  }
3347  _ACEOF
3348  rm -f conftest.$ac_objext conftest$ac_exeext
3349 -if { (eval echo "$as_me:3746: \"$ac_link\"") >&5
3350 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351    (eval $ac_link) 2>&5
3352    ac_status=$?
3353 -  echo "$as_me:3749: \$? = $ac_status" >&5
3354 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355    (exit $ac_status); } &&
3356           { ac_try='test -s conftest$ac_exeext'
3357 -  { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3358 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359    (eval $ac_try) 2>&5
3360    ac_status=$?
3361 -  echo "$as_me:3755: \$? = $ac_status" >&5
3362 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363    (exit $ac_status); }; }; then
3364    ac_cv_func_shmat=yes
3365  else
3366 @@ -3762,11 +4097,11 @@
3367  fi
3368  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3369  fi
3370 -echo "$as_me:3765: result: $ac_cv_func_shmat" >&5
3371 +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3372  echo "${ECHO_T}$ac_cv_func_shmat" >&6
3373  
3374      if test $ac_cv_func_shmat = no; then
3375 -      echo "$as_me:3769: checking for shmat in -lipc" >&5
3376 +      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3377  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3378  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3379    echo $ECHO_N "(cached) $ECHO_C" >&6
3380 @@ -3774,7 +4109,7 @@
3381    ac_check_lib_save_LIBS=$LIBS
3382  LIBS="-lipc  $LIBS"
3383  cat >conftest.$ac_ext <<_ACEOF
3384 -#line 3777 "configure"
3385 +#line $LINENO "configure"
3386  #include "confdefs.h"
3387  
3388  /* Override any gcc2 internal prototype to avoid an error.  */
3389 @@ -3799,16 +4134,16 @@
3390  }
3391  _ACEOF
3392  rm -f conftest.$ac_objext conftest$ac_exeext
3393 -if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
3394 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395    (eval $ac_link) 2>&5
3396    ac_status=$?
3397 -  echo "$as_me:3805: \$? = $ac_status" >&5
3398 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399    (exit $ac_status); } &&
3400           { ac_try='test -s conftest$ac_exeext'
3401 -  { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3402 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403    (eval $ac_try) 2>&5
3404    ac_status=$?
3405 -  echo "$as_me:3811: \$? = $ac_status" >&5
3406 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407    (exit $ac_status); }; }; then
3408    ac_cv_lib_ipc_shmat=yes
3409  else
3410 @@ -3819,7 +4154,7 @@
3411  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3412  LIBS=$ac_check_lib_save_LIBS
3413  fi
3414 -echo "$as_me:3822: result: $ac_cv_lib_ipc_shmat" >&5
3415 +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3416  echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3417  if test $ac_cv_lib_ipc_shmat = yes; then
3418    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3419 @@ -3837,7 +4172,7 @@
3420    # These have to be linked with before -lX11, unlike the other
3421    # libraries we check for below, so use a different variable.
3422    # John Interrante, Karl Berry
3423 -  echo "$as_me:3840: checking for IceConnectionNumber in -lICE" >&5
3424 +  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3425  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3426  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3427    echo $ECHO_N "(cached) $ECHO_C" >&6
3428 @@ -3845,7 +4180,7 @@
3429    ac_check_lib_save_LIBS=$LIBS
3430  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3431  cat >conftest.$ac_ext <<_ACEOF
3432 -#line 3848 "configure"
3433 +#line $LINENO "configure"
3434  #include "confdefs.h"
3435  
3436  /* Override any gcc2 internal prototype to avoid an error.  */
3437 @@ -3870,16 +4205,16 @@
3438  }
3439  _ACEOF
3440  rm -f conftest.$ac_objext conftest$ac_exeext
3441 -if { (eval echo "$as_me:3873: \"$ac_link\"") >&5
3442 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443    (eval $ac_link) 2>&5
3444    ac_status=$?
3445 -  echo "$as_me:3876: \$? = $ac_status" >&5
3446 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447    (exit $ac_status); } &&
3448           { ac_try='test -s conftest$ac_exeext'
3449 -  { (eval echo "$as_me:3879: \"$ac_try\"") >&5
3450 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451    (eval $ac_try) 2>&5
3452    ac_status=$?
3453 -  echo "$as_me:3882: \$? = $ac_status" >&5
3454 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455    (exit $ac_status); }; }; then
3456    ac_cv_lib_ICE_IceConnectionNumber=yes
3457  else
3458 @@ -3890,7 +4225,7 @@
3459  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3460  LIBS=$ac_check_lib_save_LIBS
3461  fi
3462 -echo "$as_me:3893: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3463 +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3464  echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3465  if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3466    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3467 @@ -3902,16 +4237,22 @@
3468  
3469  ac_config_headers="$ac_config_headers sysconfig.h"
3470  
3471 +
3472 +
3473 +
3474 +
3475 +
3476 +
3477  ac_header_dirent=no
3478  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3479    as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3480 -echo "$as_me:3908: checking for $ac_hdr that defines DIR" >&5
3481 +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3482  echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3483  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484    echo $ECHO_N "(cached) $ECHO_C" >&6
3485  else
3486    cat >conftest.$ac_ext <<_ACEOF
3487 -#line 3914 "configure"
3488 +#line $LINENO "configure"
3489  #include "confdefs.h"
3490  #include <sys/types.h>
3491  #include <$ac_hdr>
3492 @@ -3932,16 +4273,16 @@
3493  }
3494  _ACEOF
3495  rm -f conftest.$ac_objext
3496 -if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5
3497 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498    (eval $ac_compile) 2>&5
3499    ac_status=$?
3500 -  echo "$as_me:3938: \$? = $ac_status" >&5
3501 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502    (exit $ac_status); } &&
3503           { ac_try='test -s conftest.$ac_objext'
3504 -  { (eval echo "$as_me:3941: \"$ac_try\"") >&5
3505 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506    (eval $ac_try) 2>&5
3507    ac_status=$?
3508 -  echo "$as_me:3944: \$? = $ac_status" >&5
3509 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510    (exit $ac_status); }; }; then
3511    eval "$as_ac_Header=yes"
3512  else
3513 @@ -3951,7 +4292,7 @@
3514  fi
3515  rm -f conftest.$ac_objext conftest.$ac_ext
3516  fi
3517 -echo "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5
3518 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520  if test `eval echo '${'$as_ac_Header'}'` = yes; then
3521    cat >>confdefs.h <<_ACEOF
3522 @@ -3964,15 +4305,15 @@
3523  done
3524  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3525  if test $ac_header_dirent = dirent.h; then
3526 -  echo "$as_me:3967: checking for opendir in -ldir" >&5
3527 -echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3528 -if test "${ac_cv_lib_dir_opendir+set}" = set; then
3529 +  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3530 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3531 +if test "${ac_cv_search_opendir+set}" = set; then
3532    echo $ECHO_N "(cached) $ECHO_C" >&6
3533  else
3534 -  ac_check_lib_save_LIBS=$LIBS
3535 -LIBS="-ldir  $LIBS"
3536 +  ac_func_search_save_LIBS=$LIBS
3537 +ac_cv_search_opendir=no
3538  cat >conftest.$ac_ext <<_ACEOF
3539 -#line 3975 "configure"
3540 +#line $LINENO "configure"
3541  #include "confdefs.h"
3542  
3543  /* Override any gcc2 internal prototype to avoid an error.  */
3544 @@ -3997,42 +4338,91 @@
3545  }
3546  _ACEOF
3547  rm -f conftest.$ac_objext conftest$ac_exeext
3548 -if { (eval echo "$as_me:4000: \"$ac_link\"") >&5
3549 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550    (eval $ac_link) 2>&5
3551    ac_status=$?
3552 -  echo "$as_me:4003: \$? = $ac_status" >&5
3553 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554    (exit $ac_status); } &&
3555           { ac_try='test -s conftest$ac_exeext'
3556 -  { (eval echo "$as_me:4006: \"$ac_try\"") >&5
3557 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558    (eval $ac_try) 2>&5
3559    ac_status=$?
3560 -  echo "$as_me:4009: \$? = $ac_status" >&5
3561 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562    (exit $ac_status); }; }; then
3563 -  ac_cv_lib_dir_opendir=yes
3564 +  ac_cv_search_opendir="none required"
3565  else
3566    echo "$as_me: failed program was:" >&5
3567  cat conftest.$ac_ext >&5
3568 -ac_cv_lib_dir_opendir=no
3569  fi
3570  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3571 -LIBS=$ac_check_lib_save_LIBS
3572 +if test "$ac_cv_search_opendir" = no; then
3573 +  for ac_lib in dir; do
3574 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3575 +    cat >conftest.$ac_ext <<_ACEOF
3576 +#line $LINENO "configure"
3577 +#include "confdefs.h"
3578 +
3579 +/* Override any gcc2 internal prototype to avoid an error.  */
3580 +#ifdef __cplusplus
3581 +extern "C"
3582 +#endif
3583 +/* We use char because int might match the return type of a gcc2
3584 +   builtin and then its argument prototype would still apply.  */
3585 +char opendir ();
3586 +#ifdef F77_DUMMY_MAIN
3587 +#  ifdef __cplusplus
3588 +     extern "C"
3589 +#  endif
3590 +   int F77_DUMMY_MAIN() { return 1; }
3591 +#endif
3592 +int
3593 +main ()
3594 +{
3595 +opendir ();
3596 +  ;
3597 +  return 0;
3598 +}
3599 +_ACEOF
3600 +rm -f conftest.$ac_objext conftest$ac_exeext
3601 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 +  (eval $ac_link) 2>&5
3603 +  ac_status=$?
3604 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 +  (exit $ac_status); } &&
3606 +         { ac_try='test -s conftest$ac_exeext'
3607 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 +  (eval $ac_try) 2>&5
3609 +  ac_status=$?
3610 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 +  (exit $ac_status); }; }; then
3612 +  ac_cv_search_opendir="-l$ac_lib"
3613 +break
3614 +else
3615 +  echo "$as_me: failed program was:" >&5
3616 +cat conftest.$ac_ext >&5
3617  fi
3618 -echo "$as_me:4020: result: $ac_cv_lib_dir_opendir" >&5
3619 -echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3620 -if test $ac_cv_lib_dir_opendir = yes; then
3621 -  LIBS="$LIBS -ldir"
3622 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3623 +  done
3624 +fi
3625 +LIBS=$ac_func_search_save_LIBS
3626 +fi
3627 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3628 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
3629 +if test "$ac_cv_search_opendir" != no; then
3630 +  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3631 +
3632  fi
3633  
3634  else
3635 -  echo "$as_me:4027: checking for opendir in -lx" >&5
3636 -echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3637 -if test "${ac_cv_lib_x_opendir+set}" = set; then
3638 +  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3639 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3640 +if test "${ac_cv_search_opendir+set}" = set; then
3641    echo $ECHO_N "(cached) $ECHO_C" >&6
3642  else
3643 -  ac_check_lib_save_LIBS=$LIBS
3644 -LIBS="-lx  $LIBS"
3645 +  ac_func_search_save_LIBS=$LIBS
3646 +ac_cv_search_opendir=no
3647  cat >conftest.$ac_ext <<_ACEOF
3648 -#line 4035 "configure"
3649 +#line $LINENO "configure"
3650  #include "confdefs.h"
3651  
3652  /* Override any gcc2 internal prototype to avoid an error.  */
3653 @@ -4057,41 +4447,90 @@
3654  }
3655  _ACEOF
3656  rm -f conftest.$ac_objext conftest$ac_exeext
3657 -if { (eval echo "$as_me:4060: \"$ac_link\"") >&5
3658 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659    (eval $ac_link) 2>&5
3660    ac_status=$?
3661 -  echo "$as_me:4063: \$? = $ac_status" >&5
3662 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663    (exit $ac_status); } &&
3664           { ac_try='test -s conftest$ac_exeext'
3665 -  { (eval echo "$as_me:4066: \"$ac_try\"") >&5
3666 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667    (eval $ac_try) 2>&5
3668    ac_status=$?
3669 -  echo "$as_me:4069: \$? = $ac_status" >&5
3670 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671    (exit $ac_status); }; }; then
3672 -  ac_cv_lib_x_opendir=yes
3673 +  ac_cv_search_opendir="none required"
3674  else
3675    echo "$as_me: failed program was:" >&5
3676  cat conftest.$ac_ext >&5
3677 -ac_cv_lib_x_opendir=no
3678  fi
3679  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 -LIBS=$ac_check_lib_save_LIBS
3681 +if test "$ac_cv_search_opendir" = no; then
3682 +  for ac_lib in x; do
3683 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3684 +    cat >conftest.$ac_ext <<_ACEOF
3685 +#line $LINENO "configure"
3686 +#include "confdefs.h"
3687 +
3688 +/* Override any gcc2 internal prototype to avoid an error.  */
3689 +#ifdef __cplusplus
3690 +extern "C"
3691 +#endif
3692 +/* We use char because int might match the return type of a gcc2
3693 +   builtin and then its argument prototype would still apply.  */
3694 +char opendir ();
3695 +#ifdef F77_DUMMY_MAIN
3696 +#  ifdef __cplusplus
3697 +     extern "C"
3698 +#  endif
3699 +   int F77_DUMMY_MAIN() { return 1; }
3700 +#endif
3701 +int
3702 +main ()
3703 +{
3704 +opendir ();
3705 +  ;
3706 +  return 0;
3707 +}
3708 +_ACEOF
3709 +rm -f conftest.$ac_objext conftest$ac_exeext
3710 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 +  (eval $ac_link) 2>&5
3712 +  ac_status=$?
3713 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 +  (exit $ac_status); } &&
3715 +         { ac_try='test -s conftest$ac_exeext'
3716 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 +  (eval $ac_try) 2>&5
3718 +  ac_status=$?
3719 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 +  (exit $ac_status); }; }; then
3721 +  ac_cv_search_opendir="-l$ac_lib"
3722 +break
3723 +else
3724 +  echo "$as_me: failed program was:" >&5
3725 +cat conftest.$ac_ext >&5
3726 +fi
3727 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 +  done
3729  fi
3730 -echo "$as_me:4080: result: $ac_cv_lib_x_opendir" >&5
3731 -echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3732 -if test $ac_cv_lib_x_opendir = yes; then
3733 -  LIBS="$LIBS -lx"
3734 +LIBS=$ac_func_search_save_LIBS
3735 +fi
3736 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3737 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
3738 +if test "$ac_cv_search_opendir" != no; then
3739 +  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3740 +
3741  fi
3742  
3743  fi
3744  
3745 -echo "$as_me:4088: checking for ANSI C header files" >&5
3746 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748  if test "${ac_cv_header_stdc+set}" = set; then
3749    echo $ECHO_N "(cached) $ECHO_C" >&6
3750  else
3751    cat >conftest.$ac_ext <<_ACEOF
3752 -#line 4094 "configure"
3753 +#line $LINENO "configure"
3754  #include "confdefs.h"
3755  #include <stdlib.h>
3756  #include <stdarg.h>
3757 @@ -4099,13 +4538,13 @@
3758  #include <float.h>
3759  
3760  _ACEOF
3761 -if { (eval echo "$as_me:4102: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3763    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3764    ac_status=$?
3765    egrep -v '^ *\+' conftest.er1 >conftest.err
3766    rm -f conftest.er1
3767    cat conftest.err >&5
3768 -  echo "$as_me:4108: \$? = $ac_status" >&5
3769 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770    (exit $ac_status); } >/dev/null; then
3771    if test -s conftest.err; then
3772      ac_cpp_err=$ac_c_preproc_warn_flag
3773 @@ -4127,7 +4566,7 @@
3774  if test $ac_cv_header_stdc = yes; then
3775    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776    cat >conftest.$ac_ext <<_ACEOF
3777 -#line 4130 "configure"
3778 +#line $LINENO "configure"
3779  #include "confdefs.h"
3780  #include <string.h>
3781  
3782 @@ -4145,7 +4584,7 @@
3783  if test $ac_cv_header_stdc = yes; then
3784    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785    cat >conftest.$ac_ext <<_ACEOF
3786 -#line 4148 "configure"
3787 +#line $LINENO "configure"
3788  #include "confdefs.h"
3789  #include <stdlib.h>
3790  
3791 @@ -4166,7 +4605,7 @@
3792    :
3793  else
3794    cat >conftest.$ac_ext <<_ACEOF
3795 -#line 4169 "configure"
3796 +#line $LINENO "configure"
3797  #include "confdefs.h"
3798  #include <ctype.h>
3799  #if ((' ' & 0x0FF) == 0x020)
3800 @@ -4192,28 +4631,29 @@
3801  }
3802  _ACEOF
3803  rm -f conftest$ac_exeext
3804 -if { (eval echo "$as_me:4195: \"$ac_link\"") >&5
3805 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806    (eval $ac_link) 2>&5
3807    ac_status=$?
3808 -  echo "$as_me:4198: \$? = $ac_status" >&5
3809 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3811 -  { (eval echo "$as_me:4200: \"$ac_try\"") >&5
3812 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813    (eval $ac_try) 2>&5
3814    ac_status=$?
3815 -  echo "$as_me:4203: \$? = $ac_status" >&5
3816 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817    (exit $ac_status); }; }; then
3818    :
3819  else
3820    echo "$as_me: program exited with status $ac_status" >&5
3821  echo "$as_me: failed program was:" >&5
3822  cat conftest.$ac_ext >&5
3823 +( exit $ac_status )
3824  ac_cv_header_stdc=no
3825  fi
3826  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3827  fi
3828  fi
3829  fi
3830 -echo "$as_me:4216: result: $ac_cv_header_stdc" >&5
3831 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3832  echo "${ECHO_T}$ac_cv_header_stdc" >&6
3833  if test $ac_cv_header_stdc = yes; then
3834  
3835 @@ -4225,33 +4665,41 @@
3836  
3837  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3838  
3839 +
3840 +
3841 +
3842 +
3843 +
3844 +
3845 +
3846 +
3847  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848                    inttypes.h stdint.h unistd.h
3849  do
3850  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 -echo "$as_me:4232: checking for $ac_header" >&5
3852 +echo "$as_me:$LINENO: checking for $ac_header" >&5
3853  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3854  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3855    echo $ECHO_N "(cached) $ECHO_C" >&6
3856  else
3857    cat >conftest.$ac_ext <<_ACEOF
3858 -#line 4238 "configure"
3859 +#line $LINENO "configure"
3860  #include "confdefs.h"
3861  $ac_includes_default
3862  
3863  #include <$ac_header>
3864  _ACEOF
3865  rm -f conftest.$ac_objext
3866 -if { (eval echo "$as_me:4245: \"$ac_compile\"") >&5
3867 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868    (eval $ac_compile) 2>&5
3869    ac_status=$?
3870 -  echo "$as_me:4248: \$? = $ac_status" >&5
3871 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872    (exit $ac_status); } &&
3873           { ac_try='test -s conftest.$ac_objext'
3874 -  { (eval echo "$as_me:4251: \"$ac_try\"") >&5
3875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876    (eval $ac_try) 2>&5
3877    ac_status=$?
3878 -  echo "$as_me:4254: \$? = $ac_status" >&5
3879 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880    (exit $ac_status); }; }; then
3881    eval "$as_ac_Header=yes"
3882  else
3883 @@ -4261,7 +4709,7 @@
3884  fi
3885  rm -f conftest.$ac_objext conftest.$ac_ext
3886  fi
3887 -echo "$as_me:4264: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3889  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3890  if test `eval echo '${'$as_ac_Header'}'` = yes; then
3891    cat >>confdefs.h <<_ACEOF
3892 @@ -4272,38 +4720,48 @@
3893  
3894  done
3895  
3896 +
3897 +
3898 +
3899 +
3900 +
3901 +
3902 +
3903 +
3904 +
3905 +
3906  for ac_header in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h
3907  do
3908  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3910 -  echo "$as_me:4279: checking for $ac_header" >&5
3911 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
3912  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3913  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914    echo $ECHO_N "(cached) $ECHO_C" >&6
3915  fi
3916 -echo "$as_me:4284: result: `eval echo '${'$as_ac_Header'}'`" >&5
3917 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3918  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3919  else
3920    # Is the header compilable?
3921 -echo "$as_me:4288: checking $ac_header usability" >&5
3922 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
3923  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3924  cat >conftest.$ac_ext <<_ACEOF
3925 -#line 4291 "configure"
3926 +#line $LINENO "configure"
3927  #include "confdefs.h"
3928  $ac_includes_default
3929  #include <$ac_header>
3930  _ACEOF
3931  rm -f conftest.$ac_objext
3932 -if { (eval echo "$as_me:4297: \"$ac_compile\"") >&5
3933 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934    (eval $ac_compile) 2>&5
3935    ac_status=$?
3936 -  echo "$as_me:4300: \$? = $ac_status" >&5
3937 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938    (exit $ac_status); } &&
3939           { ac_try='test -s conftest.$ac_objext'
3940 -  { (eval echo "$as_me:4303: \"$ac_try\"") >&5
3941 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942    (eval $ac_try) 2>&5
3943    ac_status=$?
3944 -  echo "$as_me:4306: \$? = $ac_status" >&5
3945 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946    (exit $ac_status); }; }; then
3947    ac_header_compiler=yes
3948  else
3949 @@ -4312,24 +4770,24 @@
3950  ac_header_compiler=no
3951  fi
3952  rm -f conftest.$ac_objext conftest.$ac_ext
3953 -echo "$as_me:4315: result: $ac_header_compiler" >&5
3954 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3955  echo "${ECHO_T}$ac_header_compiler" >&6
3956  
3957  # Is the header present?
3958 -echo "$as_me:4319: checking $ac_header presence" >&5
3959 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
3960  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3961  cat >conftest.$ac_ext <<_ACEOF
3962 -#line 4322 "configure"
3963 +#line $LINENO "configure"
3964  #include "confdefs.h"
3965  #include <$ac_header>
3966  _ACEOF
3967 -if { (eval echo "$as_me:4326: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3969    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3970    ac_status=$?
3971    egrep -v '^ *\+' conftest.er1 >conftest.err
3972    rm -f conftest.er1
3973    cat conftest.err >&5
3974 -  echo "$as_me:4332: \$? = $ac_status" >&5
3975 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976    (exit $ac_status); } >/dev/null; then
3977    if test -s conftest.err; then
3978      ac_cpp_err=$ac_c_preproc_warn_flag
3979 @@ -4347,32 +4805,32 @@
3980    ac_header_preproc=no
3981  fi
3982  rm -f conftest.err conftest.$ac_ext
3983 -echo "$as_me:4350: result: $ac_header_preproc" >&5
3984 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3985  echo "${ECHO_T}$ac_header_preproc" >&6
3986  
3987  # So?  What about this header?
3988  case $ac_header_compiler:$ac_header_preproc in
3989    yes:no )
3990 -    { echo "$as_me:4356: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3991 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3992  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3993 -    { echo "$as_me:4358: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3994 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3995  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3996    no:yes )
3997 -    { echo "$as_me:4361: WARNING: $ac_header: present but cannot be compiled." >&5
3998 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3999 -    { echo "$as_me:4363: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4000 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4001 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4002 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4003  echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4004 -    { echo "$as_me:4365: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4005 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4006  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4007  esac
4008 -echo "$as_me:4368: checking for $ac_header" >&5
4009 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4010  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4011  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4012    echo $ECHO_N "(cached) $ECHO_C" >&6
4013  else
4014    eval "$as_ac_Header=$ac_header_preproc"
4015  fi
4016 -echo "$as_me:4375: result: `eval echo '${'$as_ac_Header'}'`" >&5
4017 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4018  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4019  
4020  fi
4021 @@ -4385,38 +4843,46 @@
4022  
4023  done
4024  
4025 +
4026 +
4027 +
4028 +
4029 +
4030 +
4031 +
4032 +
4033  for ac_header in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h linux/joystick.h
4034  do
4035  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037 -  echo "$as_me:4392: checking for $ac_header" >&5
4038 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
4039  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041    echo $ECHO_N "(cached) $ECHO_C" >&6
4042  fi
4043 -echo "$as_me:4397: result: `eval echo '${'$as_ac_Header'}'`" >&5
4044 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4045  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4046  else
4047    # Is the header compilable?
4048 -echo "$as_me:4401: checking $ac_header usability" >&5
4049 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
4050  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4051  cat >conftest.$ac_ext <<_ACEOF
4052 -#line 4404 "configure"
4053 +#line $LINENO "configure"
4054  #include "confdefs.h"
4055  $ac_includes_default
4056  #include <$ac_header>
4057  _ACEOF
4058  rm -f conftest.$ac_objext
4059 -if { (eval echo "$as_me:4410: \"$ac_compile\"") >&5
4060 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061    (eval $ac_compile) 2>&5
4062    ac_status=$?
4063 -  echo "$as_me:4413: \$? = $ac_status" >&5
4064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065    (exit $ac_status); } &&
4066           { ac_try='test -s conftest.$ac_objext'
4067 -  { (eval echo "$as_me:4416: \"$ac_try\"") >&5
4068 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069    (eval $ac_try) 2>&5
4070    ac_status=$?
4071 -  echo "$as_me:4419: \$? = $ac_status" >&5
4072 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073    (exit $ac_status); }; }; then
4074    ac_header_compiler=yes
4075  else
4076 @@ -4425,24 +4891,24 @@
4077  ac_header_compiler=no
4078  fi
4079  rm -f conftest.$ac_objext conftest.$ac_ext
4080 -echo "$as_me:4428: result: $ac_header_compiler" >&5
4081 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4082  echo "${ECHO_T}$ac_header_compiler" >&6
4083  
4084  # Is the header present?
4085 -echo "$as_me:4432: checking $ac_header presence" >&5
4086 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
4087  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4088  cat >conftest.$ac_ext <<_ACEOF
4089 -#line 4435 "configure"
4090 +#line $LINENO "configure"
4091  #include "confdefs.h"
4092  #include <$ac_header>
4093  _ACEOF
4094 -if { (eval echo "$as_me:4439: \"$ac_cpp conftest.$ac_ext\"") >&5
4095 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4097    ac_status=$?
4098    egrep -v '^ *\+' conftest.er1 >conftest.err
4099    rm -f conftest.er1
4100    cat conftest.err >&5
4101 -  echo "$as_me:4445: \$? = $ac_status" >&5
4102 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103    (exit $ac_status); } >/dev/null; then
4104    if test -s conftest.err; then
4105      ac_cpp_err=$ac_c_preproc_warn_flag
4106 @@ -4460,32 +4926,32 @@
4107    ac_header_preproc=no
4108  fi
4109  rm -f conftest.err conftest.$ac_ext
4110 -echo "$as_me:4463: result: $ac_header_preproc" >&5
4111 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4112  echo "${ECHO_T}$ac_header_preproc" >&6
4113  
4114  # So?  What about this header?
4115  case $ac_header_compiler:$ac_header_preproc in
4116    yes:no )
4117 -    { echo "$as_me:4469: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4118 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4119  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4120 -    { echo "$as_me:4471: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4121 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4122  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4123    no:yes )
4124 -    { echo "$as_me:4474: WARNING: $ac_header: present but cannot be compiled." >&5
4125 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4126 -    { echo "$as_me:4476: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4127 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4128 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4129 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4130  echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4131 -    { echo "$as_me:4478: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4133  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4134  esac
4135 -echo "$as_me:4481: checking for $ac_header" >&5
4136 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4137  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4138  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4139    echo $ECHO_N "(cached) $ECHO_C" >&6
4140  else
4141    eval "$as_ac_Header=$ac_header_preproc"
4142  fi
4143 -echo "$as_me:4488: result: `eval echo '${'$as_ac_Header'}'`" >&5
4144 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4145  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4146  
4147  fi
4148 @@ -4498,13 +4964,14 @@
4149  
4150  done
4151  
4152 -echo "$as_me:4501: checking for char" >&5
4153 +
4154 +echo "$as_me:$LINENO: checking for char" >&5
4155  echo $ECHO_N "checking for char... $ECHO_C" >&6
4156  if test "${ac_cv_type_char+set}" = set; then
4157    echo $ECHO_N "(cached) $ECHO_C" >&6
4158  else
4159    cat >conftest.$ac_ext <<_ACEOF
4160 -#line 4507 "configure"
4161 +#line $LINENO "configure"
4162  #include "confdefs.h"
4163  $ac_includes_default
4164  #ifdef F77_DUMMY_MAIN
4165 @@ -4525,16 +4992,16 @@
4166  }
4167  _ACEOF
4168  rm -f conftest.$ac_objext
4169 -if { (eval echo "$as_me:4528: \"$ac_compile\"") >&5
4170 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171    (eval $ac_compile) 2>&5
4172    ac_status=$?
4173 -  echo "$as_me:4531: \$? = $ac_status" >&5
4174 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175    (exit $ac_status); } &&
4176           { ac_try='test -s conftest.$ac_objext'
4177 -  { (eval echo "$as_me:4534: \"$ac_try\"") >&5
4178 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179    (eval $ac_try) 2>&5
4180    ac_status=$?
4181 -  echo "$as_me:4537: \$? = $ac_status" >&5
4182 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183    (exit $ac_status); }; }; then
4184    ac_cv_type_char=yes
4185  else
4186 @@ -4544,19 +5011,23 @@
4187  fi
4188  rm -f conftest.$ac_objext conftest.$ac_ext
4189  fi
4190 -echo "$as_me:4547: result: $ac_cv_type_char" >&5
4191 +echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4192  echo "${ECHO_T}$ac_cv_type_char" >&6
4193  
4194 -echo "$as_me:4550: checking size of char" >&5
4195 +echo "$as_me:$LINENO: checking size of char" >&5
4196  echo $ECHO_N "checking size of char... $ECHO_C" >&6
4197  if test "${ac_cv_sizeof_char+set}" = set; then
4198    echo $ECHO_N "(cached) $ECHO_C" >&6
4199  else
4200    if test "$ac_cv_type_char" = yes; then
4201 +  # The cast to unsigned long works around a bug in the HP C Compiler
4202 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4203 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4204 +  # This bug is HP SR number 8606223364.
4205    if test "$cross_compiling" = yes; then
4206    # Depending upon the size, compute the lo and hi bounds.
4207  cat >conftest.$ac_ext <<_ACEOF
4208 -#line 4559 "configure"
4209 +#line $LINENO "configure"
4210  #include "confdefs.h"
4211  $ac_includes_default
4212  #ifdef F77_DUMMY_MAIN
4213 @@ -4568,27 +5039,29 @@
4214  int
4215  main ()
4216  {
4217 -int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
4218 +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4219 +test_array [0] = 0
4220 +
4221    ;
4222    return 0;
4223  }
4224  _ACEOF
4225  rm -f conftest.$ac_objext
4226 -if { (eval echo "$as_me:4577: \"$ac_compile\"") >&5
4227 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228    (eval $ac_compile) 2>&5
4229    ac_status=$?
4230 -  echo "$as_me:4580: \$? = $ac_status" >&5
4231 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232    (exit $ac_status); } &&
4233           { ac_try='test -s conftest.$ac_objext'
4234 -  { (eval echo "$as_me:4583: \"$ac_try\"") >&5
4235 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236    (eval $ac_try) 2>&5
4237    ac_status=$?
4238 -  echo "$as_me:4586: \$? = $ac_status" >&5
4239 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240    (exit $ac_status); }; }; then
4241    ac_lo=0 ac_mid=0
4242    while :; do
4243      cat >conftest.$ac_ext <<_ACEOF
4244 -#line 4591 "configure"
4245 +#line $LINENO "configure"
4246  #include "confdefs.h"
4247  $ac_includes_default
4248  #ifdef F77_DUMMY_MAIN
4249 @@ -4600,38 +5073,77 @@
4250  int
4251  main ()
4252  {
4253 -int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
4254 +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4255 +test_array [0] = 0
4256 +
4257    ;
4258    return 0;
4259  }
4260  _ACEOF
4261  rm -f conftest.$ac_objext
4262 -if { (eval echo "$as_me:4609: \"$ac_compile\"") >&5
4263 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264    (eval $ac_compile) 2>&5
4265    ac_status=$?
4266 -  echo "$as_me:4612: \$? = $ac_status" >&5
4267 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268    (exit $ac_status); } &&
4269           { ac_try='test -s conftest.$ac_objext'
4270 -  { (eval echo "$as_me:4615: \"$ac_try\"") >&5
4271 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272    (eval $ac_try) 2>&5
4273    ac_status=$?
4274 -  echo "$as_me:4618: \$? = $ac_status" >&5
4275 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276    (exit $ac_status); }; }; then
4277    ac_hi=$ac_mid; break
4278  else
4279    echo "$as_me: failed program was:" >&5
4280  cat conftest.$ac_ext >&5
4281 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4282 +ac_lo=`expr $ac_mid + 1`
4283 +                    if test $ac_lo -le $ac_mid; then
4284 +                      ac_lo= ac_hi=
4285 +                      break
4286 +                    fi
4287 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
4288  fi
4289  rm -f conftest.$ac_objext conftest.$ac_ext
4290    done
4291  else
4292    echo "$as_me: failed program was:" >&5
4293  cat conftest.$ac_ext >&5
4294 -ac_hi=-1 ac_mid=-1
4295 +cat >conftest.$ac_ext <<_ACEOF
4296 +#line $LINENO "configure"
4297 +#include "confdefs.h"
4298 +$ac_includes_default
4299 +#ifdef F77_DUMMY_MAIN
4300 +#  ifdef __cplusplus
4301 +     extern "C"
4302 +#  endif
4303 +   int F77_DUMMY_MAIN() { return 1; }
4304 +#endif
4305 +int
4306 +main ()
4307 +{
4308 +static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4309 +test_array [0] = 0
4310 +
4311 +  ;
4312 +  return 0;
4313 +}
4314 +_ACEOF
4315 +rm -f conftest.$ac_objext
4316 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 +  (eval $ac_compile) 2>&5
4318 +  ac_status=$?
4319 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 +  (exit $ac_status); } &&
4321 +         { ac_try='test -s conftest.$ac_objext'
4322 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 +  (eval $ac_try) 2>&5
4324 +  ac_status=$?
4325 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 +  (exit $ac_status); }; }; then
4327 +  ac_hi=-1 ac_mid=-1
4328    while :; do
4329      cat >conftest.$ac_ext <<_ACEOF
4330 -#line 4634 "configure"
4331 +#line $LINENO "configure"
4332  #include "confdefs.h"
4333  $ac_includes_default
4334  #ifdef F77_DUMMY_MAIN
4335 @@ -4643,38 +5155,51 @@
4336  int
4337  main ()
4338  {
4339 -int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
4340 +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4341 +test_array [0] = 0
4342 +
4343    ;
4344    return 0;
4345  }
4346  _ACEOF
4347  rm -f conftest.$ac_objext
4348 -if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
4349 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350    (eval $ac_compile) 2>&5
4351    ac_status=$?
4352 -  echo "$as_me:4655: \$? = $ac_status" >&5
4353 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354    (exit $ac_status); } &&
4355           { ac_try='test -s conftest.$ac_objext'
4356 -  { (eval echo "$as_me:4658: \"$ac_try\"") >&5
4357 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358    (eval $ac_try) 2>&5
4359    ac_status=$?
4360 -  echo "$as_me:4661: \$? = $ac_status" >&5
4361 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362    (exit $ac_status); }; }; then
4363    ac_lo=$ac_mid; break
4364  else
4365    echo "$as_me: failed program was:" >&5
4366  cat conftest.$ac_ext >&5
4367 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4368 +ac_hi=`expr '(' $ac_mid ')' - 1`
4369 +                       if test $ac_mid -le $ac_hi; then
4370 +                         ac_lo= ac_hi=
4371 +                         break
4372 +                       fi
4373 +                       ac_mid=`expr 2 '*' $ac_mid`
4374  fi
4375  rm -f conftest.$ac_objext conftest.$ac_ext
4376    done
4377 +else
4378 +  echo "$as_me: failed program was:" >&5
4379 +cat conftest.$ac_ext >&5
4380 +ac_lo= ac_hi=
4381 +fi
4382 +rm -f conftest.$ac_objext conftest.$ac_ext
4383  fi
4384  rm -f conftest.$ac_objext conftest.$ac_ext
4385  # Binary search between lo and hi bounds.
4386  while test "x$ac_lo" != "x$ac_hi"; do
4387    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4388    cat >conftest.$ac_ext <<_ACEOF
4389 -#line 4677 "configure"
4390 +#line $LINENO "configure"
4391  #include "confdefs.h"
4392  $ac_includes_default
4393  #ifdef F77_DUMMY_MAIN
4394 @@ -4686,42 +5211,53 @@
4395  int
4396  main ()
4397  {
4398 -int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
4399 +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4400 +test_array [0] = 0
4401 +
4402    ;
4403    return 0;
4404  }
4405  _ACEOF
4406  rm -f conftest.$ac_objext
4407 -if { (eval echo "$as_me:4695: \"$ac_compile\"") >&5
4408 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409    (eval $ac_compile) 2>&5
4410    ac_status=$?
4411 -  echo "$as_me:4698: \$? = $ac_status" >&5
4412 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413    (exit $ac_status); } &&
4414           { ac_try='test -s conftest.$ac_objext'
4415 -  { (eval echo "$as_me:4701: \"$ac_try\"") >&5
4416 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417    (eval $ac_try) 2>&5
4418    ac_status=$?
4419 -  echo "$as_me:4704: \$? = $ac_status" >&5
4420 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421    (exit $ac_status); }; }; then
4422    ac_hi=$ac_mid
4423  else
4424    echo "$as_me: failed program was:" >&5
4425  cat conftest.$ac_ext >&5
4426 -ac_lo=`expr $ac_mid + 1`
4427 +ac_lo=`expr '(' $ac_mid ')' + 1`
4428  fi
4429  rm -f conftest.$ac_objext conftest.$ac_ext
4430  done
4431 -ac_cv_sizeof_char=$ac_lo
4432 +case $ac_lo in
4433 +?*) ac_cv_sizeof_char=$ac_lo;;
4434 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4435 +echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4436 +   { (exit 1); exit 1; }; } ;;
4437 +esac
4438  else
4439    if test "$cross_compiling" = yes; then
4440 -  { { echo "$as_me:4717: error: cannot run test program while cross compiling" >&5
4441 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4442  echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4443     { (exit 1); exit 1; }; }
4444  else
4445    cat >conftest.$ac_ext <<_ACEOF
4446 -#line 4722 "configure"
4447 +#line $LINENO "configure"
4448  #include "confdefs.h"
4449  $ac_includes_default
4450 +long longval () { return (long) (sizeof (char)); }
4451 +unsigned long ulongval () { return (long) (sizeof (char)); }
4452 +#include <stdio.h>
4453 +#include <stdlib.h>
4454  #ifdef F77_DUMMY_MAIN
4455  #  ifdef __cplusplus
4456       extern "C"
4457 @@ -4731,31 +5267,50 @@
4458  int
4459  main ()
4460  {
4461 -FILE *f = fopen ("conftest.val", "w");
4462 -if (!f)
4463 -  exit (1);
4464 -fprintf (f, "%d", (sizeof (char)));
4465 -fclose (f);
4466 +
4467 +  FILE *f = fopen ("conftest.val", "w");
4468 +  if (! f)
4469 +    exit (1);
4470 +  if (((long) (sizeof (char))) < 0)
4471 +    {
4472 +      long i = longval ();
4473 +      if (i != ((long) (sizeof (char))))
4474 +       exit (1);
4475 +      fprintf (f, "%ld\n", i);
4476 +    }
4477 +  else
4478 +    {
4479 +      unsigned long i = ulongval ();
4480 +      if (i != ((long) (sizeof (char))))
4481 +       exit (1);
4482 +      fprintf (f, "%lu\n", i);
4483 +    }
4484 +  exit (ferror (f) || fclose (f) != 0);
4485 +
4486    ;
4487    return 0;
4488  }
4489  _ACEOF
4490  rm -f conftest$ac_exeext
4491 -if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4492 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4493    (eval $ac_link) 2>&5
4494    ac_status=$?
4495 -  echo "$as_me:4747: \$? = $ac_status" >&5
4496 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4498 -  { (eval echo "$as_me:4749: \"$ac_try\"") >&5
4499 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500    (eval $ac_try) 2>&5
4501    ac_status=$?
4502 -  echo "$as_me:4752: \$? = $ac_status" >&5
4503 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504    (exit $ac_status); }; }; then
4505    ac_cv_sizeof_char=`cat conftest.val`
4506  else
4507    echo "$as_me: program exited with status $ac_status" >&5
4508  echo "$as_me: failed program was:" >&5
4509  cat conftest.$ac_ext >&5
4510 +( exit $ac_status )
4511 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4512 +echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4513 +   { (exit 1); exit 1; }; }
4514  fi
4515  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4516  fi
4517 @@ -4765,19 +5320,20 @@
4518    ac_cv_sizeof_char=0
4519  fi
4520  fi
4521 -echo "$as_me:4768: result: $ac_cv_sizeof_char" >&5
4522 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4523  echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4524  cat >>confdefs.h <<_ACEOF
4525  #define SIZEOF_CHAR $ac_cv_sizeof_char
4526  _ACEOF
4527  
4528 -echo "$as_me:4774: checking for short" >&5
4529 +
4530 +echo "$as_me:$LINENO: checking for short" >&5
4531  echo $ECHO_N "checking for short... $ECHO_C" >&6
4532  if test "${ac_cv_type_short+set}" = set; then
4533    echo $ECHO_N "(cached) $ECHO_C" >&6
4534  else
4535    cat >conftest.$ac_ext <<_ACEOF
4536 -#line 4780 "configure"
4537 +#line $LINENO "configure"
4538  #include "confdefs.h"
4539  $ac_includes_default
4540  #ifdef F77_DUMMY_MAIN
4541 @@ -4798,16 +5354,16 @@
4542  }
4543  _ACEOF
4544  rm -f conftest.$ac_objext
4545 -if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
4546 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547    (eval $ac_compile) 2>&5
4548    ac_status=$?
4549 -  echo "$as_me:4804: \$? = $ac_status" >&5
4550 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551    (exit $ac_status); } &&
4552           { ac_try='test -s conftest.$ac_objext'
4553 -  { (eval echo "$as_me:4807: \"$ac_try\"") >&5
4554 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555    (eval $ac_try) 2>&5
4556    ac_status=$?
4557 -  echo "$as_me:4810: \$? = $ac_status" >&5
4558 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559    (exit $ac_status); }; }; then
4560    ac_cv_type_short=yes
4561  else
4562 @@ -4817,19 +5373,23 @@
4563  fi
4564  rm -f conftest.$ac_objext conftest.$ac_ext
4565  fi
4566 -echo "$as_me:4820: result: $ac_cv_type_short" >&5
4567 +echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4568  echo "${ECHO_T}$ac_cv_type_short" >&6
4569  
4570 -echo "$as_me:4823: checking size of short" >&5
4571 +echo "$as_me:$LINENO: checking size of short" >&5
4572  echo $ECHO_N "checking size of short... $ECHO_C" >&6
4573  if test "${ac_cv_sizeof_short+set}" = set; then
4574    echo $ECHO_N "(cached) $ECHO_C" >&6
4575  else
4576    if test "$ac_cv_type_short" = yes; then
4577 +  # The cast to unsigned long works around a bug in the HP C Compiler
4578 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4579 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4580 +  # This bug is HP SR number 8606223364.
4581    if test "$cross_compiling" = yes; then
4582    # Depending upon the size, compute the lo and hi bounds.
4583  cat >conftest.$ac_ext <<_ACEOF
4584 -#line 4832 "configure"
4585 +#line $LINENO "configure"
4586  #include "confdefs.h"
4587  $ac_includes_default
4588  #ifdef F77_DUMMY_MAIN
4589 @@ -4841,27 +5401,29 @@
4590  int
4591  main ()
4592  {
4593 -int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
4594 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4595 +test_array [0] = 0
4596 +
4597    ;
4598    return 0;
4599  }
4600  _ACEOF
4601  rm -f conftest.$ac_objext
4602 -if { (eval echo "$as_me:4850: \"$ac_compile\"") >&5
4603 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604    (eval $ac_compile) 2>&5
4605    ac_status=$?
4606 -  echo "$as_me:4853: \$? = $ac_status" >&5
4607 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608    (exit $ac_status); } &&
4609           { ac_try='test -s conftest.$ac_objext'
4610 -  { (eval echo "$as_me:4856: \"$ac_try\"") >&5
4611 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612    (eval $ac_try) 2>&5
4613    ac_status=$?
4614 -  echo "$as_me:4859: \$? = $ac_status" >&5
4615 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616    (exit $ac_status); }; }; then
4617    ac_lo=0 ac_mid=0
4618    while :; do
4619      cat >conftest.$ac_ext <<_ACEOF
4620 -#line 4864 "configure"
4621 +#line $LINENO "configure"
4622  #include "confdefs.h"
4623  $ac_includes_default
4624  #ifdef F77_DUMMY_MAIN
4625 @@ -4873,38 +5435,77 @@
4626  int
4627  main ()
4628  {
4629 -int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4630 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4631 +test_array [0] = 0
4632 +
4633    ;
4634    return 0;
4635  }
4636  _ACEOF
4637  rm -f conftest.$ac_objext
4638 -if { (eval echo "$as_me:4882: \"$ac_compile\"") >&5
4639 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640    (eval $ac_compile) 2>&5
4641    ac_status=$?
4642 -  echo "$as_me:4885: \$? = $ac_status" >&5
4643 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644    (exit $ac_status); } &&
4645           { ac_try='test -s conftest.$ac_objext'
4646 -  { (eval echo "$as_me:4888: \"$ac_try\"") >&5
4647 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648    (eval $ac_try) 2>&5
4649    ac_status=$?
4650 -  echo "$as_me:4891: \$? = $ac_status" >&5
4651 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652    (exit $ac_status); }; }; then
4653    ac_hi=$ac_mid; break
4654  else
4655    echo "$as_me: failed program was:" >&5
4656  cat conftest.$ac_ext >&5
4657 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4658 +ac_lo=`expr $ac_mid + 1`
4659 +                    if test $ac_lo -le $ac_mid; then
4660 +                      ac_lo= ac_hi=
4661 +                      break
4662 +                    fi
4663 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
4664  fi
4665  rm -f conftest.$ac_objext conftest.$ac_ext
4666    done
4667  else
4668    echo "$as_me: failed program was:" >&5
4669  cat conftest.$ac_ext >&5
4670 -ac_hi=-1 ac_mid=-1
4671 +cat >conftest.$ac_ext <<_ACEOF
4672 +#line $LINENO "configure"
4673 +#include "confdefs.h"
4674 +$ac_includes_default
4675 +#ifdef F77_DUMMY_MAIN
4676 +#  ifdef __cplusplus
4677 +     extern "C"
4678 +#  endif
4679 +   int F77_DUMMY_MAIN() { return 1; }
4680 +#endif
4681 +int
4682 +main ()
4683 +{
4684 +static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4685 +test_array [0] = 0
4686 +
4687 +  ;
4688 +  return 0;
4689 +}
4690 +_ACEOF
4691 +rm -f conftest.$ac_objext
4692 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 +  (eval $ac_compile) 2>&5
4694 +  ac_status=$?
4695 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 +  (exit $ac_status); } &&
4697 +         { ac_try='test -s conftest.$ac_objext'
4698 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 +  (eval $ac_try) 2>&5
4700 +  ac_status=$?
4701 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 +  (exit $ac_status); }; }; then
4703 +  ac_hi=-1 ac_mid=-1
4704    while :; do
4705      cat >conftest.$ac_ext <<_ACEOF
4706 -#line 4907 "configure"
4707 +#line $LINENO "configure"
4708  #include "confdefs.h"
4709  $ac_includes_default
4710  #ifdef F77_DUMMY_MAIN
4711 @@ -4916,38 +5517,51 @@
4712  int
4713  main ()
4714  {
4715 -int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
4716 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4717 +test_array [0] = 0
4718 +
4719    ;
4720    return 0;
4721  }
4722  _ACEOF
4723  rm -f conftest.$ac_objext
4724 -if { (eval echo "$as_me:4925: \"$ac_compile\"") >&5
4725 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726    (eval $ac_compile) 2>&5
4727    ac_status=$?
4728 -  echo "$as_me:4928: \$? = $ac_status" >&5
4729 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730    (exit $ac_status); } &&
4731           { ac_try='test -s conftest.$ac_objext'
4732 -  { (eval echo "$as_me:4931: \"$ac_try\"") >&5
4733 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734    (eval $ac_try) 2>&5
4735    ac_status=$?
4736 -  echo "$as_me:4934: \$? = $ac_status" >&5
4737 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738    (exit $ac_status); }; }; then
4739    ac_lo=$ac_mid; break
4740  else
4741    echo "$as_me: failed program was:" >&5
4742  cat conftest.$ac_ext >&5
4743 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4744 +ac_hi=`expr '(' $ac_mid ')' - 1`
4745 +                       if test $ac_mid -le $ac_hi; then
4746 +                         ac_lo= ac_hi=
4747 +                         break
4748 +                       fi
4749 +                       ac_mid=`expr 2 '*' $ac_mid`
4750  fi
4751  rm -f conftest.$ac_objext conftest.$ac_ext
4752    done
4753 +else
4754 +  echo "$as_me: failed program was:" >&5
4755 +cat conftest.$ac_ext >&5
4756 +ac_lo= ac_hi=
4757 +fi
4758 +rm -f conftest.$ac_objext conftest.$ac_ext
4759  fi
4760  rm -f conftest.$ac_objext conftest.$ac_ext
4761  # Binary search between lo and hi bounds.
4762  while test "x$ac_lo" != "x$ac_hi"; do
4763    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4764    cat >conftest.$ac_ext <<_ACEOF
4765 -#line 4950 "configure"
4766 +#line $LINENO "configure"
4767  #include "confdefs.h"
4768  $ac_includes_default
4769  #ifdef F77_DUMMY_MAIN
4770 @@ -4959,42 +5573,53 @@
4771  int
4772  main ()
4773  {
4774 -int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4775 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4776 +test_array [0] = 0
4777 +
4778    ;
4779    return 0;
4780  }
4781  _ACEOF
4782  rm -f conftest.$ac_objext
4783 -if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
4784 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785    (eval $ac_compile) 2>&5
4786    ac_status=$?
4787 -  echo "$as_me:4971: \$? = $ac_status" >&5
4788 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789    (exit $ac_status); } &&
4790           { ac_try='test -s conftest.$ac_objext'
4791 -  { (eval echo "$as_me:4974: \"$ac_try\"") >&5
4792 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793    (eval $ac_try) 2>&5
4794    ac_status=$?
4795 -  echo "$as_me:4977: \$? = $ac_status" >&5
4796 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797    (exit $ac_status); }; }; then
4798    ac_hi=$ac_mid
4799  else
4800    echo "$as_me: failed program was:" >&5
4801  cat conftest.$ac_ext >&5
4802 -ac_lo=`expr $ac_mid + 1`
4803 +ac_lo=`expr '(' $ac_mid ')' + 1`
4804  fi
4805  rm -f conftest.$ac_objext conftest.$ac_ext
4806  done
4807 -ac_cv_sizeof_short=$ac_lo
4808 +case $ac_lo in
4809 +?*) ac_cv_sizeof_short=$ac_lo;;
4810 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4811 +echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4812 +   { (exit 1); exit 1; }; } ;;
4813 +esac
4814  else
4815    if test "$cross_compiling" = yes; then
4816 -  { { echo "$as_me:4990: error: cannot run test program while cross compiling" >&5
4817 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4818  echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4819     { (exit 1); exit 1; }; }
4820  else
4821    cat >conftest.$ac_ext <<_ACEOF
4822 -#line 4995 "configure"
4823 +#line $LINENO "configure"
4824  #include "confdefs.h"
4825  $ac_includes_default
4826 +long longval () { return (long) (sizeof (short)); }
4827 +unsigned long ulongval () { return (long) (sizeof (short)); }
4828 +#include <stdio.h>
4829 +#include <stdlib.h>
4830  #ifdef F77_DUMMY_MAIN
4831  #  ifdef __cplusplus
4832       extern "C"
4833 @@ -5004,31 +5629,50 @@
4834  int
4835  main ()
4836  {
4837 -FILE *f = fopen ("conftest.val", "w");
4838 -if (!f)
4839 -  exit (1);
4840 -fprintf (f, "%d", (sizeof (short)));
4841 -fclose (f);
4842 +
4843 +  FILE *f = fopen ("conftest.val", "w");
4844 +  if (! f)
4845 +    exit (1);
4846 +  if (((long) (sizeof (short))) < 0)
4847 +    {
4848 +      long i = longval ();
4849 +      if (i != ((long) (sizeof (short))))
4850 +       exit (1);
4851 +      fprintf (f, "%ld\n", i);
4852 +    }
4853 +  else
4854 +    {
4855 +      unsigned long i = ulongval ();
4856 +      if (i != ((long) (sizeof (short))))
4857 +       exit (1);
4858 +      fprintf (f, "%lu\n", i);
4859 +    }
4860 +  exit (ferror (f) || fclose (f) != 0);
4861 +
4862    ;
4863    return 0;
4864  }
4865  _ACEOF
4866  rm -f conftest$ac_exeext
4867 -if { (eval echo "$as_me:5017: \"$ac_link\"") >&5
4868 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869    (eval $ac_link) 2>&5
4870    ac_status=$?
4871 -  echo "$as_me:5020: \$? = $ac_status" >&5
4872 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 -  { (eval echo "$as_me:5022: \"$ac_try\"") >&5
4875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876    (eval $ac_try) 2>&5
4877    ac_status=$?
4878 -  echo "$as_me:5025: \$? = $ac_status" >&5
4879 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880    (exit $ac_status); }; }; then
4881    ac_cv_sizeof_short=`cat conftest.val`
4882  else
4883    echo "$as_me: program exited with status $ac_status" >&5
4884  echo "$as_me: failed program was:" >&5
4885  cat conftest.$ac_ext >&5
4886 +( exit $ac_status )
4887 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4888 +echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4889 +   { (exit 1); exit 1; }; }
4890  fi
4891  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4892  fi
4893 @@ -5038,19 +5682,20 @@
4894    ac_cv_sizeof_short=0
4895  fi
4896  fi
4897 -echo "$as_me:5041: result: $ac_cv_sizeof_short" >&5
4898 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4899  echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4900  cat >>confdefs.h <<_ACEOF
4901  #define SIZEOF_SHORT $ac_cv_sizeof_short
4902  _ACEOF
4903  
4904 -echo "$as_me:5047: checking for int" >&5
4905 +
4906 +echo "$as_me:$LINENO: checking for int" >&5
4907  echo $ECHO_N "checking for int... $ECHO_C" >&6
4908  if test "${ac_cv_type_int+set}" = set; then
4909    echo $ECHO_N "(cached) $ECHO_C" >&6
4910  else
4911    cat >conftest.$ac_ext <<_ACEOF
4912 -#line 5053 "configure"
4913 +#line $LINENO "configure"
4914  #include "confdefs.h"
4915  $ac_includes_default
4916  #ifdef F77_DUMMY_MAIN
4917 @@ -5071,16 +5716,16 @@
4918  }
4919  _ACEOF
4920  rm -f conftest.$ac_objext
4921 -if { (eval echo "$as_me:5074: \"$ac_compile\"") >&5
4922 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923    (eval $ac_compile) 2>&5
4924    ac_status=$?
4925 -  echo "$as_me:5077: \$? = $ac_status" >&5
4926 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927    (exit $ac_status); } &&
4928           { ac_try='test -s conftest.$ac_objext'
4929 -  { (eval echo "$as_me:5080: \"$ac_try\"") >&5
4930 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931    (eval $ac_try) 2>&5
4932    ac_status=$?
4933 -  echo "$as_me:5083: \$? = $ac_status" >&5
4934 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935    (exit $ac_status); }; }; then
4936    ac_cv_type_int=yes
4937  else
4938 @@ -5090,19 +5735,23 @@
4939  fi
4940  rm -f conftest.$ac_objext conftest.$ac_ext
4941  fi
4942 -echo "$as_me:5093: result: $ac_cv_type_int" >&5
4943 +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4944  echo "${ECHO_T}$ac_cv_type_int" >&6
4945  
4946 -echo "$as_me:5096: checking size of int" >&5
4947 +echo "$as_me:$LINENO: checking size of int" >&5
4948  echo $ECHO_N "checking size of int... $ECHO_C" >&6
4949  if test "${ac_cv_sizeof_int+set}" = set; then
4950    echo $ECHO_N "(cached) $ECHO_C" >&6
4951  else
4952    if test "$ac_cv_type_int" = yes; then
4953 +  # The cast to unsigned long works around a bug in the HP C Compiler
4954 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4955 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4956 +  # This bug is HP SR number 8606223364.
4957    if test "$cross_compiling" = yes; then
4958    # Depending upon the size, compute the lo and hi bounds.
4959  cat >conftest.$ac_ext <<_ACEOF
4960 -#line 5105 "configure"
4961 +#line $LINENO "configure"
4962  #include "confdefs.h"
4963  $ac_includes_default
4964  #ifdef F77_DUMMY_MAIN
4965 @@ -5114,27 +5763,77 @@
4966  int
4967  main ()
4968  {
4969 -int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4970 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4971 +test_array [0] = 0
4972 +
4973    ;
4974    return 0;
4975  }
4976  _ACEOF
4977  rm -f conftest.$ac_objext
4978 -if { (eval echo "$as_me:5123: \"$ac_compile\"") >&5
4979 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980    (eval $ac_compile) 2>&5
4981    ac_status=$?
4982 -  echo "$as_me:5126: \$? = $ac_status" >&5
4983 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984    (exit $ac_status); } &&
4985           { ac_try='test -s conftest.$ac_objext'
4986 -  { (eval echo "$as_me:5129: \"$ac_try\"") >&5
4987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988    (eval $ac_try) 2>&5
4989    ac_status=$?
4990 -  echo "$as_me:5132: \$? = $ac_status" >&5
4991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992    (exit $ac_status); }; }; then
4993    ac_lo=0 ac_mid=0
4994    while :; do
4995      cat >conftest.$ac_ext <<_ACEOF
4996 -#line 5137 "configure"
4997 +#line $LINENO "configure"
4998 +#include "confdefs.h"
4999 +$ac_includes_default
5000 +#ifdef F77_DUMMY_MAIN
5001 +#  ifdef __cplusplus
5002 +     extern "C"
5003 +#  endif
5004 +   int F77_DUMMY_MAIN() { return 1; }
5005 +#endif
5006 +int
5007 +main ()
5008 +{
5009 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5010 +test_array [0] = 0
5011 +
5012 +  ;
5013 +  return 0;
5014 +}
5015 +_ACEOF
5016 +rm -f conftest.$ac_objext
5017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 +  (eval $ac_compile) 2>&5
5019 +  ac_status=$?
5020 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 +  (exit $ac_status); } &&
5022 +         { ac_try='test -s conftest.$ac_objext'
5023 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 +  (eval $ac_try) 2>&5
5025 +  ac_status=$?
5026 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 +  (exit $ac_status); }; }; then
5028 +  ac_hi=$ac_mid; break
5029 +else
5030 +  echo "$as_me: failed program was:" >&5
5031 +cat conftest.$ac_ext >&5
5032 +ac_lo=`expr $ac_mid + 1`
5033 +                    if test $ac_lo -le $ac_mid; then
5034 +                      ac_lo= ac_hi=
5035 +                      break
5036 +                    fi
5037 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
5038 +fi
5039 +rm -f conftest.$ac_objext conftest.$ac_ext
5040 +  done
5041 +else
5042 +  echo "$as_me: failed program was:" >&5
5043 +cat conftest.$ac_ext >&5
5044 +cat >conftest.$ac_ext <<_ACEOF
5045 +#line $LINENO "configure"
5046  #include "confdefs.h"
5047  $ac_includes_default
5048  #ifdef F77_DUMMY_MAIN
5049 @@ -5146,38 +5845,29 @@
5050  int
5051  main ()
5052  {
5053 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
5054 +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5055 +test_array [0] = 0
5056 +
5057    ;
5058    return 0;
5059  }
5060  _ACEOF
5061  rm -f conftest.$ac_objext
5062 -if { (eval echo "$as_me:5155: \"$ac_compile\"") >&5
5063 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064    (eval $ac_compile) 2>&5
5065    ac_status=$?
5066 -  echo "$as_me:5158: \$? = $ac_status" >&5
5067 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068    (exit $ac_status); } &&
5069           { ac_try='test -s conftest.$ac_objext'
5070 -  { (eval echo "$as_me:5161: \"$ac_try\"") >&5
5071 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072    (eval $ac_try) 2>&5
5073    ac_status=$?
5074 -  echo "$as_me:5164: \$? = $ac_status" >&5
5075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076    (exit $ac_status); }; }; then
5077 -  ac_hi=$ac_mid; break
5078 -else
5079 -  echo "$as_me: failed program was:" >&5
5080 -cat conftest.$ac_ext >&5
5081 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5082 -fi
5083 -rm -f conftest.$ac_objext conftest.$ac_ext
5084 -  done
5085 -else
5086 -  echo "$as_me: failed program was:" >&5
5087 -cat conftest.$ac_ext >&5
5088 -ac_hi=-1 ac_mid=-1
5089 +  ac_hi=-1 ac_mid=-1
5090    while :; do
5091      cat >conftest.$ac_ext <<_ACEOF
5092 -#line 5180 "configure"
5093 +#line $LINENO "configure"
5094  #include "confdefs.h"
5095  $ac_includes_default
5096  #ifdef F77_DUMMY_MAIN
5097 @@ -5189,38 +5879,51 @@
5098  int
5099  main ()
5100  {
5101 -int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
5102 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5103 +test_array [0] = 0
5104 +
5105    ;
5106    return 0;
5107  }
5108  _ACEOF
5109  rm -f conftest.$ac_objext
5110 -if { (eval echo "$as_me:5198: \"$ac_compile\"") >&5
5111 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112    (eval $ac_compile) 2>&5
5113    ac_status=$?
5114 -  echo "$as_me:5201: \$? = $ac_status" >&5
5115 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116    (exit $ac_status); } &&
5117           { ac_try='test -s conftest.$ac_objext'
5118 -  { (eval echo "$as_me:5204: \"$ac_try\"") >&5
5119 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120    (eval $ac_try) 2>&5
5121    ac_status=$?
5122 -  echo "$as_me:5207: \$? = $ac_status" >&5
5123 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124    (exit $ac_status); }; }; then
5125    ac_lo=$ac_mid; break
5126  else
5127    echo "$as_me: failed program was:" >&5
5128  cat conftest.$ac_ext >&5
5129 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5130 +ac_hi=`expr '(' $ac_mid ')' - 1`
5131 +                       if test $ac_mid -le $ac_hi; then
5132 +                         ac_lo= ac_hi=
5133 +                         break
5134 +                       fi
5135 +                       ac_mid=`expr 2 '*' $ac_mid`
5136  fi
5137  rm -f conftest.$ac_objext conftest.$ac_ext
5138    done
5139 +else
5140 +  echo "$as_me: failed program was:" >&5
5141 +cat conftest.$ac_ext >&5
5142 +ac_lo= ac_hi=
5143 +fi
5144 +rm -f conftest.$ac_objext conftest.$ac_ext
5145  fi
5146  rm -f conftest.$ac_objext conftest.$ac_ext
5147  # Binary search between lo and hi bounds.
5148  while test "x$ac_lo" != "x$ac_hi"; do
5149    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5150    cat >conftest.$ac_ext <<_ACEOF
5151 -#line 5223 "configure"
5152 +#line $LINENO "configure"
5153  #include "confdefs.h"
5154  $ac_includes_default
5155  #ifdef F77_DUMMY_MAIN
5156 @@ -5232,42 +5935,53 @@
5157  int
5158  main ()
5159  {
5160 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
5161 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5162 +test_array [0] = 0
5163 +
5164    ;
5165    return 0;
5166  }
5167  _ACEOF
5168  rm -f conftest.$ac_objext
5169 -if { (eval echo "$as_me:5241: \"$ac_compile\"") >&5
5170 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171    (eval $ac_compile) 2>&5
5172    ac_status=$?
5173 -  echo "$as_me:5244: \$? = $ac_status" >&5
5174 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175    (exit $ac_status); } &&
5176           { ac_try='test -s conftest.$ac_objext'
5177 -  { (eval echo "$as_me:5247: \"$ac_try\"") >&5
5178 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179    (eval $ac_try) 2>&5
5180    ac_status=$?
5181 -  echo "$as_me:5250: \$? = $ac_status" >&5
5182 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183    (exit $ac_status); }; }; then
5184    ac_hi=$ac_mid
5185  else
5186    echo "$as_me: failed program was:" >&5
5187  cat conftest.$ac_ext >&5
5188 -ac_lo=`expr $ac_mid + 1`
5189 +ac_lo=`expr '(' $ac_mid ')' + 1`
5190  fi
5191  rm -f conftest.$ac_objext conftest.$ac_ext
5192  done
5193 -ac_cv_sizeof_int=$ac_lo
5194 +case $ac_lo in
5195 +?*) ac_cv_sizeof_int=$ac_lo;;
5196 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5197 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5198 +   { (exit 1); exit 1; }; } ;;
5199 +esac
5200  else
5201    if test "$cross_compiling" = yes; then
5202 -  { { echo "$as_me:5263: error: cannot run test program while cross compiling" >&5
5203 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5204  echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5205     { (exit 1); exit 1; }; }
5206  else
5207    cat >conftest.$ac_ext <<_ACEOF
5208 -#line 5268 "configure"
5209 +#line $LINENO "configure"
5210  #include "confdefs.h"
5211  $ac_includes_default
5212 +long longval () { return (long) (sizeof (int)); }
5213 +unsigned long ulongval () { return (long) (sizeof (int)); }
5214 +#include <stdio.h>
5215 +#include <stdlib.h>
5216  #ifdef F77_DUMMY_MAIN
5217  #  ifdef __cplusplus
5218       extern "C"
5219 @@ -5277,31 +5991,50 @@
5220  int
5221  main ()
5222  {
5223 -FILE *f = fopen ("conftest.val", "w");
5224 -if (!f)
5225 -  exit (1);
5226 -fprintf (f, "%d", (sizeof (int)));
5227 -fclose (f);
5228 +
5229 +  FILE *f = fopen ("conftest.val", "w");
5230 +  if (! f)
5231 +    exit (1);
5232 +  if (((long) (sizeof (int))) < 0)
5233 +    {
5234 +      long i = longval ();
5235 +      if (i != ((long) (sizeof (int))))
5236 +       exit (1);
5237 +      fprintf (f, "%ld\n", i);
5238 +    }
5239 +  else
5240 +    {
5241 +      unsigned long i = ulongval ();
5242 +      if (i != ((long) (sizeof (int))))
5243 +       exit (1);
5244 +      fprintf (f, "%lu\n", i);
5245 +    }
5246 +  exit (ferror (f) || fclose (f) != 0);
5247 +
5248    ;
5249    return 0;
5250  }
5251  _ACEOF
5252  rm -f conftest$ac_exeext
5253 -if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5254 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255    (eval $ac_link) 2>&5
5256    ac_status=$?
5257 -  echo "$as_me:5293: \$? = $ac_status" >&5
5258 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260 -  { (eval echo "$as_me:5295: \"$ac_try\"") >&5
5261 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262    (eval $ac_try) 2>&5
5263    ac_status=$?
5264 -  echo "$as_me:5298: \$? = $ac_status" >&5
5265 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266    (exit $ac_status); }; }; then
5267    ac_cv_sizeof_int=`cat conftest.val`
5268  else
5269    echo "$as_me: program exited with status $ac_status" >&5
5270  echo "$as_me: failed program was:" >&5
5271  cat conftest.$ac_ext >&5
5272 +( exit $ac_status )
5273 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5274 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5275 +   { (exit 1); exit 1; }; }
5276  fi
5277  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5278  fi
5279 @@ -5311,19 +6044,20 @@
5280    ac_cv_sizeof_int=0
5281  fi
5282  fi
5283 -echo "$as_me:5314: result: $ac_cv_sizeof_int" >&5
5284 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5285  echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5286  cat >>confdefs.h <<_ACEOF
5287  #define SIZEOF_INT $ac_cv_sizeof_int
5288  _ACEOF
5289  
5290 -echo "$as_me:5320: checking for long" >&5
5291 +
5292 +echo "$as_me:$LINENO: checking for long" >&5
5293  echo $ECHO_N "checking for long... $ECHO_C" >&6
5294  if test "${ac_cv_type_long+set}" = set; then
5295    echo $ECHO_N "(cached) $ECHO_C" >&6
5296  else
5297    cat >conftest.$ac_ext <<_ACEOF
5298 -#line 5326 "configure"
5299 +#line $LINENO "configure"
5300  #include "confdefs.h"
5301  $ac_includes_default
5302  #ifdef F77_DUMMY_MAIN
5303 @@ -5344,16 +6078,16 @@
5304  }
5305  _ACEOF
5306  rm -f conftest.$ac_objext
5307 -if { (eval echo "$as_me:5347: \"$ac_compile\"") >&5
5308 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309    (eval $ac_compile) 2>&5
5310    ac_status=$?
5311 -  echo "$as_me:5350: \$? = $ac_status" >&5
5312 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313    (exit $ac_status); } &&
5314           { ac_try='test -s conftest.$ac_objext'
5315 -  { (eval echo "$as_me:5353: \"$ac_try\"") >&5
5316 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317    (eval $ac_try) 2>&5
5318    ac_status=$?
5319 -  echo "$as_me:5356: \$? = $ac_status" >&5
5320 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321    (exit $ac_status); }; }; then
5322    ac_cv_type_long=yes
5323  else
5324 @@ -5363,19 +6097,23 @@
5325  fi
5326  rm -f conftest.$ac_objext conftest.$ac_ext
5327  fi
5328 -echo "$as_me:5366: result: $ac_cv_type_long" >&5
5329 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5330  echo "${ECHO_T}$ac_cv_type_long" >&6
5331  
5332 -echo "$as_me:5369: checking size of long" >&5
5333 +echo "$as_me:$LINENO: checking size of long" >&5
5334  echo $ECHO_N "checking size of long... $ECHO_C" >&6
5335  if test "${ac_cv_sizeof_long+set}" = set; then
5336    echo $ECHO_N "(cached) $ECHO_C" >&6
5337  else
5338    if test "$ac_cv_type_long" = yes; then
5339 +  # The cast to unsigned long works around a bug in the HP C Compiler
5340 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5341 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5342 +  # This bug is HP SR number 8606223364.
5343    if test "$cross_compiling" = yes; then
5344    # Depending upon the size, compute the lo and hi bounds.
5345  cat >conftest.$ac_ext <<_ACEOF
5346 -#line 5378 "configure"
5347 +#line $LINENO "configure"
5348  #include "confdefs.h"
5349  $ac_includes_default
5350  #ifdef F77_DUMMY_MAIN
5351 @@ -5387,27 +6125,29 @@
5352  int
5353  main ()
5354  {
5355 -int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
5356 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5357 +test_array [0] = 0
5358 +
5359    ;
5360    return 0;
5361  }
5362  _ACEOF
5363  rm -f conftest.$ac_objext
5364 -if { (eval echo "$as_me:5396: \"$ac_compile\"") >&5
5365 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366    (eval $ac_compile) 2>&5
5367    ac_status=$?
5368 -  echo "$as_me:5399: \$? = $ac_status" >&5
5369 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370    (exit $ac_status); } &&
5371           { ac_try='test -s conftest.$ac_objext'
5372 -  { (eval echo "$as_me:5402: \"$ac_try\"") >&5
5373 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374    (eval $ac_try) 2>&5
5375    ac_status=$?
5376 -  echo "$as_me:5405: \$? = $ac_status" >&5
5377 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378    (exit $ac_status); }; }; then
5379    ac_lo=0 ac_mid=0
5380    while :; do
5381      cat >conftest.$ac_ext <<_ACEOF
5382 -#line 5410 "configure"
5383 +#line $LINENO "configure"
5384  #include "confdefs.h"
5385  $ac_includes_default
5386  #ifdef F77_DUMMY_MAIN
5387 @@ -5419,38 +6159,77 @@
5388  int
5389  main ()
5390  {
5391 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
5392 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5393 +test_array [0] = 0
5394 +
5395    ;
5396    return 0;
5397  }
5398  _ACEOF
5399  rm -f conftest.$ac_objext
5400 -if { (eval echo "$as_me:5428: \"$ac_compile\"") >&5
5401 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402    (eval $ac_compile) 2>&5
5403    ac_status=$?
5404 -  echo "$as_me:5431: \$? = $ac_status" >&5
5405 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406    (exit $ac_status); } &&
5407           { ac_try='test -s conftest.$ac_objext'
5408 -  { (eval echo "$as_me:5434: \"$ac_try\"") >&5
5409 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410    (eval $ac_try) 2>&5
5411    ac_status=$?
5412 -  echo "$as_me:5437: \$? = $ac_status" >&5
5413 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414    (exit $ac_status); }; }; then
5415    ac_hi=$ac_mid; break
5416  else
5417    echo "$as_me: failed program was:" >&5
5418  cat conftest.$ac_ext >&5
5419 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5420 +ac_lo=`expr $ac_mid + 1`
5421 +                    if test $ac_lo -le $ac_mid; then
5422 +                      ac_lo= ac_hi=
5423 +                      break
5424 +                    fi
5425 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
5426  fi
5427  rm -f conftest.$ac_objext conftest.$ac_ext
5428    done
5429  else
5430    echo "$as_me: failed program was:" >&5
5431  cat conftest.$ac_ext >&5
5432 -ac_hi=-1 ac_mid=-1
5433 +cat >conftest.$ac_ext <<_ACEOF
5434 +#line $LINENO "configure"
5435 +#include "confdefs.h"
5436 +$ac_includes_default
5437 +#ifdef F77_DUMMY_MAIN
5438 +#  ifdef __cplusplus
5439 +     extern "C"
5440 +#  endif
5441 +   int F77_DUMMY_MAIN() { return 1; }
5442 +#endif
5443 +int
5444 +main ()
5445 +{
5446 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5447 +test_array [0] = 0
5448 +
5449 +  ;
5450 +  return 0;
5451 +}
5452 +_ACEOF
5453 +rm -f conftest.$ac_objext
5454 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 +  (eval $ac_compile) 2>&5
5456 +  ac_status=$?
5457 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 +  (exit $ac_status); } &&
5459 +         { ac_try='test -s conftest.$ac_objext'
5460 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 +  (eval $ac_try) 2>&5
5462 +  ac_status=$?
5463 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 +  (exit $ac_status); }; }; then
5465 +  ac_hi=-1 ac_mid=-1
5466    while :; do
5467      cat >conftest.$ac_ext <<_ACEOF
5468 -#line 5453 "configure"
5469 +#line $LINENO "configure"
5470  #include "confdefs.h"
5471  $ac_includes_default
5472  #ifdef F77_DUMMY_MAIN
5473 @@ -5462,38 +6241,51 @@
5474  int
5475  main ()
5476  {
5477 -int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
5478 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5479 +test_array [0] = 0
5480 +
5481    ;
5482    return 0;
5483  }
5484  _ACEOF
5485  rm -f conftest.$ac_objext
5486 -if { (eval echo "$as_me:5471: \"$ac_compile\"") >&5
5487 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488    (eval $ac_compile) 2>&5
5489    ac_status=$?
5490 -  echo "$as_me:5474: \$? = $ac_status" >&5
5491 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492    (exit $ac_status); } &&
5493           { ac_try='test -s conftest.$ac_objext'
5494 -  { (eval echo "$as_me:5477: \"$ac_try\"") >&5
5495 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496    (eval $ac_try) 2>&5
5497    ac_status=$?
5498 -  echo "$as_me:5480: \$? = $ac_status" >&5
5499 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500    (exit $ac_status); }; }; then
5501    ac_lo=$ac_mid; break
5502  else
5503    echo "$as_me: failed program was:" >&5
5504  cat conftest.$ac_ext >&5
5505 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5506 +ac_hi=`expr '(' $ac_mid ')' - 1`
5507 +                       if test $ac_mid -le $ac_hi; then
5508 +                         ac_lo= ac_hi=
5509 +                         break
5510 +                       fi
5511 +                       ac_mid=`expr 2 '*' $ac_mid`
5512  fi
5513  rm -f conftest.$ac_objext conftest.$ac_ext
5514    done
5515 +else
5516 +  echo "$as_me: failed program was:" >&5
5517 +cat conftest.$ac_ext >&5
5518 +ac_lo= ac_hi=
5519 +fi
5520 +rm -f conftest.$ac_objext conftest.$ac_ext
5521  fi
5522  rm -f conftest.$ac_objext conftest.$ac_ext
5523  # Binary search between lo and hi bounds.
5524  while test "x$ac_lo" != "x$ac_hi"; do
5525    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5526    cat >conftest.$ac_ext <<_ACEOF
5527 -#line 5496 "configure"
5528 +#line $LINENO "configure"
5529  #include "confdefs.h"
5530  $ac_includes_default
5531  #ifdef F77_DUMMY_MAIN
5532 @@ -5505,42 +6297,53 @@
5533  int
5534  main ()
5535  {
5536 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
5537 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5538 +test_array [0] = 0
5539 +
5540    ;
5541    return 0;
5542  }
5543  _ACEOF
5544  rm -f conftest.$ac_objext
5545 -if { (eval echo "$as_me:5514: \"$ac_compile\"") >&5
5546 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547    (eval $ac_compile) 2>&5
5548    ac_status=$?
5549 -  echo "$as_me:5517: \$? = $ac_status" >&5
5550 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551    (exit $ac_status); } &&
5552           { ac_try='test -s conftest.$ac_objext'
5553 -  { (eval echo "$as_me:5520: \"$ac_try\"") >&5
5554 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555    (eval $ac_try) 2>&5
5556    ac_status=$?
5557 -  echo "$as_me:5523: \$? = $ac_status" >&5
5558 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559    (exit $ac_status); }; }; then
5560    ac_hi=$ac_mid
5561  else
5562    echo "$as_me: failed program was:" >&5
5563  cat conftest.$ac_ext >&5
5564 -ac_lo=`expr $ac_mid + 1`
5565 +ac_lo=`expr '(' $ac_mid ')' + 1`
5566  fi
5567  rm -f conftest.$ac_objext conftest.$ac_ext
5568  done
5569 -ac_cv_sizeof_long=$ac_lo
5570 +case $ac_lo in
5571 +?*) ac_cv_sizeof_long=$ac_lo;;
5572 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5573 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5574 +   { (exit 1); exit 1; }; } ;;
5575 +esac
5576  else
5577    if test "$cross_compiling" = yes; then
5578 -  { { echo "$as_me:5536: error: cannot run test program while cross compiling" >&5
5579 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5580  echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5581     { (exit 1); exit 1; }; }
5582  else
5583    cat >conftest.$ac_ext <<_ACEOF
5584 -#line 5541 "configure"
5585 +#line $LINENO "configure"
5586  #include "confdefs.h"
5587  $ac_includes_default
5588 +long longval () { return (long) (sizeof (long)); }
5589 +unsigned long ulongval () { return (long) (sizeof (long)); }
5590 +#include <stdio.h>
5591 +#include <stdlib.h>
5592  #ifdef F77_DUMMY_MAIN
5593  #  ifdef __cplusplus
5594       extern "C"
5595 @@ -5550,31 +6353,50 @@
5596  int
5597  main ()
5598  {
5599 -FILE *f = fopen ("conftest.val", "w");
5600 -if (!f)
5601 -  exit (1);
5602 -fprintf (f, "%d", (sizeof (long)));
5603 -fclose (f);
5604 +
5605 +  FILE *f = fopen ("conftest.val", "w");
5606 +  if (! f)
5607 +    exit (1);
5608 +  if (((long) (sizeof (long))) < 0)
5609 +    {
5610 +      long i = longval ();
5611 +      if (i != ((long) (sizeof (long))))
5612 +       exit (1);
5613 +      fprintf (f, "%ld\n", i);
5614 +    }
5615 +  else
5616 +    {
5617 +      unsigned long i = ulongval ();
5618 +      if (i != ((long) (sizeof (long))))
5619 +       exit (1);
5620 +      fprintf (f, "%lu\n", i);
5621 +    }
5622 +  exit (ferror (f) || fclose (f) != 0);
5623 +
5624    ;
5625    return 0;
5626  }
5627  _ACEOF
5628  rm -f conftest$ac_exeext
5629 -if { (eval echo "$as_me:5563: \"$ac_link\"") >&5
5630 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631    (eval $ac_link) 2>&5
5632    ac_status=$?
5633 -  echo "$as_me:5566: \$? = $ac_status" >&5
5634 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5636 -  { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5637 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638    (eval $ac_try) 2>&5
5639    ac_status=$?
5640 -  echo "$as_me:5571: \$? = $ac_status" >&5
5641 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642    (exit $ac_status); }; }; then
5643    ac_cv_sizeof_long=`cat conftest.val`
5644  else
5645    echo "$as_me: program exited with status $ac_status" >&5
5646  echo "$as_me: failed program was:" >&5
5647  cat conftest.$ac_ext >&5
5648 +( exit $ac_status )
5649 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5650 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5651 +   { (exit 1); exit 1; }; }
5652  fi
5653  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654  fi
5655 @@ -5584,19 +6406,20 @@
5656    ac_cv_sizeof_long=0
5657  fi
5658  fi
5659 -echo "$as_me:5587: result: $ac_cv_sizeof_long" >&5
5660 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5661  echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5662  cat >>confdefs.h <<_ACEOF
5663  #define SIZEOF_LONG $ac_cv_sizeof_long
5664  _ACEOF
5665  
5666 -echo "$as_me:5593: checking for long long" >&5
5667 +
5668 +echo "$as_me:$LINENO: checking for long long" >&5
5669  echo $ECHO_N "checking for long long... $ECHO_C" >&6
5670  if test "${ac_cv_type_long_long+set}" = set; then
5671    echo $ECHO_N "(cached) $ECHO_C" >&6
5672  else
5673    cat >conftest.$ac_ext <<_ACEOF
5674 -#line 5599 "configure"
5675 +#line $LINENO "configure"
5676  #include "confdefs.h"
5677  $ac_includes_default
5678  #ifdef F77_DUMMY_MAIN
5679 @@ -5617,16 +6440,16 @@
5680  }
5681  _ACEOF
5682  rm -f conftest.$ac_objext
5683 -if { (eval echo "$as_me:5620: \"$ac_compile\"") >&5
5684 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685    (eval $ac_compile) 2>&5
5686    ac_status=$?
5687 -  echo "$as_me:5623: \$? = $ac_status" >&5
5688 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689    (exit $ac_status); } &&
5690           { ac_try='test -s conftest.$ac_objext'
5691 -  { (eval echo "$as_me:5626: \"$ac_try\"") >&5
5692 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693    (eval $ac_try) 2>&5
5694    ac_status=$?
5695 -  echo "$as_me:5629: \$? = $ac_status" >&5
5696 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697    (exit $ac_status); }; }; then
5698    ac_cv_type_long_long=yes
5699  else
5700 @@ -5636,19 +6459,23 @@
5701  fi
5702  rm -f conftest.$ac_objext conftest.$ac_ext
5703  fi
5704 -echo "$as_me:5639: result: $ac_cv_type_long_long" >&5
5705 +echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5706  echo "${ECHO_T}$ac_cv_type_long_long" >&6
5707  
5708 -echo "$as_me:5642: checking size of long long" >&5
5709 +echo "$as_me:$LINENO: checking size of long long" >&5
5710  echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5711  if test "${ac_cv_sizeof_long_long+set}" = set; then
5712    echo $ECHO_N "(cached) $ECHO_C" >&6
5713  else
5714    if test "$ac_cv_type_long_long" = yes; then
5715 +  # The cast to unsigned long works around a bug in the HP C Compiler
5716 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5717 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5718 +  # This bug is HP SR number 8606223364.
5719    if test "$cross_compiling" = yes; then
5720    # Depending upon the size, compute the lo and hi bounds.
5721  cat >conftest.$ac_ext <<_ACEOF
5722 -#line 5651 "configure"
5723 +#line $LINENO "configure"
5724  #include "confdefs.h"
5725  $ac_includes_default
5726  #ifdef F77_DUMMY_MAIN
5727 @@ -5660,27 +6487,29 @@
5728  int
5729  main ()
5730  {
5731 -int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
5732 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5733 +test_array [0] = 0
5734 +
5735    ;
5736    return 0;
5737  }
5738  _ACEOF
5739  rm -f conftest.$ac_objext
5740 -if { (eval echo "$as_me:5669: \"$ac_compile\"") >&5
5741 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742    (eval $ac_compile) 2>&5
5743    ac_status=$?
5744 -  echo "$as_me:5672: \$? = $ac_status" >&5
5745 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746    (exit $ac_status); } &&
5747           { ac_try='test -s conftest.$ac_objext'
5748 -  { (eval echo "$as_me:5675: \"$ac_try\"") >&5
5749 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750    (eval $ac_try) 2>&5
5751    ac_status=$?
5752 -  echo "$as_me:5678: \$? = $ac_status" >&5
5753 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754    (exit $ac_status); }; }; then
5755    ac_lo=0 ac_mid=0
5756    while :; do
5757      cat >conftest.$ac_ext <<_ACEOF
5758 -#line 5683 "configure"
5759 +#line $LINENO "configure"
5760  #include "confdefs.h"
5761  $ac_includes_default
5762  #ifdef F77_DUMMY_MAIN
5763 @@ -5692,38 +6521,77 @@
5764  int
5765  main ()
5766  {
5767 -int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
5768 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5769 +test_array [0] = 0
5770 +
5771    ;
5772    return 0;
5773  }
5774  _ACEOF
5775  rm -f conftest.$ac_objext
5776 -if { (eval echo "$as_me:5701: \"$ac_compile\"") >&5
5777 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778    (eval $ac_compile) 2>&5
5779    ac_status=$?
5780 -  echo "$as_me:5704: \$? = $ac_status" >&5
5781 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782    (exit $ac_status); } &&
5783           { ac_try='test -s conftest.$ac_objext'
5784 -  { (eval echo "$as_me:5707: \"$ac_try\"") >&5
5785 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786    (eval $ac_try) 2>&5
5787    ac_status=$?
5788 -  echo "$as_me:5710: \$? = $ac_status" >&5
5789 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790    (exit $ac_status); }; }; then
5791    ac_hi=$ac_mid; break
5792  else
5793    echo "$as_me: failed program was:" >&5
5794  cat conftest.$ac_ext >&5
5795 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5796 +ac_lo=`expr $ac_mid + 1`
5797 +                    if test $ac_lo -le $ac_mid; then
5798 +                      ac_lo= ac_hi=
5799 +                      break
5800 +                    fi
5801 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
5802  fi
5803  rm -f conftest.$ac_objext conftest.$ac_ext
5804    done
5805  else
5806    echo "$as_me: failed program was:" >&5
5807  cat conftest.$ac_ext >&5
5808 -ac_hi=-1 ac_mid=-1
5809 +cat >conftest.$ac_ext <<_ACEOF
5810 +#line $LINENO "configure"
5811 +#include "confdefs.h"
5812 +$ac_includes_default
5813 +#ifdef F77_DUMMY_MAIN
5814 +#  ifdef __cplusplus
5815 +     extern "C"
5816 +#  endif
5817 +   int F77_DUMMY_MAIN() { return 1; }
5818 +#endif
5819 +int
5820 +main ()
5821 +{
5822 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5823 +test_array [0] = 0
5824 +
5825 +  ;
5826 +  return 0;
5827 +}
5828 +_ACEOF
5829 +rm -f conftest.$ac_objext
5830 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 +  (eval $ac_compile) 2>&5
5832 +  ac_status=$?
5833 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 +  (exit $ac_status); } &&
5835 +         { ac_try='test -s conftest.$ac_objext'
5836 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 +  (eval $ac_try) 2>&5
5838 +  ac_status=$?
5839 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 +  (exit $ac_status); }; }; then
5841 +  ac_hi=-1 ac_mid=-1
5842    while :; do
5843      cat >conftest.$ac_ext <<_ACEOF
5844 -#line 5726 "configure"
5845 +#line $LINENO "configure"
5846  #include "confdefs.h"
5847  $ac_includes_default
5848  #ifdef F77_DUMMY_MAIN
5849 @@ -5735,38 +6603,51 @@
5850  int
5851  main ()
5852  {
5853 -int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
5854 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5855 +test_array [0] = 0
5856 +
5857    ;
5858    return 0;
5859  }
5860  _ACEOF
5861  rm -f conftest.$ac_objext
5862 -if { (eval echo "$as_me:5744: \"$ac_compile\"") >&5
5863 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864    (eval $ac_compile) 2>&5
5865    ac_status=$?
5866 -  echo "$as_me:5747: \$? = $ac_status" >&5
5867 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868    (exit $ac_status); } &&
5869           { ac_try='test -s conftest.$ac_objext'
5870 -  { (eval echo "$as_me:5750: \"$ac_try\"") >&5
5871 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872    (eval $ac_try) 2>&5
5873    ac_status=$?
5874 -  echo "$as_me:5753: \$? = $ac_status" >&5
5875 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876    (exit $ac_status); }; }; then
5877    ac_lo=$ac_mid; break
5878  else
5879    echo "$as_me: failed program was:" >&5
5880  cat conftest.$ac_ext >&5
5881 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5882 +ac_hi=`expr '(' $ac_mid ')' - 1`
5883 +                       if test $ac_mid -le $ac_hi; then
5884 +                         ac_lo= ac_hi=
5885 +                         break
5886 +                       fi
5887 +                       ac_mid=`expr 2 '*' $ac_mid`
5888  fi
5889  rm -f conftest.$ac_objext conftest.$ac_ext
5890    done
5891 +else
5892 +  echo "$as_me: failed program was:" >&5
5893 +cat conftest.$ac_ext >&5
5894 +ac_lo= ac_hi=
5895 +fi
5896 +rm -f conftest.$ac_objext conftest.$ac_ext
5897  fi
5898  rm -f conftest.$ac_objext conftest.$ac_ext
5899  # Binary search between lo and hi bounds.
5900  while test "x$ac_lo" != "x$ac_hi"; do
5901    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902    cat >conftest.$ac_ext <<_ACEOF
5903 -#line 5769 "configure"
5904 +#line $LINENO "configure"
5905  #include "confdefs.h"
5906  $ac_includes_default
5907  #ifdef F77_DUMMY_MAIN
5908 @@ -5778,42 +6659,53 @@
5909  int
5910  main ()
5911  {
5912 -int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
5913 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5914 +test_array [0] = 0
5915 +
5916    ;
5917    return 0;
5918  }
5919  _ACEOF
5920  rm -f conftest.$ac_objext
5921 -if { (eval echo "$as_me:5787: \"$ac_compile\"") >&5
5922 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923    (eval $ac_compile) 2>&5
5924    ac_status=$?
5925 -  echo "$as_me:5790: \$? = $ac_status" >&5
5926 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927    (exit $ac_status); } &&
5928           { ac_try='test -s conftest.$ac_objext'
5929 -  { (eval echo "$as_me:5793: \"$ac_try\"") >&5
5930 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931    (eval $ac_try) 2>&5
5932    ac_status=$?
5933 -  echo "$as_me:5796: \$? = $ac_status" >&5
5934 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935    (exit $ac_status); }; }; then
5936    ac_hi=$ac_mid
5937  else
5938    echo "$as_me: failed program was:" >&5
5939  cat conftest.$ac_ext >&5
5940 -ac_lo=`expr $ac_mid + 1`
5941 +ac_lo=`expr '(' $ac_mid ')' + 1`
5942  fi
5943  rm -f conftest.$ac_objext conftest.$ac_ext
5944  done
5945 -ac_cv_sizeof_long_long=$ac_lo
5946 +case $ac_lo in
5947 +?*) ac_cv_sizeof_long_long=$ac_lo;;
5948 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5949 +echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5950 +   { (exit 1); exit 1; }; } ;;
5951 +esac
5952  else
5953    if test "$cross_compiling" = yes; then
5954 -  { { echo "$as_me:5809: error: cannot run test program while cross compiling" >&5
5955 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5956  echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5957     { (exit 1); exit 1; }; }
5958  else
5959    cat >conftest.$ac_ext <<_ACEOF
5960 -#line 5814 "configure"
5961 +#line $LINENO "configure"
5962  #include "confdefs.h"
5963  $ac_includes_default
5964 +long longval () { return (long) (sizeof (long long)); }
5965 +unsigned long ulongval () { return (long) (sizeof (long long)); }
5966 +#include <stdio.h>
5967 +#include <stdlib.h>
5968  #ifdef F77_DUMMY_MAIN
5969  #  ifdef __cplusplus
5970       extern "C"
5971 @@ -5823,31 +6715,50 @@
5972  int
5973  main ()
5974  {
5975 -FILE *f = fopen ("conftest.val", "w");
5976 -if (!f)
5977 -  exit (1);
5978 -fprintf (f, "%d", (sizeof (long long)));
5979 -fclose (f);
5980 +
5981 +  FILE *f = fopen ("conftest.val", "w");
5982 +  if (! f)
5983 +    exit (1);
5984 +  if (((long) (sizeof (long long))) < 0)
5985 +    {
5986 +      long i = longval ();
5987 +      if (i != ((long) (sizeof (long long))))
5988 +       exit (1);
5989 +      fprintf (f, "%ld\n", i);
5990 +    }
5991 +  else
5992 +    {
5993 +      unsigned long i = ulongval ();
5994 +      if (i != ((long) (sizeof (long long))))
5995 +       exit (1);
5996 +      fprintf (f, "%lu\n", i);
5997 +    }
5998 +  exit (ferror (f) || fclose (f) != 0);
5999 +
6000    ;
6001    return 0;
6002  }
6003  _ACEOF
6004  rm -f conftest$ac_exeext
6005 -if { (eval echo "$as_me:5836: \"$ac_link\"") >&5
6006 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007    (eval $ac_link) 2>&5
6008    ac_status=$?
6009 -  echo "$as_me:5839: \$? = $ac_status" >&5
6010 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6012 -  { (eval echo "$as_me:5841: \"$ac_try\"") >&5
6013 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014    (eval $ac_try) 2>&5
6015    ac_status=$?
6016 -  echo "$as_me:5844: \$? = $ac_status" >&5
6017 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018    (exit $ac_status); }; }; then
6019    ac_cv_sizeof_long_long=`cat conftest.val`
6020  else
6021    echo "$as_me: program exited with status $ac_status" >&5
6022  echo "$as_me: failed program was:" >&5
6023  cat conftest.$ac_ext >&5
6024 +( exit $ac_status )
6025 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
6026 +echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
6027 +   { (exit 1); exit 1; }; }
6028  fi
6029  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6030  fi
6031 @@ -5857,13 +6768,15 @@
6032    ac_cv_sizeof_long_long=0
6033  fi
6034  fi
6035 -echo "$as_me:5860: result: $ac_cv_sizeof_long_long" >&5
6036 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6037  echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6038  cat >>confdefs.h <<_ACEOF
6039  #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6040  _ACEOF
6041  
6042 -echo "$as_me:5866: checking for $CC option to accept ANSI C" >&5
6043 +
6044 +
6045 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6046  echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6047  if test "${ac_cv_prog_cc_stdc+set}" = set; then
6048    echo $ECHO_N "(cached) $ECHO_C" >&6
6049 @@ -5871,7 +6784,7 @@
6050    ac_cv_prog_cc_stdc=no
6051  ac_save_CC=$CC
6052  cat >conftest.$ac_ext <<_ACEOF
6053 -#line 5874 "configure"
6054 +#line $LINENO "configure"
6055  #include "confdefs.h"
6056  #include <stdarg.h>
6057  #include <stdio.h>
6058 @@ -5926,16 +6839,16 @@
6059  do
6060    CC="$ac_save_CC $ac_arg"
6061    rm -f conftest.$ac_objext
6062 -if { (eval echo "$as_me:5929: \"$ac_compile\"") >&5
6063 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064    (eval $ac_compile) 2>&5
6065    ac_status=$?
6066 -  echo "$as_me:5932: \$? = $ac_status" >&5
6067 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068    (exit $ac_status); } &&
6069           { ac_try='test -s conftest.$ac_objext'
6070 -  { (eval echo "$as_me:5935: \"$ac_try\"") >&5
6071 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072    (eval $ac_try) 2>&5
6073    ac_status=$?
6074 -  echo "$as_me:5938: \$? = $ac_status" >&5
6075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076    (exit $ac_status); }; }; then
6077    ac_cv_prog_cc_stdc=$ac_arg
6078  break
6079 @@ -5952,21 +6865,21 @@
6080  
6081  case "x$ac_cv_prog_cc_stdc" in
6082    x|xno)
6083 -    echo "$as_me:5955: result: none needed" >&5
6084 +    echo "$as_me:$LINENO: result: none needed" >&5
6085  echo "${ECHO_T}none needed" >&6 ;;
6086    *)
6087 -    echo "$as_me:5958: result: $ac_cv_prog_cc_stdc" >&5
6088 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6089  echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6090      CC="$CC $ac_cv_prog_cc_stdc" ;;
6091  esac
6092  
6093 -echo "$as_me:5963: checking for an ANSI C-conforming const" >&5
6094 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6095  echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6096  if test "${ac_cv_c_const+set}" = set; then
6097    echo $ECHO_N "(cached) $ECHO_C" >&6
6098  else
6099    cat >conftest.$ac_ext <<_ACEOF
6100 -#line 5969 "configure"
6101 +#line $LINENO "configure"
6102  #include "confdefs.h"
6103  
6104  #ifdef F77_DUMMY_MAIN
6105 @@ -6030,16 +6943,16 @@
6106  }
6107  _ACEOF
6108  rm -f conftest.$ac_objext
6109 -if { (eval echo "$as_me:6033: \"$ac_compile\"") >&5
6110 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111    (eval $ac_compile) 2>&5
6112    ac_status=$?
6113 -  echo "$as_me:6036: \$? = $ac_status" >&5
6114 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115    (exit $ac_status); } &&
6116           { ac_try='test -s conftest.$ac_objext'
6117 -  { (eval echo "$as_me:6039: \"$ac_try\"") >&5
6118 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119    (eval $ac_try) 2>&5
6120    ac_status=$?
6121 -  echo "$as_me:6042: \$? = $ac_status" >&5
6122 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123    (exit $ac_status); }; }; then
6124    ac_cv_c_const=yes
6125  else
6126 @@ -6049,7 +6962,7 @@
6127  fi
6128  rm -f conftest.$ac_objext conftest.$ac_ext
6129  fi
6130 -echo "$as_me:6052: result: $ac_cv_c_const" >&5
6131 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6132  echo "${ECHO_T}$ac_cv_c_const" >&6
6133  if test $ac_cv_c_const = no; then
6134  
6135 @@ -6059,7 +6972,7 @@
6136  
6137  fi
6138  
6139 -echo "$as_me:6062: checking for inline" >&5
6140 +echo "$as_me:$LINENO: checking for inline" >&5
6141  echo $ECHO_N "checking for inline... $ECHO_C" >&6
6142  if test "${ac_cv_c_inline+set}" = set; then
6143    echo $ECHO_N "(cached) $ECHO_C" >&6
6144 @@ -6067,7 +6980,7 @@
6145    ac_cv_c_inline=no
6146  for ac_kw in inline __inline__ __inline; do
6147    cat >conftest.$ac_ext <<_ACEOF
6148 -#line 6070 "configure"
6149 +#line $LINENO "configure"
6150  #include "confdefs.h"
6151  #ifndef __cplusplus
6152  static $ac_kw int static_foo () {return 0; }
6153 @@ -6076,16 +6989,16 @@
6154  
6155  _ACEOF
6156  rm -f conftest.$ac_objext
6157 -if { (eval echo "$as_me:6079: \"$ac_compile\"") >&5
6158 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159    (eval $ac_compile) 2>&5
6160    ac_status=$?
6161 -  echo "$as_me:6082: \$? = $ac_status" >&5
6162 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163    (exit $ac_status); } &&
6164           { ac_try='test -s conftest.$ac_objext'
6165 -  { (eval echo "$as_me:6085: \"$ac_try\"") >&5
6166 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167    (eval $ac_try) 2>&5
6168    ac_status=$?
6169 -  echo "$as_me:6088: \$? = $ac_status" >&5
6170 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171    (exit $ac_status); }; }; then
6172    ac_cv_c_inline=$ac_kw; break
6173  else
6174 @@ -6096,7 +7009,7 @@
6175  done
6176  
6177  fi
6178 -echo "$as_me:6099: result: $ac_cv_c_inline" >&5
6179 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6180  echo "${ECHO_T}$ac_cv_c_inline" >&6
6181  case $ac_cv_c_inline in
6182    inline | yes) ;;
6183 @@ -6111,13 +7024,13 @@
6184   ;;
6185  esac
6186  
6187 -echo "$as_me:6114: checking for mode_t" >&5
6188 +echo "$as_me:$LINENO: checking for mode_t" >&5
6189  echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6190  if test "${ac_cv_type_mode_t+set}" = set; then
6191    echo $ECHO_N "(cached) $ECHO_C" >&6
6192  else
6193    cat >conftest.$ac_ext <<_ACEOF
6194 -#line 6120 "configure"
6195 +#line $LINENO "configure"
6196  #include "confdefs.h"
6197  $ac_includes_default
6198  #ifdef F77_DUMMY_MAIN
6199 @@ -6138,16 +7051,16 @@
6200  }
6201  _ACEOF
6202  rm -f conftest.$ac_objext
6203 -if { (eval echo "$as_me:6141: \"$ac_compile\"") >&5
6204 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205    (eval $ac_compile) 2>&5
6206    ac_status=$?
6207 -  echo "$as_me:6144: \$? = $ac_status" >&5
6208 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209    (exit $ac_status); } &&
6210           { ac_try='test -s conftest.$ac_objext'
6211 -  { (eval echo "$as_me:6147: \"$ac_try\"") >&5
6212 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213    (eval $ac_try) 2>&5
6214    ac_status=$?
6215 -  echo "$as_me:6150: \$? = $ac_status" >&5
6216 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217    (exit $ac_status); }; }; then
6218    ac_cv_type_mode_t=yes
6219  else
6220 @@ -6157,7 +7070,7 @@
6221  fi
6222  rm -f conftest.$ac_objext conftest.$ac_ext
6223  fi
6224 -echo "$as_me:6160: result: $ac_cv_type_mode_t" >&5
6225 +echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6226  echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6227  if test $ac_cv_type_mode_t = yes; then
6228    :
6229 @@ -6169,13 +7082,13 @@
6230  
6231  fi
6232  
6233 -echo "$as_me:6172: checking for off_t" >&5
6234 +echo "$as_me:$LINENO: checking for off_t" >&5
6235  echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6236  if test "${ac_cv_type_off_t+set}" = set; then
6237    echo $ECHO_N "(cached) $ECHO_C" >&6
6238  else
6239    cat >conftest.$ac_ext <<_ACEOF
6240 -#line 6178 "configure"
6241 +#line $LINENO "configure"
6242  #include "confdefs.h"
6243  $ac_includes_default
6244  #ifdef F77_DUMMY_MAIN
6245 @@ -6196,16 +7109,16 @@
6246  }
6247  _ACEOF
6248  rm -f conftest.$ac_objext
6249 -if { (eval echo "$as_me:6199: \"$ac_compile\"") >&5
6250 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251    (eval $ac_compile) 2>&5
6252    ac_status=$?
6253 -  echo "$as_me:6202: \$? = $ac_status" >&5
6254 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255    (exit $ac_status); } &&
6256           { ac_try='test -s conftest.$ac_objext'
6257 -  { (eval echo "$as_me:6205: \"$ac_try\"") >&5
6258 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259    (eval $ac_try) 2>&5
6260    ac_status=$?
6261 -  echo "$as_me:6208: \$? = $ac_status" >&5
6262 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263    (exit $ac_status); }; }; then
6264    ac_cv_type_off_t=yes
6265  else
6266 @@ -6215,7 +7128,7 @@
6267  fi
6268  rm -f conftest.$ac_objext conftest.$ac_ext
6269  fi
6270 -echo "$as_me:6218: result: $ac_cv_type_off_t" >&5
6271 +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6272  echo "${ECHO_T}$ac_cv_type_off_t" >&6
6273  if test $ac_cv_type_off_t = yes; then
6274    :
6275 @@ -6227,13 +7140,13 @@
6276  
6277  fi
6278  
6279 -echo "$as_me:6230: checking for pid_t" >&5
6280 +echo "$as_me:$LINENO: checking for pid_t" >&5
6281  echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6282  if test "${ac_cv_type_pid_t+set}" = set; then
6283    echo $ECHO_N "(cached) $ECHO_C" >&6
6284  else
6285    cat >conftest.$ac_ext <<_ACEOF
6286 -#line 6236 "configure"
6287 +#line $LINENO "configure"
6288  #include "confdefs.h"
6289  $ac_includes_default
6290  #ifdef F77_DUMMY_MAIN
6291 @@ -6254,16 +7167,16 @@
6292  }
6293  _ACEOF
6294  rm -f conftest.$ac_objext
6295 -if { (eval echo "$as_me:6257: \"$ac_compile\"") >&5
6296 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297    (eval $ac_compile) 2>&5
6298    ac_status=$?
6299 -  echo "$as_me:6260: \$? = $ac_status" >&5
6300 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301    (exit $ac_status); } &&
6302           { ac_try='test -s conftest.$ac_objext'
6303 -  { (eval echo "$as_me:6263: \"$ac_try\"") >&5
6304 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305    (eval $ac_try) 2>&5
6306    ac_status=$?
6307 -  echo "$as_me:6266: \$? = $ac_status" >&5
6308 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309    (exit $ac_status); }; }; then
6310    ac_cv_type_pid_t=yes
6311  else
6312 @@ -6273,7 +7186,7 @@
6313  fi
6314  rm -f conftest.$ac_objext conftest.$ac_ext
6315  fi
6316 -echo "$as_me:6276: result: $ac_cv_type_pid_t" >&5
6317 +echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6318  echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6319  if test $ac_cv_type_pid_t = yes; then
6320    :
6321 @@ -6285,13 +7198,13 @@
6322  
6323  fi
6324  
6325 -echo "$as_me:6288: checking for struct stat.st_blocks" >&5
6326 +echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6327  echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6328  if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6329    echo $ECHO_N "(cached) $ECHO_C" >&6
6330  else
6331    cat >conftest.$ac_ext <<_ACEOF
6332 -#line 6294 "configure"
6333 +#line $LINENO "configure"
6334  #include "confdefs.h"
6335  $ac_includes_default
6336  #ifdef F77_DUMMY_MAIN
6337 @@ -6311,16 +7224,16 @@
6338  }
6339  _ACEOF
6340  rm -f conftest.$ac_objext
6341 -if { (eval echo "$as_me:6314: \"$ac_compile\"") >&5
6342 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343    (eval $ac_compile) 2>&5
6344    ac_status=$?
6345 -  echo "$as_me:6317: \$? = $ac_status" >&5
6346 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347    (exit $ac_status); } &&
6348           { ac_try='test -s conftest.$ac_objext'
6349 -  { (eval echo "$as_me:6320: \"$ac_try\"") >&5
6350 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351    (eval $ac_try) 2>&5
6352    ac_status=$?
6353 -  echo "$as_me:6323: \$? = $ac_status" >&5
6354 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355    (exit $ac_status); }; }; then
6356    ac_cv_member_struct_stat_st_blocks=yes
6357  else
6358 @@ -6330,7 +7243,7 @@
6359  fi
6360  rm -f conftest.$ac_objext conftest.$ac_ext
6361  fi
6362 -echo "$as_me:6333: result: $ac_cv_member_struct_stat_st_blocks" >&5
6363 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6364  echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6365  if test $ac_cv_member_struct_stat_st_blocks = yes; then
6366  
6367 @@ -6338,6 +7251,7 @@
6368  #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6369  _ACEOF
6370  
6371 +
6372  cat >>confdefs.h <<\_ACEOF
6373  #define HAVE_ST_BLOCKS 1
6374  _ACEOF
6375 @@ -6346,13 +7260,14 @@
6376    LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6377  fi
6378  
6379 -echo "$as_me:6349: checking whether time.h and sys/time.h may both be included" >&5
6380 +
6381 +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6382  echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6383  if test "${ac_cv_header_time+set}" = set; then
6384    echo $ECHO_N "(cached) $ECHO_C" >&6
6385  else
6386    cat >conftest.$ac_ext <<_ACEOF
6387 -#line 6355 "configure"
6388 +#line $LINENO "configure"
6389  #include "confdefs.h"
6390  #include <sys/types.h>
6391  #include <sys/time.h>
6392 @@ -6374,16 +7289,16 @@
6393  }
6394  _ACEOF
6395  rm -f conftest.$ac_objext
6396 -if { (eval echo "$as_me:6377: \"$ac_compile\"") >&5
6397 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398    (eval $ac_compile) 2>&5
6399    ac_status=$?
6400 -  echo "$as_me:6380: \$? = $ac_status" >&5
6401 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402    (exit $ac_status); } &&
6403           { ac_try='test -s conftest.$ac_objext'
6404 -  { (eval echo "$as_me:6383: \"$ac_try\"") >&5
6405 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406    (eval $ac_try) 2>&5
6407    ac_status=$?
6408 -  echo "$as_me:6386: \$? = $ac_status" >&5
6409 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410    (exit $ac_status); }; }; then
6411    ac_cv_header_time=yes
6412  else
6413 @@ -6393,7 +7308,7 @@
6414  fi
6415  rm -f conftest.$ac_objext conftest.$ac_ext
6416  fi
6417 -echo "$as_me:6396: result: $ac_cv_header_time" >&5
6418 +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6419  echo "${ECHO_T}$ac_cv_header_time" >&6
6420  if test $ac_cv_header_time = yes; then
6421  
6422 @@ -6403,13 +7318,13 @@
6423  
6424  fi
6425  
6426 -echo "$as_me:6406: checking whether struct tm is in sys/time.h or time.h" >&5
6427 +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6428  echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6429  if test "${ac_cv_struct_tm+set}" = set; then
6430    echo $ECHO_N "(cached) $ECHO_C" >&6
6431  else
6432    cat >conftest.$ac_ext <<_ACEOF
6433 -#line 6412 "configure"
6434 +#line $LINENO "configure"
6435  #include "confdefs.h"
6436  #include <sys/types.h>
6437  #include <time.h>
6438 @@ -6429,16 +7344,16 @@
6439  }
6440  _ACEOF
6441  rm -f conftest.$ac_objext
6442 -if { (eval echo "$as_me:6432: \"$ac_compile\"") >&5
6443 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444    (eval $ac_compile) 2>&5
6445    ac_status=$?
6446 -  echo "$as_me:6435: \$? = $ac_status" >&5
6447 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448    (exit $ac_status); } &&
6449           { ac_try='test -s conftest.$ac_objext'
6450 -  { (eval echo "$as_me:6438: \"$ac_try\"") >&5
6451 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452    (eval $ac_try) 2>&5
6453    ac_status=$?
6454 -  echo "$as_me:6441: \$? = $ac_status" >&5
6455 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456    (exit $ac_status); }; }; then
6457    ac_cv_struct_tm=time.h
6458  else
6459 @@ -6448,7 +7363,7 @@
6460  fi
6461  rm -f conftest.$ac_objext conftest.$ac_ext
6462  fi
6463 -echo "$as_me:6451: result: $ac_cv_struct_tm" >&5
6464 +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6465  echo "${ECHO_T}$ac_cv_struct_tm" >&6
6466  if test $ac_cv_struct_tm = sys/time.h; then
6467  
6468 @@ -6458,15 +7373,16 @@
6469  
6470  fi
6471  
6472 +
6473  if test $ac_cv_c_compiler_gnu = yes; then
6474 -    echo "$as_me:6462: checking whether $CC needs -traditional" >&5
6475 +    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6476  echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6477  if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6478    echo $ECHO_N "(cached) $ECHO_C" >&6
6479  else
6480      ac_pattern="Autoconf.*'x'"
6481    cat >conftest.$ac_ext <<_ACEOF
6482 -#line 6469 "configure"
6483 +#line $LINENO "configure"
6484  #include "confdefs.h"
6485  #include <sgtty.h>
6486  Autoconf TIOCGETP
6487 @@ -6479,9 +7395,10 @@
6488  fi
6489  rm -f conftest*
6490  
6491 +
6492    if test $ac_cv_prog_gcc_traditional = no; then
6493      cat >conftest.$ac_ext <<_ACEOF
6494 -#line 6484 "configure"
6495 +#line $LINENO "configure"
6496  #include "confdefs.h"
6497  #include <termio.h>
6498  Autoconf TCGETA
6499 @@ -6494,14 +7411,14 @@
6500  
6501    fi
6502  fi
6503 -echo "$as_me:6497: result: $ac_cv_prog_gcc_traditional" >&5
6504 +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6505  echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6506    if test $ac_cv_prog_gcc_traditional = yes; then
6507      CC="$CC -traditional"
6508    fi
6509  fi
6510  
6511 -echo "$as_me:6504: checking for working memcmp" >&5
6512 +echo "$as_me:$LINENO: checking for working memcmp" >&5
6513  echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6514  if test "${ac_cv_func_memcmp_working+set}" = set; then
6515    echo $ECHO_N "(cached) $ECHO_C" >&6
6516 @@ -6510,7 +7427,7 @@
6517    ac_cv_func_memcmp_working=no
6518  else
6519    cat >conftest.$ac_ext <<_ACEOF
6520 -#line 6513 "configure"
6521 +#line $LINENO "configure"
6522  #include "confdefs.h"
6523  
6524  #ifdef F77_DUMMY_MAIN
6525 @@ -6552,37 +7469,38 @@
6526  }
6527  _ACEOF
6528  rm -f conftest$ac_exeext
6529 -if { (eval echo "$as_me:6555: \"$ac_link\"") >&5
6530 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531    (eval $ac_link) 2>&5
6532    ac_status=$?
6533 -  echo "$as_me:6558: \$? = $ac_status" >&5
6534 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6536 -  { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6537 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538    (eval $ac_try) 2>&5
6539    ac_status=$?
6540 -  echo "$as_me:6563: \$? = $ac_status" >&5
6541 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542    (exit $ac_status); }; }; then
6543    ac_cv_func_memcmp_working=yes
6544  else
6545    echo "$as_me: program exited with status $ac_status" >&5
6546  echo "$as_me: failed program was:" >&5
6547  cat conftest.$ac_ext >&5
6548 +( exit $ac_status )
6549  ac_cv_func_memcmp_working=no
6550  fi
6551  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6552  fi
6553  fi
6554 -echo "$as_me:6575: result: $ac_cv_func_memcmp_working" >&5
6555 +echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6556  echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6557  test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6558  
6559 -echo "$as_me:6579: checking return type of signal handlers" >&5
6560 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6561  echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6562  if test "${ac_cv_type_signal+set}" = set; then
6563    echo $ECHO_N "(cached) $ECHO_C" >&6
6564  else
6565    cat >conftest.$ac_ext <<_ACEOF
6566 -#line 6585 "configure"
6567 +#line $LINENO "configure"
6568  #include "confdefs.h"
6569  #include <sys/types.h>
6570  #include <signal.h>
6571 @@ -6610,16 +7528,16 @@
6572  }
6573  _ACEOF
6574  rm -f conftest.$ac_objext
6575 -if { (eval echo "$as_me:6613: \"$ac_compile\"") >&5
6576 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577    (eval $ac_compile) 2>&5
6578    ac_status=$?
6579 -  echo "$as_me:6616: \$? = $ac_status" >&5
6580 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581    (exit $ac_status); } &&
6582           { ac_try='test -s conftest.$ac_objext'
6583 -  { (eval echo "$as_me:6619: \"$ac_try\"") >&5
6584 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585    (eval $ac_try) 2>&5
6586    ac_status=$?
6587 -  echo "$as_me:6622: \$? = $ac_status" >&5
6588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589    (exit $ac_status); }; }; then
6590    ac_cv_type_signal=void
6591  else
6592 @@ -6629,14 +7547,15 @@
6593  fi
6594  rm -f conftest.$ac_objext conftest.$ac_ext
6595  fi
6596 -echo "$as_me:6632: result: $ac_cv_type_signal" >&5
6597 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6598  echo "${ECHO_T}$ac_cv_type_signal" >&6
6599  
6600  cat >>confdefs.h <<_ACEOF
6601  #define RETSIGTYPE $ac_cv_type_signal
6602  _ACEOF
6603  
6604 -echo "$as_me:6639: checking whether utime accepts a null argument" >&5
6605 +
6606 +echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
6607  echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
6608  if test "${ac_cv_func_utime_null+set}" = set; then
6609    echo $ECHO_N "(cached) $ECHO_C" >&6
6610 @@ -6647,7 +7566,7 @@
6611    ac_cv_func_utime_null=no
6612  else
6613    cat >conftest.$ac_ext <<_ACEOF
6614 -#line 6650 "configure"
6615 +#line $LINENO "configure"
6616  #include "confdefs.h"
6617  $ac_includes_default
6618  #ifdef F77_DUMMY_MAIN
6619 @@ -6670,28 +7589,29 @@
6620  }
6621  _ACEOF
6622  rm -f conftest$ac_exeext
6623 -if { (eval echo "$as_me:6673: \"$ac_link\"") >&5
6624 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625    (eval $ac_link) 2>&5
6626    ac_status=$?
6627 -  echo "$as_me:6676: \$? = $ac_status" >&5
6628 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 -  { (eval echo "$as_me:6678: \"$ac_try\"") >&5
6631 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632    (eval $ac_try) 2>&5
6633    ac_status=$?
6634 -  echo "$as_me:6681: \$? = $ac_status" >&5
6635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636    (exit $ac_status); }; }; then
6637    ac_cv_func_utime_null=yes
6638  else
6639    echo "$as_me: program exited with status $ac_status" >&5
6640  echo "$as_me: failed program was:" >&5
6641  cat conftest.$ac_ext >&5
6642 +( exit $ac_status )
6643  ac_cv_func_utime_null=no
6644  fi
6645  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6646  fi
6647  rm -f core core.* *.core
6648  fi
6649 -echo "$as_me:6694: result: $ac_cv_func_utime_null" >&5
6650 +echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
6651  echo "${ECHO_T}$ac_cv_func_utime_null" >&6
6652  if test $ac_cv_func_utime_null = yes; then
6653  
6654 @@ -6702,16 +7622,25 @@
6655  fi
6656  rm -f conftest.data
6657  
6658 +
6659 +
6660 +
6661 +
6662 +
6663 +
6664 +
6665 +
6666 +
6667  for ac_func in gettimeofday sigaction mkdir rmdir select strerror strstr statfs usleep
6668  do
6669  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6670 -echo "$as_me:6708: checking for $ac_func" >&5
6671 +echo "$as_me:$LINENO: checking for $ac_func" >&5
6672  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6673  if eval "test \"\${$as_ac_var+set}\" = set"; then
6674    echo $ECHO_N "(cached) $ECHO_C" >&6
6675  else
6676    cat >conftest.$ac_ext <<_ACEOF
6677 -#line 6714 "configure"
6678 +#line $LINENO "configure"
6679  #include "confdefs.h"
6680  /* System header to define __stub macros and hopefully few prototypes,
6681      which can conflict with char $ac_func (); below.  */
6682 @@ -6748,16 +7677,16 @@
6683  }
6684  _ACEOF
6685  rm -f conftest.$ac_objext conftest$ac_exeext
6686 -if { (eval echo "$as_me:6751: \"$ac_link\"") >&5
6687 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688    (eval $ac_link) 2>&5
6689    ac_status=$?
6690 -  echo "$as_me:6754: \$? = $ac_status" >&5
6691 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692    (exit $ac_status); } &&
6693           { ac_try='test -s conftest$ac_exeext'
6694 -  { (eval echo "$as_me:6757: \"$ac_try\"") >&5
6695 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696    (eval $ac_try) 2>&5
6697    ac_status=$?
6698 -  echo "$as_me:6760: \$? = $ac_status" >&5
6699 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700    (exit $ac_status); }; }; then
6701    eval "$as_ac_var=yes"
6702  else
6703 @@ -6767,7 +7696,7 @@
6704  fi
6705  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6706  fi
6707 -echo "$as_me:6770: result: `eval echo '${'$as_ac_var'}'`" >&5
6708 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6709  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6710  if test `eval echo '${'$as_ac_var'}'` = yes; then
6711    cat >>confdefs.h <<_ACEOF
6712 @@ -6777,6 +7706,14 @@
6713  fi
6714  done
6715  
6716 +
6717 +QTOPIA=no
6718 +# Check whether --enable-qtopia or --disable-qtopia was given.
6719 +if test "${enable_qtopia+set}" = set; then
6720 +  enableval="$enable_qtopia"
6721 +  QTOPIA=yes
6722 +fi;
6723 +
6724  KBD_LANG=0
6725  # Check whether --enable-kbd-lang-de or --disable-kbd-lang-de was given.
6726  if test "${enable_kbd_lang_de+set}" = set; then
6727 @@ -6789,44 +7726,48 @@
6728    KBD_LANG=0
6729  fi;
6730  
6731 -echo "$as_me:6792: checking which target to use" >&5
6732 +echo "$as_me:$LINENO: checking which target to use" >&5
6733  echo $ECHO_N "checking which target to use... $ECHO_C" >&6
6734  if [ x"$HAVE_BEBOX" = "xyes" ]; then
6735 -  echo "$as_me:6795: result: BeBox" >&5
6736 +  echo "$as_me:$LINENO: result: BeBox" >&5
6737  echo "${ECHO_T}BeBox" >&6
6738    TARGET=be
6739  elif [ x"$HAVE_AMIGA_LIB" = "xyes" ]; then
6740 -  echo "$as_me:6799: result: AmigaOS" >&5
6741 +  echo "$as_me:$LINENO: result: AmigaOS" >&5
6742  echo "${ECHO_T}AmigaOS" >&6
6743    TARGET=amigaos
6744  elif [ x"$no_x" = "xyes" ]; then
6745    if [ x"$HAVE_SVGA_LIB" = "xyes" ]; then
6746 -    echo "$as_me:6804: result: SVGAlib" >&5
6747 +    echo "$as_me:$LINENO: result: SVGAlib" >&5
6748  echo "${ECHO_T}SVGAlib" >&6
6749      TARGET=svgalib
6750      CFLAGS="$CFLAGS -D__svgalib__"
6751      LIBS="$LIBS -lvga"
6752    else
6753 -    echo "$as_me:6810: result: Ummm..." >&5
6754 +    echo "$as_me:$LINENO: result: Ummm..." >&5
6755  echo "${ECHO_T}Ummm..." >&6
6756 -    { { echo "$as_me:6812: error: Neither X nor SVGAlib found, don't know what target to use." >&5
6757 +    { { echo "$as_me:$LINENO: error: Neither X nor SVGAlib found, don't know what target to use." >&5
6758  echo "$as_me: error: Neither X nor SVGAlib found, don't know what target to use." >&2;}
6759     { (exit 1); exit 1; }; }
6760    fi
6761  elif [ x"$HAVE_SDL" = "xyes" ]; then
6762 -  echo "$as_me:6817: result: SDL" >&5
6763 +  echo "$as_me:$LINENO: result: SDL" >&5
6764  echo "${ECHO_T}SDL" >&6
6765    TARGET=sdl
6766    CFLAGS="$CFLAGS $SDL_CFLAGS -DHAVE_SDL"
6767    LIBS="$LIBS $SDL_LIBS"
6768 +  if [ x"$QTOPIA" = "xyes" ]; then
6769 +    CFLAGS="$CFLAGS -DQTOPIA"
6770 +  fi
6771  else
6772 -  echo "$as_me:6823: result: X Window System" >&5
6773 +  echo "$as_me:$LINENO: result: X Window System" >&5
6774  echo "${ECHO_T}X Window System" >&6
6775    TARGET=x11
6776    CFLAGS="$CFLAGS $X_CFLAGS -I$ac_cv_x_include"
6777    LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
6778  fi
6779  
6780 +
6781  HAVEGCC27=n
6782  HAVEI386=n
6783  
6784 @@ -6889,6 +7830,12 @@
6785  
6786  CC=$CXX
6787  
6788 +
6789 +
6790 +
6791 +
6792 +
6793 +
6794  ac_config_files="$ac_config_files Makefile"
6795  
6796  cat >confcache <<\_ACEOF
6797 @@ -6967,14 +7914,15 @@
6798  
6799  DEFS=-DHAVE_CONFIG_H
6800  
6801 +
6802  : ${CONFIG_STATUS=./config.status}
6803  ac_clean_files_save=$ac_clean_files
6804  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6805 -{ echo "$as_me:6973: creating $CONFIG_STATUS" >&5
6806 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6807  echo "$as_me: creating $CONFIG_STATUS" >&6;}
6808  cat >$CONFIG_STATUS <<_ACEOF
6809  #! $SHELL
6810 -# Generated automatically by $as_me.
6811 +# Generated by $as_me.
6812  # Run this file to recreate the current configuration.
6813  # Compiler output produced by configure, useful for debugging
6814  # configure, is in config.log if it exists.
6815 @@ -6997,8 +7945,167 @@
6816    set -o posix
6817  fi
6818  
6819 +# NLS nuisances.
6820 +# Support unset when possible.
6821 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6822 +  as_unset=unset
6823 +else
6824 +  as_unset=false
6825 +fi
6826 +
6827 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6828 +    { $as_unset LANG || test "${LANG+set}" != set; } ||
6829 +      { LANG=C; export LANG; }
6830 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6831 +    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6832 +      { LC_ALL=C; export LC_ALL; }
6833 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6834 +    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6835 +      { LC_TIME=C; export LC_TIME; }
6836 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6837 +    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6838 +      { LC_CTYPE=C; export LC_CTYPE; }
6839 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6840 +    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6841 +      { LANGUAGE=C; export LANGUAGE; }
6842 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6843 +    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6844 +      { LC_COLLATE=C; export LC_COLLATE; }
6845 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6846 +    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6847 +      { LC_NUMERIC=C; export LC_NUMERIC; }
6848 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6849 +    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6850 +      { LC_MESSAGES=C; export LC_MESSAGES; }
6851 +
6852 +
6853  # Name of the executable.
6854 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
6855 +as_me=`(basename "$0") 2>/dev/null ||
6856 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6857 +        X"$0" : 'X\(//\)$' \| \
6858 +        X"$0" : 'X\(/\)$' \| \
6859 +        .     : '\(.\)' 2>/dev/null ||
6860 +echo X/"$0" |
6861 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6862 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
6863 +         /^X\/\(\/\).*/{ s//\1/; q; }
6864 +         s/.*/./; q'`
6865 +
6866 +# PATH needs CR, and LINENO needs CR and PATH.
6867 +# Avoid depending upon Character Ranges.
6868 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6869 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6870 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6871 +as_cr_digits='0123456789'
6872 +as_cr_alnum=$as_cr_Letters$as_cr_digits
6873 +
6874 +# The user is always right.
6875 +if test "${PATH_SEPARATOR+set}" != set; then
6876 +  echo "#! /bin/sh" >conftest.sh
6877 +  echo  "exit 0"   >>conftest.sh
6878 +  chmod +x conftest.sh
6879 +  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6880 +    PATH_SEPARATOR=';'
6881 +  else
6882 +    PATH_SEPARATOR=:
6883 +  fi
6884 +  rm -f conftest.sh
6885 +fi
6886 +
6887 +
6888 +  as_lineno_1=$LINENO
6889 +  as_lineno_2=$LINENO
6890 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6891 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
6892 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6893 +  # Find who we are.  Look in the path if we contain no path at all
6894 +  # relative or not.
6895 +  case $0 in
6896 +    *[\\/]* ) as_myself=$0 ;;
6897 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 +for as_dir in $PATH
6899 +do
6900 +  IFS=$as_save_IFS
6901 +  test -z "$as_dir" && as_dir=.
6902 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6903 +done
6904 +
6905 +       ;;
6906 +  esac
6907 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
6908 +  # in which case we are not to be found in the path.
6909 +  if test "x$as_myself" = x; then
6910 +    as_myself=$0
6911 +  fi
6912 +  if test ! -f "$as_myself"; then
6913 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6914 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6915 +   { (exit 1); exit 1; }; }
6916 +  fi
6917 +  case $CONFIG_SHELL in
6918 +  '')
6919 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6921 +do
6922 +  IFS=$as_save_IFS
6923 +  test -z "$as_dir" && as_dir=.
6924 +  for as_base in sh bash ksh sh5; do
6925 +        case $as_dir in
6926 +        /*)
6927 +          if ("$as_dir/$as_base" -c '
6928 +  as_lineno_1=$LINENO
6929 +  as_lineno_2=$LINENO
6930 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6931 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
6932 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6933 +            CONFIG_SHELL=$as_dir/$as_base
6934 +            export CONFIG_SHELL
6935 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6936 +          fi;;
6937 +        esac
6938 +       done
6939 +done
6940 +;;
6941 +  esac
6942 +
6943 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6944 +  # uniformly replaced by the line number.  The first 'sed' inserts a
6945 +  # line-number line before each line; the second 'sed' does the real
6946 +  # work.  The second script uses 'N' to pair each line-number line
6947 +  # with the numbered line, and appends trailing '-' during
6948 +  # substitution so that $LINENO is not a special case at line end.
6949 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6950 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6951 +  sed '=' <$as_myself |
6952 +    sed '
6953 +      N
6954 +      s,$,-,
6955 +      : loop
6956 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6957 +      t loop
6958 +      s,-$,,
6959 +      s,^['$as_cr_digits']*\n,,
6960 +    ' >$as_me.lineno &&
6961 +  chmod +x $as_me.lineno ||
6962 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6963 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6964 +   { (exit 1); exit 1; }; }
6965 +
6966 +  # Don't try to exec as it changes $[0], causing all sort of problems
6967 +  # (the dirname of $[0] is not the place where we might find the
6968 +  # original and so on.  Autoconf is especially sensible to this).
6969 +  . ./$as_me.lineno
6970 +  # Exit status is that of the last command.
6971 +  exit
6972 +}
6973 +
6974 +
6975 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6976 +  *c*,-n*) ECHO_N= ECHO_C='
6977 +' ECHO_T='     ' ;;
6978 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6979 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6980 +esac
6981  
6982  if expr a : '\(a\)' >/dev/null 2>&1; then
6983    as_expr=expr
6984 @@ -7026,22 +8133,12 @@
6985  
6986  as_executable_p="test -f"
6987  
6988 -# Support unset when possible.
6989 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6990 -  as_unset=unset
6991 -else
6992 -  as_unset=false
6993 -fi
6994 +# Sed expression to map a string onto a valid CPP name.
6995 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6996 +
6997 +# Sed expression to map a string onto a valid variable name.
6998 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6999  
7000 -# NLS nuisances.
7001 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7002 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7003 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7004 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7005 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7006 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7007 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7008 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7009  
7010  # IFS
7011  # We need space, tab and new line, in precisely that order.
7012 @@ -7050,7 +8147,7 @@
7013  IFS="  $as_nl"
7014  
7015  # CDPATH.
7016 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7017 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7018  
7019  exec 6>&1
7020  
7021 @@ -7061,19 +8158,19 @@
7022  {
7023    echo
7024    sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7025 -## Running \$as_me. ##
7026 +## Running $as_me. ##
7027  _ASBOX
7028  } >&5
7029  cat >&5 <<_CSEOF
7030  
7031  This file was extended by $as_me, which was
7032 -generated by GNU Autoconf 2.52d.  Invocation command line was
7033 +generated by GNU Autoconf 2.53.  Invocation command line was
7034  
7035    CONFIG_FILES    = $CONFIG_FILES
7036    CONFIG_HEADERS  = $CONFIG_HEADERS
7037    CONFIG_LINKS    = $CONFIG_LINKS
7038    CONFIG_COMMANDS = $CONFIG_COMMANDS
7039 -  $ $@
7040 +  $ $0 $@
7041  
7042  _CSEOF
7043  echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7044 @@ -7126,7 +8223,7 @@
7045  cat >>$CONFIG_STATUS <<_ACEOF
7046  ac_cs_version="\\
7047  config.status
7048 -configured by $0, generated by GNU Autoconf 2.52d,
7049 +configured by $0, generated by GNU Autoconf 2.53,
7050    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7051  
7052  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7053 @@ -7169,7 +8266,7 @@
7054      echo "$ac_cs_version"; exit 0 ;;
7055    --he | --h)
7056      # Conflict between --help and --header
7057 -    { { echo "$as_me:7172: error: ambiguous option: $1
7058 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7059  Try \`$0 --help' for more information." >&5
7060  echo "$as_me: error: ambiguous option: $1
7061  Try \`$0 --help' for more information." >&2;}
7062 @@ -7188,7 +8285,7 @@
7063      ac_need_defaults=false;;
7064  
7065    # This is an error.
7066 -  -*) { { echo "$as_me:7191: error: unrecognized option: $1
7067 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7068  Try \`$0 --help' for more information." >&5
7069  echo "$as_me: error: unrecognized option: $1
7070  Try \`$0 --help' for more information." >&2;}
7071 @@ -7202,6 +8299,10 @@
7072  
7073  _ACEOF
7074  
7075 +
7076 +
7077 +
7078 +
7079  cat >>$CONFIG_STATUS <<\_ACEOF
7080  for ac_config_target in $ac_config_targets
7081  do
7082 @@ -7209,7 +8310,7 @@
7083    # Handling of arguments.
7084    "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7085    "sysconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sysconfig.h" ;;
7086 -  *) { { echo "$as_me:7212: error: invalid argument: $ac_config_target" >&5
7087 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7088  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7089     { (exit 1); exit 1; }; };;
7090    esac
7091 @@ -7261,6 +8362,12 @@
7092    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7093     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7094  s,@SHELL@,$SHELL,;t t
7095 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7096 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7097 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7098 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7099 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7100 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7101  s,@exec_prefix@,$exec_prefix,;t t
7102  s,@prefix@,$prefix,;t t
7103  s,@program_transform_name@,$program_transform_name,;t t
7104 @@ -7276,19 +8383,13 @@
7105  s,@oldincludedir@,$oldincludedir,;t t
7106  s,@infodir@,$infodir,;t t
7107  s,@mandir@,$mandir,;t t
7108 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7109 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7110 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7111 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7112 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7113  s,@build_alias@,$build_alias,;t t
7114  s,@host_alias@,$host_alias,;t t
7115  s,@target_alias@,$target_alias,;t t
7116 +s,@DEFS@,$DEFS,;t t
7117  s,@ECHO_C@,$ECHO_C,;t t
7118  s,@ECHO_N@,$ECHO_N,;t t
7119  s,@ECHO_T@,$ECHO_T,;t t
7120 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7121 -s,@DEFS@,$DEFS,;t t
7122  s,@LIBS@,$LIBS,;t t
7123  s,@CC@,$CC,;t t
7124  s,@CFLAGS@,$CFLAGS,;t t
7125 @@ -7372,7 +8473,8 @@
7126    esac
7127  
7128    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7129 -  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7130 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7131 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7132           X"$ac_file" : 'X\(//\)[^/]' \| \
7133           X"$ac_file" : 'X\(//\)$' \| \
7134           X"$ac_file" : 'X\(/\)' \| \
7135 @@ -7396,17 +8498,19 @@
7136        as_incr_dir=$as_incr_dir/$as_mkdir_dir
7137        test -d "$as_incr_dir" ||
7138          mkdir "$as_incr_dir" ||
7139 -       { { echo "$as_me:7399: error: cannot create \"$ac_dir\"" >&5
7140 +       { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7141  echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7142     { (exit 1); exit 1; }; }
7143      ;;
7144    esac
7145  done; }
7146  
7147 -  if test "$ac_dir" != .; then
7148 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
7149 +  ac_builddir=.
7150 +
7151 +if test "$ac_dir" != .; then
7152 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7153    # A "../" for each directory in $ac_dir_suffix.
7154 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7155 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7156  else
7157    ac_dir_suffix= ac_top_builddir=
7158  fi
7159 @@ -7426,17 +8530,30 @@
7160      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7161      ac_top_srcdir=$ac_top_builddir$srcdir ;;
7162  esac
7163 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7164 +# absolute.
7165 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7166 +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7167 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7168 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7169 +
7170 +
7171  
7172    if test x"$ac_file" != x-; then
7173 -    { echo "$as_me:7431: creating $ac_file" >&5
7174 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
7175  echo "$as_me: creating $ac_file" >&6;}
7176      rm -f "$ac_file"
7177    fi
7178    # Let's still pretend it is `configure' which instantiates (i.e., don't
7179    # use $as_me), people would be surprised to read:
7180 -  #    /* config.h.  Generated automatically by config.status.  */
7181 -  configure_input="Generated automatically from `echo $ac_file_in |
7182 -                                                 sed 's,.*/,,'` by configure."
7183 +  #    /* config.h.  Generated by config.status.  */
7184 +  if test x"$ac_file" = x-; then
7185 +    configure_input=
7186 +  else
7187 +    configure_input="$ac_file.  "
7188 +  fi
7189 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
7190 +                                     sed 's,.*/,,'` by configure."
7191  
7192    # First look for the input files in the build tree, otherwise in the
7193    # src tree.
7194 @@ -7446,7 +8563,7 @@
7195        -) echo $tmp/stdin ;;
7196        [\\/$]*)
7197           # Absolute (can't be DOS-style, as IFS=:)
7198 -         test -f "$f" || { { echo "$as_me:7449: error: cannot find input file: $f" >&5
7199 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7200  echo "$as_me: error: cannot find input file: $f" >&2;}
7201     { (exit 1); exit 1; }; }
7202           echo $f;;
7203 @@ -7459,7 +8576,7 @@
7204             echo $srcdir/$f
7205           else
7206             # /dev/null tree
7207 -           { { echo "$as_me:7462: error: cannot find input file: $f" >&5
7208 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7209  echo "$as_me: error: cannot find input file: $f" >&2;}
7210     { (exit 1); exit 1; }; }
7211           fi;;
7212 @@ -7475,7 +8592,13 @@
7213  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7214  s,@configure_input@,$configure_input,;t t
7215  s,@srcdir@,$ac_srcdir,;t t
7216 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
7217  s,@top_srcdir@,$ac_top_srcdir,;t t
7218 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7219 +s,@builddir@,$ac_builddir,;t t
7220 +s,@abs_builddir@,$ac_abs_builddir,;t t
7221 +s,@top_builddir@,$ac_top_builddir,;t t
7222 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7223  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7224    rm -f $tmp/stdin
7225    if test x"$ac_file" != x-; then
7226 @@ -7519,7 +8642,7 @@
7227    * )   ac_file_in=$ac_file.in ;;
7228    esac
7229  
7230 -  test x"$ac_file" != x- && { echo "$as_me:7522: creating $ac_file" >&5
7231 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7232  echo "$as_me: creating $ac_file" >&6;}
7233  
7234    # First look for the input files in the build tree, otherwise in the
7235 @@ -7530,7 +8653,7 @@
7236        -) echo $tmp/stdin ;;
7237        [\\/$]*)
7238           # Absolute (can't be DOS-style, as IFS=:)
7239 -         test -f "$f" || { { echo "$as_me:7533: error: cannot find input file: $f" >&5
7240 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7241  echo "$as_me: error: cannot find input file: $f" >&2;}
7242     { (exit 1); exit 1; }; }
7243           echo $f;;
7244 @@ -7543,7 +8666,7 @@
7245             echo $srcdir/$f
7246           else
7247             # /dev/null tree
7248 -           { { echo "$as_me:7546: error: cannot find input file: $f" >&5
7249 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7250  echo "$as_me: error: cannot find input file: $f" >&2;}
7251     { (exit 1); exit 1; }; }
7252           fi;;
7253 @@ -7573,7 +8696,7 @@
7254  s,[\\$`],\\&,g
7255  t clear
7256  : clear
7257 -s,^[   ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7258 +s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7259  t end
7260  s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7261  : end
7262 @@ -7650,20 +8773,21 @@
7263  cat >>$CONFIG_STATUS <<\_ACEOF
7264    # Let's still pretend it is `configure' which instantiates (i.e., don't
7265    # use $as_me), people would be surprised to read:
7266 -  #    /* config.h.  Generated automatically by config.status.  */
7267 +  #    /* config.h.  Generated by config.status.  */
7268    if test x"$ac_file" = x-; then
7269 -    echo "/* Generated automatically by configure.  */" >$tmp/config.h
7270 +    echo "/* Generated by configure.  */" >$tmp/config.h
7271    else
7272 -    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
7273 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7274    fi
7275    cat $tmp/in >>$tmp/config.h
7276    rm -f $tmp/in
7277    if test x"$ac_file" != x-; then
7278      if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7279 -      { echo "$as_me:7663: $ac_file is unchanged" >&5
7280 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7281  echo "$as_me: $ac_file is unchanged" >&6;}
7282      else
7283 -      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7284 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7285 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7286           X"$ac_file" : 'X\(//\)[^/]' \| \
7287           X"$ac_file" : 'X\(//\)$' \| \
7288           X"$ac_file" : 'X\(/\)' \| \
7289 @@ -7687,7 +8811,7 @@
7290        as_incr_dir=$as_incr_dir/$as_mkdir_dir
7291        test -d "$as_incr_dir" ||
7292          mkdir "$as_incr_dir" ||
7293 -       { { echo "$as_me:7690: error: cannot create \"$ac_dir\"" >&5
7294 +       { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7295  echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7296     { (exit 1); exit 1; }; }
7297      ;;
7298 @@ -7711,6 +8835,7 @@
7299  chmod +x $CONFIG_STATUS
7300  ac_clean_files=$ac_clean_files_save
7301  
7302 +
7303  # configure is writing to config.log, and then calls config.status.
7304  # config.status does its own redirection, appending to config.log.
7305  # Unfortunately, on DOS this fails, as config.log is still kept open
7306 @@ -7729,5 +8854,6 @@
7307    $ac_cs_success || { (exit 1); exit 1; }
7308  fi
7309  
7310 +
7311  echo
7312  echo "Configuration done. Now type \"make\"."
7313 diff -urN Src/configure.in Src/configure.in
7314 --- Src/configure.in    2002-01-02 17:43:53.000000000 +0100
7315 +++ Src/configure.in    2002-11-21 17:07:04.000000000 +0100
7316 @@ -63,6 +63,9 @@
7317  AC_FUNC_UTIME_NULL
7318  AC_CHECK_FUNCS(gettimeofday sigaction mkdir rmdir select strerror strstr statfs usleep)
7319  
7320 +QTOPIA=no
7321 +AC_ARG_ENABLE(qtopia,[  --enable-qtopia         Make a Qtopia Version (Sharp Zaurus) of Frodo],[QTOPIA=yes],[])
7322 +
7323  KBD_LANG=0
7324  AC_ARG_ENABLE(kbd-lang-de,[  --enable-kbd-lang-de    Use german keyboard layout],[KBD_LANG=1],[])
7325  AC_ARG_ENABLE(kbd-lang-us,[  --enable-kbd-lang-us    Use american keyboard layout],[KBD_LANG=0],[])
7326 @@ -89,6 +92,9 @@
7327    TARGET=sdl
7328    CFLAGS="$CFLAGS $SDL_CFLAGS -DHAVE_SDL"
7329    LIBS="$LIBS $SDL_LIBS"
7330 +  if [[ x"$QTOPIA" = "xyes" ]]; then
7331 +    CFLAGS="$CFLAGS -DQTOPIA"
7332 +  fi
7333  else
7334    AC_MSG_RESULT([X Window System])
7335    TARGET=x11
7336 @@ -96,7 +102,7 @@
7337    LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7338  fi
7339  
7340 -dnl Find out some things about the system 
7341 +dnl Find out some things about the system
7342  dnl  - whether we have GCC 2.7 or better.
7343  dnl  - what CPU we have (to use some assembly hacks on the x86)
7344  
7345 @@ -161,7 +167,7 @@
7346  fi
7347  
7348  CC=$CXX
7349
7350 +
7351  AC_SUBST(TARGET)
7352  AC_SUBST(SET_MAKE)
7353  AC_SUBST(top_srcdir)
7354 diff -urN Src/Display.cpp Src/Display.cpp
7355 --- Src/Display.cpp     2002-01-02 22:19:10.000000000 +0100
7356 +++ Src/Display.cpp     2002-11-21 17:07:04.000000000 +0100
7357 @@ -12,7 +12,7 @@
7358  
7359  
7360  // LED states
7361 -enum {
7362 +enum { 
7363         LED_OFF,                // LED off
7364         LED_ON,                 // LED on (green)
7365         LED_ERROR_ON,   // LED blinking (red), currently on
7366 @@ -28,7 +28,7 @@
7367  const uint8 palette_red[16] = {
7368         0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0x80, 0xff, 0x40, 0x80, 0x80, 0x80, 0xc0
7369  };
7370 -
7371 +   
7372  const uint8 palette_green[16] = {
7373         0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x80, 0x40, 0x80, 0x40, 0x80, 0xff, 0x80, 0xc0
7374  };
7375 @@ -73,7 +73,11 @@
7376  #elif defined(AMIGA)
7377  #include "Display_Amiga.i"
7378  #elif defined(HAVE_SDL)
7379 -#include "Display_SDL.i"
7380 +# ifdef QTOPIA
7381 +#  include "Display_QtopiaSDL.i"
7382 +# else
7383 +#  include "Display_SDL.i"
7384 +# endif
7385  #elif defined(__unix)
7386  # ifdef __svgalib__
7387  #  include "Display_svga.i"
7388 diff -urN Src/Display_QtopiaSDL.i Src/Display_QtopiaSDL.i
7389 --- Src/Display_QtopiaSDL.i     1970-01-01 01:00:00.000000000 +0100
7390 +++ Src/Display_QtopiaSDL.i     2003-04-03 19:10:35.000000000 +0200
7391 @@ -0,0 +1,619 @@
7392 +/*
7393 + *  Display_QtopiaSDL.i - C64 graphics display, emulator window handling,
7394 + *                        SDL specific stuff
7395 + *
7396 + *  Frodo (C) 1994-1997,2002 Christian Bauer
7397 + *  Qtopia changes (against Display_SDL.i) from Bernd Lachner
7398 + */
7399 +
7400 +#include "C64.h"
7401 +#include "SAM.h"
7402 +#include "Version.h"
7403 +
7404 +#define QWS
7405 +#include <SDL.h>
7406 +
7407 +
7408 +// Display surface
7409 +static SDL_Surface *screen = NULL;
7410 +
7411 +// Mode of Joystick emulation. 0 = none, 1 = Joyport 1, 2 = Joyport 2
7412 +static short joy_emu = 0;
7413 +
7414 +// Keyboard
7415 +static bool tab_pressed = false;
7416 +
7417 +// For LED error blinking
7418 +static C64Display *c64_disp;
7419 +static struct sigaction pulse_sa;
7420 +static itimerval pulse_tv;
7421 +
7422 +// Colors for speedometer/drive LEDs
7423 +enum 
7424 +{
7425 +       black = 0,
7426 +       white = 1,
7427 +       fill_gray = 16,
7428 +       shine_gray = 17,
7429 +       shadow_gray = 18,
7430 +       red = 19,
7431 +       green = 20,
7432 +       PALETTE_SIZE = 21
7433 +};
7434 +
7435 +/*
7436 +  C64 keyboard matrix:
7437 +
7438 +    Bit 7   6   5   4   3   2   1   0
7439 +  0    CUD  F5  F3  F1  F7 CLR RET DEL
7440 +  1    SHL  E   S   Z   4   A   W   3
7441 +  2     X   T   F   C   6   D   R   5
7442 +  3     V   U   H   B   8   G   Y   7
7443 +  4     N   O   K   M   0   J   I   9
7444 +  5     ,   @   :   .   -   L   P   +
7445 +  6     /   ^   =  SHR HOM  ;   *   Â£
7446 +  7    R/S  Q   C= SPC  2  CTL  <-  1
7447 +*/
7448 +
7449 +#define MATRIX(a,b) (((a) << 3) | (b))
7450 +
7451 +
7452 +/*
7453 + *  Open windo'
7454 +  'ß9087654    12q3w4eruiopü+#*/
7455 +
7456 +char *buffer;
7457 +
7458 +int init_graphics(void)
7459 +{
7460 +       // Init SDL
7461 +       fprintf(stderr, "Init SDL\n");
7462 +       if (SDL_Init(SDL_INIT_VIDEO) < 0) 
7463 +       {
7464 +               fprintf(stderr, "Couldn't initialize SDL (%s)\n", SDL_GetError());
7465 +               return 0;
7466 +       }
7467 +
7468 +       buffer = new char[DISPLAY_X*DISPLAY_Y];
7469 +       // Open window
7470 +       SDL_WM_SetCaption(VERSION_STRING, "Frodo");
7471 +       screen = SDL_SetVideoMode(320, 240, 8, SDL_DOUBLEBUF);
7472 +       if (screen == NULL)
7473 +       {
7474 +               fprintf(stderr, "SDL Couldn't set video mode to %d x %d\n", DISPLAY_X, DISPLAY_Y+17);
7475 +       }
7476 +       else
7477 +       {
7478 +               fprintf(stderr, "SDL Set video mode to %d x %d\n", DISPLAY_X, DISPLAY_Y+17);
7479 +       }
7480 +       return 1;
7481 +}
7482 +
7483 +
7484 +
7485 +/*
7486 + *  Display constructor
7487 + */
7488 +
7489 +C64Display::C64Display(C64 *the_c64) : TheC64(the_c64)
7490 +{
7491 +       quit_requested = false;
7492 +       speedometer_string[0] = 0;
7493 +
7494 +       // LEDs off
7495 +       for (int i=0; i<4; i++)
7496 +               led_state[i] = old_led_state[i] = LED_OFF;
7497 +
7498 +       // Start timer for LED error blinking
7499 +       c64_disp = this;
7500 +       pulse_sa.sa_handler = (void (*)(int))pulse_handler;
7501 +       pulse_sa.sa_flags = 0;
7502 +       sigemptyset(&pulse_sa.sa_mask);
7503 +       sigaction(SIGALRM, &pulse_sa, NULL);
7504 +       pulse_tv.it_interval.tv_sec = 0;
7505 +       pulse_tv.it_interval.tv_usec = 400000;
7506 +       pulse_tv.it_value.tv_sec = 0;
7507 +       pulse_tv.it_value.tv_usec = 400000;
7508 +       setitimer(ITIMER_REAL, &pulse_tv, NULL);
7509 +}
7510 +
7511 +
7512 +/*
7513 + *  Display destructor
7514 + */
7515 +
7516 +C64Display::~C64Display()
7517 +{
7518 +       SDL_Quit();
7519 +       delete[] buffer;
7520 +}
7521 +
7522 +
7523 +/*
7524 + *  Prefs may have changed
7525 + */
7526 +
7527 +void C64Display::NewPrefs(Prefs *prefs)
7528 +{
7529 +}
7530 +
7531 +
7532 +/*
7533 + *  Redraw bitmap
7534 + */
7535 +
7536 +void C64Display::Update(void)
7537 +{
7538 +       if (screen == NULL)
7539 +               return;
7540 +       int iOffsetX = (DISPLAY_X - screen->w) / 2;
7541 +       int iOffsetY = (DISPLAY_Y - screen->h) / 2;
7542 +       for (int j=0; j < screen->h - 17; j++)
7543 +       {
7544 +               memcpy(static_cast<char*>(screen->pixels)+screen->w*j, buffer+iOffsetX+DISPLAY_X*(j+iOffsetY), screen->w);
7545 +       }
7546 +       // Draw speedometer/LEDs
7547 +       SDL_Rect r = {0, (screen->h - 17), DISPLAY_X, 15};
7548 +       SDL_FillRect(screen, &r, fill_gray);
7549 +       r.w = DISPLAY_X; r.h = 1;
7550 +       SDL_FillRect(screen, &r, shine_gray);
7551 +       r.y = (screen->h - 17) + 14;
7552 +       SDL_FillRect(screen, &r, shadow_gray);
7553 +       r.w = 16;
7554 +       for (int i=2; i<5; i++) 
7555 +       {
7556 +               r.x = DISPLAY_X * i/5 - 24; r.y = (screen->h - 17) + 4;
7557 +               SDL_FillRect(screen, &r, shadow_gray);
7558 +               r.y = (screen->h - 17) + 10;
7559 +               SDL_FillRect(screen, &r, shine_gray);
7560 +       }
7561 +       r.y = (screen->h - 17); r.w = 1; r.h = 15;
7562 +       for (int i=0; i<4; i++) 
7563 +       {
7564 +               r.x = DISPLAY_X * i / 5;
7565 +               SDL_FillRect(screen, &r, shine_gray);
7566 +               r.x = DISPLAY_X * (i+1) / 5 - 1;
7567 +               SDL_FillRect(screen, &r, shadow_gray);
7568 +       }
7569 +       r.y = (screen->h - 17) + 4; r.h = 7;
7570 +       for (int i=2; i<5; i++)
7571 +       {
7572 +               r.x = DISPLAY_X * i/5 - 24;
7573 +               SDL_FillRect(screen, &r, shadow_gray);
7574 +               r.x = DISPLAY_X * i/5 - 9;
7575 +               SDL_FillRect(screen, &r, shine_gray);
7576 +       }
7577 +       r.y = (screen->h - 17) + 5; r.w = 14; r.h = 5;
7578 +       for (int i=0; i<3; i++) 
7579 +       {
7580 +               r.x = DISPLAY_X * (i+2) / 5 - 23;
7581 +               int c;
7582 +               switch (led_state[i]) 
7583 +               {
7584 +                       case LED_ON:
7585 +                               c = green;
7586 +                               break;
7587 +                       case LED_ERROR_ON:
7588 +                               c = red;
7589 +                               break;
7590 +                       default:
7591 +                               c = black;
7592 +                               break;
7593 +               }
7594 +               SDL_FillRect(screen, &r, c);
7595 +       }
7596 +
7597 +       draw_string(screen, DISPLAY_X * 1/5 + 8, (screen->h - 17) + 4, "D\x12 8", black, fill_gray);
7598 +       draw_string(screen, DISPLAY_X * 2/5 + 8, (screen->h - 17) + 4, "D\x12 9", black, fill_gray);
7599 +       draw_string(screen, DISPLAY_X * 3/5 + 8, (screen->h - 17) + 4, "D\x12 10", black, fill_gray);
7600 +       if (joy_emu == 1)
7601 +               draw_string(screen, DISPLAY_X * 4/5 + 2, (screen->h - 17) + 4, "1", black, fill_gray);
7602 +       else if (joy_emu == 2)
7603 +               draw_string(screen, DISPLAY_X * 4/5 + 2, (screen->h - 17) + 4, "2", black, fill_gray);
7604 +       draw_string(screen, 24, (screen->h - 17) + 4, speedometer_string, black, fill_gray);
7605 +
7606 +       // Update display
7607 +       SDL_Flip(screen);
7608 +}
7609 +
7610 +
7611 +/*
7612 + *  Draw string into surface using the C64 ROM font
7613 + */
7614 +
7615 +void C64Display::draw_string(SDL_Surface *s, int x, int y, const char *str, uint8 front_color, uint8 back_color)
7616 +{
7617 +       uint8 *pb = (uint8 *)s->pixels + s->pitch*y + x;
7618 +       char c;
7619 +       while ((c = *str++) != 0) 
7620 +       {
7621 +               uint8 *q = TheC64->Char + c*8 + 0x800;
7622 +               uint8 *p = pb;
7623 +               for (int y=0; y<8; y++) 
7624 +               {
7625 +                       uint8 v = *q++;
7626 +                       p[0] = (v & 0x80) ? front_color : back_color;
7627 +                       p[1] = (v & 0x40) ? front_color : back_color;
7628 +                       p[2] = (v & 0x20) ? front_color : back_color;
7629 +                       p[3] = (v & 0x10) ? front_color : back_color;
7630 +                       p[4] = (v & 0x08) ? front_color : back_color;
7631 +                       p[5] = (v & 0x04) ? front_color : back_color;
7632 +                       p[6] = (v & 0x02) ? front_color : back_color;
7633 +                       p[7] = (v & 0x01) ? front_color : back_color;
7634 +                       p += s->pitch;
7635 +               }
7636 +               pb += 8;
7637 +       }
7638 +}
7639 +
7640 +
7641 +/*
7642 + *  LED error blink
7643 + */
7644 +
7645 +void C64Display::pulse_handler(...)
7646 +{
7647 +       for (int i=0; i<4; i++)
7648 +               switch (c64_disp->led_state[i]) 
7649 +               {
7650 +                       case LED_ERROR_ON:
7651 +                               c64_disp->led_state[i] = LED_ERROR_OFF;
7652 +                               break;
7653 +                       case LED_ERROR_OFF:
7654 +                               c64_disp->led_state[i] = LED_ERROR_ON;
7655 +                               break;
7656 +               }
7657 +}
7658 +
7659 +
7660 +/*
7661 + *  Draw speedometer
7662 + */
7663 +
7664 +void C64Display::Speedometer(int speed)
7665 +{
7666 +       static int delay = 0;
7667 +
7668 +       if (delay >= 20)
7669 +       {
7670 +               delay = 0;
7671 +               sprintf(speedometer_string, "%d%%", speed);
7672 +       } 
7673 +       else
7674 +               delay++;
7675 +}
7676 +
7677 +
7678 +/*
7679 + *  Return pointer to bitmap data
7680 + */
7681 +
7682 +uint8 *C64Display::BitmapBase(void)
7683 +{
7684 +       //return (uint8 *)screen->pixels;
7685 +       return (uint8 *)buffer;
7686 +}
7687 +
7688 +
7689 +/*
7690 + *  Return number of bytes per row
7691 + */
7692 +
7693 +int C64Display::BitmapXMod(void)
7694 +{
7695 +       //return screen->pitch;
7696 +       return DISPLAY_X;
7697 +}
7698 +
7699 +
7700 +/*
7701 + *  Poll the keyboard
7702 + */
7703 +
7704 +static void translate_key(SDLKey key, bool key_up, uint8 *key_matrix, uint8 *rev_matrix, uint8 *joystick)
7705 +{
7706 +       int c64_key = -1;
7707 +       if (tab_pressed)
7708 +       {
7709 +               // Function and run/stop key emulation on Zaurus keyboard
7710 +               switch (key)
7711 +               {
7712 +                       case SDLK_q: c64_key = MATRIX(0,4); break;
7713 +                       case SDLK_w: c64_key = MATRIX(0,4) | 0x80; break;
7714 +                       case SDLK_e: c64_key = MATRIX(0,5); break;
7715 +                       case SDLK_r: c64_key = MATRIX(0,5) | 0x80; break;
7716 +                       case SDLK_t: c64_key = MATRIX(0,6); break;
7717 +                       case SDLK_z: c64_key = MATRIX(0,6) | 0x80; break;
7718 +                       case SDLK_u: c64_key = MATRIX(0,3); break;
7719 +                       case SDLK_i: c64_key = MATRIX(0,3) | 0x80; break;
7720 +                       case SDLK_o: c64_key = MATRIX(7,7); break;
7721 +               }
7722 +       }
7723 +       else
7724 +       {
7725 +               switch (key)
7726 +               {
7727 +                       case SDLK_a: c64_key = MATRIX(1,2); break;
7728 +                       case SDLK_b: c64_key = MATRIX(3,4); break;
7729 +                       case SDLK_c: c64_key = MATRIX(2,4); break;
7730 +                       case SDLK_d: c64_key = MATRIX(2,2); break;
7731 +                       case SDLK_e: c64_key = MATRIX(1,6); break;
7732 +                       case SDLK_f: c64_key = MATRIX(2,5); break;
7733 +                       case SDLK_g: c64_key = MATRIX(3,2); break;
7734 +                       case SDLK_h: c64_key = MATRIX(3,5); break;
7735 +                       case SDLK_i: c64_key = MATRIX(4,1); break;
7736 +                       case SDLK_j: c64_key = MATRIX(4,2); break;
7737 +                       case SDLK_k: c64_key = MATRIX(4,5); break;
7738 +                       case SDLK_l: c64_key = MATRIX(5,2); break;
7739 +                       case SDLK_m: c64_key = MATRIX(4,4); break;
7740 +                       case SDLK_n: c64_key = MATRIX(4,7); break;
7741 +                       case SDLK_o: c64_key = MATRIX(4,6); break;
7742 +                       case SDLK_p: c64_key = MATRIX(5,1); break;
7743 +                       case SDLK_q: c64_key = MATRIX(7,6); break;
7744 +                       case SDLK_r: c64_key = MATRIX(2,1); break;
7745 +                       case SDLK_s: c64_key = MATRIX(1,5); break;
7746 +                       case SDLK_t: c64_key = MATRIX(2,6); break;
7747 +                       case SDLK_u: c64_key = MATRIX(3,6); break;
7748 +                       case SDLK_v: c64_key = MATRIX(3,7); break;
7749 +                       case SDLK_w: c64_key = MATRIX(1,1); break;
7750 +                       case SDLK_x: c64_key = MATRIX(2,7); break;
7751 +                       case SDLK_y: c64_key = MATRIX(3,1); break;
7752 +                       case SDLK_z: c64_key = MATRIX(1,4); break;
7753 +
7754 +                       case SDLK_0: c64_key = MATRIX(4,3); break;
7755 +                       case SDLK_1: c64_key = MATRIX(7,0); break;
7756 +                       case SDLK_2: c64_key = MATRIX(7,3); break;
7757 +                       case SDLK_3: c64_key = MATRIX(1,0); break;
7758 +                       case SDLK_4: c64_key = MATRIX(1,3); break;
7759 +                       case SDLK_5: c64_key = MATRIX(2,0); break;
7760 +                       case SDLK_6: c64_key = MATRIX(2,3); break;
7761 +                       case SDLK_7: c64_key = MATRIX(3,0); break;
7762 +                       case SDLK_8: c64_key = MATRIX(3,3); break;
7763 +                       case SDLK_9: c64_key = MATRIX(4,0); break;
7764 +
7765 +                       case SDLK_SPACE: c64_key = MATRIX(7,4); break;
7766 +                       case SDLK_BACKQUOTE: c64_key = MATRIX(7,1); break;
7767 +                       case SDLK_BACKSLASH: c64_key = MATRIX(6,6); break;
7768 +                       case SDLK_COMMA: c64_key = MATRIX(5,7); break;
7769 +                       case SDLK_PERIOD: c64_key = MATRIX(5,4); break;
7770 +                       case SDLK_MINUS: c64_key = MATRIX(5,0); break;
7771 +                       case SDLK_EQUALS: c64_key = MATRIX(5,3); break;
7772 +                       case SDLK_LEFTBRACKET: c64_key = MATRIX(5,6); break;
7773 +                       case SDLK_RIGHTBRACKET: c64_key = MATRIX(6,1); break;
7774 +                       case SDLK_SEMICOLON: c64_key = MATRIX(5,5); break;
7775 +                       case SDLK_QUOTE: c64_key = MATRIX(6,2); break;
7776 +                       case SDLK_SLASH: c64_key = MATRIX(6,7); break;
7777 +
7778 +                       case SDLK_ESCAPE: c64_key = MATRIX(7,7); break;
7779 +                       case SDLK_RETURN: c64_key = MATRIX(0,1); break;
7780 +                       case SDLK_BACKSPACE: case SDLK_DELETE: c64_key = MATRIX(0,0); break;
7781 +                       case SDLK_INSERT: c64_key = MATRIX(6,3); break;
7782 +                       case SDLK_HOME: c64_key = MATRIX(6,3); break;
7783 +                       case SDLK_END: c64_key = MATRIX(6,0); break;
7784 +                       case SDLK_PAGEUP: c64_key = MATRIX(6,0); break;
7785 +                       case SDLK_PAGEDOWN: c64_key = MATRIX(6,5); break;
7786 +
7787 +                       case SDLK_LCTRL: c64_key = MATRIX(7,2); break;
7788 +                       case SDLK_RCTRL: c64_key = MATRIX(7,5); break;
7789 +                       case SDLK_LSHIFT: c64_key = MATRIX(1,7); break;
7790 +                       case SDLK_RSHIFT: c64_key = MATRIX(6,4); break;
7791 +                       case SDLK_LALT: case SDLK_LMETA: c64_key = MATRIX(7,5); break;
7792 +                       case SDLK_RALT: case SDLK_RMETA: c64_key = MATRIX(7,5); break;
7793 +
7794 +                       case SDLK_UP: c64_key = MATRIX(0,7)| 0x80; break;
7795 +                       case SDLK_DOWN: c64_key = MATRIX(0,7); break;
7796 +                       case SDLK_LEFT: c64_key = MATRIX(0,2) | 0x80; break;
7797 +                       case SDLK_RIGHT: c64_key = MATRIX(0,2); break;
7798 +
7799 +                       case SDLK_F1: c64_key = MATRIX(0,4); break;
7800 +                       case SDLK_F2: c64_key = MATRIX(0,4) | 0x80; break;
7801 +                       case SDLK_F3: c64_key = MATRIX(0,5); break;
7802 +                       case SDLK_F4: c64_key = MATRIX(0,5) | 0x80; break;
7803 +                       case SDLK_F5: c64_key = MATRIX(0,6); break;
7804 +                       case SDLK_F6: c64_key = MATRIX(0,6) | 0x80; break;
7805 +                       case SDLK_F7: c64_key = MATRIX(0,3); break;
7806 +                       case SDLK_F8: c64_key = MATRIX(0,3) | 0x80; break;
7807 +
7808 +                       case SDLK_KP0: case SDLK_KP5: c64_key = 0x10 | 0x40; break;
7809 +                       case SDLK_KP1: c64_key = 0x06 | 0x40; break;
7810 +                       case SDLK_KP2: c64_key = 0x02 | 0x40; break;
7811 +                       case SDLK_KP3: c64_key = 0x0a | 0x40; break;
7812 +                       case SDLK_KP4: c64_key = 0x04 | 0x40; break;
7813 +                       case SDLK_KP6: c64_key = 0x08 | 0x40; break;
7814 +                       case SDLK_KP7: c64_key = 0x05 | 0x40; break;
7815 +                       case SDLK_KP8: c64_key = 0x01 | 0x40; break;
7816 +                       case SDLK_KP9: c64_key = 0x09 | 0x40; break;
7817 +
7818 +                       case SDLK_KP_DIVIDE: c64_key = MATRIX(6,7); break;
7819 +                       case SDLK_KP_ENTER: c64_key = MATRIX(0,1); break;
7820 +
7821 +                       // Support for Zaurus/Qtopia
7822 +                       case SDLK_QUOTEDBL: c64_key = MATRIX(7,3) | 0x80; break;
7823 +                       case SDLK_ASTERISK: c64_key = MATRIX(6,1); break;
7824 +                       case SDLK_DOLLAR: c64_key = MATRIX(1,3) | 0x80; break;
7825 +                       case SDLK_COLON: c64_key = MATRIX(5,5); break;
7826 +                       case SDLK_AT: c64_key = MATRIX(5,6); break;
7827 +               }
7828 +       }
7829 +       if (c64_key < 0)
7830 +               return;
7831 +
7832 +       // Zaurus/Qtopia joystick emulation
7833 +       if (joy_emu != 0)
7834 +       {
7835 +               switch (key)
7836 +               {
7837 +                       case SDLK_SPACE: c64_key = 0x10 | 0x40; break;
7838 +                       case SDLK_UP: c64_key = 0x01 | 0x40; break;
7839 +                       case SDLK_DOWN: c64_key = 0x02 | 0x40; break;
7840 +                       case SDLK_LEFT: c64_key =  0x04 | 0x40; break;
7841 +                       case SDLK_RIGHT: c64_key = 0x08 | 0x40; break;
7842 +               }
7843 +       }
7844 +
7845 +       // Handle joystick emulation
7846 +       if (c64_key & 0x40) 
7847 +       {
7848 +               c64_key &= 0x1f;
7849 +               if (key_up)
7850 +                       *joystick |= c64_key;
7851 +               else
7852 +                       *joystick &= ~c64_key;
7853 +               return;
7854 +       }
7855 +
7856 +       // Handle other keys
7857 +       bool shifted = c64_key & 0x80;
7858 +       int c64_byte = (c64_key >> 3) & 7;
7859 +       int c64_bit = c64_key & 7;
7860 +       if (key_up) 
7861 +       {
7862 +               if (shifted) 
7863 +               {
7864 +                       key_matrix[6] |= 0x10;
7865 +                       rev_matrix[4] |= 0x40;
7866 +               }
7867 +               key_matrix[c64_byte] |= (1 << c64_bit);
7868 +               rev_matrix[c64_bit] |= (1 << c64_byte);
7869 +       } 
7870 +       else 
7871 +       {
7872 +               if (shifted)
7873 +               {
7874 +                       key_matrix[6] &= 0xef;
7875 +                       rev_matrix[4] &= 0xbf;
7876 +               }
7877 +               key_matrix[c64_byte] &= ~(1 << c64_bit);
7878 +               rev_matrix[c64_bit] &= ~(1 << c64_byte);
7879 +       }
7880 +}
7881 +
7882 +void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joystick)
7883 +{
7884 +       SDL_Event event;
7885 +       while (SDL_PollEvent(&event))
7886 +       {
7887 +               switch (event.type)
7888 +               {
7889 +                       // Key pressed
7890 +                       case SDL_KEYDOWN:
7891 +//                             fprintf(stderr, "SDL-Key: %d\n", event.key.keysym.sym);
7892 +                               if (tab_pressed && event.key.keysym.sym == SDLK_j)
7893 +                               {
7894 +                                       if (joy_emu < 2)
7895 +                                               joy_emu++;
7896 +                                       else
7897 +                                               joy_emu = 0;
7898 +                               }
7899 +                               if (tab_pressed && event.key.keysym.sym == SDLK_p)
7900 +                               {
7901 +                                       //  NMI (Restore)
7902 +                                       TheC64->NMI();
7903 +                               }
7904 +                               else
7905 +                               {
7906 +                                       switch (event.key.keysym.sym)
7907 +                                       {
7908 +                                               case SDLK_TAB:
7909 +                                                       tab_pressed = true;
7910 +                                                       break;
7911 +
7912 +                                               case SDLK_F9:   // F9: Invoke SAM
7913 +                                                       SAM(TheC64);
7914 +                                                       break;
7915 +
7916 +                                               case SDLK_F11:  // F10: Quit
7917 +                                                       // Iconify not implemented in Qtopia SDL yet. Quit instead show gui.
7918 +                                                       //SDL_WM_IconifyWindow();
7919 +                                                       quit_requested = true;
7920 +                                                       break;
7921 +
7922 +                                               case SDLK_F12:  // F12: Reset
7923 +                                                       TheC64->Reset();
7924 +                                                       break;
7925 +
7926 +                                               case SDLK_KP_PLUS:      // '+' on keypad: Increase SkipFrames
7927 +                                                       ThePrefs.SkipFrames++;
7928 +                                                       break;
7929 +
7930 +                                               case SDLK_KP_MINUS:     // '-' on keypad: Decrease SkipFrames
7931 +                                                       if (ThePrefs.SkipFrames > 1)
7932 +                                                               ThePrefs.SkipFrames--;
7933 +                                                       break;
7934 +
7935 +                                               case SDLK_KP_MULTIPLY:  // '*' on keypad: Toggle speed limiter
7936 +                                                       ThePrefs.LimitSpeed = !ThePrefs.LimitSpeed;
7937 +                                                       break;
7938 +
7939 +                                               default:
7940 +                                                       translate_key(event.key.keysym.sym, false, key_matrix, rev_matrix, joystick);
7941 +                                                       break;
7942 +                                       }
7943 +                               }
7944 +                               break;
7945 +
7946 +                       // Key released
7947 +                       case SDL_KEYUP:
7948 +                               if (event.key.keysym.sym == SDLK_TAB)
7949 +                                       tab_pressed = false;
7950 +                               else
7951 +                                       translate_key(event.key.keysym.sym, true, key_matrix, rev_matrix, joystick);
7952 +                               break;
7953 +
7954 +                       // Quit Frodo
7955 +                       case SDL_QUIT:
7956 +                               quit_requested = true;
7957 +                               break;
7958 +               }
7959 +       }
7960 +}
7961 +
7962 +
7963 +/*
7964 + *  Check if NumLock is down (for switching the joystick keyboard emulation)
7965 + */
7966 +
7967 +bool C64Display::NumLock(void)
7968 +{
7969 +       if (joy_emu == 2)
7970 +               return true;
7971 +       return false;
7972 +}
7973 +
7974 +
7975 +/*
7976 + *  Allocate C64 colors
7977 + */
7978 +
7979 +void C64Display::InitColors(uint8 *colors)
7980 +{
7981 +       SDL_Color palette[PALETTE_SIZE];
7982 +       for (int i=0; i<16; i++)
7983 +       {
7984 +               palette[i].r = palette_red[i];
7985 +               palette[i].g = palette_green[i];
7986 +               palette[i].b = palette_blue[i];
7987 +       }
7988 +       palette[fill_gray].r = palette[fill_gray].g = palette[fill_gray].b = 0xd0;
7989 +       palette[shine_gray].r = palette[shine_gray].g = palette[shine_gray].b = 0xf0;
7990 +       palette[shadow_gray].r = palette[shadow_gray].g = palette[shadow_gray].b = 0x80;
7991 +       palette[red].r = 0xf0;
7992 +       palette[red].g = palette[red].b = 0;
7993 +       palette[green].g = 0xf0;
7994 +       palette[green].r = palette[green].b = 0;
7995 +       SDL_SetColors(screen, palette, 0, PALETTE_SIZE);
7996 +
7997 +       for (int i=0; i<256; i++)
7998 +               colors[i] = i & 0x0f;
7999 +}
8000 +
8001 +
8002 +/*
8003 + *  Show a requester (error message)
8004 + */
8005 +
8006 +long int ShowRequester(char *a,char *b,char *)
8007 +{
8008 +       printf("%s: %s\n", a, b);
8009 +       return 1;
8010 +}
8011 diff -urN Src/main.cpp Src/main.cpp
8012 --- Src/main.cpp        2002-01-02 22:19:06.000000000 +0100
8013 +++ Src/main.cpp        2002-11-21 17:07:04.000000000 +0100
8014 @@ -4,6 +4,8 @@
8015   *  Frodo (C) 1994-1997,2002 Christian Bauer
8016   */
8017  
8018 + extern "C" int main(int argc, char *argv[]);
8019 +
8020  #include "sysdeps.h"
8021  
8022  #include "main.h"
8023 @@ -13,6 +15,7 @@
8024  #include "SAM.h"
8025  
8026  
8027 +
8028  // Global variables
8029  char AppDirPath[1024]; // Path of application directory
8030  
8031 @@ -61,7 +64,7 @@
8032                 fclose(file);
8033         } else {
8034                 ShowRequester("Can't find 'Kernal ROM'.", "Quit");
8035 -               return false;
8036 +               return false;
8037         }
8038  
8039         // Load Char ROM
8040 @@ -102,7 +105,11 @@
8041  #endif
8042  
8043  #ifdef __unix
8044 -#include "main_x.i"
8045 +# ifdef QTOPIA
8046 +#  include "main_Qtopia.i"
8047 +# else
8048 +#  include "main_x.i"
8049 +# endif
8050  #endif
8051  
8052  #ifdef __mac__
8053 @@ -120,3 +127,4 @@
8054  #ifdef __PSXOS__
8055  #include "main_PSX.i"
8056  #endif
8057 +  
8058 diff -urN Src/main_Qtopia.i Src/main_Qtopia.i
8059 --- Src/main_Qtopia.i   1970-01-01 01:00:00.000000000 +0100
8060 +++ Src/main_Qtopia.i   2002-11-21 17:07:04.000000000 +0100
8061 @@ -0,0 +1,101 @@
8062 +/*
8063 + *  main_Qtopia.i - Main program, X specific stuff
8064 + *
8065 + *  Frodo (C) 1994-1997,2002 Christian Bauer
8066 + *  Qtopia changes (against main_x.i) from Bernd Lachner
8067 + */
8068 +
8069 +#include "Version.h"
8070 +
8071 + extern "C" int main(int argc, char *argv[]);
8072 +extern int init_graphics(void);
8073 +
8074 +
8075 +// Global variables
8076 +char Frodo::prefs_path[256] = "";
8077 +
8078 +
8079 +/*
8080 + *  Create application object and start it
8081 + */
8082 +
8083 +int main(int argc, char *argv[])
8084 +{
8085 +       Frodo *the_app;
8086 +
8087 +       timeval tv;
8088 +       gettimeofday(&tv, NULL);
8089 +       srand(tv.tv_usec);
8090 +
8091 +       printf("%s by Christian Bauer\n", VERSION_STRING);
8092 +//     Disabled because switching eumlator <-> gui with current SDl not possible
8093 +//     C64::StartGUI();
8094 +
8095 +       if (!init_graphics())
8096 +               return 0;
8097 +       fflush(stdout);
8098 +
8099 +       the_app = new Frodo();
8100 +       the_app->ArgvReceived(argc, argv);
8101 +       the_app->ReadyToRun();
8102 +       delete the_app;
8103 +
8104 +//     C64::StopGUI();
8105 +       return 0;
8106 +}
8107 +
8108 +
8109 +/*
8110 + *  Constructor: Initialize member variables
8111 + */
8112 +
8113 +Frodo::Frodo()
8114 +{
8115 +       TheC64 = NULL;
8116 +}
8117 +
8118 +
8119 +/*
8120 + *  Process command line arguments
8121 + */
8122 +
8123 +void Frodo::ArgvReceived(int argc, char **argv)
8124 +{
8125 +       if (argc == 2)
8126 +               strncpy(prefs_path, argv[1], 255);
8127 +}
8128 +
8129 +
8130 +/*
8131 + *  Arguments processed, run emulation
8132 + */
8133 +
8134 +void Frodo::ReadyToRun(void)
8135 +{
8136 +       getcwd(AppDirPath, 256);
8137 +
8138 +       // Load preferences
8139 +       if (!prefs_path[0]) {
8140 +               char *home = getenv("HOME");
8141 +               if (home != NULL && strlen(home) < 240) {
8142 +                       strncpy(prefs_path, home, 200);
8143 +                       strcat(prefs_path, "/");
8144 +               }
8145 +               strcat(prefs_path, ".frodorc");
8146 +       }
8147 +       ThePrefs.Load(prefs_path);
8148 +
8149 +       // Create and start C64
8150 +       TheC64 = new C64;
8151 +       if (load_rom_files())
8152 +               TheC64->Run();
8153 +       delete TheC64;
8154 +}
8155 +
8156 +
8157 +Prefs *Frodo::reload_prefs(void)
8158 +{
8159 +       static Prefs newprefs;
8160 +       newprefs.Load(prefs_path);
8161 +       return &newprefs;
8162 +}
8163 diff -urN Src/setarmenv Src/setarmenv
8164 --- Src/setarmenv       1970-01-01 01:00:00.000000000 +0100
8165 +++ Src/setarmenv       2002-11-21 17:07:03.000000000 +0100
8166 @@ -0,0 +1,5 @@
8167 +export CXX=arm-linux-g++
8168 +export CC=arm-linux-gcc
8169 +export LD=arm-linux-ld
8170 +export LDFLAGS="-L/opt/Qtopia/sharp/lib/ -L/opt/Embedix/tools/arm-linux/lib"
8171 +export CPPFLAGS="-DQTOPIA"