# HG changeset patch # User jwe # Date 822516622 0 # Node ID b7de2fd2be6b155d838ba904cfc95539d6a87c8f # Parent ebc1a0b2e854388e167ce48f9418c040302cd7db [project @ 1996-01-24 20:47:58 by jwe] diff --git a/acconfig.h b/acconfig.h --- a/acconfig.h +++ b/acconfig.h @@ -26,6 +26,9 @@ /* Define if your gnuplot has mutliplot. */ #undef GNUPLOT_HAS_MULTIPLOT +/* Define if your system has program_invocation_name. */ +#undef HAVE_PROGRAM_INVOCATION_NAME + /* Define if your system has a sys_siglist variable. */ #undef HAVE_SYS_SIGLIST diff --git a/aclocal.m4 b/aclocal.m4 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -402,3 +402,16 @@ if test $octave_cv_func_putenv_malloc = yes; then AC_DEFINE(SMART_PUTENV) fi]) +dnl +dnl This is a GNU libc invention, and this check is also from Karl +dnl Berry's kpathsea library. +dnl +AC_DEFUN(OCTAVE_PROGRAM_INVOCATION_NAME, +[AC_MSG_CHECKING(whether program_invocation_name is predefined) +AC_CACHE_VAL(octave_cv_var_program_inv_name, +[AC_TRY_LINK(, [main() { program_invocation_name = "love"; }], + octave_cv_var_program_inv_name=yes, octave_cv_var_program_inv_name=no)])dnl +AC_MSG_RESULT($octave_cv_var_program_inv_name) +if test $octave_cv_var_program_inv_name = yes; then + AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME) +fi]) diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -20,7 +20,7 @@ ### along with Octave; see the file COPYING. If not, write to the Free ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -AC_REVISION($Revision: 1.155 $) +AC_REVISION($Revision: 1.156 $) AC_PREREQ(2.0) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -638,7 +638,7 @@ AC_DEFINE(FSQP_MISSING, 1) fi -### Checks for functions. +### Checks for functions and variables. AC_CHECK_FUNCS(setvbuf getcwd gethostname bzero bcopy rindex vfprintf vsprintf) AC_CHECK_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror atexit) @@ -647,6 +647,7 @@ AC_CHECK_FUNCS(sigaction sigprocmask sigpending sigsuspend) OCTAVE_SMART_PUTENV +OCTAVE_PROGRAM_INVOCATION_NAME AC_CHECK_LIB(dl, dlopen) AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)