Annotation of tme/configure.in, revision 1.1.1.2

1.1       root        1: dnl Process this file with autoconf to produce a configure script.
                      2: 
1.1.1.2 ! root        3: dnl $Id: configure.in,v 1.10 2003/10/16 02:50:37 fredette Exp $
1.1       root        4: 
                      5: dnl Copyright (c) 2001, 2003 Matt Fredette
                      6: dnl All rights reserved.
                      7: dnl
                      8: dnl Redistribution and use in source and binary forms, with or without
                      9: dnl modification, are permitted provided that the following conditions
                     10: dnl are met:
                     11: dnl 1. Redistributions of source code must retain the above copyright
                     12: dnl    notice, this list of conditions and the following disclaimer.
                     13: dnl 2. Redistributions in binary form must reproduce the above copyright
                     14: dnl    notice, this list of conditions and the following disclaimer in the
                     15: dnl    documentation and/or other materials provided with the distribution.
                     16: dnl 3. All advertising materials mentioning features or use of this software
                     17: dnl    must display the following acknowledgement:
                     18: dnl      This product includes software developed by Matt Fredette.
                     19: dnl 4. The name of the author may not be used to endorse or promote products
                     20: dnl    derived from this software without specific prior written permission.
                     21: dnl
                     22: dnl THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     23: dnl IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
                     24: dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
                     25: dnl DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
                     26: dnl INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
                     27: dnl (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
                     28: dnl SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     29: dnl HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
                     30: dnl STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
                     31: dnl ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                     32: dnl POSSIBILITY OF SUCH DAMAGE.
                     33: 
                     34: dnl Checks that we are given a good source directory.
                     35: AC_INIT(ic/m68k/m68k-impl.h)
                     36: AC_CANONICAL_SYSTEM
1.1.1.2 ! root       37: AM_INIT_AUTOMAKE(tme, 0.2)
1.1       root       38: 
                     39: dnl Write configuration out to config.h through config.h.in.
                     40: AM_CONFIG_HEADER(config.h)
                     41: 
                     42: dnl Checks for programs.
                     43: AC_PROG_CC
                     44: AC_PROG_CPP
                     45: AC_PROG_YACC
                     46: AC_PROG_INSTALL
                     47: AC_PROG_MAKE_SET
                     48: 
                     49: dnl Checks for header files.
                     50: AC_HEADER_STDC
                     51: AC_CHECK_HEADERS(unistd.h stdio.h memory.h stdarg.h)
                     52: AC_CHECK_HEADERS(sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h)
                     53: 
                     54: dnl Checks for typedefs, structures, and compiler characteristics.
                     55: AC_C_BIGENDIAN
                     56: AC_C_CONST
                     57: AC_C_INLINE
1.1.1.2 ! root       58: AC_TYPE_SIZE_T
1.1       root       59: AC_CHECK_SIZEOF(long, 4)
                     60: AC_CHECK_SIZEOF(int, 4)
                     61: AC_CHECK_SIZEOF(short, 2)
                     62: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
                     63:   AC_MSG_ERROR([can't find a 32-bit type])
                     64: fi
                     65: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
                     66:   AC_MSG_ERROR([can't find a 16-bit type])
                     67: fi
                     68: AC_CHECK_ALIGNOF(32)
                     69: AC_CHECK_ALIGNOF(16)
                     70: AC_CHECK_SHIFTMAX(8)
                     71: AC_CHECK_SHIFTMAX(16)
                     72: AC_CHECK_SHIFTMAX(32)
                     73: AC_SYS_SOCKADDR_SA_LEN
                     74: 
                     75: dnl Checks for library functions and prototypes.
                     76: AC_PROG_GCC_TRADITIONAL
                     77: AC_FUNC_MEMCMP
                     78: AC_FUNC_MMAP
                     79: 
                     80: dnl Checks for perl.
                     81: AC_PATH_PROGS(PERL, perl4.036 perl4 perl perl5, no)
                     82: AC_SUBST(PERL)
                     83: 
1.1.1.2 ! root       84: dnl Start the list of host support.
        !            85: TME_HOSTS="posix"
        !            86: 
1.1       root       87: dnl Checks for AF_LINK.
                     88: AC_MSG_CHECKING([for AF_LINK support])
                     89: AC_EGREP_CPP(_tme_has_af_link,
                     90: [
                     91: #include <sys/socket.h>
                     92: #ifdef AF_LINK
                     93: _tme_has_af_link
                     94: #endif
                     95: ], [ 
                     96: AC_MSG_RESULT(yes)
                     97: AC_DEFINE(HAVE_AF_LINK, [], [Define if you have AF_LINK.])
                     98: ], [
                     99: AC_MSG_RESULT(no)
                    100: ])
                    101: 
                    102: dnl Checks for BPF.
                    103: tme_raw_type=
1.1.1.2 ! root      104: AC_CHECK_HEADER(net/bpf.h, 
        !           105: [AC_EGREP_CPP(found_BIOCSHDRCMPLT, 
        !           106: [#include <net/bpf.h>
        !           107: #ifdef BIOCSHDRCMPLT
        !           108: found_BIOCSHDRCMPLT
        !           109: #endif
        !           110: ], [tme_raw_type=bpf])])
1.1       root      111: AC_MSG_CHECKING([for raw Ethernet access method])
1.1.1.2 ! root      112: case "x$tme_raw_type" in
        !           113: xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
        !           114: x) tme_raw_type=none ;;
        !           115: esac
1.1       root      116: AC_MSG_RESULT($tme_raw_type)
                    117: 
1.1.1.2 ! root      118: dnl Checks for X11.
        !           119: AC_PATH_XTRA
        !           120: 
        !           121: dnl Checks for GTK.
        !           122: AM_PATH_GTK([], have_gtk=true, have_gtk=false)
        !           123: if $have_gtk; then
        !           124:   AC_DEFINE(HAVE_GTK, [], [Define if you are compiling with GTK.])
        !           125:   TME_HOSTS="${TME_HOSTS} gtk"
        !           126: fi
        !           127: 
        !           128: dnl Characterize any graphics displays and remember the areas of
        !           129: dnl the smallest and largest screens.
        !           130: TME_FB_XLAT_DST=
        !           131: area_smallest=0
        !           132: area_largest=0
        !           133: 
        !           134: # if TME_DISPLAYS is set, characterize those given displays:
        !           135: for dst_key in ${TME_DISPLAYS}; do
        !           136: 
        !           137:   dnl Make brackets safe to use.
        !           138:   changequote(<<, >>)dnl
        !           139: 
        !           140:    this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
        !           141:   this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
        !           142:       dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
        !           143:   this_area=`expr ${this_width} \* ${this_height}`
        !           144: 
        !           145:   if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
        !           146:     area_smallest=${this_area}
        !           147:   fi
        !           148:   if test `expr ${this_area} \> ${area_largest}` = 1; then
        !           149:     area_largest=${this_area}
        !           150:   fi
        !           151:   
        !           152:   # add in this destination display key:
        !           153:   if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
        !           154:     TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
        !           155:   fi
        !           156: 
        !           157:   dnl Make brackets the quote characters again.
        !           158:   changequote([, ])dnl
        !           159: done
        !           160: 
        !           161: # if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
        !           162: if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
        !           163:   AC_MSG_CHECKING(characteristics of X display ${DISPLAY})
        !           164: 
        !           165:   dnl Make brackets safe to use.
        !           166:   changequote(<<, >>)dnl
        !           167: 
        !           168:   # get the format this display uses for bitmaps:
        !           169:   bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
        !           170:   bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
        !           171:     bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
        !           172:   bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
        !           173: 
        !           174:   # get the format this display uses for images at its greatest depth:
        !           175:   pixmap_order=`xdpyinfo | grep 'image byte order'`
        !           176:   pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
        !           177:   pixmap_depth=1
        !           178:   pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
        !           179:   save_IFS=$IFS
        !           180:   IFS=%
        !           181:   for pixmap_info in $pixmap_infos; do
        !           182:     IFS=$save_IFS
        !           183:     if test "x$pixmap_info" = x; then continue; fi
        !           184:     this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
        !           185:      this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
        !           186:       this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
        !           187:     if test `expr ${pixmap_depth} \< ${this_pixmap_depth}` = 1; then
        !           188:       pixmap_depth=${this_pixmap_depth}
        !           189:       pixmap_bipp=${this_pixmap_bipp}
        !           190:       pixmap_pad=${this_pixmap_pad}
        !           191:     fi
        !           192:   done
        !           193:   IFS=$save_IFS
        !           194: 
        !           195:   # if this display's greatest depth is one, we use its
        !           196:   # bitmap format:
        !           197:   if test $pixmap_depth = 1; then
        !           198:     pixmap_bipp=1
        !           199:     pixmap_pad=${bitmap_pad}
        !           200: 
        !           201:     # our translation functions can't handle the case when the bitmap
        !           202:     # bit order is different from the image byte order - doing so
        !           203:     # requires dealing with the bitmap unit size.  since this
        !           204:     # situation is rare, just bail:
        !           205:     if test ${bitmap_order} != ${pixmap_order}; then
        !           206:       changequote([, ])dnl
        !           207:       AC_MSG_WARN([the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support])
        !           208:       changequote(<<, >>)dnl
        !           209:       pixmap_depth=0
        !           210:     fi
        !           211:   fi
        !           212: 
        !           213:   # if this display seems usable:
        !           214:   if test ${pixmap_depth} != 0; then
        !           215: 
        !           216:     # check the dimensions of all screens on this display:
        !           217:     dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
        !           218:     save_IFS=$IFS
        !           219:     IFS=%
        !           220:     for dimension in $dimensions; do
        !           221:       IFS=$save_IFS
        !           222:       if test "x$dimension" = x; then continue; fi
        !           223:        this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
        !           224:       this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
        !           225:       this_area=`expr ${this_width} \* ${this_height}`
        !           226:       if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
        !           227:         area_smallest=${this_area}
        !           228:       fi
        !           229:       if test `expr ${this_area} \> ${area_largest}` = 1; then
        !           230:         area_largest=${this_area}
        !           231:       fi
        !           232:     done
        !           233:     IFS=$save_IFS
        !           234: 
        !           235:     dnl Make brackets the quote characters again.
        !           236:     changequote([, ])dnl
        !           237: 
        !           238:     # finish the characterization:
        !           239:     if test ${pixmap_bipp} = ${pixmap_depth}; then
        !           240:       value=
        !           241:     else
        !           242:       value=" (${pixmap_bipp} bits per pixel)"
        !           243:     fi
        !           244:     AC_MSG_RESULT([${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding])
        !           245:     dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}"
        !           246:     
        !           247:     # add in this destination display key:
        !           248:     if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
        !           249:       TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
        !           250:     fi
        !           251:   fi
        !           252: fi
        !           253: AC_SUBST(TME_FB_XLAT_DST)
        !           254: 
1.1       root      255: dnl Configures for the system(s) to emulate.
                    256: systems=all
                    257: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
                    258:   systems="sun2"
                    259: fi
                    260: TME_MACHINE_SUBDIRS=
                    261: TME_IC_SUBDIRS=
                    262: TME_ICS=
1.1.1.2 ! root      263: TME_SERIAL_SUBDIRS=
        !           264: TME_SERIALS=
1.1       root      265: TME_BUS_SUBDIRS=
1.1.1.2 ! root      266: TME_FB_XLAT_SRC=
1.1       root      267: for system in $systems; do
                    268: 
                    269:     # dispatch on the machine type to get more machines, ICs, and
                    270:     # buses to compile:
                    271:     case ${system} in
                    272: 
                    273:     # the sun2:
                    274:     sun2)
                    275:        machines="sun sun2"
                    276:        ics="m68k am9513 mm58167 z8530"
                    277:        buses="multibus"
1.1.1.2 ! root      278:        fb_xlats="1152x900d1b1s0p32om"
1.1       root      279:        ;;
                    280: 
                    281:     *)
                    282:        AC_MSG_ERROR([don't know how to emulate ${machine}])
                    283:        ;;
                    284:     esac
                    285: 
1.1.1.2 ! root      286:     # add in the new machines, ICs, serials, and buses to compile:
1.1       root      287:     for machine in $machines; do
                    288:        if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
                    289:            TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
                    290:        fi
                    291:     done
                    292:     for ic in $ics; do
                    293:        if test -d ic/$ic; then
                    294:            if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
                    295:                TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
                    296:            fi
                    297:        else
                    298:            ic="tme_ic_${ic}.la"
                    299:            if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
                    300:                TME_ICS="${TME_ICS} ${ic}"
                    301:            fi
                    302:        fi
                    303:     done
1.1.1.2 ! root      304:     for serial in $serials; do
        !           305:        if test -d serial/$serial; then
        !           306:            if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
        !           307:                TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
        !           308:            fi
        !           309:        else
        !           310:            serial="tme_serial_${serial}.la"
        !           311:            if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
        !           312:                TME_SERIALS="${TME_SERIALS} ${serial}"
        !           313:            fi
        !           314:        fi
        !           315:     done
1.1       root      316:     for bus in $buses; do
                    317:        if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
                    318:            TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
                    319:        fi
                    320:     done
1.1.1.2 ! root      321:        
        !           322:     # add in the new frame buffer translations to compile:
        !           323:     for fb_xlat in $fb_xlats; do
        !           324:        if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
        !           325:            TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
        !           326:        fi
        !           327: 
        !           328:        dnl Make brackets safe to use.
        !           329:        changequote(<<, >>)dnl
        !           330: 
        !           331:        # calculate the area of this frame buffer multiplied by 100:
        !           332:         this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
        !           333:        this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
        !           334:        this_area=`expr ${this_width} \* ${this_height} \* 100`
        !           335: 
        !           336:        dnl Make brackets the quote characters again.
        !           337:        changequote([, ])dnl
        !           338: 
        !           339:        # if this frame buffer would consume at least 70 percent of
        !           340:        # the smallest destination screen, make an xlat function that
        !           341:        # scales this frame buffer down by two:
        !           342:        if test ${area_smallest} = 0; then
        !           343:            percentage=100
        !           344:        else
        !           345:            percentage=`expr ${this_area} / ${area_smallest}`
        !           346:        fi
        !           347:        if test `expr ${percentage} \> 70` = 1; then
        !           348:            src_key="${fb_xlat}_h"
        !           349:            if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
        !           350:                TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
        !           351:            fi
        !           352:        fi
        !           353:          
        !           354:        # if this frame buffer would consume less than 30 percent of
        !           355:        # the largest destination screen, make an xlat function that
        !           356:        # scales this frame buffer up by two:
        !           357:        if test ${area_largest} = 0; then
        !           358:            percentage=0
        !           359:        else
        !           360:            percentage=`expr ${this_area} / ${area_largest}`
        !           361:        fi
        !           362:        if test `expr ${percentage} \< 30` = 1; then
        !           363:            src_key="${fb_xlat}_d"
        !           364:            if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
        !           365:                TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
        !           366:            fi
        !           367:        fi
        !           368:     done
1.1       root      369: done
                    370: AC_SUBST(TME_MACHINE_SUBDIRS)
                    371: AC_SUBST(TME_IC_SUBDIRS)
                    372: AC_SUBST(TME_ICS)
1.1.1.2 ! root      373: AC_SUBST(TME_SERIAL_SUBDIRS)
        !           374: AC_SUBST(TME_SERIALS)
1.1       root      375: AC_SUBST(TME_BUS_SUBDIRS)
1.1.1.2 ! root      376: AC_SUBST(TME_FB_XLAT_SRC)
        !           377: 
        !           378: dnl The list of host support is finished.
1.1       root      379: AC_SUBST(TME_HOSTS)
                    380: 
                    381: dnl Configure for libtool.
                    382: AC_LIBLTDL_INSTALLABLE
                    383: AC_SUBST(INCLTDL)
                    384: AC_SUBST(LIBLTDL)
                    385: AC_LIBTOOL_DLOPEN
                    386: AM_PROG_LIBTOOL
                    387: AC_SUBST(LTLIBOBJS)
                    388: AC_CONFIG_SUBDIRS(libltdl)
                    389: TME_PREOPEN=
                    390: if test $enable_shared = no; then
                    391:   TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
                    392: fi
                    393: AC_SUBST(TME_PREOPEN)
                    394: 
                    395: dnl Configure debugging and/or warnings.
                    396: AC_ARG_ENABLE(debug,
                    397: [  --disable-debug         don't compile debuggable libraries and programs (default=do)],
                    398: [ ], [enable_debug=yes])
                    399: if test "x$enable_debug" = "xyes"; then
                    400:   CFLAGS="${CFLAGS-} -g -O0"
                    401:   CXXFLAGS="${CXXFLAGS-} -g3 -O0"
                    402: fi
                    403: AC_ARG_ENABLE(warnings,
                    404: [  --disable-warnings      don't compile with warnings turned on (default=do)],
                    405: [ ], [enable_warnings=yes])
                    406: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
                    407:   CFLAGS="${CFLAGS-} -Wall -Werror"
                    408:   CXXFLAGS="${CXXFLAGS-} -W"
                    409: fi
                    410: 
                    411: dnl Generate tmeconfig.h.  The whether-to-generate logic is cribbed 
                    412: dnl from glib-1.2.1's configure.in.
                    413: dnl See that file for an explanation.
                    414: AC_OUTPUT_COMMANDS([
                    415:           
                    416: ## Generate our configure-time sources in two 
                    417: ## cases:
                    418: ## 1. `config.status' is run either explicitly, or via configure.
                    419: ##     Esp. not when it is run in `Makefile' to generate makefiles and
                    420: ##     config.h
                    421: ## 2. CONFIG_OTHER is set explicitly
                    422: ##
                    423: ## Case 1 is difficult.  We know that `automake' sets one of
                    424: ## CONFIG_FILES or CONFIG_HEADERS to empty.  This heuristic works
                    425: ## only when AM_CONFIG_HEADER is set, however.
                    426: 
                    427: case "x$CONFIG_OTHER" in
                    428: *tmeconfig.h) gen_tmeconfig_h=yes
                    429: ;;
                    430: esac
                    431: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
                    432:   # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
                    433:   if test "x${CONFIG_OTHER}" = x; then
                    434:     gen_tmeconfig_h=yes
                    435:   fi
                    436: fi
                    437: 
                    438: ## If we're generating tmeconfig.h:
                    439: if test "x$gen_tmeconfig_h" = xyes; then
                    440:   outfile=tmeconfig.h
                    441:   echo "$as_me: creating $outfile"
                    442:   cat <<TMEEOF > ${outfile}-tmp
                    443: /* tmeconfig.h
                    444:  * 
                    445:  * This is an automatically generated file - please modify 'configure.in'.
                    446:  */
                    447: 
                    448: #ifndef _TMECONFIG_H
                    449: #define _TMECONFIG_H
                    450: 
                    451: TMEEOF
1.1.1.2 ! root      452:   (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
1.1       root      453:     grep $word config.h | sed 's/#define[      ]\{1,\}/&_TME_/' ; \
                    454:   done) | sort | uniq >> ${outfile}-tmp
                    455:   echo '#define TME_RELEASE_MAJOR (' \
                    456:     `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
                    457:   echo '#define TME_RELEASE_MINOR (' \
                    458:     `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
                    459:   echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
1.1.1.2 ! root      460:   if test $ac_cv_sizeof_long = 8; then
        !           461:     echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
        !           462:     echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
        !           463:     echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
        !           464:   fi
1.1       root      465:   if test $ac_cv_sizeof_int = 4; then
                    466:     echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
                    467:     echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
                    468:   elif test $ac_cv_sizeof_long = 4; then
                    469:     echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
                    470:     echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
                    471:   fi
                    472:   if test $ac_cv_sizeof_int = 2; then
                    473:     echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
                    474:     echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
                    475:   elif test $ac_cv_sizeof_short = 2; then
                    476:     echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
                    477:     echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
                    478:   fi
                    479:   echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
                    480:   echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
                    481:   cat <<TMEEOF >> ${outfile}-tmp
                    482: 
                    483: /* features that aren't currently controlled by a configure option: */
                    484: #define TME_THREADS_SJLJ
                    485: 
                    486: #endif /* !_TMECONFIG_H */
                    487: TMEEOF
                    488:   if cmp -s ${outfile}-tmp $outfile; then
                    489:     echo "$as_me: $outfile is unchanged"
                    490:     rm -f ${outfile}-tmp
                    491:   else
                    492:     mv ${outfile}-tmp ${outfile}
                    493:   fi
                    494: fi
                    495: ], [
                    496: PACKAGE="$PACKAGE"
                    497: VERSION="$VERSION"
                    498: target="$target"
                    499: ac_cv_sizeof_int="$ac_cv_sizeof_int"
                    500: ac_cv_sizeof_long="$ac_cv_sizeof_long"
                    501: ac_cv_sizeof_short="$ac_cv_sizeof_short"
                    502: ])
                    503: 
                    504: dnl Writes files.
                    505: AC_OUTPUT(Makefile
                    506:          tme/Makefile
                    507:          tme/ic/Makefile
                    508:          tme/machine/Makefile
                    509:          tme/generic/Makefile
1.1.1.2 ! root      510:          tme/scsi/Makefile
1.1       root      511:          libtme/Makefile
                    512:          ic/Makefile
                    513:          ic/m68k/Makefile
                    514:          machine/Makefile
                    515:          machine/sun/Makefile
                    516:          machine/sun2/Makefile
                    517:           host/Makefile
                    518:           host/posix/Makefile
                    519:           host/bsd/Makefile
1.1.1.2 ! root      520:           host/gtk/Makefile
1.1       root      521:           bus/Makefile
                    522:           bus/multibus/Makefile
1.1.1.2 ! root      523:           serial/Makefile
        !           524:           scsi/Makefile
1.1       root      525:           generic/Makefile
                    526:          tmesh/Makefile)
                    527: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.