[BACK]Return to aclocal.m4 CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/aclocal.m4, Revision 1.1.1.2

1.1.1.2 ! maekawa     1: dnl aclocal.m4 generated automatically by aclocal 1.4a
1.1       maekawa     2:
1.1.1.2 ! maekawa     3: dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.1       maekawa     4: dnl This file is free software; the Free Software Foundation
                      5: dnl gives unlimited permission to copy and/or distribute it,
                      6: dnl with or without modifications, as long as this notice is preserved.
                      7:
                      8: dnl This program is distributed in the hope that it will be useful,
                      9: dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
                     10: dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
                     11: dnl PARTICULAR PURPOSE.
                     12:
                     13: # Do all the work for Automake.  This macro actually does too much --
                     14: # some checks are only needed if your package does certain things.
                     15: # But this isn't really a big deal.
                     16:
                     17: # serial 1
                     18:
                     19: dnl Usage:
                     20: dnl AM_INIT_AUTOMAKE(package,version, [no-define])
                     21:
                     22: AC_DEFUN(AM_INIT_AUTOMAKE,
                     23: [AC_REQUIRE([AC_PROG_INSTALL])
1.1.1.2 ! maekawa    24: dnl We require 2.13 because we rely on SHELL being computed by configure.
        !            25: AC_PREREQ([2.13])
1.1       maekawa    26: PACKAGE=[$1]
                     27: AC_SUBST(PACKAGE)
                     28: VERSION=[$2]
                     29: AC_SUBST(VERSION)
                     30: dnl test to see if srcdir already configured
                     31: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
                     32:   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
                     33: fi
                     34: ifelse([$3],,
                     35: AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
                     36: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
                     37: AC_REQUIRE([AM_SANITY_CHECK])
                     38: AC_REQUIRE([AC_ARG_PROGRAM])
                     39: dnl FIXME This is truly gross.
                     40: missing_dir=`cd $ac_aux_dir && pwd`
                     41: AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
                     42: AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
                     43: AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
                     44: AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
                     45: AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1.1.1.2 ! maekawa    46: dnl Set install_sh for make dist
        !            47: install_sh="$missing_dir/install-sh"
        !            48: test -f "$install_sh" || install_sh="$missing_dir/install.sh"
        !            49: AC_SUBST(install_sh)
        !            50: dnl We check for tar when the user configures the end package.
        !            51: dnl This is sad, since we only need this for "dist".  However,
        !            52: dnl there's no other good way to do it.  We prefer GNU tar if
        !            53: dnl we can find it.  If we can't find a tar, it doesn't really matter.
        !            54: AC_CHECK_PROGS(AMTAR, gnutar gtar tar)
        !            55: AMTARFLAGS=
        !            56: if test -n "$AMTAR"; then
        !            57:   if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
        !            58:     dnl We have GNU tar.
        !            59:     AMTARFLAGS=o
        !            60:   fi
        !            61: fi
        !            62: AC_SUBST(AMTARFLAGS)
1.1       maekawa    63: AC_REQUIRE([AC_PROG_MAKE_SET])])
                     64:
                     65: #
                     66: # Check to make sure that the build environment is sane.
                     67: #
                     68:
                     69: AC_DEFUN(AM_SANITY_CHECK,
                     70: [AC_MSG_CHECKING([whether build environment is sane])
                     71: # Just in case
                     72: sleep 1
                     73: echo timestamp > conftestfile
                     74: # Do `set' in a subshell so we don't clobber the current shell's
                     75: # arguments.  Must try -L first in case configure is actually a
                     76: # symlink; some systems play weird games with the mod time of symlinks
                     77: # (eg FreeBSD returns the mod time of the symlink's containing
                     78: # directory).
                     79: if (
                     80:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
                     81:    if test "[$]*" = "X"; then
                     82:       # -L didn't work.
                     83:       set X `ls -t $srcdir/configure conftestfile`
                     84:    fi
                     85:    if test "[$]*" != "X $srcdir/configure conftestfile" \
                     86:       && test "[$]*" != "X conftestfile $srcdir/configure"; then
                     87:
                     88:       # If neither matched, then we have a broken ls.  This can happen
                     89:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                     90:       # broken ls alias from the environment.  This has actually
                     91:       # happened.  Such a system could not be considered "sane".
                     92:       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
                     93: alias in your environment])
                     94:    fi
                     95:
                     96:    test "[$]2" = conftestfile
                     97:    )
                     98: then
                     99:    # Ok.
                    100:    :
                    101: else
                    102:    AC_MSG_ERROR([newly created file is older than distributed files!
                    103: Check your system clock])
                    104: fi
                    105: rm -f conftest*
                    106: AC_MSG_RESULT(yes)])
                    107:
                    108: dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
                    109: dnl The program must properly implement --version.
                    110: AC_DEFUN(AM_MISSING_PROG,
                    111: [AC_MSG_CHECKING(for working $2)
                    112: # Run test in a subshell; some versions of sh will print an error if
                    113: # an executable is not found, even if stderr is redirected.
                    114: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    115: if ($2 --version) < /dev/null > /dev/null 2>&1; then
                    116:    $1=$2
                    117:    AC_MSG_RESULT(found)
                    118: else
                    119:    $1="$3/missing $2"
                    120:    AC_MSG_RESULT(missing)
                    121: fi
                    122: AC_SUBST($1)])
                    123:
                    124:
                    125: # serial 1
                    126:
                    127: AC_DEFUN(AM_C_PROTOTYPES,
                    128: [AC_REQUIRE([AM_PROG_CC_STDC])
                    129: AC_REQUIRE([AC_PROG_CPP])
                    130: AC_MSG_CHECKING([for function prototypes])
                    131: if test "$am_cv_prog_cc_stdc" != no; then
                    132:   AC_MSG_RESULT(yes)
                    133:   AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
                    134:   U= ANSI2KNR=
                    135: else
                    136:   AC_MSG_RESULT(no)
                    137:   U=_ ANSI2KNR=./ansi2knr
                    138:   # Ensure some checks needed by ansi2knr itself.
                    139:   AC_HEADER_STDC
                    140:   AC_CHECK_HEADERS(string.h)
                    141: fi
                    142: AC_SUBST(U)dnl
                    143: AC_SUBST(ANSI2KNR)dnl
                    144: ])
                    145:
                    146:
                    147: # serial 1
                    148:
                    149: # @defmac AC_PROG_CC_STDC
                    150: # @maindex PROG_CC_STDC
                    151: # @ovindex CC
                    152: # If the C compiler in not in ANSI C mode by default, try to add an option
                    153: # to output variable @code{CC} to make it so.  This macro tries various
                    154: # options that select ANSI C on some system or another.  It considers the
                    155: # compiler to be in ANSI C mode if it handles function prototypes correctly.
                    156: #
                    157: # If you use this macro, you should check after calling it whether the C
                    158: # compiler has been set to accept ANSI C; if not, the shell variable
                    159: # @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
                    160: # code in ANSI C, you can make an un-ANSIfied copy of it by using the
                    161: # program @code{ansi2knr}, which comes with Ghostscript.
                    162: # @end defmac
                    163:
                    164: AC_DEFUN(AM_PROG_CC_STDC,
                    165: [AC_REQUIRE([AC_PROG_CC])
                    166: AC_BEFORE([$0], [AC_C_INLINE])
                    167: AC_BEFORE([$0], [AC_C_CONST])
                    168: dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
                    169: dnl a magic option to avoid problems with ANSI preprocessor commands
                    170: dnl like #elif.
                    171: dnl FIXME: can't do this because then AC_AIX won't work due to a
                    172: dnl circular dependency.
                    173: dnl AC_BEFORE([$0], [AC_PROG_CPP])
                    174: AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
                    175: AC_CACHE_VAL(am_cv_prog_cc_stdc,
                    176: [am_cv_prog_cc_stdc=no
                    177: ac_save_CC="$CC"
                    178: # Don't try gcc -ansi; that turns off useful extensions and
                    179: # breaks some systems' header files.
                    180: # AIX                  -qlanglvl=ansi
                    181: # Ultrix and OSF/1     -std1
1.1.1.2 ! maekawa   182: # HP-UX 10.20 and later        -Ae
        !           183: # HP-UX older versions -Aa -D_HPUX_SOURCE
1.1       maekawa   184: # SVR4                 -Xc -D__EXTENSIONS__
1.1.1.2 ! maekawa   185: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1       maekawa   186: do
                    187:   CC="$ac_save_CC $ac_arg"
                    188:   AC_TRY_COMPILE(
                    189: [#include <stdarg.h>
                    190: #include <stdio.h>
                    191: #include <sys/types.h>
                    192: #include <sys/stat.h>
                    193: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                    194: struct buf { int x; };
                    195: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                    196: static char *e (p, i)
                    197:      char **p;
                    198:      int i;
                    199: {
                    200:   return p[i];
                    201: }
                    202: static char *f (char * (*g) (char **, int), char **p, ...)
                    203: {
                    204:   char *s;
                    205:   va_list v;
                    206:   va_start (v,p);
                    207:   s = g (p, va_arg (v,int));
                    208:   va_end (v);
                    209:   return s;
                    210: }
                    211: int test (int i, double x);
                    212: struct s1 {int (*f) (int a);};
                    213: struct s2 {int (*f) (double a);};
                    214: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                    215: int argc;
                    216: char **argv;
                    217: ], [
                    218: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                    219: ],
                    220: [am_cv_prog_cc_stdc="$ac_arg"; break])
                    221: done
                    222: CC="$ac_save_CC"
                    223: ])
                    224: if test -z "$am_cv_prog_cc_stdc"; then
                    225:   AC_MSG_RESULT([none needed])
                    226: else
                    227:   AC_MSG_RESULT($am_cv_prog_cc_stdc)
                    228: fi
                    229: case "x$am_cv_prog_cc_stdc" in
                    230:   x|xno) ;;
                    231:   *) CC="$CC $am_cv_prog_cc_stdc" ;;
                    232: esac
                    233: ])
                    234:
                    235:
                    236: # serial 1
                    237:
1.1.1.2 ! maekawa   238: AC_DEFUN(GP_MSDOS,
1.1       maekawa   239: [AC_MSG_CHECKING(for MS-DOS/djgpp/libGRX)
                    240: AC_EGREP_CPP(yes,
                    241: [#if __DJGPP__ && __DJGPP__ == 2
                    242:   yes
                    243: #endif
1.1.1.2 ! maekawa   244: ],AC_MSG_RESULT(yes)
        !           245:   LIBS="-lpc $LIBS"
        !           246:   AC_DEFINE(MSDOS, 1,
        !           247:             [ Define if this is an MSDOS system. ])
        !           248:   AC_DEFINE(DOS32, 1,
        !           249:             [ Define if this system uses a 32-bit DOS extender (djgpp/emx). ])
        !           250:   with_linux_vga=no
        !           251:   AC_CHECK_LIB(grx20,GrLine,dnl
        !           252:     LIBS="-lgrx20 $LIBS"
        !           253:     CFLAGS="$CFLAGS -fno-inline-functions"
        !           254:     AC_DEFINE(DJSVGA, 1,
        !           255:               [ Define if you want to use libgrx20 with MSDOS/djgpp. ])
        !           256:     AC_CHECK_LIB(grx20,GrCustomLine,dnl
        !           257:       AC_DEFINE(GRX21, 1,
        !           258:                 [ Define if you want to use a newer version of libgrx under MSDOS/djgpp. ])dnl
        !           259:     )dnl
        !           260:   ),dnl
        !           261:   AC_MSG_RESULT(no)
        !           262:   )dnl
1.1       maekawa   263: ])
                    264:
                    265:
                    266:
                    267: # serial 1
                    268:
1.1.1.2 ! maekawa   269: AC_DEFUN(GP_NEXT,
1.1       maekawa   270: [AC_MSG_CHECKING(for NeXT)
                    271: AC_EGREP_CPP(yes,
                    272: [#if __NeXT__
                    273:   yes
                    274: #endif
                    275: ], AC_MSG_RESULT(yes)
                    276:    LIBS="$LIBS -lsys_s -lNeXT_s"
                    277:    CFLAGS="$CFLAGS -ObjC",dnl
                    278:    AC_MSG_RESULT(no))
                    279: ])
                    280:
                    281:
1.1.1.2 ! maekawa   282: dnl testing new version of FUNC_SELECT
        !           283:
        !           284: AC_DEFUN(AC_FUNC_SELECT,
        !           285: [AC_CHECK_FUNCS(select)
        !           286: if test "$ac_cv_func_select" = yes; then
        !           287:   AC_CHECK_HEADERS(unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h)
        !           288:   AC_MSG_CHECKING([argument types of select()])
        !           289:   AC_CACHE_VAL(ac_cv_type_fd_set_size_t,dnl
        !           290:     [AC_CACHE_VAL(ac_cv_type_fd_set,dnl
        !           291:       [for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do
        !           292:         for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do
        !           293:          for ac_type_timeval in 'struct timeval' 'const struct timeval'; do
        !           294:             AC_TRY_COMPILE(dnl
        !           295: [#ifdef HAVE_SYS_TIME_H
        !           296: #include <sys/time.h>
        !           297: #endif
        !           298: #ifdef HAVE_SYS_TYPES_H
        !           299: #include <sys/types.h>
        !           300: #endif
        !           301: #ifdef HAVE_UNISTD_H
        !           302: #include <unistd.h>
        !           303: #endif
        !           304: #ifdef HAVE_SYS_SELECT_H
        !           305: #include <sys/select.h>
        !           306: #endif
        !           307: #ifdef HAVE_SYS_SOCKET_H
        !           308: #include <sys/socket.h>
        !           309: #endif],
        !           310: [#ifdef __STDC__
        !           311: extern int select ($ac_cv_type_fd_set_size_t,
        !           312:  $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, $ac_cv_type_fd_set *,
        !           313:  $ac_type_timeval *);
        !           314: #else
        !           315: extern int select ();
        !           316:   $ac_cv_type_fd_set_size_t s;
        !           317:   $ac_cv_type_fd_set *p;
        !           318:   $ac_type_timeval *t;
        !           319: #endif],
        !           320: [ac_found=yes ; break 3],ac_found=no)
        !           321:           done
        !           322:         done
        !           323:       done
        !           324:     ])dnl AC_CACHE_VAL
        !           325:   ])dnl AC_CACHE_VAL
        !           326:   if test "$ac_found" = no; then
        !           327:     AC_MSG_ERROR([can't determine argument types])
        !           328:   fi
        !           329:
        !           330:   AC_MSG_RESULT([select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)])
        !           331:   AC_DEFINE_UNQUOTED(fd_set_size_t, $ac_cv_type_fd_set_size_t,
        !           332:                      [ First arg for select(). ])
        !           333:   ac_cast=
        !           334:   if test "$ac_cv_type_fd_set" != fd_set; then
        !           335:     # Arguments 2-4 are not fd_set.  Some weirdo systems use fd_set type for
        !           336:     # FD_SET macros, but insist that you cast the argument to select.  I don't
        !           337:     # understand why that might be, but it means we cannot define fd_set.
        !           338:     AC_EGREP_CPP(dnl
        !           339: changequote(<<,>>)dnl
        !           340: <<(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]>>dnl
        !           341: changequote([,]),dnl
        !           342: [#ifdef HAVE_SYS_TIME_H
        !           343: #include <sys/time.h>
        !           344: #endif
        !           345: #ifdef HAVE_SYS_TYPES_H
        !           346: #include <sys/types.h>
        !           347: #endif
        !           348: #ifdef HAVE_UNISTD_H
        !           349: #include <unistd.h>
        !           350: #endif
        !           351: #ifdef HAVE_SYS_SELECT_H
        !           352: #include <sys/select.h>
        !           353: #endif
        !           354: #ifdef HAVE_SYS_SOCKET_H
        !           355: #include <sys/socket.h>
        !           356: #endif],dnl
        !           357:     # We found fd_set type in a header, need special cast
        !           358:     ac_cast="($ac_cv_type_fd_set *)",dnl
        !           359:     # No fd_set type; it is safe to define it
        !           360:     AC_DEFINE_UNQUOTED(fd_set,$ac_cv_type_fd_set,
        !           361:                        [ Define if the type in arguments 2-4 to select() is fd_set. ]))
        !           362:   fi
        !           363:   AC_DEFINE_UNQUOTED(SELECT_FD_SET_CAST,$ac_cast,
        !           364:                      [ Define if the type in arguments 2-4 to select() is fd_set. ])
        !           365: fi
        !           366: ])
1.1       maekawa   367:
                    368:
1.1.1.2 ! maekawa   369:
        !           370: # serial 2
        !           371:
        !           372: dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, OTHER-LIBRARIES])
        !           373: AC_DEFUN(GP_CHECK_LIB_QUIET,
1.1       maekawa   374: [ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
                    375: ac_save_LIBS="$LIBS"
1.1.1.2 ! maekawa   376: LIBS="$TERMLIBS $TERMXLIBS -l$1 $3 $LIBS"
1.1       maekawa   377: AC_TRY_LINK(dnl
                    378: ifelse([$2], [main], , dnl Avoid conflicting decl of main.
                    379: [/* Override any gcc2 internal prototype to avoid an error.  */
                    380: ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
                    381: extern "C"
                    382: #endif
                    383: ])dnl
                    384: [/* We use char because int might match the return type of a gcc2
                    385:     builtin and then its argument prototype would still apply.  */
                    386: char $2();
                    387: ]),
                    388:             [$2()],
                    389:             eval "ac_cv_lib_$ac_lib_var=yes",
                    390:             eval "ac_cv_lib_$ac_lib_var=no")
                    391: LIBS="$ac_save_LIBS"
                    392: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1.1.2 ! maekawa   393: changequote(, )dnl
1.1       maekawa   394:   ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                    395:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                    396: changequote([, ])dnl
1.1.1.2 ! maekawa   397: dnl  LIBS="$LIBS -l$1"
1.1       maekawa   398: fi
                    399: ])
                    400:
                    401:
1.1.1.2 ! maekawa   402: # serial 2
1.1       maekawa   403:
1.1.1.2 ! maekawa   404: dnl GP_PATH_LIB(LIBRARY, FUNCTION, SEARCH-DIRS [, OTHER-LIBRARIES])
        !           405: AC_DEFUN(GP_PATH_LIB,
        !           406: [ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
1.1       maekawa   407: changequote(, )dnl
                    408:   gp_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                    409:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                    410: changequote([, ])dnl
1.1.1.2 ! maekawa   411: AC_MSG_CHECKING([for $2 in -l$1])
        !           412: AC_CACHE_VAL(ac_cv_lib_$ac_lib_var,
        !           413: [gp_save_TERMLIBS="$TERMLIBS"
        !           414: if test "$3" != yes && test "$3" != no; then
        !           415:   gp_l_path=`echo "$3" | sed -e 's%/lib$1\.a$%%'`
        !           416:   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`
        !           417:   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"
        !           418: fi
        !           419: for ac_dir in $gp_l_list '' /usr/local/lib ; do
        !           420:   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"
        !           421:   GP_CHECK_LIB_QUIET($1,$2,$4)
        !           422:   TERMLIBS="$gp_save_TERMLIBS"
        !           423:   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !           424:     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"
        !           425:     break
        !           426:   fi
1.1       maekawa   427: done
1.1.1.2 ! maekawa   428: ])
        !           429: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then
        !           430:   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then
        !           431:     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""
        !           432:   fi
        !           433:   TERMLIBS="$TERMLIBS -l$1"
1.1       maekawa   434:   AC_MSG_RESULT(yes)
                    435: else
                    436:   AC_MSG_RESULT(no)
                    437: fi
                    438: ])
                    439:
                    440:
                    441:
1.1.1.2 ! maekawa   442: # serial 2
1.1       maekawa   443:
1.1.1.2 ! maekawa   444: dnl GP_PATH_HEADER(HEADER-FILE, SEARCH-DIRS [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]])
        !           445: AC_DEFUN(GP_PATH_HEADER,
        !           446: [ac_safe=`echo "$1" | sed 'y%./+-%__p_%'`
        !           447: changequote(, )dnl
        !           448:   ac_tr_hdr=HAVE_`echo $1 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
        !           449: changequote([, ])dnl
1.1       maekawa   450: AC_MSG_CHECKING([for $1])
1.1.1.2 ! maekawa   451: AC_CACHE_VAL(ac_cv_header_$ac_safe,
        !           452: [gp_save_CPPFLAGS="$CPPFLAGS"
        !           453: if test "$2" != yes && test "$2" != no; then
        !           454:   gp_h_path=`echo "$2" | sed -e 's%/lib$1\.a$%%'`
        !           455:   gp_h_prfx=`echo "$gp_h_path" | sed -e 's%/lib$%%' -e 's%/include$%%'`
        !           456:   gp_h_list="$gp_h_prfx $gp_h_prfx/include $gp_h_path"
        !           457: else
        !           458:   gp_h_list=''
        !           459: fi
        !           460: for ac_dir in $gp_h_list '' /usr/local/include ; do
        !           461:   test x${ac_dir} != x && CPPFLAGS="$gp_save_CPPFLAGS -I${ac_dir}"
        !           462:   AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=${ac_dir}",
1.1       maekawa   463:     eval "ac_cv_header_$ac_safe=no")
1.1.1.2 ! maekawa   464:   CPPFLAGS="$gp_save_CPPFLAGS"
        !           465:   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then
1.1       maekawa   466:     break
                    467:   fi
                    468: done
1.1.1.2 ! maekawa   469: ])
        !           470: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then
        !           471:   if eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != x" && eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != xyes"; then
        !           472:     eval "CPPFLAGS=\"$gp_save_CPPFLAGS -I`echo '$ac_cv_header_'$ac_safe`\""
        !           473:   fi
        !           474:   AC_DEFINE_UNQUOTED($ac_tr_hdr)
1.1       maekawa   475:   AC_MSG_RESULT(yes)
1.1.1.2 ! maekawa   476:   ifelse([$3], , :, [$3])
1.1       maekawa   477: else
                    478:   AC_MSG_RESULT(no)
1.1.1.2 ! maekawa   479: ifelse([$4], , , [$4
1.1       maekawa   480: ])dnl
                    481: fi
                    482: ])
                    483:
                    484:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>