* src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
[fw/sdcc] / device / lib / pic16 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for pic16lib 0.3.
4 #
5 # Report bugs to <tecodev AT users sourceforge net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='pic16lib'
576 PACKAGE_TARNAME='pic16lib'
577 PACKAGE_VERSION='0.3'
578 PACKAGE_STRING='pic16lib 0.3'
579 PACKAGE_BUGREPORT='tecodev AT users sourceforge net'
580
581 ac_unique_file="debug/gstack/gstack.c"
582 ac_subst_vars='SHELL
583 PATH_SEPARATOR
584 PACKAGE_NAME
585 PACKAGE_TARNAME
586 PACKAGE_VERSION
587 PACKAGE_STRING
588 PACKAGE_BUGREPORT
589 exec_prefix
590 prefix
591 program_transform_name
592 bindir
593 sbindir
594 libexecdir
595 datarootdir
596 datadir
597 sysconfdir
598 sharedstatedir
599 localstatedir
600 includedir
601 oldincludedir
602 docdir
603 infodir
604 htmldir
605 dvidir
606 pdfdir
607 psdir
608 libdir
609 localedir
610 mandir
611 DEFS
612 ECHO_C
613 ECHO_N
614 ECHO_T
615 LIBS
616 build_alias
617 host_alias
618 target_alias
619 INSTALL_PROGRAM
620 INSTALL_SCRIPT
621 INSTALL_DATA
622 am__isrc
623 CYGPATH_W
624 PACKAGE
625 VERSION
626 ACLOCAL
627 AUTOCONF
628 AUTOMAKE
629 AUTOHEADER
630 MAKEINFO
631 install_sh
632 STRIP
633 INSTALL_STRIP_PROGRAM
634 mkdir_p
635 AWK
636 SET_MAKE
637 am__leading_dot
638 AMTAR
639 am__tar
640 am__untar
641 USE_FLOATS
642 ARCH
643 CC
644 CFLAGS
645 CCAS
646 CCASFLAGS
647 LD
648 AR
649 ARFLAGS
650 RANLIB
651 OBJEXT
652 DEPDIR
653 am__include
654 am__quote
655 AMDEP_TRUE
656 AMDEP_FALSE
657 AMDEPBACKSLASH
658 CCDEPMODE
659 am__fastdepCC_TRUE
660 am__fastdepCC_FALSE
661 CCASDEPMODE
662 am__fastdepCCAS_TRUE
663 am__fastdepCCAS_FALSE
664 LIBOBJS
665 LTLIBOBJS'
666 ac_subst_files=''
667       ac_precious_vars='build_alias
668 host_alias
669 target_alias'
670
671
672 # Initialize some variables set by options.
673 ac_init_help=
674 ac_init_version=false
675 # The variables have the same names as the options, with
676 # dashes changed to underlines.
677 cache_file=/dev/null
678 exec_prefix=NONE
679 no_create=
680 no_recursion=
681 prefix=NONE
682 program_prefix=NONE
683 program_suffix=NONE
684 program_transform_name=s,x,x,
685 silent=
686 site=
687 srcdir=
688 verbose=
689 x_includes=NONE
690 x_libraries=NONE
691
692 # Installation directory options.
693 # These are left unexpanded so users can "make install exec_prefix=/foo"
694 # and all the variables that are supposed to be based on exec_prefix
695 # by default will actually change.
696 # Use braces instead of parens because sh, perl, etc. also accept them.
697 # (The list follows the same order as the GNU Coding Standards.)
698 bindir='${exec_prefix}/bin'
699 sbindir='${exec_prefix}/sbin'
700 libexecdir='${exec_prefix}/libexec'
701 datarootdir='${prefix}/share'
702 datadir='${datarootdir}'
703 sysconfdir='${prefix}/etc'
704 sharedstatedir='${prefix}/com'
705 localstatedir='${prefix}/var'
706 includedir='${prefix}/include'
707 oldincludedir='/usr/include'
708 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
709 infodir='${datarootdir}/info'
710 htmldir='${docdir}'
711 dvidir='${docdir}'
712 pdfdir='${docdir}'
713 psdir='${docdir}'
714 libdir='${exec_prefix}/lib'
715 localedir='${datarootdir}/locale'
716 mandir='${datarootdir}/man'
717
718 ac_prev=
719 ac_dashdash=
720 for ac_option
721 do
722   # If the previous option needs an argument, assign it.
723   if test -n "$ac_prev"; then
724     eval $ac_prev=\$ac_option
725     ac_prev=
726     continue
727   fi
728
729   case $ac_option in
730   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
731   *)    ac_optarg=yes ;;
732   esac
733
734   # Accept the important Cygnus configure options, so we can diagnose typos.
735
736   case $ac_dashdash$ac_option in
737   --)
738     ac_dashdash=yes ;;
739
740   -bindir | --bindir | --bindi | --bind | --bin | --bi)
741     ac_prev=bindir ;;
742   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
743     bindir=$ac_optarg ;;
744
745   -build | --build | --buil | --bui | --bu)
746     ac_prev=build_alias ;;
747   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
748     build_alias=$ac_optarg ;;
749
750   -cache-file | --cache-file | --cache-fil | --cache-fi \
751   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
752     ac_prev=cache_file ;;
753   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
754   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
755     cache_file=$ac_optarg ;;
756
757   --config-cache | -C)
758     cache_file=config.cache ;;
759
760   -datadir | --datadir | --datadi | --datad)
761     ac_prev=datadir ;;
762   -datadir=* | --datadir=* | --datadi=* | --datad=*)
763     datadir=$ac_optarg ;;
764
765   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
766   | --dataroo | --dataro | --datar)
767     ac_prev=datarootdir ;;
768   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
769   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
770     datarootdir=$ac_optarg ;;
771
772   -disable-* | --disable-*)
773     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
774     # Reject names that are not valid shell variable names.
775     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
776       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
777    { (exit 1); exit 1; }; }
778     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
779     eval enable_$ac_feature=no ;;
780
781   -docdir | --docdir | --docdi | --doc | --do)
782     ac_prev=docdir ;;
783   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784     docdir=$ac_optarg ;;
785
786   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787     ac_prev=dvidir ;;
788   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789     dvidir=$ac_optarg ;;
790
791   -enable-* | --enable-*)
792     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
793     # Reject names that are not valid shell variable names.
794     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
796    { (exit 1); exit 1; }; }
797     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
798     eval enable_$ac_feature=\$ac_optarg ;;
799
800   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
801   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
802   | --exec | --exe | --ex)
803     ac_prev=exec_prefix ;;
804   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
805   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
806   | --exec=* | --exe=* | --ex=*)
807     exec_prefix=$ac_optarg ;;
808
809   -gas | --gas | --ga | --g)
810     # Obsolete; use --with-gas.
811     with_gas=yes ;;
812
813   -help | --help | --hel | --he | -h)
814     ac_init_help=long ;;
815   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
816     ac_init_help=recursive ;;
817   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
818     ac_init_help=short ;;
819
820   -host | --host | --hos | --ho)
821     ac_prev=host_alias ;;
822   -host=* | --host=* | --hos=* | --ho=*)
823     host_alias=$ac_optarg ;;
824
825   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
826     ac_prev=htmldir ;;
827   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
828   | --ht=*)
829     htmldir=$ac_optarg ;;
830
831   -includedir | --includedir | --includedi | --included | --include \
832   | --includ | --inclu | --incl | --inc)
833     ac_prev=includedir ;;
834   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
835   | --includ=* | --inclu=* | --incl=* | --inc=*)
836     includedir=$ac_optarg ;;
837
838   -infodir | --infodir | --infodi | --infod | --info | --inf)
839     ac_prev=infodir ;;
840   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
841     infodir=$ac_optarg ;;
842
843   -libdir | --libdir | --libdi | --libd)
844     ac_prev=libdir ;;
845   -libdir=* | --libdir=* | --libdi=* | --libd=*)
846     libdir=$ac_optarg ;;
847
848   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
849   | --libexe | --libex | --libe)
850     ac_prev=libexecdir ;;
851   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
852   | --libexe=* | --libex=* | --libe=*)
853     libexecdir=$ac_optarg ;;
854
855   -localedir | --localedir | --localedi | --localed | --locale)
856     ac_prev=localedir ;;
857   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
858     localedir=$ac_optarg ;;
859
860   -localstatedir | --localstatedir | --localstatedi | --localstated \
861   | --localstate | --localstat | --localsta | --localst | --locals)
862     ac_prev=localstatedir ;;
863   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
864   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
865     localstatedir=$ac_optarg ;;
866
867   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
868     ac_prev=mandir ;;
869   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
870     mandir=$ac_optarg ;;
871
872   -nfp | --nfp | --nf)
873     # Obsolete; use --without-fp.
874     with_fp=no ;;
875
876   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877   | --no-cr | --no-c | -n)
878     no_create=yes ;;
879
880   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
881   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
882     no_recursion=yes ;;
883
884   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
885   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
886   | --oldin | --oldi | --old | --ol | --o)
887     ac_prev=oldincludedir ;;
888   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
889   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
890   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
891     oldincludedir=$ac_optarg ;;
892
893   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
894     ac_prev=prefix ;;
895   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
896     prefix=$ac_optarg ;;
897
898   -program-prefix | --program-prefix | --program-prefi | --program-pref \
899   | --program-pre | --program-pr | --program-p)
900     ac_prev=program_prefix ;;
901   -program-prefix=* | --program-prefix=* | --program-prefi=* \
902   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
903     program_prefix=$ac_optarg ;;
904
905   -program-suffix | --program-suffix | --program-suffi | --program-suff \
906   | --program-suf | --program-su | --program-s)
907     ac_prev=program_suffix ;;
908   -program-suffix=* | --program-suffix=* | --program-suffi=* \
909   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
910     program_suffix=$ac_optarg ;;
911
912   -program-transform-name | --program-transform-name \
913   | --program-transform-nam | --program-transform-na \
914   | --program-transform-n | --program-transform- \
915   | --program-transform | --program-transfor \
916   | --program-transfo | --program-transf \
917   | --program-trans | --program-tran \
918   | --progr-tra | --program-tr | --program-t)
919     ac_prev=program_transform_name ;;
920   -program-transform-name=* | --program-transform-name=* \
921   | --program-transform-nam=* | --program-transform-na=* \
922   | --program-transform-n=* | --program-transform-=* \
923   | --program-transform=* | --program-transfor=* \
924   | --program-transfo=* | --program-transf=* \
925   | --program-trans=* | --program-tran=* \
926   | --progr-tra=* | --program-tr=* | --program-t=*)
927     program_transform_name=$ac_optarg ;;
928
929   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
930     ac_prev=pdfdir ;;
931   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
932     pdfdir=$ac_optarg ;;
933
934   -psdir | --psdir | --psdi | --psd | --ps)
935     ac_prev=psdir ;;
936   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
937     psdir=$ac_optarg ;;
938
939   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
940   | -silent | --silent | --silen | --sile | --sil)
941     silent=yes ;;
942
943   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
944     ac_prev=sbindir ;;
945   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
946   | --sbi=* | --sb=*)
947     sbindir=$ac_optarg ;;
948
949   -sharedstatedir | --sharedstatedir | --sharedstatedi \
950   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
951   | --sharedst | --shareds | --shared | --share | --shar \
952   | --sha | --sh)
953     ac_prev=sharedstatedir ;;
954   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
955   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
956   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
957   | --sha=* | --sh=*)
958     sharedstatedir=$ac_optarg ;;
959
960   -site | --site | --sit)
961     ac_prev=site ;;
962   -site=* | --site=* | --sit=*)
963     site=$ac_optarg ;;
964
965   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
966     ac_prev=srcdir ;;
967   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
968     srcdir=$ac_optarg ;;
969
970   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
971   | --syscon | --sysco | --sysc | --sys | --sy)
972     ac_prev=sysconfdir ;;
973   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
974   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
975     sysconfdir=$ac_optarg ;;
976
977   -target | --target | --targe | --targ | --tar | --ta | --t)
978     ac_prev=target_alias ;;
979   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
980     target_alias=$ac_optarg ;;
981
982   -v | -verbose | --verbose | --verbos | --verbo | --verb)
983     verbose=yes ;;
984
985   -version | --version | --versio | --versi | --vers | -V)
986     ac_init_version=: ;;
987
988   -with-* | --with-*)
989     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
992       { echo "$as_me: error: invalid package name: $ac_package" >&2
993    { (exit 1); exit 1; }; }
994     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
995     eval with_$ac_package=\$ac_optarg ;;
996
997   -without-* | --without-*)
998     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid package name: $ac_package" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1004     eval with_$ac_package=no ;;
1005
1006   --x)
1007     # Obsolete; use --with-x.
1008     with_x=yes ;;
1009
1010   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1011   | --x-incl | --x-inc | --x-in | --x-i)
1012     ac_prev=x_includes ;;
1013   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1014   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1015     x_includes=$ac_optarg ;;
1016
1017   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1018   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1019     ac_prev=x_libraries ;;
1020   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1021   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1022     x_libraries=$ac_optarg ;;
1023
1024   -*) { echo "$as_me: error: unrecognized option: $ac_option
1025 Try \`$0 --help' for more information." >&2
1026    { (exit 1); exit 1; }; }
1027     ;;
1028
1029   *=*)
1030     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1034    { (exit 1); exit 1; }; }
1035     eval $ac_envvar=\$ac_optarg
1036     export $ac_envvar ;;
1037
1038   *)
1039     # FIXME: should be removed in autoconf 3.0.
1040     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1041     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1043     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1044     ;;
1045
1046   esac
1047 done
1048
1049 if test -n "$ac_prev"; then
1050   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1051   { echo "$as_me: error: missing argument to $ac_option" >&2
1052    { (exit 1); exit 1; }; }
1053 fi
1054
1055 # Be sure to have absolute directory names.
1056 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1057                 datadir sysconfdir sharedstatedir localstatedir includedir \
1058                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1059                 libdir localedir mandir
1060 do
1061   eval ac_val=\$$ac_var
1062   case $ac_val in
1063     [\\/$]* | ?:[\\/]* )  continue;;
1064     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1065   esac
1066   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1067    { (exit 1); exit 1; }; }
1068 done
1069
1070 # There might be people who depend on the old broken behavior: `$host'
1071 # used to hold the argument of --host etc.
1072 # FIXME: To remove some day.
1073 build=$build_alias
1074 host=$host_alias
1075 target=$target_alias
1076
1077 # FIXME: To remove some day.
1078 if test "x$host_alias" != x; then
1079   if test "x$build_alias" = x; then
1080     cross_compiling=maybe
1081     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1082     If a cross compiler is detected then cross compile mode will be used." >&2
1083   elif test "x$build_alias" != "x$host_alias"; then
1084     cross_compiling=yes
1085   fi
1086 fi
1087
1088 ac_tool_prefix=
1089 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1090
1091 test "$silent" = yes && exec 6>/dev/null
1092
1093
1094 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1095 ac_ls_di=`ls -di .` &&
1096 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1097   { echo "$as_me: error: Working directory cannot be determined" >&2
1098    { (exit 1); exit 1; }; }
1099 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1100   { echo "$as_me: error: pwd does not report name of working directory" >&2
1101    { (exit 1); exit 1; }; }
1102
1103
1104 # Find the source files, if location was not specified.
1105 if test -z "$srcdir"; then
1106   ac_srcdir_defaulted=yes
1107   # Try the directory containing this script, then the parent directory.
1108   ac_confdir=`$as_dirname -- "$0" ||
1109 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1110          X"$0" : 'X\(//\)[^/]' \| \
1111          X"$0" : 'X\(//\)$' \| \
1112          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1113 echo X"$0" |
1114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1115             s//\1/
1116             q
1117           }
1118           /^X\(\/\/\)[^/].*/{
1119             s//\1/
1120             q
1121           }
1122           /^X\(\/\/\)$/{
1123             s//\1/
1124             q
1125           }
1126           /^X\(\/\).*/{
1127             s//\1/
1128             q
1129           }
1130           s/.*/./; q'`
1131   srcdir=$ac_confdir
1132   if test ! -r "$srcdir/$ac_unique_file"; then
1133     srcdir=..
1134   fi
1135 else
1136   ac_srcdir_defaulted=no
1137 fi
1138 if test ! -r "$srcdir/$ac_unique_file"; then
1139   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1140   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1141    { (exit 1); exit 1; }; }
1142 fi
1143 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1144 ac_abs_confdir=`(
1145         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1146    { (exit 1); exit 1; }; }
1147         pwd)`
1148 # When building in place, set srcdir=.
1149 if test "$ac_abs_confdir" = "$ac_pwd"; then
1150   srcdir=.
1151 fi
1152 # Remove unnecessary trailing slashes from srcdir.
1153 # Double slashes in file names in object file debugging info
1154 # mess up M-x gdb in Emacs.
1155 case $srcdir in
1156 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1157 esac
1158 for ac_var in $ac_precious_vars; do
1159   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1160   eval ac_env_${ac_var}_value=\$${ac_var}
1161   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1162   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1163 done
1164
1165 #
1166 # Report the --help message.
1167 #
1168 if test "$ac_init_help" = "long"; then
1169   # Omit some internal or obsolete options to make the list less imposing.
1170   # This message is too long to be a string in the A/UX 3.1 sh.
1171   cat <<_ACEOF
1172 \`configure' configures pic16lib 0.3 to adapt to many kinds of systems.
1173
1174 Usage: $0 [OPTION]... [VAR=VALUE]...
1175
1176 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1177 VAR=VALUE.  See below for descriptions of some of the useful variables.
1178
1179 Defaults for the options are specified in brackets.
1180
1181 Configuration:
1182   -h, --help              display this help and exit
1183       --help=short        display options specific to this package
1184       --help=recursive    display the short help of all the included packages
1185   -V, --version           display version information and exit
1186   -q, --quiet, --silent   do not print \`checking...' messages
1187       --cache-file=FILE   cache test results in FILE [disabled]
1188   -C, --config-cache      alias for \`--cache-file=config.cache'
1189   -n, --no-create         do not create output files
1190       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1191
1192 Installation directories:
1193   --prefix=PREFIX         install architecture-independent files in PREFIX
1194                           [$ac_default_prefix]
1195   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1196                           [PREFIX]
1197
1198 By default, \`make install' will install all the files in
1199 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1200 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1201 for instance \`--prefix=\$HOME'.
1202
1203 For better control, use the options below.
1204
1205 Fine tuning of the installation directories:
1206   --bindir=DIR           user executables [EPREFIX/bin]
1207   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1208   --libexecdir=DIR       program executables [EPREFIX/libexec]
1209   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1210   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1211   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1212   --libdir=DIR           object code libraries [EPREFIX/lib]
1213   --includedir=DIR       C header files [PREFIX/include]
1214   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1215   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1216   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1217   --infodir=DIR          info documentation [DATAROOTDIR/info]
1218   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1219   --mandir=DIR           man documentation [DATAROOTDIR/man]
1220   --docdir=DIR           documentation root [DATAROOTDIR/doc/pic16lib]
1221   --htmldir=DIR          html documentation [DOCDIR]
1222   --dvidir=DIR           dvi documentation [DOCDIR]
1223   --pdfdir=DIR           pdf documentation [DOCDIR]
1224   --psdir=DIR            ps documentation [DOCDIR]
1225 _ACEOF
1226
1227   cat <<\_ACEOF
1228
1229 Program names:
1230   --program-prefix=PREFIX            prepend PREFIX to installed program names
1231   --program-suffix=SUFFIX            append SUFFIX to installed program names
1232   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1233 _ACEOF
1234 fi
1235
1236 if test -n "$ac_init_help"; then
1237   case $ac_init_help in
1238      short | recursive ) echo "Configuration of pic16lib 0.3:";;
1239    esac
1240   cat <<\_ACEOF
1241
1242 Optional Features:
1243   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1244   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1245   --enable-floats         Enable output of float-values via printf().
1246   --disable-dependency-tracking  speeds up one-time build
1247   --enable-dependency-tracking   do not reject slow dependency extractors
1248
1249 Report bugs to <tecodev AT users sourceforge net>.
1250 _ACEOF
1251 ac_status=$?
1252 fi
1253
1254 if test "$ac_init_help" = "recursive"; then
1255   # If there are subdirs, report their specific --help.
1256   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1257     test -d "$ac_dir" || continue
1258     ac_builddir=.
1259
1260 case "$ac_dir" in
1261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1262 *)
1263   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1264   # A ".." for each directory in $ac_dir_suffix.
1265   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1266   case $ac_top_builddir_sub in
1267   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1268   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1269   esac ;;
1270 esac
1271 ac_abs_top_builddir=$ac_pwd
1272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1273 # for backward compatibility:
1274 ac_top_builddir=$ac_top_build_prefix
1275
1276 case $srcdir in
1277   .)  # We are building in place.
1278     ac_srcdir=.
1279     ac_top_srcdir=$ac_top_builddir_sub
1280     ac_abs_top_srcdir=$ac_pwd ;;
1281   [\\/]* | ?:[\\/]* )  # Absolute name.
1282     ac_srcdir=$srcdir$ac_dir_suffix;
1283     ac_top_srcdir=$srcdir
1284     ac_abs_top_srcdir=$srcdir ;;
1285   *) # Relative name.
1286     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1287     ac_top_srcdir=$ac_top_build_prefix$srcdir
1288     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1289 esac
1290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1291
1292     cd "$ac_dir" || { ac_status=$?; continue; }
1293     # Check for guested configure.
1294     if test -f "$ac_srcdir/configure.gnu"; then
1295       echo &&
1296       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1297     elif test -f "$ac_srcdir/configure"; then
1298       echo &&
1299       $SHELL "$ac_srcdir/configure" --help=recursive
1300     else
1301       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1302     fi || ac_status=$?
1303     cd "$ac_pwd" || { ac_status=$?; break; }
1304   done
1305 fi
1306
1307 test -n "$ac_init_help" && exit $ac_status
1308 if $ac_init_version; then
1309   cat <<\_ACEOF
1310 pic16lib configure 0.3
1311 generated by GNU Autoconf 2.61
1312
1313 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1314 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1315 This configure script is free software; the Free Software Foundation
1316 gives unlimited permission to copy, distribute and modify it.
1317 _ACEOF
1318   exit
1319 fi
1320 cat >config.log <<_ACEOF
1321 This file contains any messages produced by compilers while
1322 running configure, to aid debugging if configure makes a mistake.
1323
1324 It was created by pic16lib $as_me 0.3, which was
1325 generated by GNU Autoconf 2.61.  Invocation command line was
1326
1327   $ $0 $@
1328
1329 _ACEOF
1330 exec 5>>config.log
1331 {
1332 cat <<_ASUNAME
1333 ## --------- ##
1334 ## Platform. ##
1335 ## --------- ##
1336
1337 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1338 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1339 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1340 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1341 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1342
1343 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1344 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1345
1346 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1347 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1348 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1349 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1350 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1351 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1352 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1353
1354 _ASUNAME
1355
1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357 for as_dir in $PATH
1358 do
1359   IFS=$as_save_IFS
1360   test -z "$as_dir" && as_dir=.
1361   echo "PATH: $as_dir"
1362 done
1363 IFS=$as_save_IFS
1364
1365 } >&5
1366
1367 cat >&5 <<_ACEOF
1368
1369
1370 ## ----------- ##
1371 ## Core tests. ##
1372 ## ----------- ##
1373
1374 _ACEOF
1375
1376
1377 # Keep a trace of the command line.
1378 # Strip out --no-create and --no-recursion so they do not pile up.
1379 # Strip out --silent because we don't want to record it for future runs.
1380 # Also quote any args containing shell meta-characters.
1381 # Make two passes to allow for proper duplicate-argument suppression.
1382 ac_configure_args=
1383 ac_configure_args0=
1384 ac_configure_args1=
1385 ac_must_keep_next=false
1386 for ac_pass in 1 2
1387 do
1388   for ac_arg
1389   do
1390     case $ac_arg in
1391     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1392     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393     | -silent | --silent | --silen | --sile | --sil)
1394       continue ;;
1395     *\'*)
1396       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1397     esac
1398     case $ac_pass in
1399     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1400     2)
1401       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1402       if test $ac_must_keep_next = true; then
1403         ac_must_keep_next=false # Got value, back to normal.
1404       else
1405         case $ac_arg in
1406           *=* | --config-cache | -C | -disable-* | --disable-* \
1407           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1408           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1409           | -with-* | --with-* | -without-* | --without-* | --x)
1410             case "$ac_configure_args0 " in
1411               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1412             esac
1413             ;;
1414           -* ) ac_must_keep_next=true ;;
1415         esac
1416       fi
1417       ac_configure_args="$ac_configure_args '$ac_arg'"
1418       ;;
1419     esac
1420   done
1421 done
1422 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1423 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1424
1425 # When interrupted or exit'd, cleanup temporary files, and complete
1426 # config.log.  We remove comments because anyway the quotes in there
1427 # would cause problems or look ugly.
1428 # WARNING: Use '\'' to represent an apostrophe within the trap.
1429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1430 trap 'exit_status=$?
1431   # Save into config.log some information that might help in debugging.
1432   {
1433     echo
1434
1435     cat <<\_ASBOX
1436 ## ---------------- ##
1437 ## Cache variables. ##
1438 ## ---------------- ##
1439 _ASBOX
1440     echo
1441     # The following way of writing the cache mishandles newlines in values,
1442 (
1443   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1444     eval ac_val=\$$ac_var
1445     case $ac_val in #(
1446     *${as_nl}*)
1447       case $ac_var in #(
1448       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1449 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1450       esac
1451       case $ac_var in #(
1452       _ | IFS | as_nl) ;; #(
1453       *) $as_unset $ac_var ;;
1454       esac ;;
1455     esac
1456   done
1457   (set) 2>&1 |
1458     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1459     *${as_nl}ac_space=\ *)
1460       sed -n \
1461         "s/'\''/'\''\\\\'\'''\''/g;
1462           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1463       ;; #(
1464     *)
1465       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1466       ;;
1467     esac |
1468     sort
1469 )
1470     echo
1471
1472     cat <<\_ASBOX
1473 ## ----------------- ##
1474 ## Output variables. ##
1475 ## ----------------- ##
1476 _ASBOX
1477     echo
1478     for ac_var in $ac_subst_vars
1479     do
1480       eval ac_val=\$$ac_var
1481       case $ac_val in
1482       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1483       esac
1484       echo "$ac_var='\''$ac_val'\''"
1485     done | sort
1486     echo
1487
1488     if test -n "$ac_subst_files"; then
1489       cat <<\_ASBOX
1490 ## ------------------- ##
1491 ## File substitutions. ##
1492 ## ------------------- ##
1493 _ASBOX
1494       echo
1495       for ac_var in $ac_subst_files
1496       do
1497         eval ac_val=\$$ac_var
1498         case $ac_val in
1499         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1500         esac
1501         echo "$ac_var='\''$ac_val'\''"
1502       done | sort
1503       echo
1504     fi
1505
1506     if test -s confdefs.h; then
1507       cat <<\_ASBOX
1508 ## ----------- ##
1509 ## confdefs.h. ##
1510 ## ----------- ##
1511 _ASBOX
1512       echo
1513       cat confdefs.h
1514       echo
1515     fi
1516     test "$ac_signal" != 0 &&
1517       echo "$as_me: caught signal $ac_signal"
1518     echo "$as_me: exit $exit_status"
1519   } >&5
1520   rm -f core *.core core.conftest.* &&
1521     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1522     exit $exit_status
1523 ' 0
1524 for ac_signal in 1 2 13 15; do
1525   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1526 done
1527 ac_signal=0
1528
1529 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1530 rm -f -r conftest* confdefs.h
1531
1532 # Predefined preprocessor variables.
1533
1534 cat >>confdefs.h <<_ACEOF
1535 #define PACKAGE_NAME "$PACKAGE_NAME"
1536 _ACEOF
1537
1538
1539 cat >>confdefs.h <<_ACEOF
1540 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1541 _ACEOF
1542
1543
1544 cat >>confdefs.h <<_ACEOF
1545 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1546 _ACEOF
1547
1548
1549 cat >>confdefs.h <<_ACEOF
1550 #define PACKAGE_STRING "$PACKAGE_STRING"
1551 _ACEOF
1552
1553
1554 cat >>confdefs.h <<_ACEOF
1555 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1556 _ACEOF
1557
1558
1559 # Let the site file select an alternate cache file if it wants to.
1560 # Prefer explicitly selected file to automatically selected ones.
1561 if test -n "$CONFIG_SITE"; then
1562   set x "$CONFIG_SITE"
1563 elif test "x$prefix" != xNONE; then
1564   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1565 else
1566   set x "$ac_default_prefix/share/config.site" \
1567         "$ac_default_prefix/etc/config.site"
1568 fi
1569 shift
1570 for ac_site_file
1571 do
1572   if test -r "$ac_site_file"; then
1573     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1574 echo "$as_me: loading site script $ac_site_file" >&6;}
1575     sed 's/^/| /' "$ac_site_file" >&5
1576     . "$ac_site_file"
1577   fi
1578 done
1579
1580 if test -r "$cache_file"; then
1581   # Some versions of bash will fail to source /dev/null (special
1582   # files actually), so we avoid doing that.
1583   if test -f "$cache_file"; then
1584     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1585 echo "$as_me: loading cache $cache_file" >&6;}
1586     case $cache_file in
1587       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1588       *)                      . "./$cache_file";;
1589     esac
1590   fi
1591 else
1592   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1593 echo "$as_me: creating cache $cache_file" >&6;}
1594   >$cache_file
1595 fi
1596
1597 # Check that the precious variables saved in the cache have kept the same
1598 # value.
1599 ac_cache_corrupted=false
1600 for ac_var in $ac_precious_vars; do
1601   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1602   eval ac_new_set=\$ac_env_${ac_var}_set
1603   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1604   eval ac_new_val=\$ac_env_${ac_var}_value
1605   case $ac_old_set,$ac_new_set in
1606     set,)
1607       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1608 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1609       ac_cache_corrupted=: ;;
1610     ,set)
1611       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1612 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1613       ac_cache_corrupted=: ;;
1614     ,);;
1615     *)
1616       if test "x$ac_old_val" != "x$ac_new_val"; then
1617         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1618 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1619         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1620 echo "$as_me:   former value:  $ac_old_val" >&2;}
1621         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1622 echo "$as_me:   current value: $ac_new_val" >&2;}
1623         ac_cache_corrupted=:
1624       fi;;
1625   esac
1626   # Pass precious variables to config.status.
1627   if test "$ac_new_set" = set; then
1628     case $ac_new_val in
1629     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1630     *) ac_arg=$ac_var=$ac_new_val ;;
1631     esac
1632     case " $ac_configure_args " in
1633       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1634       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1635     esac
1636   fi
1637 done
1638 if $ac_cache_corrupted; then
1639   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1640 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1641   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1642 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1643    { (exit 1); exit 1; }; }
1644 fi
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670 ac_ext=c
1671 ac_cpp='$CPP $CPPFLAGS'
1672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1675
1676
1677 am__api_version='1.10'
1678
1679 ac_aux_dir=
1680 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1681   if test -f "$ac_dir/install-sh"; then
1682     ac_aux_dir=$ac_dir
1683     ac_install_sh="$ac_aux_dir/install-sh -c"
1684     break
1685   elif test -f "$ac_dir/install.sh"; then
1686     ac_aux_dir=$ac_dir
1687     ac_install_sh="$ac_aux_dir/install.sh -c"
1688     break
1689   elif test -f "$ac_dir/shtool"; then
1690     ac_aux_dir=$ac_dir
1691     ac_install_sh="$ac_aux_dir/shtool install -c"
1692     break
1693   fi
1694 done
1695 if test -z "$ac_aux_dir"; then
1696   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1697 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1698    { (exit 1); exit 1; }; }
1699 fi
1700
1701 # These three variables are undocumented and unsupported,
1702 # and are intended to be withdrawn in a future Autoconf release.
1703 # They can cause serious problems if a builder's source tree is in a directory
1704 # whose full name contains unusual characters.
1705 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1706 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1707 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1708
1709
1710 # Find a good install program.  We prefer a C program (faster),
1711 # so one script is as good as another.  But avoid the broken or
1712 # incompatible versions:
1713 # SysV /etc/install, /usr/sbin/install
1714 # SunOS /usr/etc/install
1715 # IRIX /sbin/install
1716 # AIX /bin/install
1717 # AmigaOS /C/install, which installs bootblocks on floppy discs
1718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1721 # OS/2's system install, which has a completely different semantic
1722 # ./install, which can be erroneously created by make from ./install.sh.
1723 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1724 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1725 if test -z "$INSTALL"; then
1726 if test "${ac_cv_path_install+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   # Account for people who put trailing slashes in PATH elements.
1735 case $as_dir/ in
1736   ./ | .// | /cC/* | \
1737   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1738   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1739   /usr/ucb/* ) ;;
1740   *)
1741     # OSF1 and SCO ODT 3.0 have their own names for install.
1742     # Don't use installbsd from OSF since it installs stuff as root
1743     # by default.
1744     for ac_prog in ginstall scoinst install; do
1745       for ac_exec_ext in '' $ac_executable_extensions; do
1746         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1747           if test $ac_prog = install &&
1748             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1749             # AIX install.  It has an incompatible calling convention.
1750             :
1751           elif test $ac_prog = install &&
1752             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1753             # program-specific install script used by HP pwplus--don't use.
1754             :
1755           else
1756             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1757             break 3
1758           fi
1759         fi
1760       done
1761     done
1762     ;;
1763 esac
1764 done
1765 IFS=$as_save_IFS
1766
1767
1768 fi
1769   if test "${ac_cv_path_install+set}" = set; then
1770     INSTALL=$ac_cv_path_install
1771   else
1772     # As a last resort, use the slow shell script.  Don't cache a
1773     # value for INSTALL within a source directory, because that will
1774     # break other packages using the cache if that directory is
1775     # removed, or if the value is a relative name.
1776     INSTALL=$ac_install_sh
1777   fi
1778 fi
1779 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1780 echo "${ECHO_T}$INSTALL" >&6; }
1781
1782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783 # It thinks the first close brace ends the variable substitution.
1784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1785
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1787
1788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1789
1790 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1792 # Just in case
1793 sleep 1
1794 echo timestamp > conftest.file
1795 # Do `set' in a subshell so we don't clobber the current shell's
1796 # arguments.  Must try -L first in case configure is actually a
1797 # symlink; some systems play weird games with the mod time of symlinks
1798 # (eg FreeBSD returns the mod time of the symlink's containing
1799 # directory).
1800 if (
1801    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802    if test "$*" = "X"; then
1803       # -L didn't work.
1804       set X `ls -t $srcdir/configure conftest.file`
1805    fi
1806    rm -f conftest.file
1807    if test "$*" != "X $srcdir/configure conftest.file" \
1808       && test "$*" != "X conftest.file $srcdir/configure"; then
1809
1810       # If neither matched, then we have a broken ls.  This can happen
1811       # if, for instance, CONFIG_SHELL is bash and it inherits a
1812       # broken ls alias from the environment.  This has actually
1813       # happened.  Such a system could not be considered "sane".
1814       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1815 alias in your environment" >&5
1816 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1817 alias in your environment" >&2;}
1818    { (exit 1); exit 1; }; }
1819    fi
1820
1821    test "$2" = conftest.file
1822    )
1823 then
1824    # Ok.
1825    :
1826 else
1827    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828 Check your system clock" >&5
1829 echo "$as_me: error: newly created file is older than distributed files!
1830 Check your system clock" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833 { echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6; }
1835 test "$program_prefix" != NONE &&
1836   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1840 # Double any \ or $.  echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1844 _ACEOF
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 rm -f conftest.sed
1847
1848 # expand $ac_aux_dir to an absolute path
1849 am_aux_dir=`cd $ac_aux_dir && pwd`
1850
1851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852 # Use eval to expand $SHELL
1853 if eval "$MISSING --run true"; then
1854   am_missing_run="$MISSING --run "
1855 else
1856   am_missing_run=
1857   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1859 fi
1860
1861 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1862 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1863 if test -z "$MKDIR_P"; then
1864   if test "${ac_cv_path_mkdir+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_prog in mkdir gmkdir; do
1873          for ac_exec_ext in '' $ac_executable_extensions; do
1874            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1875            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1876              'mkdir (GNU coreutils) '* | \
1877              'mkdir (coreutils) '* | \
1878              'mkdir (fileutils) '4.1*)
1879                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1880                break 3;;
1881            esac
1882          done
1883        done
1884 done
1885 IFS=$as_save_IFS
1886
1887 fi
1888
1889   if test "${ac_cv_path_mkdir+set}" = set; then
1890     MKDIR_P="$ac_cv_path_mkdir -p"
1891   else
1892     # As a last resort, use the slow shell script.  Don't cache a
1893     # value for MKDIR_P within a source directory, because that will
1894     # break other packages using the cache if that directory is
1895     # removed, or if the value is a relative name.
1896     test -d ./--version && rmdir ./--version
1897     MKDIR_P="$ac_install_sh -d"
1898   fi
1899 fi
1900 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1901 echo "${ECHO_T}$MKDIR_P" >&6; }
1902
1903 mkdir_p="$MKDIR_P"
1904 case $mkdir_p in
1905   [\\/$]* | ?:[\\/]*) ;;
1906   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1907 esac
1908
1909 for ac_prog in gawk mawk nawk awk
1910 do
1911   # Extract the first word of "$ac_prog", so it can be a program name with args.
1912 set dummy $ac_prog; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_AWK+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$AWK"; then
1919   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928     ac_cv_prog_AWK="$ac_prog"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934 IFS=$as_save_IFS
1935
1936 fi
1937 fi
1938 AWK=$ac_cv_prog_AWK
1939 if test -n "$AWK"; then
1940   { echo "$as_me:$LINENO: result: $AWK" >&5
1941 echo "${ECHO_T}$AWK" >&6; }
1942 else
1943   { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1945 fi
1946
1947
1948   test -n "$AWK" && break
1949 done
1950
1951 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1952 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1953 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1954 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.make <<\_ACEOF
1958 SHELL = /bin/sh
1959 all:
1960         @echo '@@@%%%=$(MAKE)=@@@%%%'
1961 _ACEOF
1962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1964   *@@@%%%=?*=@@@%%%*)
1965     eval ac_cv_prog_make_${ac_make}_set=yes;;
1966   *)
1967     eval ac_cv_prog_make_${ac_make}_set=no;;
1968 esac
1969 rm -f conftest.make
1970 fi
1971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1972   { echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6; }
1974   SET_MAKE=
1975 else
1976   { echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6; }
1978   SET_MAKE="MAKE=${MAKE-make}"
1979 fi
1980
1981 rm -rf .tst 2>/dev/null
1982 mkdir .tst 2>/dev/null
1983 if test -d .tst; then
1984   am__leading_dot=.
1985 else
1986   am__leading_dot=_
1987 fi
1988 rmdir .tst 2>/dev/null
1989
1990 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1991   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1992   # is not polluted with repeated "-I."
1993   am__isrc=' -I$(srcdir)'
1994   # test to see if srcdir already configured
1995   if test -f $srcdir/config.status; then
1996     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1997 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1998    { (exit 1); exit 1; }; }
1999   fi
2000 fi
2001
2002 # test whether we have cygpath
2003 if test -z "$CYGPATH_W"; then
2004   if (cygpath --version) >/dev/null 2>/dev/null; then
2005     CYGPATH_W='cygpath -w'
2006   else
2007     CYGPATH_W=echo
2008   fi
2009 fi
2010
2011
2012 # Define the identity of the package.
2013  PACKAGE='pic16lib'
2014  VERSION='0.3'
2015
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE "$PACKAGE"
2019 _ACEOF
2020
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define VERSION "$VERSION"
2024 _ACEOF
2025
2026 # Some tools Automake needs.
2027
2028 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2029
2030
2031 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2032
2033
2034 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2035
2036
2037 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2038
2039
2040 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2041
2042 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2043
2044 # Installed binaries are usually stripped using `strip' when the user
2045 # run `make install-strip'.  However `strip' might not be the right
2046 # tool to use in cross-compilation environments, therefore Automake
2047 # will honor the `STRIP' environment variable to overrule this program.
2048 if test "$cross_compiling" != no; then
2049   if test -n "$ac_tool_prefix"; then
2050   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}strip; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_STRIP+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$STRIP"; then
2058   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2074
2075 fi
2076 fi
2077 STRIP=$ac_cv_prog_STRIP
2078 if test -n "$STRIP"; then
2079   { echo "$as_me:$LINENO: result: $STRIP" >&5
2080 echo "${ECHO_T}$STRIP" >&6; }
2081 else
2082   { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2084 fi
2085
2086
2087 fi
2088 if test -z "$ac_cv_prog_STRIP"; then
2089   ac_ct_STRIP=$STRIP
2090   # Extract the first word of "strip", so it can be a program name with args.
2091 set dummy strip; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$ac_ct_STRIP"; then
2098   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107     ac_cv_prog_ac_ct_STRIP="strip"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113 IFS=$as_save_IFS
2114
2115 fi
2116 fi
2117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2118 if test -n "$ac_ct_STRIP"; then
2119   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2120 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2121 else
2122   { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2124 fi
2125
2126   if test "x$ac_ct_STRIP" = x; then
2127     STRIP=":"
2128   else
2129     case $cross_compiling:$ac_tool_warned in
2130 yes:)
2131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2132 whose name does not start with the host triplet.  If you think this
2133 configuration is useful to you, please write to autoconf@gnu.org." >&5
2134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2135 whose name does not start with the host triplet.  If you think this
2136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2137 ac_tool_warned=yes ;;
2138 esac
2139     STRIP=$ac_ct_STRIP
2140   fi
2141 else
2142   STRIP="$ac_cv_prog_STRIP"
2143 fi
2144
2145 fi
2146 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2147
2148 # We need awk for the "check" target.  The system "awk" is bad on
2149 # some platforms.
2150 # Always define AMTAR for backward compatibility.
2151
2152 AMTAR=${AMTAR-"${am_missing_run}tar"}
2153
2154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2155
2156
2157
2158
2159
2160
2161 ac_config_headers="$ac_config_headers config.h"
2162
2163
2164
2165 # SDCC setup
2166 case $srcdir in
2167     \\/*|?:\\/*) abs_srcdir="$srcdir";
2168         ;;
2169     *) abs_srcdir="$ac_pwd/$srcdir";
2170         ;;
2171 esac
2172 case $ac_top_build_prefix in
2173     \\/*|?:\\/*)
2174         abs_top_builddir="$ac_top_build_prefix";
2175         ;;
2176     *) abs_top_builddir="$ac_pwd/$ac_top_build_prefix";
2177         ;;
2178 esac
2179
2180 libdir=$libdir/pic16
2181
2182 USE_FLOATS="-DUSE_FLOATS=0"
2183
2184 # Check whether --enable-floats was given.
2185 if test "${enable_floats+set}" = set; then
2186   enableval=$enable_floats; if test "yes" = $enableval; then USE_FLOATS="-DUSE_FLOATS=1"; fi
2187
2188 fi
2189
2190
2191 # Checks for programs.
2192
2193 # The default architecture can be selected at configure time by setting the
2194 # environment variable ARCH to the desired device (18fxxx).
2195 ARCH=${ARCH:-18f452}
2196
2197
2198 # We cannot use AC_PROG_CC(sdcc) as sdcc might not be built at configure-time...
2199 CC=\'$abs_top_builddir/../../../bin/sdcc\'
2200
2201 CFLAGS="-mpic16 -p$ARCH"
2202
2203 # Extract the first word of "gpasm", so it can be a program name with args.
2204 set dummy gpasm; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_path_CCAS+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   case $CCAS in
2211   [\\/]* | ?:[\\/]*)
2212   ac_cv_path_CCAS="$CCAS" # Let the user override the test with a path.
2213   ;;
2214   *)
2215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_path_CCAS="$as_dir/$ac_word$ac_exec_ext"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230   test -z "$ac_cv_path_CCAS" && ac_cv_path_CCAS=":"
2231   ;;
2232 esac
2233 fi
2234 CCAS=$ac_cv_path_CCAS
2235 if test -n "$CCAS"; then
2236   { echo "$as_me:$LINENO: result: $CCAS" >&5
2237 echo "${ECHO_T}$CCAS" >&6; }
2238 else
2239   { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 fi
2242
2243
2244 CCAS=\'$CCAS\'
2245
2246 CCASFLAGS="-p$ARCH"
2247
2248 # Extract the first word of "gplink", so it can be a program name with args.
2249 set dummy gplink; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_path_LD+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   case $LD in
2256   [\\/]* | ?:[\\/]*)
2257   ac_cv_path_LD="$LD" # Let the user override the test with a path.
2258   ;;
2259   *)
2260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_exec_ext in '' $ac_executable_extensions; do
2266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275   test -z "$ac_cv_path_LD" && ac_cv_path_LD=":"
2276   ;;
2277 esac
2278 fi
2279 LD=$ac_cv_path_LD
2280 if test -n "$LD"; then
2281   { echo "$as_me:$LINENO: result: $LD" >&5
2282 echo "${ECHO_T}$LD" >&6; }
2283 else
2284   { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2286 fi
2287
2288
2289 LD=\'$LD\'
2290
2291 # Extract the first word of "gplib", so it can be a program name with args.
2292 set dummy gplib; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_path_AR+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   case $AR in
2299   [\\/]* | ?:[\\/]*)
2300   ac_cv_path_AR="$AR" # Let the user override the test with a path.
2301   ;;
2302   *)
2303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318   test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
2319   ;;
2320 esac
2321 fi
2322 AR=$ac_cv_path_AR
2323 if test -n "$AR"; then
2324   { echo "$as_me:$LINENO: result: $AR" >&5
2325 echo "${ECHO_T}$AR" >&6; }
2326 else
2327   { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2329 fi
2330
2331
2332 AR=\'$AR\'
2333
2334 ARFLAGS=-c
2335
2336
2337 # $RANLIB is called by the autotools but not provided nor required
2338 RANLIB=:
2339
2340 OBJEXT=o
2341
2342
2343 DEPDIR="${am__leading_dot}deps"
2344
2345 ac_config_commands="$ac_config_commands depfiles"
2346
2347
2348 am_make=${MAKE-make}
2349 cat > confinc << 'END'
2350 am__doit:
2351         @echo done
2352 .PHONY: am__doit
2353 END
2354 # If we don't find an include directive, just comment out the code.
2355 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2356 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2357 am__include="#"
2358 am__quote=
2359 _am_result=none
2360 # First try GNU make style include.
2361 echo "include confinc" > confmf
2362 # We grep out `Entering directory' and `Leaving directory'
2363 # messages which can occur if `w' ends up in MAKEFLAGS.
2364 # In particular we don't look at `^make:' because GNU make might
2365 # be invoked under some other name (usually "gmake"), in which
2366 # case it prints its new name instead of `make'.
2367 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2368    am__include=include
2369    am__quote=
2370    _am_result=GNU
2371 fi
2372 # Now try BSD make style include.
2373 if test "$am__include" = "#"; then
2374    echo '.include "confinc"' > confmf
2375    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2376       am__include=.include
2377       am__quote="\""
2378       _am_result=BSD
2379    fi
2380 fi
2381
2382
2383 { echo "$as_me:$LINENO: result: $_am_result" >&5
2384 echo "${ECHO_T}$_am_result" >&6; }
2385 rm -f confinc confmf
2386
2387 # Check whether --enable-dependency-tracking was given.
2388 if test "${enable_dependency_tracking+set}" = set; then
2389   enableval=$enable_dependency_tracking;
2390 fi
2391
2392 if test "x$enable_dependency_tracking" != xno; then
2393   am_depcomp="$ac_aux_dir/depcomp"
2394   AMDEPBACKSLASH='\'
2395 fi
2396  if test "x$enable_dependency_tracking" != xno; then
2397   AMDEP_TRUE=
2398   AMDEP_FALSE='#'
2399 else
2400   AMDEP_TRUE='#'
2401   AMDEP_FALSE=
2402 fi
2403
2404
2405
2406 depcc="$CC"   am_compiler_list=
2407
2408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2414   # We make a subdir and do the tests there.  Otherwise we can end up
2415   # making bogus files that we don't know about and never remove.  For
2416   # instance it was reported that on HP-UX the gcc test will end up
2417   # making a dummy file named `D' -- because `-MD' means `put the output
2418   # in D'.
2419   mkdir conftest.dir
2420   # Copy depcomp to subdir because otherwise we won't find it if we're
2421   # using a relative directory.
2422   cp "$am_depcomp" conftest.dir
2423   cd conftest.dir
2424   # We will build objects and dependencies in a subdirectory because
2425   # it helps to detect inapplicable dependency modes.  For instance
2426   # both Tru64's cc and ICC support -MD to output dependencies as a
2427   # side effect of compilation, but ICC will put the dependencies in
2428   # the current directory while Tru64 will put them in the object
2429   # directory.
2430   mkdir sub
2431
2432   am_cv_CC_dependencies_compiler_type=none
2433   if test "$am_compiler_list" = ""; then
2434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2435   fi
2436   for depmode in $am_compiler_list; do
2437     # Setup a source with many dependencies, because some compilers
2438     # like to wrap large dependency lists on column 80 (with \), and
2439     # we should not choose a depcomp mode which is confused by this.
2440     #
2441     # We need to recreate these files for each test, as the compiler may
2442     # overwrite some of them when testing with obscure command lines.
2443     # This happens at least with the AIX C compiler.
2444     : > sub/conftest.c
2445     for i in 1 2 3 4 5 6; do
2446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2448       # Solaris 8's {/usr,}/bin/sh.
2449       touch sub/conftst$i.h
2450     done
2451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2452
2453     case $depmode in
2454     nosideeffect)
2455       # after this tag, mechanisms are not by side-effect, so they'll
2456       # only be used when explicitly requested
2457       if test "x$enable_dependency_tracking" = xyes; then
2458         continue
2459       else
2460         break
2461       fi
2462       ;;
2463     none) break ;;
2464     esac
2465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2466     # mode.  It turns out that the SunPro C++ compiler does not properly
2467     # handle `-M -o', and we need to detect this.
2468     if depmode=$depmode \
2469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2472          >/dev/null 2>conftest.err &&
2473        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2474        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2475        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2476        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2477       # icc doesn't choke on unknown options, it will just issue warnings
2478       # or remarks (even with -Werror).  So we grep stderr for any message
2479       # that says an option was ignored or not supported.
2480       # When given -MP, icc 7.0 and 7.1 complain thusly:
2481       #   icc: Command line warning: ignoring option '-M'; no argument required
2482       # The diagnosis changed in icc 8.0:
2483       #   icc: Command line remark: option '-MP' not supported
2484       if (grep 'ignoring option' conftest.err ||
2485           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2486         am_cv_CC_dependencies_compiler_type=$depmode
2487         break
2488       fi
2489     fi
2490   done
2491
2492   cd ..
2493   rm -rf conftest.dir
2494 else
2495   am_cv_CC_dependencies_compiler_type=none
2496 fi
2497
2498 fi
2499 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2500 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2501 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2502
2503  if
2504   test "x$enable_dependency_tracking" != xno \
2505   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2506   am__fastdepCC_TRUE=
2507   am__fastdepCC_FALSE='#'
2508 else
2509   am__fastdepCC_TRUE='#'
2510   am__fastdepCC_FALSE=
2511 fi
2512
2513
2514
2515 depcc="$CCAS"   am_compiler_list=
2516
2517 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2518 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2519 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2523   # We make a subdir and do the tests there.  Otherwise we can end up
2524   # making bogus files that we don't know about and never remove.  For
2525   # instance it was reported that on HP-UX the gcc test will end up
2526   # making a dummy file named `D' -- because `-MD' means `put the output
2527   # in D'.
2528   mkdir conftest.dir
2529   # Copy depcomp to subdir because otherwise we won't find it if we're
2530   # using a relative directory.
2531   cp "$am_depcomp" conftest.dir
2532   cd conftest.dir
2533   # We will build objects and dependencies in a subdirectory because
2534   # it helps to detect inapplicable dependency modes.  For instance
2535   # both Tru64's cc and ICC support -MD to output dependencies as a
2536   # side effect of compilation, but ICC will put the dependencies in
2537   # the current directory while Tru64 will put them in the object
2538   # directory.
2539   mkdir sub
2540
2541   am_cv_CCAS_dependencies_compiler_type=none
2542   if test "$am_compiler_list" = ""; then
2543      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2544   fi
2545   for depmode in $am_compiler_list; do
2546     # Setup a source with many dependencies, because some compilers
2547     # like to wrap large dependency lists on column 80 (with \), and
2548     # we should not choose a depcomp mode which is confused by this.
2549     #
2550     # We need to recreate these files for each test, as the compiler may
2551     # overwrite some of them when testing with obscure command lines.
2552     # This happens at least with the AIX C compiler.
2553     : > sub/conftest.c
2554     for i in 1 2 3 4 5 6; do
2555       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2556       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2557       # Solaris 8's {/usr,}/bin/sh.
2558       touch sub/conftst$i.h
2559     done
2560     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2561
2562     case $depmode in
2563     nosideeffect)
2564       # after this tag, mechanisms are not by side-effect, so they'll
2565       # only be used when explicitly requested
2566       if test "x$enable_dependency_tracking" = xyes; then
2567         continue
2568       else
2569         break
2570       fi
2571       ;;
2572     none) break ;;
2573     esac
2574     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2575     # mode.  It turns out that the SunPro C++ compiler does not properly
2576     # handle `-M -o', and we need to detect this.
2577     if depmode=$depmode \
2578        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2579        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2580        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2581          >/dev/null 2>conftest.err &&
2582        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2584        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2586       # icc doesn't choke on unknown options, it will just issue warnings
2587       # or remarks (even with -Werror).  So we grep stderr for any message
2588       # that says an option was ignored or not supported.
2589       # When given -MP, icc 7.0 and 7.1 complain thusly:
2590       #   icc: Command line warning: ignoring option '-M'; no argument required
2591       # The diagnosis changed in icc 8.0:
2592       #   icc: Command line remark: option '-MP' not supported
2593       if (grep 'ignoring option' conftest.err ||
2594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2595         am_cv_CCAS_dependencies_compiler_type=$depmode
2596         break
2597       fi
2598     fi
2599   done
2600
2601   cd ..
2602   rm -rf conftest.dir
2603 else
2604   am_cv_CCAS_dependencies_compiler_type=none
2605 fi
2606
2607 fi
2608 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
2609 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
2610 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
2611
2612  if
2613   test "x$enable_dependency_tracking" != xno \
2614   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
2615   am__fastdepCCAS_TRUE=
2616   am__fastdepCCAS_FALSE='#'
2617 else
2618   am__fastdepCCAS_TRUE='#'
2619   am__fastdepCCAS_FALSE=
2620 fi
2621
2622
2623
2624 # Checks for libraries.
2625
2626 # Checks for header files.
2627
2628 # Checks for typedefs, structures, and compiler characteristics.
2629
2630 # Checks for library functions.
2631
2632 case "$CCAS:$LD:$AR" in
2633     *::*)
2634         { { echo "$as_me:$LINENO: error: gputils (gpasm, gplink, and gplib) are required but not found." >&5
2635 echo "$as_me: error: gputils (gpasm, gplink, and gplib) are required but not found." >&2;}
2636    { (exit 1); exit 1; }; }
2637         ;;
2638 esac
2639
2640 ac_config_files="$ac_config_files Makefile debug/Makefile libc/Makefile libdev/Makefile libio/Makefile libm/Makefile libsdcc/Makefile startup/Makefile"
2641
2642 cat >confcache <<\_ACEOF
2643 # This file is a shell script that caches the results of configure
2644 # tests run on this system so they can be shared between configure
2645 # scripts and configure runs, see configure's option --config-cache.
2646 # It is not useful on other systems.  If it contains results you don't
2647 # want to keep, you may remove or edit it.
2648 #
2649 # config.status only pays attention to the cache file if you give it
2650 # the --recheck option to rerun configure.
2651 #
2652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2654 # following values.
2655
2656 _ACEOF
2657
2658 # The following way of writing the cache mishandles newlines in values,
2659 # but we know of no workaround that is simple, portable, and efficient.
2660 # So, we kill variables containing newlines.
2661 # Ultrix sh set writes to stderr and can't be redirected directly,
2662 # and sets the high bit in the cache file unless we assign to the vars.
2663 (
2664   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2665     eval ac_val=\$$ac_var
2666     case $ac_val in #(
2667     *${as_nl}*)
2668       case $ac_var in #(
2669       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2671       esac
2672       case $ac_var in #(
2673       _ | IFS | as_nl) ;; #(
2674       *) $as_unset $ac_var ;;
2675       esac ;;
2676     esac
2677   done
2678
2679   (set) 2>&1 |
2680     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2681     *${as_nl}ac_space=\ *)
2682       # `set' does not quote correctly, so add quotes (double-quote
2683       # substitution turns \\\\ into \\, and sed turns \\ into \).
2684       sed -n \
2685         "s/'/'\\\\''/g;
2686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2687       ;; #(
2688     *)
2689       # `set' quotes correctly as required by POSIX, so do not add quotes.
2690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2691       ;;
2692     esac |
2693     sort
2694 ) |
2695   sed '
2696      /^ac_cv_env_/b end
2697      t clear
2698      :clear
2699      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2700      t end
2701      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2702      :end' >>confcache
2703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2704   if test -w "$cache_file"; then
2705     test "x$cache_file" != "x/dev/null" &&
2706       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2707 echo "$as_me: updating cache $cache_file" >&6;}
2708     cat confcache >$cache_file
2709   else
2710     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2711 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2712   fi
2713 fi
2714 rm -f confcache
2715
2716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2717 # Let make expand exec_prefix.
2718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2719
2720 DEFS=-DHAVE_CONFIG_H
2721
2722 ac_libobjs=
2723 ac_ltlibobjs=
2724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2725   # 1. Remove the extension, and $U if already installed.
2726   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2727   ac_i=`echo "$ac_i" | sed "$ac_script"`
2728   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2729   #    will be set to the directory where LIBOBJS objects are built.
2730   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2731   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2732 done
2733 LIBOBJS=$ac_libobjs
2734
2735 LTLIBOBJS=$ac_ltlibobjs
2736
2737
2738 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2739   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2740 Usually this means the macro was only invoked conditionally." >&5
2741 echo "$as_me: error: conditional \"AMDEP\" was never defined.
2742 Usually this means the macro was only invoked conditionally." >&2;}
2743    { (exit 1); exit 1; }; }
2744 fi
2745 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2746   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2747 Usually this means the macro was only invoked conditionally." >&5
2748 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2749 Usually this means the macro was only invoked conditionally." >&2;}
2750    { (exit 1); exit 1; }; }
2751 fi
2752 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
2753   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
2754 Usually this means the macro was only invoked conditionally." >&5
2755 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
2756 Usually this means the macro was only invoked conditionally." >&2;}
2757    { (exit 1); exit 1; }; }
2758 fi
2759
2760 : ${CONFIG_STATUS=./config.status}
2761 ac_clean_files_save=$ac_clean_files
2762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2765 cat >$CONFIG_STATUS <<_ACEOF
2766 #! $SHELL
2767 # Generated by $as_me.
2768 # Run this file to recreate the current configuration.
2769 # Compiler output produced by configure, useful for debugging
2770 # configure, is in config.log if it exists.
2771
2772 debug=false
2773 ac_cs_recheck=false
2774 ac_cs_silent=false
2775 SHELL=\${CONFIG_SHELL-$SHELL}
2776 _ACEOF
2777
2778 cat >>$CONFIG_STATUS <<\_ACEOF
2779 ## --------------------- ##
2780 ## M4sh Initialization.  ##
2781 ## --------------------- ##
2782
2783 # Be more Bourne compatible
2784 DUALCASE=1; export DUALCASE # for MKS sh
2785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2786   emulate sh
2787   NULLCMD=:
2788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2789   # is contrary to our usage.  Disable this feature.
2790   alias -g '${1+"$@"}'='"$@"'
2791   setopt NO_GLOB_SUBST
2792 else
2793   case `(set -o) 2>/dev/null` in
2794   *posix*) set -o posix ;;
2795 esac
2796
2797 fi
2798
2799
2800
2801
2802 # PATH needs CR
2803 # Avoid depending upon Character Ranges.
2804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2807 as_cr_digits='0123456789'
2808 as_cr_alnum=$as_cr_Letters$as_cr_digits
2809
2810 # The user is always right.
2811 if test "${PATH_SEPARATOR+set}" != set; then
2812   echo "#! /bin/sh" >conf$$.sh
2813   echo  "exit 0"   >>conf$$.sh
2814   chmod +x conf$$.sh
2815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2816     PATH_SEPARATOR=';'
2817   else
2818     PATH_SEPARATOR=:
2819   fi
2820   rm -f conf$$.sh
2821 fi
2822
2823 # Support unset when possible.
2824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2825   as_unset=unset
2826 else
2827   as_unset=false
2828 fi
2829
2830
2831 # IFS
2832 # We need space, tab and new line, in precisely that order.  Quoting is
2833 # there to prevent editors from complaining about space-tab.
2834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2835 # splitting by setting IFS to empty value.)
2836 as_nl='
2837 '
2838 IFS=" ""        $as_nl"
2839
2840 # Find who we are.  Look in the path if we contain no directory separator.
2841 case $0 in
2842   *[\\/]* ) as_myself=$0 ;;
2843   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2849 done
2850 IFS=$as_save_IFS
2851
2852      ;;
2853 esac
2854 # We did not find ourselves, most probably we were run as `sh COMMAND'
2855 # in which case we are not to be found in the path.
2856 if test "x$as_myself" = x; then
2857   as_myself=$0
2858 fi
2859 if test ! -f "$as_myself"; then
2860   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2861   { (exit 1); exit 1; }
2862 fi
2863
2864 # Work around bugs in pre-3.0 UWIN ksh.
2865 for as_var in ENV MAIL MAILPATH
2866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2867 done
2868 PS1='$ '
2869 PS2='> '
2870 PS4='+ '
2871
2872 # NLS nuisances.
2873 for as_var in \
2874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2876   LC_TELEPHONE LC_TIME
2877 do
2878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2879     eval $as_var=C; export $as_var
2880   else
2881     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2882   fi
2883 done
2884
2885 # Required to use basename.
2886 if expr a : '\(a\)' >/dev/null 2>&1 &&
2887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2888   as_expr=expr
2889 else
2890   as_expr=false
2891 fi
2892
2893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2894   as_basename=basename
2895 else
2896   as_basename=false
2897 fi
2898
2899
2900 # Name of the executable.
2901 as_me=`$as_basename -- "$0" ||
2902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2903          X"$0" : 'X\(//\)$' \| \
2904          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2905 echo X/"$0" |
2906     sed '/^.*\/\([^/][^/]*\)\/*$/{
2907             s//\1/
2908             q
2909           }
2910           /^X\/\(\/\/\)$/{
2911             s//\1/
2912             q
2913           }
2914           /^X\/\(\/\).*/{
2915             s//\1/
2916             q
2917           }
2918           s/.*/./; q'`
2919
2920 # CDPATH.
2921 $as_unset CDPATH
2922
2923
2924
2925   as_lineno_1=$LINENO
2926   as_lineno_2=$LINENO
2927   test "x$as_lineno_1" != "x$as_lineno_2" &&
2928   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2929
2930   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2931   # uniformly replaced by the line number.  The first 'sed' inserts a
2932   # line-number line after each line using $LINENO; the second 'sed'
2933   # does the real work.  The second script uses 'N' to pair each
2934   # line-number line with the line containing $LINENO, and appends
2935   # trailing '-' during substitution so that $LINENO is not a special
2936   # case at line end.
2937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2938   # scripts with optimization help from Paolo Bonzini.  Blame Lee
2939   # E. McMahon (1931-1989) for sed's syntax.  :-)
2940   sed -n '
2941     p
2942     /[$]LINENO/=
2943   ' <$as_myself |
2944     sed '
2945       s/[$]LINENO.*/&-/
2946       t lineno
2947       b
2948       :lineno
2949       N
2950       :loop
2951       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2952       t loop
2953       s/-\n.*//
2954     ' >$as_me.lineno &&
2955   chmod +x "$as_me.lineno" ||
2956     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2957    { (exit 1); exit 1; }; }
2958
2959   # Don't try to exec as it changes $[0], causing all sort of problems
2960   # (the dirname of $[0] is not the place where we might find the
2961   # original and so on.  Autoconf is especially sensitive to this).
2962   . "./$as_me.lineno"
2963   # Exit status is that of the last command.
2964   exit
2965 }
2966
2967
2968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2969   as_dirname=dirname
2970 else
2971   as_dirname=false
2972 fi
2973
2974 ECHO_C= ECHO_N= ECHO_T=
2975 case `echo -n x` in
2976 -n*)
2977   case `echo 'x\c'` in
2978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
2979   *)   ECHO_C='\c';;
2980   esac;;
2981 *)
2982   ECHO_N='-n';;
2983 esac
2984
2985 if expr a : '\(a\)' >/dev/null 2>&1 &&
2986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2987   as_expr=expr
2988 else
2989   as_expr=false
2990 fi
2991
2992 rm -f conf$$ conf$$.exe conf$$.file
2993 if test -d conf$$.dir; then
2994   rm -f conf$$.dir/conf$$.file
2995 else
2996   rm -f conf$$.dir
2997   mkdir conf$$.dir
2998 fi
2999 echo >conf$$.file
3000 if ln -s conf$$.file conf$$ 2>/dev/null; then
3001   as_ln_s='ln -s'
3002   # ... but there are two gotchas:
3003   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3004   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3005   # In both cases, we have to default to `cp -p'.
3006   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3007     as_ln_s='cp -p'
3008 elif ln conf$$.file conf$$ 2>/dev/null; then
3009   as_ln_s=ln
3010 else
3011   as_ln_s='cp -p'
3012 fi
3013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3014 rmdir conf$$.dir 2>/dev/null
3015
3016 if mkdir -p . 2>/dev/null; then
3017   as_mkdir_p=:
3018 else
3019   test -d ./-p && rmdir ./-p
3020   as_mkdir_p=false
3021 fi
3022
3023 if test -x / >/dev/null 2>&1; then
3024   as_test_x='test -x'
3025 else
3026   if ls -dL / >/dev/null 2>&1; then
3027     as_ls_L_option=L
3028   else
3029     as_ls_L_option=
3030   fi
3031   as_test_x='
3032     eval sh -c '\''
3033       if test -d "$1"; then
3034         test -d "$1/.";
3035       else
3036         case $1 in
3037         -*)set "./$1";;
3038         esac;
3039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3040         ???[sx]*):;;*)false;;esac;fi
3041     '\'' sh
3042   '
3043 fi
3044 as_executable_p=$as_test_x
3045
3046 # Sed expression to map a string onto a valid CPP name.
3047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3048
3049 # Sed expression to map a string onto a valid variable name.
3050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3051
3052
3053 exec 6>&1
3054
3055 # Save the log message, to keep $[0] and so on meaningful, and to
3056 # report actual input values of CONFIG_FILES etc. instead of their
3057 # values after options handling.
3058 ac_log="
3059 This file was extended by pic16lib $as_me 0.3, which was
3060 generated by GNU Autoconf 2.61.  Invocation command line was
3061
3062   CONFIG_FILES    = $CONFIG_FILES
3063   CONFIG_HEADERS  = $CONFIG_HEADERS
3064   CONFIG_LINKS    = $CONFIG_LINKS
3065   CONFIG_COMMANDS = $CONFIG_COMMANDS
3066   $ $0 $@
3067
3068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3069 "
3070
3071 _ACEOF
3072
3073 cat >>$CONFIG_STATUS <<_ACEOF
3074 # Files that config.status was made for.
3075 config_files="$ac_config_files"
3076 config_headers="$ac_config_headers"
3077 config_commands="$ac_config_commands"
3078
3079 _ACEOF
3080
3081 cat >>$CONFIG_STATUS <<\_ACEOF
3082 ac_cs_usage="\
3083 \`$as_me' instantiates files from templates according to the
3084 current configuration.
3085
3086 Usage: $0 [OPTIONS] [FILE]...
3087
3088   -h, --help       print this help, then exit
3089   -V, --version    print version number and configuration settings, then exit
3090   -q, --quiet      do not print progress messages
3091   -d, --debug      don't remove temporary files
3092       --recheck    update $as_me by reconfiguring in the same conditions
3093   --file=FILE[:TEMPLATE]
3094                    instantiate the configuration file FILE
3095   --header=FILE[:TEMPLATE]
3096                    instantiate the configuration header FILE
3097
3098 Configuration files:
3099 $config_files
3100
3101 Configuration headers:
3102 $config_headers
3103
3104 Configuration commands:
3105 $config_commands
3106
3107 Report bugs to <bug-autoconf@gnu.org>."
3108
3109 _ACEOF
3110 cat >>$CONFIG_STATUS <<_ACEOF
3111 ac_cs_version="\\
3112 pic16lib config.status 0.3
3113 configured by $0, generated by GNU Autoconf 2.61,
3114   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3115
3116 Copyright (C) 2006 Free Software Foundation, Inc.
3117 This config.status script is free software; the Free Software Foundation
3118 gives unlimited permission to copy, distribute and modify it."
3119
3120 ac_pwd='$ac_pwd'
3121 srcdir='$srcdir'
3122 INSTALL='$INSTALL'
3123 MKDIR_P='$MKDIR_P'
3124 _ACEOF
3125
3126 cat >>$CONFIG_STATUS <<\_ACEOF
3127 # If no file are specified by the user, then we need to provide default
3128 # value.  By we need to know if files were specified by the user.
3129 ac_need_defaults=:
3130 while test $# != 0
3131 do
3132   case $1 in
3133   --*=*)
3134     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3135     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3136     ac_shift=:
3137     ;;
3138   *)
3139     ac_option=$1
3140     ac_optarg=$2
3141     ac_shift=shift
3142     ;;
3143   esac
3144
3145   case $ac_option in
3146   # Handling of the options.
3147   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3148     ac_cs_recheck=: ;;
3149   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3150     echo "$ac_cs_version"; exit ;;
3151   --debug | --debu | --deb | --de | --d | -d )
3152     debug=: ;;
3153   --file | --fil | --fi | --f )
3154     $ac_shift
3155     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3156     ac_need_defaults=false;;
3157   --header | --heade | --head | --hea )
3158     $ac_shift
3159     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3160     ac_need_defaults=false;;
3161   --he | --h)
3162     # Conflict between --help and --header
3163     { echo "$as_me: error: ambiguous option: $1
3164 Try \`$0 --help' for more information." >&2
3165    { (exit 1); exit 1; }; };;
3166   --help | --hel | -h )
3167     echo "$ac_cs_usage"; exit ;;
3168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3169   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3170     ac_cs_silent=: ;;
3171
3172   # This is an error.
3173   -*) { echo "$as_me: error: unrecognized option: $1
3174 Try \`$0 --help' for more information." >&2
3175    { (exit 1); exit 1; }; } ;;
3176
3177   *) ac_config_targets="$ac_config_targets $1"
3178      ac_need_defaults=false ;;
3179
3180   esac
3181   shift
3182 done
3183
3184 ac_configure_extra_args=
3185
3186 if $ac_cs_silent; then
3187   exec 6>/dev/null
3188   ac_configure_extra_args="$ac_configure_extra_args --silent"
3189 fi
3190
3191 _ACEOF
3192 cat >>$CONFIG_STATUS <<_ACEOF
3193 if \$ac_cs_recheck; then
3194   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3195   CONFIG_SHELL=$SHELL
3196   export CONFIG_SHELL
3197   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3198 fi
3199
3200 _ACEOF
3201 cat >>$CONFIG_STATUS <<\_ACEOF
3202 exec 5>>config.log
3203 {
3204   echo
3205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3206 ## Running $as_me. ##
3207 _ASBOX
3208   echo "$ac_log"
3209 } >&5
3210
3211 _ACEOF
3212 cat >>$CONFIG_STATUS <<_ACEOF
3213 #
3214 # INIT-COMMANDS
3215 #
3216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3217
3218 _ACEOF
3219
3220 cat >>$CONFIG_STATUS <<\_ACEOF
3221
3222 # Handling of arguments.
3223 for ac_config_target in $ac_config_targets
3224 do
3225   case $ac_config_target in
3226     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3227     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3228     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3229     "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
3230     "libc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/Makefile" ;;
3231     "libdev/Makefile") CONFIG_FILES="$CONFIG_FILES libdev/Makefile" ;;
3232     "libio/Makefile") CONFIG_FILES="$CONFIG_FILES libio/Makefile" ;;
3233     "libm/Makefile") CONFIG_FILES="$CONFIG_FILES libm/Makefile" ;;
3234     "libsdcc/Makefile") CONFIG_FILES="$CONFIG_FILES libsdcc/Makefile" ;;
3235     "startup/Makefile") CONFIG_FILES="$CONFIG_FILES startup/Makefile" ;;
3236
3237   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3238 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3239    { (exit 1); exit 1; }; };;
3240   esac
3241 done
3242
3243
3244 # If the user did not use the arguments to specify the items to instantiate,
3245 # then the envvar interface is used.  Set only those that are not.
3246 # We use the long form for the default assignment because of an extremely
3247 # bizarre bug on SunOS 4.1.3.
3248 if $ac_need_defaults; then
3249   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3250   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3251   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3252 fi
3253
3254 # Have a temporary directory for convenience.  Make it in the build tree
3255 # simply because there is no reason against having it here, and in addition,
3256 # creating and moving files from /tmp can sometimes cause problems.
3257 # Hook for its removal unless debugging.
3258 # Note that there is a small window in which the directory will not be cleaned:
3259 # after its creation but before its name has been assigned to `$tmp'.
3260 $debug ||
3261 {
3262   tmp=
3263   trap 'exit_status=$?
3264   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3265 ' 0
3266   trap '{ (exit 1); exit 1; }' 1 2 13 15
3267 }
3268 # Create a (secure) tmp directory for tmp files.
3269
3270 {
3271   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3272   test -n "$tmp" && test -d "$tmp"
3273 }  ||
3274 {
3275   tmp=./conf$$-$RANDOM
3276   (umask 077 && mkdir "$tmp")
3277 } ||
3278 {
3279    echo "$me: cannot create a temporary directory in ." >&2
3280    { (exit 1); exit 1; }
3281 }
3282
3283 #
3284 # Set up the sed scripts for CONFIG_FILES section.
3285 #
3286
3287 # No need to generate the scripts if there are no CONFIG_FILES.
3288 # This happens for instance when ./config.status config.h
3289 if test -n "$CONFIG_FILES"; then
3290
3291 _ACEOF
3292
3293
3294
3295 ac_delim='%!_!# '
3296 for ac_last_try in false false false false false :; do
3297   cat >conf$$subs.sed <<_ACEOF
3298 SHELL!$SHELL$ac_delim
3299 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3300 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3301 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3302 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3303 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3304 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3305 exec_prefix!$exec_prefix$ac_delim
3306 prefix!$prefix$ac_delim
3307 program_transform_name!$program_transform_name$ac_delim
3308 bindir!$bindir$ac_delim
3309 sbindir!$sbindir$ac_delim
3310 libexecdir!$libexecdir$ac_delim
3311 datarootdir!$datarootdir$ac_delim
3312 datadir!$datadir$ac_delim
3313 sysconfdir!$sysconfdir$ac_delim
3314 sharedstatedir!$sharedstatedir$ac_delim
3315 localstatedir!$localstatedir$ac_delim
3316 includedir!$includedir$ac_delim
3317 oldincludedir!$oldincludedir$ac_delim
3318 docdir!$docdir$ac_delim
3319 infodir!$infodir$ac_delim
3320 htmldir!$htmldir$ac_delim
3321 dvidir!$dvidir$ac_delim
3322 pdfdir!$pdfdir$ac_delim
3323 psdir!$psdir$ac_delim
3324 libdir!$libdir$ac_delim
3325 localedir!$localedir$ac_delim
3326 mandir!$mandir$ac_delim
3327 DEFS!$DEFS$ac_delim
3328 ECHO_C!$ECHO_C$ac_delim
3329 ECHO_N!$ECHO_N$ac_delim
3330 ECHO_T!$ECHO_T$ac_delim
3331 LIBS!$LIBS$ac_delim
3332 build_alias!$build_alias$ac_delim
3333 host_alias!$host_alias$ac_delim
3334 target_alias!$target_alias$ac_delim
3335 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
3336 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
3337 INSTALL_DATA!$INSTALL_DATA$ac_delim
3338 am__isrc!$am__isrc$ac_delim
3339 CYGPATH_W!$CYGPATH_W$ac_delim
3340 PACKAGE!$PACKAGE$ac_delim
3341 VERSION!$VERSION$ac_delim
3342 ACLOCAL!$ACLOCAL$ac_delim
3343 AUTOCONF!$AUTOCONF$ac_delim
3344 AUTOMAKE!$AUTOMAKE$ac_delim
3345 AUTOHEADER!$AUTOHEADER$ac_delim
3346 MAKEINFO!$MAKEINFO$ac_delim
3347 install_sh!$install_sh$ac_delim
3348 STRIP!$STRIP$ac_delim
3349 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
3350 mkdir_p!$mkdir_p$ac_delim
3351 AWK!$AWK$ac_delim
3352 SET_MAKE!$SET_MAKE$ac_delim
3353 am__leading_dot!$am__leading_dot$ac_delim
3354 AMTAR!$AMTAR$ac_delim
3355 am__tar!$am__tar$ac_delim
3356 am__untar!$am__untar$ac_delim
3357 USE_FLOATS!$USE_FLOATS$ac_delim
3358 ARCH!$ARCH$ac_delim
3359 CC!$CC$ac_delim
3360 CFLAGS!$CFLAGS$ac_delim
3361 CCAS!$CCAS$ac_delim
3362 CCASFLAGS!$CCASFLAGS$ac_delim
3363 LD!$LD$ac_delim
3364 AR!$AR$ac_delim
3365 ARFLAGS!$ARFLAGS$ac_delim
3366 RANLIB!$RANLIB$ac_delim
3367 OBJEXT!$OBJEXT$ac_delim
3368 DEPDIR!$DEPDIR$ac_delim
3369 am__include!$am__include$ac_delim
3370 am__quote!$am__quote$ac_delim
3371 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
3372 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
3373 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
3374 CCDEPMODE!$CCDEPMODE$ac_delim
3375 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
3376 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
3377 CCASDEPMODE!$CCASDEPMODE$ac_delim
3378 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
3379 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
3380 LIBOBJS!$LIBOBJS$ac_delim
3381 LTLIBOBJS!$LTLIBOBJS$ac_delim
3382 _ACEOF
3383
3384   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
3385     break
3386   elif $ac_last_try; then
3387     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3388 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3389    { (exit 1); exit 1; }; }
3390   else
3391     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3392   fi
3393 done
3394
3395 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3396 if test -n "$ac_eof"; then
3397   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3398   ac_eof=`expr $ac_eof + 1`
3399 fi
3400
3401 cat >>$CONFIG_STATUS <<_ACEOF
3402 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3404 _ACEOF
3405 sed '
3406 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3407 s/^/s,@/; s/!/@,|#_!!_#|/
3408 :n
3409 t n
3410 s/'"$ac_delim"'$/,g/; t
3411 s/$/\\/; p
3412 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3413 ' >>$CONFIG_STATUS <conf$$subs.sed
3414 rm -f conf$$subs.sed
3415 cat >>$CONFIG_STATUS <<_ACEOF
3416 :end
3417 s/|#_!!_#|//g
3418 CEOF$ac_eof
3419 _ACEOF
3420
3421
3422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3424 # trailing colons and then remove the whole line if VPATH becomes empty
3425 # (actually we leave an empty line to preserve line numbers).
3426 if test "x$srcdir" = x.; then
3427   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3428 s/:*\$(srcdir):*/:/
3429 s/:*\${srcdir}:*/:/
3430 s/:*@srcdir@:*/:/
3431 s/^\([^=]*=[     ]*\):*/\1/
3432 s/:*$//
3433 s/^[^=]*=[       ]*$//
3434 }'
3435 fi
3436
3437 cat >>$CONFIG_STATUS <<\_ACEOF
3438 fi # test -n "$CONFIG_FILES"
3439
3440
3441 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
3442 do
3443   case $ac_tag in
3444   :[FHLC]) ac_mode=$ac_tag; continue;;
3445   esac
3446   case $ac_mode$ac_tag in
3447   :[FHL]*:*);;
3448   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3449 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3450    { (exit 1); exit 1; }; };;
3451   :[FH]-) ac_tag=-:-;;
3452   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3453   esac
3454   ac_save_IFS=$IFS
3455   IFS=:
3456   set x $ac_tag
3457   IFS=$ac_save_IFS
3458   shift
3459   ac_file=$1
3460   shift
3461
3462   case $ac_mode in
3463   :L) ac_source=$1;;
3464   :[FH])
3465     ac_file_inputs=
3466     for ac_f
3467     do
3468       case $ac_f in
3469       -) ac_f="$tmp/stdin";;
3470       *) # Look for the file first in the build tree, then in the source tree
3471          # (if the path is not absolute).  The absolute path cannot be DOS-style,
3472          # because $ac_f cannot contain `:'.
3473          test -f "$ac_f" ||
3474            case $ac_f in
3475            [\\/$]*) false;;
3476            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3477            esac ||
3478            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3479 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3480    { (exit 1); exit 1; }; };;
3481       esac
3482       ac_file_inputs="$ac_file_inputs $ac_f"
3483     done
3484
3485     # Let's still pretend it is `configure' which instantiates (i.e., don't
3486     # use $as_me), people would be surprised to read:
3487     #    /* config.h.  Generated by config.status.  */
3488     configure_input="Generated from "`IFS=:
3489           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3490     if test x"$ac_file" != x-; then
3491       configure_input="$ac_file.  $configure_input"
3492       { echo "$as_me:$LINENO: creating $ac_file" >&5
3493 echo "$as_me: creating $ac_file" >&6;}
3494     fi
3495
3496     case $ac_tag in
3497     *:-:* | *:-) cat >"$tmp/stdin";;
3498     esac
3499     ;;
3500   esac
3501
3502   ac_dir=`$as_dirname -- "$ac_file" ||
3503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3504          X"$ac_file" : 'X\(//\)[^/]' \| \
3505          X"$ac_file" : 'X\(//\)$' \| \
3506          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3507 echo X"$ac_file" |
3508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3509             s//\1/
3510             q
3511           }
3512           /^X\(\/\/\)[^/].*/{
3513             s//\1/
3514             q
3515           }
3516           /^X\(\/\/\)$/{
3517             s//\1/
3518             q
3519           }
3520           /^X\(\/\).*/{
3521             s//\1/
3522             q
3523           }
3524           s/.*/./; q'`
3525   { as_dir="$ac_dir"
3526   case $as_dir in #(
3527   -*) as_dir=./$as_dir;;
3528   esac
3529   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3530     as_dirs=
3531     while :; do
3532       case $as_dir in #(
3533       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3534       *) as_qdir=$as_dir;;
3535       esac
3536       as_dirs="'$as_qdir' $as_dirs"
3537       as_dir=`$as_dirname -- "$as_dir" ||
3538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3539          X"$as_dir" : 'X\(//\)[^/]' \| \
3540          X"$as_dir" : 'X\(//\)$' \| \
3541          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3542 echo X"$as_dir" |
3543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3544             s//\1/
3545             q
3546           }
3547           /^X\(\/\/\)[^/].*/{
3548             s//\1/
3549             q
3550           }
3551           /^X\(\/\/\)$/{
3552             s//\1/
3553             q
3554           }
3555           /^X\(\/\).*/{
3556             s//\1/
3557             q
3558           }
3559           s/.*/./; q'`
3560       test -d "$as_dir" && break
3561     done
3562     test -z "$as_dirs" || eval "mkdir $as_dirs"
3563   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3564 echo "$as_me: error: cannot create directory $as_dir" >&2;}
3565    { (exit 1); exit 1; }; }; }
3566   ac_builddir=.
3567
3568 case "$ac_dir" in
3569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3570 *)
3571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3572   # A ".." for each directory in $ac_dir_suffix.
3573   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
3574   case $ac_top_builddir_sub in
3575   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3576   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3577   esac ;;
3578 esac
3579 ac_abs_top_builddir=$ac_pwd
3580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3581 # for backward compatibility:
3582 ac_top_builddir=$ac_top_build_prefix
3583
3584 case $srcdir in
3585   .)  # We are building in place.
3586     ac_srcdir=.
3587     ac_top_srcdir=$ac_top_builddir_sub
3588     ac_abs_top_srcdir=$ac_pwd ;;
3589   [\\/]* | ?:[\\/]* )  # Absolute name.
3590     ac_srcdir=$srcdir$ac_dir_suffix;
3591     ac_top_srcdir=$srcdir
3592     ac_abs_top_srcdir=$srcdir ;;
3593   *) # Relative name.
3594     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3595     ac_top_srcdir=$ac_top_build_prefix$srcdir
3596     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3597 esac
3598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3599
3600
3601   case $ac_mode in
3602   :F)
3603   #
3604   # CONFIG_FILE
3605   #
3606
3607   case $INSTALL in
3608   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3609   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3610   esac
3611   ac_MKDIR_P=$MKDIR_P
3612   case $MKDIR_P in
3613   [\\/$]* | ?:[\\/]* ) ;;
3614   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
3615   esac
3616 _ACEOF
3617
3618 cat >>$CONFIG_STATUS <<\_ACEOF
3619 # If the template does not know about datarootdir, expand it.
3620 # FIXME: This hack should be removed a few years after 2.60.
3621 ac_datarootdir_hack=; ac_datarootdir_seen=
3622
3623 case `sed -n '/datarootdir/ {
3624   p
3625   q
3626 }
3627 /@datadir@/p
3628 /@docdir@/p
3629 /@infodir@/p
3630 /@localedir@/p
3631 /@mandir@/p
3632 ' $ac_file_inputs` in
3633 *datarootdir*) ac_datarootdir_seen=yes;;
3634 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3635   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3636 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3637 _ACEOF
3638 cat >>$CONFIG_STATUS <<_ACEOF
3639   ac_datarootdir_hack='
3640   s&@datadir@&$datadir&g
3641   s&@docdir@&$docdir&g
3642   s&@infodir@&$infodir&g
3643   s&@localedir@&$localedir&g
3644   s&@mandir@&$mandir&g
3645     s&\\\${datarootdir}&$datarootdir&g' ;;
3646 esac
3647 _ACEOF
3648
3649 # Neutralize VPATH when `$srcdir' = `.'.
3650 # Shell code in configure.ac might set extrasub.
3651 # FIXME: do we really want to maintain this feature?
3652 cat >>$CONFIG_STATUS <<_ACEOF
3653   sed "$ac_vpsub
3654 $extrasub
3655 _ACEOF
3656 cat >>$CONFIG_STATUS <<\_ACEOF
3657 :t
3658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3659 s&@configure_input@&$configure_input&;t t
3660 s&@top_builddir@&$ac_top_builddir_sub&;t t
3661 s&@srcdir@&$ac_srcdir&;t t
3662 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3663 s&@top_srcdir@&$ac_top_srcdir&;t t
3664 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3665 s&@builddir@&$ac_builddir&;t t
3666 s&@abs_builddir@&$ac_abs_builddir&;t t
3667 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3668 s&@INSTALL@&$ac_INSTALL&;t t
3669 s&@MKDIR_P@&$ac_MKDIR_P&;t t
3670 $ac_datarootdir_hack
3671 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
3672
3673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3674   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3675   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3676   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3677 which seems to be undefined.  Please make sure it is defined." >&5
3678 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3679 which seems to be undefined.  Please make sure it is defined." >&2;}
3680
3681   rm -f "$tmp/stdin"
3682   case $ac_file in
3683   -) cat "$tmp/out"; rm -f "$tmp/out";;
3684   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
3685   esac
3686  ;;
3687   :H)
3688   #
3689   # CONFIG_HEADER
3690   #
3691 _ACEOF
3692
3693 # Transform confdefs.h into a sed script `conftest.defines', that
3694 # substitutes the proper values into config.h.in to produce config.h.
3695 rm -f conftest.defines conftest.tail
3696 # First, append a space to every undef/define line, to ease matching.
3697 echo 's/$/ /' >conftest.defines
3698 # Then, protect against being on the right side of a sed subst, or in
3699 # an unquoted here document, in config.status.  If some macros were
3700 # called several times there might be several #defines for the same
3701 # symbol, which is useless.  But do not sort them, since the last
3702 # AC_DEFINE must be honored.
3703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3704 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
3705 # NAME is the cpp macro being defined, VALUE is the value it is being given.
3706 # PARAMS is the parameter list in the macro definition--in most cases, it's
3707 # just an empty string.
3708 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
3709 ac_dB='\\)[      (].*,\\1define\\2'
3710 ac_dC=' '
3711 ac_dD=' ,'
3712
3713 uniq confdefs.h |
3714   sed -n '
3715         t rset
3716         :rset
3717         s/^[     ]*#[    ]*define[       ][      ]*//
3718         t ok
3719         d
3720         :ok
3721         s/[\\&,]/\\&/g
3722         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
3723         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
3724   ' >>conftest.defines
3725
3726 # Remove the space that was appended to ease matching.
3727 # Then replace #undef with comments.  This is necessary, for
3728 # example, in the case of _POSIX_SOURCE, which is predefined and required
3729 # on some systems where configure will not decide to define it.
3730 # (The regexp can be short, since the line contains either #define or #undef.)
3731 echo 's/ $//
3732 s,^[     #]*u.*,/* & */,' >>conftest.defines
3733
3734 # Break up conftest.defines:
3735 ac_max_sed_lines=50
3736
3737 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
3738 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
3739 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
3740 # et cetera.
3741 ac_in='$ac_file_inputs'
3742 ac_out='"$tmp/out1"'
3743 ac_nxt='"$tmp/out2"'
3744
3745 while :
3746 do
3747   # Write a here document:
3748     cat >>$CONFIG_STATUS <<_ACEOF
3749     # First, check the format of the line:
3750     cat >"\$tmp/defines.sed" <<\\CEOF
3751 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
3752 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
3753 b
3754 :def
3755 _ACEOF
3756   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
3757   echo 'CEOF
3758     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
3759   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
3760   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
3761   grep . conftest.tail >/dev/null || break
3762   rm -f conftest.defines
3763   mv conftest.tail conftest.defines
3764 done
3765 rm -f conftest.defines conftest.tail
3766
3767 echo "ac_result=$ac_in" >>$CONFIG_STATUS
3768 cat >>$CONFIG_STATUS <<\_ACEOF
3769   if test x"$ac_file" != x-; then
3770     echo "/* $configure_input  */" >"$tmp/config.h"
3771     cat "$ac_result" >>"$tmp/config.h"
3772     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
3773       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3774 echo "$as_me: $ac_file is unchanged" >&6;}
3775     else
3776       rm -f $ac_file
3777       mv "$tmp/config.h" $ac_file
3778     fi
3779   else
3780     echo "/* $configure_input  */"
3781     cat "$ac_result"
3782   fi
3783   rm -f "$tmp/out12"
3784 # Compute $ac_file's index in $config_headers.
3785 _am_arg=$ac_file
3786 _am_stamp_count=1
3787 for _am_header in $config_headers :; do
3788   case $_am_header in
3789     $_am_arg | $_am_arg:* )
3790       break ;;
3791     * )
3792       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
3793   esac
3794 done
3795 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
3796 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3797          X"$_am_arg" : 'X\(//\)[^/]' \| \
3798          X"$_am_arg" : 'X\(//\)$' \| \
3799          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
3800 echo X"$_am_arg" |
3801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3802             s//\1/
3803             q
3804           }
3805           /^X\(\/\/\)[^/].*/{
3806             s//\1/
3807             q
3808           }
3809           /^X\(\/\/\)$/{
3810             s//\1/
3811             q
3812           }
3813           /^X\(\/\).*/{
3814             s//\1/
3815             q
3816           }
3817           s/.*/./; q'`/stamp-h$_am_stamp_count
3818  ;;
3819
3820   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
3821 echo "$as_me: executing $ac_file commands" >&6;}
3822  ;;
3823   esac
3824
3825
3826   case $ac_file$ac_mode in
3827     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
3828   # Strip MF so we end up with the name of the file.
3829   mf=`echo "$mf" | sed -e 's/:.*$//'`
3830   # Check whether this is an Automake generated Makefile or not.
3831   # We used to match only the files named `Makefile.in', but
3832   # some people rename them; so instead we look at the file content.
3833   # Grep'ing the first line is not enough: some people post-process
3834   # each Makefile.in and add a new line on top of each file to say so.
3835   # Grep'ing the whole file is not good either: AIX grep has a line
3836   # limit of 2048, but all sed's we know have understand at least 4000.
3837   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
3838     dirpart=`$as_dirname -- "$mf" ||
3839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3840          X"$mf" : 'X\(//\)[^/]' \| \
3841          X"$mf" : 'X\(//\)$' \| \
3842          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
3843 echo X"$mf" |
3844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3845             s//\1/
3846             q
3847           }
3848           /^X\(\/\/\)[^/].*/{
3849             s//\1/
3850             q
3851           }
3852           /^X\(\/\/\)$/{
3853             s//\1/
3854             q
3855           }
3856           /^X\(\/\).*/{
3857             s//\1/
3858             q
3859           }
3860           s/.*/./; q'`
3861   else
3862     continue
3863   fi
3864   # Extract the definition of DEPDIR, am__include, and am__quote
3865   # from the Makefile without running `make'.
3866   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3867   test -z "$DEPDIR" && continue
3868   am__include=`sed -n 's/^am__include = //p' < "$mf"`
3869   test -z "am__include" && continue
3870   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3871   # When using ansi2knr, U may be empty or an underscore; expand it
3872   U=`sed -n 's/^U = //p' < "$mf"`
3873   # Find all dependency output files, they are included files with
3874   # $(DEPDIR) in their names.  We invoke sed twice because it is the
3875   # simplest approach to changing $(DEPDIR) to its actual value in the
3876   # expansion.
3877   for file in `sed -n "
3878     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3879        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3880     # Make sure the directory exists.
3881     test -f "$dirpart/$file" && continue
3882     fdir=`$as_dirname -- "$file" ||
3883 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3884          X"$file" : 'X\(//\)[^/]' \| \
3885          X"$file" : 'X\(//\)$' \| \
3886          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
3887 echo X"$file" |
3888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3889             s//\1/
3890             q
3891           }
3892           /^X\(\/\/\)[^/].*/{
3893             s//\1/
3894             q
3895           }
3896           /^X\(\/\/\)$/{
3897             s//\1/
3898             q
3899           }
3900           /^X\(\/\).*/{
3901             s//\1/
3902             q
3903           }
3904           s/.*/./; q'`
3905     { as_dir=$dirpart/$fdir
3906   case $as_dir in #(
3907   -*) as_dir=./$as_dir;;
3908   esac
3909   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3910     as_dirs=
3911     while :; do
3912       case $as_dir in #(
3913       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3914       *) as_qdir=$as_dir;;
3915       esac
3916       as_dirs="'$as_qdir' $as_dirs"
3917       as_dir=`$as_dirname -- "$as_dir" ||
3918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3919          X"$as_dir" : 'X\(//\)[^/]' \| \
3920          X"$as_dir" : 'X\(//\)$' \| \
3921          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3922 echo X"$as_dir" |
3923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3924             s//\1/
3925             q
3926           }
3927           /^X\(\/\/\)[^/].*/{
3928             s//\1/
3929             q
3930           }
3931           /^X\(\/\/\)$/{
3932             s//\1/
3933             q
3934           }
3935           /^X\(\/\).*/{
3936             s//\1/
3937             q
3938           }
3939           s/.*/./; q'`
3940       test -d "$as_dir" && break
3941     done
3942     test -z "$as_dirs" || eval "mkdir $as_dirs"
3943   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3944 echo "$as_me: error: cannot create directory $as_dir" >&2;}
3945    { (exit 1); exit 1; }; }; }
3946     # echo "creating $dirpart/$file"
3947     echo '# dummy' > "$dirpart/$file"
3948   done
3949 done
3950  ;;
3951
3952   esac
3953 done # for ac_tag
3954
3955
3956 { (exit 0); exit 0; }
3957 _ACEOF
3958 chmod +x $CONFIG_STATUS
3959 ac_clean_files=$ac_clean_files_save
3960
3961
3962 # configure is writing to config.log, and then calls config.status.
3963 # config.status does its own redirection, appending to config.log.
3964 # Unfortunately, on DOS this fails, as config.log is still kept open
3965 # by configure, so config.status won't be able to write to it; its
3966 # output is simply discarded.  So we exec the FD to /dev/null,
3967 # effectively closing config.log, so it can be properly (re)opened and
3968 # appended to by config.status.  When coming back to configure, we
3969 # need to make the FD available again.
3970 if test "$no_create" != yes; then
3971   ac_cs_success=:
3972   ac_config_status_args=
3973   test "$silent" = yes &&
3974     ac_config_status_args="$ac_config_status_args --quiet"
3975   exec 5>/dev/null
3976   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3977   exec 5>>config.log
3978   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3979   # would make configure fail if this is the last instruction.
3980   $ac_cs_success || { (exit 1); exit 1; }
3981 fi
3982
3983