X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/99cc1092a89292c6e6db2db537988e5963b19868..03d1294977333b23b91e24c3b0b7ddf9cab26cfc:/libguile/gen-scmconfig.c diff --git a/libguile/gen-scmconfig.c b/libguile/gen-scmconfig.c index 422f826c3..11020cfb2 100644 --- a/libguile/gen-scmconfig.c +++ b/libguile/gen-scmconfig.c @@ -1,3 +1,20 @@ +/* Copyright (C) 2003-2013 Free Software Foundation, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 3 of + * the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ /********************************************************************** @@ -149,18 +166,17 @@ main (int argc, char *argv[]) pf ("/* limits.h not available */\n"); #endif -# ifdef TIME_WITH_SYS_TIME +#if HAVE_SYS_TIME_H pf ("#include \n"); +#else + pf ("/* sys/time.h not available */\n"); +#endif + +#if HAVE_TIME_H pf ("#include \n"); -# else -# ifdef HAVE_SYS_TIME_H - pf ("#include \n"); -# else -# ifdef HAVE_TIME_H - pf ("#include \n"); -# endif -# endif -# endif +#else + pf ("/* time.h not available */\n"); +#endif pf("\n"); #ifdef STDC_HEADERS @@ -269,7 +285,7 @@ main (int argc, char *argv[]) pf ("typedef %s scm_t_uint64;\n", SCM_I_GSC_T_UINT64); pf ("\n"); - pf ("/* scm_t_ptrdiff_t and size, always defined -- defined to long if\n" + pf ("/* scm_t_ptrdiff and size, always defined -- defined to long if\n" " platform doesn't have ptrdiff_t. */\n"); pf ("typedef %s scm_t_ptrdiff;\n", SCM_I_GSC_T_PTRDIFF); if (0 == strcmp ("long", SCM_I_GSC_T_PTRDIFF)) @@ -285,7 +301,7 @@ main (int argc, char *argv[]) pf ("\n"); pf ("/* same as POSIX \"struct timespec\" -- always defined */\n"); -#ifdef HAVE_STRUCT_TIMESPEC +#ifdef HAVE_SYSTEM_STRUCT_TIMESPEC pf ("typedef struct timespec scm_t_timespec;\n"); #else pf ("/* POSIX.4 structure for a time value. This is like a `struct timeval'"