Diff of /configure [0f08c4] .. [0f7a81] Maximize Restore

  Switch to unified view

a/configure b/configure
1
#! /bin/sh
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for rjags 3.
3
# Generated by GNU Autoconf 2.69 for rjags 4.
4
#
4
#
5
#
5
#
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8
# Foundation, Inc.
9
#
7
#
10
#
8
#
11
# This configure script is free software; the Free Software Foundation
9
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
10
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
11
## -------------------- ##
...
...
132
export LANGUAGE
130
export LANGUAGE
133
131
134
# CDPATH.
132
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
134
135
# Use a proper internal environment variable to ensure we don't fall
136
  # into an infinite loop, continuously re-executing ourselves.
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
    _as_can_reexec=no; export _as_can_reexec;
139
    # We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
137
if test "x$CONFIG_SHELL" = x; then
160
if test "x$CONFIG_SHELL" = x; then
138
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139
  emulate sh
162
  emulate sh
140
  NULLCMD=:
163
  NULLCMD=:
141
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
...
...
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
189
167
else
190
else
168
  exitcode=1; echo positional parameters were not saved.
191
  exitcode=1; echo positional parameters were not saved.
169
fi
192
fi
170
test x\$exitcode = x0 || exit 1"
193
test x\$exitcode = x0 || exit 1
194
test -x / || exit 1"
171
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
test \$(( 1 + 1 )) = 2 || exit 1"
199
test \$(( 1 + 1 )) = 2 || exit 1"
...
...
210
fi; }
234
fi; }
211
IFS=$as_save_IFS
235
IFS=$as_save_IFS
212
236
213
237
214
      if test "x$CONFIG_SHELL" != x; then :
238
      if test "x$CONFIG_SHELL" != x; then :
239
  export CONFIG_SHELL
215
  # We cannot yet assume a decent shell, so we have to provide a
240
             # We cannot yet assume a decent shell, so we have to provide a
216
  # neutralization value for shells without unset; and this also
241
# neutralization value for shells without unset; and this also
217
  # works around shells that cannot unset nonexistent variables.
242
# works around shells that cannot unset nonexistent variables.
218
  # Preserve -v and -x to the replacement shell.
243
# Preserve -v and -x to the replacement shell.
219
  BASH_ENV=/dev/null
244
BASH_ENV=/dev/null
220
  ENV=/dev/null
245
ENV=/dev/null
221
  (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
  export CONFIG_SHELL
223
  case $- in # ((((
247
case $- in # ((((
224
    *v*x* | *x*v* ) as_opts=-vx ;;
248
  *v*x* | *x*v* ) as_opts=-vx ;;
225
    *v* ) as_opts=-v ;;
249
  *v* ) as_opts=-v ;;
226
    *x* ) as_opts=-x ;;
250
  *x* ) as_opts=-x ;;
227
    * ) as_opts= ;;
251
  * ) as_opts= ;;
228
  esac
252
esac
229
  exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
exit 255
230
fi
258
fi
231
259
232
    if test x$as_have_required = xno; then :
260
    if test x$as_have_required = xno; then :
233
  $as_echo "$0: This script requires a shell more modern than all"
261
  $as_echo "$0: This script requires a shell more modern than all"
234
  $as_echo "$0: the shells that I found on your system."
262
  $as_echo "$0: the shells that I found on your system."
...
...
326
    test -z "$as_dirs" || eval "mkdir $as_dirs"
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
327
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
356
329
357
330
} # as_fn_mkdir_p
358
} # as_fn_mkdir_p
359
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
364
{
365
  test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
331
# as_fn_append VAR VALUE
367
# as_fn_append VAR VALUE
332
# ----------------------
368
# ----------------------
333
# Append the text in VALUE to the end of the definition contained in VAR. Take
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
334
# advantage of any shell optimizations that allow amortized linear growth over
370
# advantage of any shell optimizations that allow amortized linear growth over
335
# repeated appends, instead of the typical quadratic growth present in naive
371
# repeated appends, instead of the typical quadratic growth present in naive
...
...
447
      s/-\n.*//
483
      s/-\n.*//
448
    ' >$as_me.lineno &&
484
    ' >$as_me.lineno &&
449
  chmod +x "$as_me.lineno" ||
485
  chmod +x "$as_me.lineno" ||
450
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
487
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
  # already done that, so ensure we don't try to do so again and fall
490
  # in an infinite loop.  This has already happened in practice.
491
  _as_can_reexec=no; export _as_can_reexec
452
  # Don't try to exec as it changes $[0], causing all sort of problems
492
  # Don't try to exec as it changes $[0], causing all sort of problems
453
  # (the dirname of $[0] is not the place where we might find the
493
  # (the dirname of $[0] is not the place where we might find the
454
  # original and so on.  Autoconf is especially sensitive to this).
494
  # original and so on.  Autoconf is especially sensitive to this).
455
  . "./$as_me.lineno"
495
  . "./$as_me.lineno"
456
  # Exit status is that of the last command.
496
  # Exit status is that of the last command.
...
...
481
  if ln -s conf$$.file conf$$ 2>/dev/null; then
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
482
    as_ln_s='ln -s'
522
    as_ln_s='ln -s'
483
    # ... but there are two gotchas:
523
    # ... but there are two gotchas:
484
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486
    # In both cases, we have to default to `cp -p'.
526
    # In both cases, we have to default to `cp -pR'.
487
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488
      as_ln_s='cp -p'
528
      as_ln_s='cp -pR'
489
  elif ln conf$$.file conf$$ 2>/dev/null; then
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
490
    as_ln_s=ln
530
    as_ln_s=ln
491
  else
531
  else
492
    as_ln_s='cp -p'
532
    as_ln_s='cp -pR'
493
  fi
533
  fi
494
else
534
else
495
  as_ln_s='cp -p'
535
  as_ln_s='cp -pR'
496
fi
536
fi
497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498
rmdir conf$$.dir 2>/dev/null
538
rmdir conf$$.dir 2>/dev/null
499
539
500
if mkdir -p . 2>/dev/null; then
540
if mkdir -p . 2>/dev/null; then
...
...
502
else
542
else
503
  test -d ./-p && rmdir ./-p
543
  test -d ./-p && rmdir ./-p
504
  as_mkdir_p=false
544
  as_mkdir_p=false
505
fi
545
fi
506
546
507
if test -x / >/dev/null 2>&1; then
508
  as_test_x='test -x'
547
as_test_x='test -x'
509
else
548
as_executable_p=as_fn_executable_p
510
  if ls -dL / >/dev/null 2>&1; then
511
    as_ls_L_option=L
512
  else
513
    as_ls_L_option=
514
  fi
515
  as_test_x='
516
    eval sh -c '\''
517
      if test -d "$1"; then
518
  test -d "$1/.";
519
      else
520
  case $1 in #(
521
  -*)set "./$1";;
522
  esac;
523
  case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524
  ???[sx]*):;;*)false;;esac;fi
525
    '\'' sh
526
  '
527
fi
528
as_executable_p=$as_test_x
529
549
530
# Sed expression to map a string onto a valid CPP name.
550
# Sed expression to map a string onto a valid CPP name.
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
552
533
# Sed expression to map a string onto a valid variable name.
553
# Sed expression to map a string onto a valid variable name.
...
...
555
MAKEFLAGS=
575
MAKEFLAGS=
556
576
557
# Identity of this package.
577
# Identity of this package.
558
PACKAGE_NAME='rjags'
578
PACKAGE_NAME='rjags'
559
PACKAGE_TARNAME='rjags'
579
PACKAGE_TARNAME='rjags'
560
PACKAGE_VERSION='3'
580
PACKAGE_VERSION='4'
561
PACKAGE_STRING='rjags 3'
581
PACKAGE_STRING='rjags 4'
562
PACKAGE_BUGREPORT=''
582
PACKAGE_BUGREPORT=''
563
PACKAGE_URL=''
583
PACKAGE_URL=''
564
584
565
# Factoring default headers for most tests.
585
# Factoring default headers for most tests.
566
ac_includes_default="\
586
ac_includes_default="\
...
...
599
#endif"
619
#endif"
600
620
601
ac_subst_vars='LTLIBOBJS
621
ac_subst_vars='LTLIBOBJS
602
LIBOBJS
622
LIBOBJS
603
JAGS_RPATH
623
JAGS_RPATH
604
JAGS_MODULES
624
JAGS_MODDIR
605
JAGS_LIB
625
JAGS_LIBDIR
606
JAGS_INCLUDE
626
JAGS_PKGINCLUDEDIR
607
ac_ct_CC
627
ac_ct_CC
608
CFLAGS
628
CFLAGS
609
CC
629
CC
610
EGREP
630
EGREP
611
GREP
631
GREP
...
...
657
PATH_SEPARATOR
677
PATH_SEPARATOR
658
SHELL'
678
SHELL'
659
ac_subst_files=''
679
ac_subst_files=''
660
ac_user_opts='
680
ac_user_opts='
661
enable_option_checking
681
enable_option_checking
682
with_jags_prefix
662
with_jags_include
683
with_jags_includedir
663
with_jags_lib
684
with_jags_libdir
664
enable_rpath
685
enable_rpath
665
with_jags_modules
666
'
686
'
667
      ac_precious_vars='build_alias
687
      ac_precious_vars='build_alias
668
host_alias
688
host_alias
669
target_alias
689
target_alias
670
CXX
690
CXX
...
...
1129
1149
1130
# FIXME: To remove some day.
1150
# FIXME: To remove some day.
1131
if test "x$host_alias" != x; then
1151
if test "x$host_alias" != x; then
1132
  if test "x$build_alias" = x; then
1152
  if test "x$build_alias" = x; then
1133
    cross_compiling=maybe
1153
    cross_compiling=maybe
1134
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1135
    If a cross compiler is detected then cross compile mode will be used" >&2
1136
  elif test "x$build_alias" != "x$host_alias"; then
1154
  elif test "x$build_alias" != "x$host_alias"; then
1137
    cross_compiling=yes
1155
    cross_compiling=yes
1138
  fi
1156
  fi
1139
fi
1157
fi
1140
1158
...
...
1216
#
1234
#
1217
if test "$ac_init_help" = "long"; then
1235
if test "$ac_init_help" = "long"; then
1218
  # Omit some internal or obsolete options to make the list less imposing.
1236
  # Omit some internal or obsolete options to make the list less imposing.
1219
  # This message is too long to be a string in the A/UX 3.1 sh.
1237
  # This message is too long to be a string in the A/UX 3.1 sh.
1220
  cat <<_ACEOF
1238
  cat <<_ACEOF
1221
\`configure' configures rjags 3 to adapt to many kinds of systems.
1239
\`configure' configures rjags 4 to adapt to many kinds of systems.
1222
1240
1223
Usage: $0 [OPTION]... [VAR=VALUE]...
1241
Usage: $0 [OPTION]... [VAR=VALUE]...
1224
1242
1225
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226
VAR=VALUE.  See below for descriptions of some of the useful variables.
1244
VAR=VALUE.  See below for descriptions of some of the useful variables.
...
...
1277
_ACEOF
1295
_ACEOF
1278
fi
1296
fi
1279
1297
1280
if test -n "$ac_init_help"; then
1298
if test -n "$ac_init_help"; then
1281
  case $ac_init_help in
1299
  case $ac_init_help in
1282
     short | recursive ) echo "Configuration of rjags 3:";;
1300
     short | recursive ) echo "Configuration of rjags 4:";;
1283
   esac
1301
   esac
1284
  cat <<\_ACEOF
1302
  cat <<\_ACEOF
1285
1303
1286
Optional Features:
1304
Optional Features:
1287
  --disable-option-checking  ignore unrecognized --enable/--with options
1305
  --disable-option-checking  ignore unrecognized --enable/--with options
...
...
1290
  --enable-rpath          Hard link the location of the JAGS library
1308
  --enable-rpath          Hard link the location of the JAGS library
1291
1309
1292
Optional Packages:
1310
Optional Packages:
1293
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1311
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1294
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1312
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1313
  --with-jags-prefix=PREFIX_PATH
1314
                          the prefix used when JAGS was installed
1295
  --with-jags-include=INCLUDE_PATH
1315
  --with-jags-includedir=INCLUDE_PATH
1296
                          the location of JAGS header files
1316
                          the value of includedir used when JAGS was installed
1297
  --with-jags-lib=LIB_PATH
1317
  --with-jags-libdir=LIB_PATH
1298
                          the location of the JAGS library
1318
                          the value of libdir used when JAGS was installed
1299
  --with-jags-modules=MOD_PATH
1300
                          the location of the JAGS modules
1301
1319
1302
Some influential environment variables:
1320
Some influential environment variables:
1303
  CXX         C++ compiler command
1321
  CXX         C++ compiler command
1304
  CXXFLAGS    C++ compiler flags
1322
  CXXFLAGS    C++ compiler flags
1305
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1323
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
...
...
1375
fi
1393
fi
1376
1394
1377
test -n "$ac_init_help" && exit $ac_status
1395
test -n "$ac_init_help" && exit $ac_status
1378
if $ac_init_version; then
1396
if $ac_init_version; then
1379
  cat <<\_ACEOF
1397
  cat <<\_ACEOF
1380
rjags configure 3
1398
rjags configure 4
1381
generated by GNU Autoconf 2.68
1399
generated by GNU Autoconf 2.69
1382
1400
1383
Copyright (C) 2010 Free Software Foundation, Inc.
1401
Copyright (C) 2012 Free Software Foundation, Inc.
1384
This configure script is free software; the Free Software Foundation
1402
This configure script is free software; the Free Software Foundation
1385
gives unlimited permission to copy, distribute and modify it.
1403
gives unlimited permission to copy, distribute and modify it.
1386
_ACEOF
1404
_ACEOF
1387
  exit
1405
  exit
1388
fi
1406
fi
...
...
1689
  test $ac_status = 0; } && {
1707
  test $ac_status = 0; } && {
1690
     test -z "$ac_c_werror_flag" ||
1708
     test -z "$ac_c_werror_flag" ||
1691
     test ! -s conftest.err
1709
     test ! -s conftest.err
1692
       } && test -s conftest$ac_exeext && {
1710
       } && test -s conftest$ac_exeext && {
1693
     test "$cross_compiling" = yes ||
1711
     test "$cross_compiling" = yes ||
1694
     $as_test_x conftest$ac_exeext
1712
     test -x conftest$ac_exeext
1695
       }; then :
1713
       }; then :
1696
  ac_retval=0
1714
  ac_retval=0
1697
else
1715
else
1698
  $as_echo "$as_me: failed program was:" >&5
1716
  $as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
...
...
1711
} # ac_fn_c_try_link
1729
} # ac_fn_c_try_link
1712
cat >config.log <<_ACEOF
1730
cat >config.log <<_ACEOF
1713
This file contains any messages produced by compilers while
1731
This file contains any messages produced by compilers while
1714
running configure, to aid debugging if configure makes a mistake.
1732
running configure, to aid debugging if configure makes a mistake.
1715
1733
1716
It was created by rjags $as_me 3, which was
1734
It was created by rjags $as_me 4, which was
1717
generated by GNU Autoconf 2.68.  Invocation command line was
1735
generated by GNU Autoconf 2.69.  Invocation command line was
1718
1736
1719
  $ $0 $@
1737
  $ $0 $@
1720
1738
1721
_ACEOF
1739
_ACEOF
1722
exec 5>>config.log
1740
exec 5>>config.log
...
...
2069
CXX=`"${R_HOME}/bin/R" CMD config CXX`
2087
CXX=`"${R_HOME}/bin/R" CMD config CXX`
2070
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
2088
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
2071
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2089
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2072
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2090
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2073
2091
2092
# Guess the installation prefix from location of the jags executable
2093
2074
if test "x$prefix" = xNONE; then
2094
if test "x$prefix" = xNONE; then
2075
  $as_echo_n "checking for prefix by " >&6
2095
  $as_echo_n "checking for prefix by " >&6
2076
  # Extract the first word of "jags", so it can be a program name with args.
2096
  # Extract the first word of "jags", so it can be a program name with args.
2077
set dummy jags; ac_word=$2
2097
set dummy jags; ac_word=$2
2078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
...
...
2089
for as_dir in $PATH
2109
for as_dir in $PATH
2090
do
2110
do
2091
  IFS=$as_save_IFS
2111
  IFS=$as_save_IFS
2092
  test -z "$as_dir" && as_dir=.
2112
  test -z "$as_dir" && as_dir=.
2093
    for ac_exec_ext in '' $ac_executable_extensions; do
2113
    for ac_exec_ext in '' $ac_executable_extensions; do
2094
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095
    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2115
    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2116
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2097
    break 2
2117
    break 2
2098
  fi
2118
  fi
2099
done
2119
done
...
...
2162
      s/.*/./; q'`
2182
      s/.*/./; q'`
2163
  fi
2183
  fi
2164
fi
2184
fi
2165
2185
2166
2186
2167
#Set optional include path with option --with-jags-include or
2187
# For installations in a non-standard location, set the prefix
2168
#environment variable JAGS_INCLUDE
2188
# manually, using either option --with-jags-prefix or environment
2189
# variable JAGS_PREFIX. Otherwise we accept the guess from
2190
# AC_PREFIX_PROGRAM.
2169
2191
2170
2192
2171
# Check whether --with-jags-include was given.
2193
# Check whether --with-jags-prefix was given.
2172
if test "${with_jags_include+set}" = set; then :
2194
if test "${with_jags_prefix+set}" = set; then :
2173
  withval=$with_jags_include; jags_include_path=$withval
2195
  withval=$with_jags_prefix; jags_prefix_path=$withval
2174
fi
2196
fi
2175
2197
2176
if test  -n "$jags_include_path"  ; then
2198
if test  -n "$jags_prefix_path"  ; then
2177
   JAGS_INCLUDE=${jags_include_path}
2199
   JAGS_PREFIX=${jags_prefix_path}
2178
else
2200
else
2179
   if test  -z "${JAGS_INCLUDE}"  ; then
2201
   if test  -z "${JAGS_PREFIX}"  ; then
2180
      if test  "$prefix" = "NONE" ; then
2202
      if test  "$prefix" = "NONE" ; then
2181
         as_fn_error $? "\"Location of JAGS headers not defined. Use configure arg '--with-jags-include' or environment variable 'JAGS_INCLUDE'\"" "$LINENO" 5
2203
         as_fn_error $? "\"Automatic detection of JAGS failed. Please supply the prefix for JAGS with the --with-jags-prefix option. See the README file for details.\"" "$LINENO" 5
2182
      else
2204
      else
2183
         JAGS_INCLUDE=${prefix}/include/JAGS
2205
         JAGS_PREFIX=${prefix}
2184
      fi
2206
      fi
2185
   fi
2207
   fi
2186
fi
2208
fi
2209
2210
# Set include path with option --with-jags-includedir or environment
2211
# variable JAGS_INCLUDEDIR. By default, this is determined from
2212
# JAGS_PREFIX.
2213
2214
2215
# Check whether --with-jags-includedir was given.
2216
if test "${with_jags_includedir+set}" = set; then :
2217
  withval=$with_jags_includedir; jags_include_path=$withval
2218
fi
2219
2220
if test  -n "$jags_include_path"  ; then
2221
   JAGS_INCLUDEDIR=${jags_include_path}
2222
else
2223
   if test  -z "${JAGS_INCLUDEDIR}"  ; then
2224
      JAGS_INCLUDEDIR=${JAGS_PREFIX}/include
2225
   fi
2226
fi
2227
JAGS_PKGINCLUDEDIR=${JAGS_INCLUDEDIR}/JAGS
2187
2228
2188
ac_ext=cpp
2229
ac_ext=cpp
2189
ac_cpp='$CXXCPP $CPPFLAGS'
2230
ac_cpp='$CXXCPP $CPPFLAGS'
2190
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2233
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2193
2234
2194
OCPPFLAGS=${CPPFLAGS}
2235
OCPPFLAGS=${CPPFLAGS}
2195
CPPFLAGS=-I${JAGS_INCLUDE}
2236
CPPFLAGS=-I${JAGS_PKGINCLUDEDIR}
2196
ac_ext=cpp
2237
ac_ext=cpp
2197
ac_cpp='$CXXCPP $CPPFLAGS'
2238
ac_cpp='$CXXCPP $CPPFLAGS'
2198
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
...
...
2219
for as_dir in $PATH
2260
for as_dir in $PATH
2220
do
2261
do
2221
  IFS=$as_save_IFS
2262
  IFS=$as_save_IFS
2222
  test -z "$as_dir" && as_dir=.
2263
  test -z "$as_dir" && as_dir=.
2223
    for ac_exec_ext in '' $ac_executable_extensions; do
2264
    for ac_exec_ext in '' $ac_executable_extensions; do
2224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2266
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2226
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2227
    break 2
2268
    break 2
2228
  fi
2269
  fi
2229
done
2270
done
...
...
2263
for as_dir in $PATH
2304
for as_dir in $PATH
2264
do
2305
do
2265
  IFS=$as_save_IFS
2306
  IFS=$as_save_IFS
2266
  test -z "$as_dir" && as_dir=.
2307
  test -z "$as_dir" && as_dir=.
2267
    for ac_exec_ext in '' $ac_executable_extensions; do
2308
    for ac_exec_ext in '' $ac_executable_extensions; do
2268
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2310
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2270
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2311
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2271
    break 2
2312
    break 2
2272
  fi
2313
  fi
2273
done
2314
done
...
...
2849
  IFS=$as_save_IFS
2890
  IFS=$as_save_IFS
2850
  test -z "$as_dir" && as_dir=.
2891
  test -z "$as_dir" && as_dir=.
2851
    for ac_prog in grep ggrep; do
2892
    for ac_prog in grep ggrep; do
2852
    for ac_exec_ext in '' $ac_executable_extensions; do
2893
    for ac_exec_ext in '' $ac_executable_extensions; do
2853
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2894
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2854
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2895
      as_fn_executable_p "$ac_path_GREP" || continue
2855
# Check for GNU ac_path_GREP and select it if it is found.
2896
# Check for GNU ac_path_GREP and select it if it is found.
2856
  # Check for GNU $ac_path_GREP
2897
  # Check for GNU $ac_path_GREP
2857
case `"$ac_path_GREP" --version 2>&1` in
2898
case `"$ac_path_GREP" --version 2>&1` in
2858
*GNU*)
2899
*GNU*)
2859
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2900
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
...
...
2915
  IFS=$as_save_IFS
2956
  IFS=$as_save_IFS
2916
  test -z "$as_dir" && as_dir=.
2957
  test -z "$as_dir" && as_dir=.
2917
    for ac_prog in egrep; do
2958
    for ac_prog in egrep; do
2918
    for ac_exec_ext in '' $ac_executable_extensions; do
2959
    for ac_exec_ext in '' $ac_executable_extensions; do
2919
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2960
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2920
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2961
      as_fn_executable_p "$ac_path_EGREP" || continue
2921
# Check for GNU ac_path_EGREP and select it if it is found.
2962
# Check for GNU ac_path_EGREP and select it if it is found.
2922
  # Check for GNU $ac_path_EGREP
2963
  # Check for GNU $ac_path_EGREP
2923
case `"$ac_path_EGREP" --version 2>&1` in
2964
case `"$ac_path_EGREP" --version 2>&1` in
2924
*GNU*)
2965
*GNU*)
2925
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2966
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
...
...
3096
3137
3097
ac_fn_cxx_check_header_mongrel "$LINENO" "Console.h" "ac_cv_header_Console_h" "$ac_includes_default"
3138
ac_fn_cxx_check_header_mongrel "$LINENO" "Console.h" "ac_cv_header_Console_h" "$ac_includes_default"
3098
if test "x$ac_cv_header_Console_h" = xyes; then :
3139
if test "x$ac_cv_header_Console_h" = xyes; then :
3099
3140
3100
else
3141
else
3101
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142
  as_fn_error $? "\"Cannot find header file ${JAGS_PKGINCLUDEDIR}/Console.h. See the README file for help.\"" "$LINENO" 5
3102
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103
as_fn_error $? "\"Problem with header file ${JAGS_INCLUDE}/Console.h \"
3104
See \`config.log' for more details" "$LINENO" 5; }
3105
fi
3143
fi
3106
3144
3107
3145
3108
CPPFLAGS=${OCPPFLAGS}
3146
CPPFLAGS=${OCPPFLAGS}
3109
ac_ext=c
3147
ac_ext=c
...
...
3115
3153
3116
3154
3117
# There is no consensus on where 64- versus 32-bit libraries should be
3155
# There is no consensus on where 64- versus 32-bit libraries should be
3118
# installed.  We take a hint from R, assuming that if R is installed
3156
# installed.  We take a hint from R, assuming that if R is installed
3119
# in, say, /usr/LIBnn/R then we can find the jags library in
3157
# in, say, /usr/LIBnn/R then we can find the jags library in
3120
# ${prefix}/LIBnn.
3158
# ${JAGS_PREFIX}/LIBnn.
3121
#
3159
#
3122
# This is a reasonable assumption if both JAGS and R have been
3160
# This is a reasonable assumption if both JAGS and R have been
3123
# properly packaged, but may not be true if either has been manually
3161
# properly packaged, but may not be true if either has been manually
3124
# installed. The user can set the environment variable LIBnn to
3162
# installed. The user can set the environment variable LIBnn to
3125
# override this.
3163
# override this.
3126
3164
3127
if test -z "${LIBnn}"; then
3165
if test -z "${LIBnn}"; then
3128
   LIBnn=`"${R_HOME}/bin/R" CMD config LIBnn`
3166
   LIBnn=`"${R_HOME}/bin/R" CMD config LIBnn`
3129
fi
3167
fi
3130
3168
3131
#Set optional library path with option --with-jags-lib or
3169
# Set optional library path with option --with-jags-libdir or
3132
#environment variable JAGS_LIBS
3170
# environment variable JAGS_LIBDIR. By default this is determined by
3171
# JAGS_PREFIX and LIBnn.
3133
3172
3134
3173
3135
# Check whether --with-jags-lib was given.
3174
# Check whether --with-jags-libdir was given.
3136
if test "${with_jags_lib+set}" = set; then :
3175
if test "${with_jags_libdir+set}" = set; then :
3137
  withval=$with_jags_lib; jags_lib_path=$withval
3176
  withval=$with_jags_libdir; jags_lib_path=$withval
3138
fi
3177
fi
3139
3178
3140
if test  -n "$jags_lib_path"  ; then
3179
if test  -n "$jags_lib_path"  ; then
3141
   JAGS_LIB=$jags_lib_path
3180
   JAGS_LIBDIR=$jags_lib_path
3142
else
3181
else
3143
   if test  -z "${JAGS_LIB}"  ; then
3182
   if test  -z "${JAGS_LIBDIR}"  ; then
3144
      if test  "${prefix}" = "NONE"  ; then
3183
      JAGS_LIBDIR=${JAGS_PREFIX}/${LIBnn}
3145
         as_fn_error $? "\"Location of JAGS library not defined. Use configure arg '--with-jags-lib' or environment variable 'JAGS_LIB'\"" "$LINENO" 5
3146
      else
3147
         JAGS_LIB=${prefix}/${LIBnn}
3148
      fi
3149
   fi
3184
   fi
3150
fi
3185
fi
3186
3187
3188
# Set location of modules
3189
3190
JAGS_MODDIR=${JAGS_LIBDIR}/JAGS/modules-${PACKAGE_VERSION}
3151
3191
3152
# Support for private installations of JAGS. If the jags library is not
3192
# Support for private installations of JAGS. If the jags library is not
3153
# on the linker path then it helps to hard-code the location of JAGS into
3193
# on the linker path then it helps to hard-code the location of JAGS into
3154
# the DSO for rjags. Suggested by Doug Bates, April 2011.
3194
# the DSO for rjags. Suggested by Doug Bates, April 2011.
3155
3195
...
...
3157
if test "${enable_rpath+set}" = set; then :
3197
if test "${enable_rpath+set}" = set; then :
3158
  enableval=$enable_rpath;
3198
  enableval=$enable_rpath;
3159
fi
3199
fi
3160
3200
3161
if test  "x$enable_rpath" = "xyes"; then
3201
if test  "x$enable_rpath" = "xyes"; then
3162
   JAGS_RPATH="-Wl,-rpath ${JAGS_LIB}"
3202
   JAGS_RPATH="-Wl,-rpath ${JAGS_LIBDIR}"
3163
fi
3203
fi
3164
3204
3165
OLDFLAGS=${LDFLAGS}
3205
OLDFLAGS=${LDFLAGS}
3166
ac_ext=c
3206
ac_ext=c
3167
ac_cpp='$CPP $CPPFLAGS'
3207
ac_cpp='$CPP $CPPFLAGS'
3168
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3211
3172
LDFLAGS="-L${JAGS_LIB}"
3212
LDFLAGS="-L${JAGS_LIBDIR}"
3173
ac_ext=c
3213
ac_ext=c
3174
ac_cpp='$CPP $CPPFLAGS'
3214
ac_cpp='$CPP $CPPFLAGS'
3175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
ac_compiler_gnu=$ac_cv_c_compiler_gnu
...
...
3190
for as_dir in $PATH
3230
for as_dir in $PATH
3191
do
3231
do
3192
  IFS=$as_save_IFS
3232
  IFS=$as_save_IFS
3193
  test -z "$as_dir" && as_dir=.
3233
  test -z "$as_dir" && as_dir=.
3194
    for ac_exec_ext in '' $ac_executable_extensions; do
3234
    for ac_exec_ext in '' $ac_executable_extensions; do
3195
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198
    break 2
3238
    break 2
3199
  fi
3239
  fi
3200
done
3240
done
...
...
3230
for as_dir in $PATH
3270
for as_dir in $PATH
3231
do
3271
do
3232
  IFS=$as_save_IFS
3272
  IFS=$as_save_IFS
3233
  test -z "$as_dir" && as_dir=.
3273
  test -z "$as_dir" && as_dir=.
3234
    for ac_exec_ext in '' $ac_executable_extensions; do
3274
    for ac_exec_ext in '' $ac_executable_extensions; do
3235
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236
    ac_cv_prog_ac_ct_CC="gcc"
3276
    ac_cv_prog_ac_ct_CC="gcc"
3237
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238
    break 2
3278
    break 2
3239
  fi
3279
  fi
3240
done
3280
done
...
...
3283
for as_dir in $PATH
3323
for as_dir in $PATH
3284
do
3324
do
3285
  IFS=$as_save_IFS
3325
  IFS=$as_save_IFS
3286
  test -z "$as_dir" && as_dir=.
3326
  test -z "$as_dir" && as_dir=.
3287
    for ac_exec_ext in '' $ac_executable_extensions; do
3327
    for ac_exec_ext in '' $ac_executable_extensions; do
3288
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3329
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3290
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291
    break 2
3331
    break 2
3292
  fi
3332
  fi
3293
done
3333
done
...
...
3324
for as_dir in $PATH
3364
for as_dir in $PATH
3325
do
3365
do
3326
  IFS=$as_save_IFS
3366
  IFS=$as_save_IFS
3327
  test -z "$as_dir" && as_dir=.
3367
  test -z "$as_dir" && as_dir=.
3328
    for ac_exec_ext in '' $ac_executable_extensions; do
3368
    for ac_exec_ext in '' $ac_executable_extensions; do
3329
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3370
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3331
       ac_prog_rejected=yes
3371
       ac_prog_rejected=yes
3332
       continue
3372
       continue
3333
     fi
3373
     fi
3334
    ac_cv_prog_CC="cc"
3374
    ac_cv_prog_CC="cc"
...
...
3382
for as_dir in $PATH
3422
for as_dir in $PATH
3383
do
3423
do
3384
  IFS=$as_save_IFS
3424
  IFS=$as_save_IFS
3385
  test -z "$as_dir" && as_dir=.
3425
  test -z "$as_dir" && as_dir=.
3386
    for ac_exec_ext in '' $ac_executable_extensions; do
3426
    for ac_exec_ext in '' $ac_executable_extensions; do
3387
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3428
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3389
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390
    break 2
3430
    break 2
3391
  fi
3431
  fi
3392
done
3432
done
...
...
3426
for as_dir in $PATH
3466
for as_dir in $PATH
3427
do
3467
do
3428
  IFS=$as_save_IFS
3468
  IFS=$as_save_IFS
3429
  test -z "$as_dir" && as_dir=.
3469
  test -z "$as_dir" && as_dir=.
3430
    for ac_exec_ext in '' $ac_executable_extensions; do
3470
    for ac_exec_ext in '' $ac_executable_extensions; do
3431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432
    ac_cv_prog_ac_ct_CC="$ac_prog"
3472
    ac_cv_prog_ac_ct_CC="$ac_prog"
3433
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434
    break 2
3474
    break 2
3435
  fi
3475
  fi
3436
done
3476
done
...
...
3622
ac_save_CC=$CC
3662
ac_save_CC=$CC
3623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624
/* end confdefs.h.  */
3664
/* end confdefs.h.  */
3625
#include <stdarg.h>
3665
#include <stdarg.h>
3626
#include <stdio.h>
3666
#include <stdio.h>
3627
#include <sys/types.h>
3667
struct stat;
3628
#include <sys/stat.h>
3629
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3668
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3630
struct buf { int x; };
3669
struct buf { int x; };
3631
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632
static char *e (p, i)
3671
static char *e (p, i)
3633
     char **p;
3672
     char **p;
...
...
3753
_ACEOF
3792
_ACEOF
3754
3793
3755
  LIBS="-ljags $LIBS"
3794
  LIBS="-ljags $LIBS"
3756
3795
3757
else
3796
else
3758
  as_fn_error $? "\"Cannot load JAGS library in ${JAGS_LIB}\"" "$LINENO" 5
3797
  as_fn_error $? "\"Cannot load JAGS library in ${JAGS_LIBDIR}. See the README file for help.\"" "$LINENO" 5
3759
fi
3798
fi
3760
3761
3799
3762
ac_ext=c
3800
ac_ext=c
3763
ac_cpp='$CPP $CPPFLAGS'
3801
ac_cpp='$CPP $CPPFLAGS'
3764
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3805
3768
LDFLAGS=${OLDFLAGS}
3806
LDFLAGS=${OLDFLAGS}
3769
3770
#Finally, set optional module directory using --with-jags-modules or
3771
#environment variable JAGS_MODULES
3772
3773
3774
# Check whether --with-jags-modules was given.
3775
if test "${with_jags_modules+set}" = set; then :
3776
  withval=$with_jags_modules; jags_mod_path=$withval
3777
fi
3778
3779
if test  -n "$jags_mod_path"  ; then
3780
   JAGS_MODULES=$jags_mod_path
3781
else
3782
   if test  -z "${JAGS_MODULES}"  ; then
3783
      JAGS_MODULES=${JAGS_LIB}/JAGS/modules-${PACKAGE_VERSION}
3784
      if test ! -d ${JAGS_MODULES} ; then
3785
         as_fn_error $? "\"JAGS module directory ${JAGS_MODULES} does not exist.\"" "$LINENO" 5
3786
      fi
3787
   fi
3788
fi
3789
3807
3790
3808
3791
3809
3792
3810
3793
3811
...
...
4235
  if ln -s conf$$.file conf$$ 2>/dev/null; then
4253
  if ln -s conf$$.file conf$$ 2>/dev/null; then
4236
    as_ln_s='ln -s'
4254
    as_ln_s='ln -s'
4237
    # ... but there are two gotchas:
4255
    # ... but there are two gotchas:
4238
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4256
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4239
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4257
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4240
    # In both cases, we have to default to `cp -p'.
4258
    # In both cases, we have to default to `cp -pR'.
4241
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4259
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4242
      as_ln_s='cp -p'
4260
      as_ln_s='cp -pR'
4243
  elif ln conf$$.file conf$$ 2>/dev/null; then
4261
  elif ln conf$$.file conf$$ 2>/dev/null; then
4244
    as_ln_s=ln
4262
    as_ln_s=ln
4245
  else
4263
  else
4246
    as_ln_s='cp -p'
4264
    as_ln_s='cp -pR'
4247
  fi
4265
  fi
4248
else
4266
else
4249
  as_ln_s='cp -p'
4267
  as_ln_s='cp -pR'
4250
fi
4268
fi
4251
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4269
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4252
rmdir conf$$.dir 2>/dev/null
4270
rmdir conf$$.dir 2>/dev/null
4253
4271
4254
4272
...
...
4304
else
4322
else
4305
  test -d ./-p && rmdir ./-p
4323
  test -d ./-p && rmdir ./-p
4306
  as_mkdir_p=false
4324
  as_mkdir_p=false
4307
fi
4325
fi
4308
4326
4309
if test -x / >/dev/null 2>&1; then
4327
4328
# as_fn_executable_p FILE
4329
# -----------------------
4330
# Test if FILE is an executable regular file.
4331
as_fn_executable_p ()
4332
{
4333
  test -f "$1" && test -x "$1"
4334
} # as_fn_executable_p
4310
  as_test_x='test -x'
4335
as_test_x='test -x'
4311
else
4336
as_executable_p=as_fn_executable_p
4312
  if ls -dL / >/dev/null 2>&1; then
4313
    as_ls_L_option=L
4314
  else
4315
    as_ls_L_option=
4316
  fi
4317
  as_test_x='
4318
    eval sh -c '\''
4319
      if test -d "$1"; then
4320
  test -d "$1/.";
4321
      else
4322
  case $1 in #(
4323
  -*)set "./$1";;
4324
  esac;
4325
  case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4326
  ???[sx]*):;;*)false;;esac;fi
4327
    '\'' sh
4328
  '
4329
fi
4330
as_executable_p=$as_test_x
4331
4337
4332
# Sed expression to map a string onto a valid CPP name.
4338
# Sed expression to map a string onto a valid CPP name.
4333
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4339
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4334
4340
4335
# Sed expression to map a string onto a valid variable name.
4341
# Sed expression to map a string onto a valid variable name.
...
...
4346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4352
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4347
# Save the log message, to keep $0 and so on meaningful, and to
4353
# Save the log message, to keep $0 and so on meaningful, and to
4348
# report actual input values of CONFIG_FILES etc. instead of their
4354
# report actual input values of CONFIG_FILES etc. instead of their
4349
# values after options handling.
4355
# values after options handling.
4350
ac_log="
4356
ac_log="
4351
This file was extended by rjags $as_me 3, which was
4357
This file was extended by rjags $as_me 4, which was
4352
generated by GNU Autoconf 2.68.  Invocation command line was
4358
generated by GNU Autoconf 2.69.  Invocation command line was
4353
4359
4354
  CONFIG_FILES    = $CONFIG_FILES
4360
  CONFIG_FILES    = $CONFIG_FILES
4355
  CONFIG_HEADERS  = $CONFIG_HEADERS
4361
  CONFIG_HEADERS  = $CONFIG_HEADERS
4356
  CONFIG_LINKS    = $CONFIG_LINKS
4362
  CONFIG_LINKS    = $CONFIG_LINKS
4357
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4363
  CONFIG_COMMANDS = $CONFIG_COMMANDS
...
...
4399
4405
4400
_ACEOF
4406
_ACEOF
4401
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4407
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4402
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4408
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4403
ac_cs_version="\\
4409
ac_cs_version="\\
4404
rjags config.status 3
4410
rjags config.status 4
4405
configured by $0, generated by GNU Autoconf 2.68,
4411
configured by $0, generated by GNU Autoconf 2.69,
4406
  with options \\"\$ac_cs_config\\"
4412
  with options \\"\$ac_cs_config\\"
4407
4413
4408
Copyright (C) 2010 Free Software Foundation, Inc.
4414
Copyright (C) 2012 Free Software Foundation, Inc.
4409
This config.status script is free software; the Free Software Foundation
4415
This config.status script is free software; the Free Software Foundation
4410
gives unlimited permission to copy, distribute and modify it."
4416
gives unlimited permission to copy, distribute and modify it."
4411
4417
4412
ac_pwd='$ac_pwd'
4418
ac_pwd='$ac_pwd'
4413
srcdir='$srcdir'
4419
srcdir='$srcdir'
...
...
4480
fi
4486
fi
4481
4487
4482
_ACEOF
4488
_ACEOF
4483
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4489
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4484
if \$ac_cs_recheck; then
4490
if \$ac_cs_recheck; then
4485
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4491
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4486
  shift
4492
  shift
4487
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4493
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4488
  CONFIG_SHELL='$SHELL'
4494
  CONFIG_SHELL='$SHELL'
4489
  export CONFIG_SHELL
4495
  export CONFIG_SHELL
4490
  exec "\$@"
4496
  exec "\$@"
...
...
5404
  if ln -s conf$$.file conf$$ 2>/dev/null; then
5410
  if ln -s conf$$.file conf$$ 2>/dev/null; then
5405
    as_ln_s='ln -s'
5411
    as_ln_s='ln -s'
5406
    # ... but there are two gotchas:
5412
    # ... but there are two gotchas:
5407
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5413
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5408
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5414
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5409
    # In both cases, we have to default to `cp -p'.
5415
    # In both cases, we have to default to `cp -pR'.
5410
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5416
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5411
      as_ln_s='cp -p'
5417
      as_ln_s='cp -pR'
5412
  elif ln conf$$.file conf$$ 2>/dev/null; then
5418
  elif ln conf$$.file conf$$ 2>/dev/null; then
5413
    as_ln_s=ln
5419
    as_ln_s=ln
5414
  else
5420
  else
5415
    as_ln_s='cp -p'
5421
    as_ln_s='cp -pR'
5416
  fi
5422
  fi
5417
else
5423
else
5418
  as_ln_s='cp -p'
5424
  as_ln_s='cp -pR'
5419
fi
5425
fi
5420
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5426
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5421
rmdir conf$$.dir 2>/dev/null
5427
rmdir conf$$.dir 2>/dev/null
5422
5428
5423
5429
...
...
5473
else
5479
else
5474
  test -d ./-p && rmdir ./-p
5480
  test -d ./-p && rmdir ./-p
5475
  as_mkdir_p=false
5481
  as_mkdir_p=false
5476
fi
5482
fi
5477
5483
5478
if test -x / >/dev/null 2>&1; then
5484
5485
# as_fn_executable_p FILE
5486
# -----------------------
5487
# Test if FILE is an executable regular file.
5488
as_fn_executable_p ()
5489
{
5490
  test -f "$1" && test -x "$1"
5491
} # as_fn_executable_p
5479
  as_test_x='test -x'
5492
as_test_x='test -x'
5480
else
5493
as_executable_p=as_fn_executable_p
5481
  if ls -dL / >/dev/null 2>&1; then
5482
    as_ls_L_option=L
5483
  else
5484
    as_ls_L_option=
5485
  fi
5486
  as_test_x='
5487
    eval sh -c '\''
5488
      if test -d "$1"; then
5489
  test -d "$1/.";
5490
      else
5491
  case $1 in #(
5492
  -*)set "./$1";;
5493
  esac;
5494
  case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5495
  ???[sx]*):;;*)false;;esac;fi
5496
    '\'' sh
5497
  '
5498
fi
5499
as_executable_p=$as_test_x
5500
5494
5501
# Sed expression to map a string onto a valid CPP name.
5495
# Sed expression to map a string onto a valid CPP name.
5502
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5496
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5503
5497
5504
# Sed expression to map a string onto a valid variable name.
5498
# Sed expression to map a string onto a valid variable name.
...
...
5515
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5509
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5516
# Save the log message, to keep $0 and so on meaningful, and to
5510
# Save the log message, to keep $0 and so on meaningful, and to
5517
# report actual input values of CONFIG_FILES etc. instead of their
5511
# report actual input values of CONFIG_FILES etc. instead of their
5518
# values after options handling.
5512
# values after options handling.
5519
ac_log="
5513
ac_log="
5520
This file was extended by rjags $as_me 3, which was
5514
This file was extended by rjags $as_me 4, which was
5521
generated by GNU Autoconf 2.68.  Invocation command line was
5515
generated by GNU Autoconf 2.69.  Invocation command line was
5522
5516
5523
  CONFIG_FILES    = $CONFIG_FILES
5517
  CONFIG_FILES    = $CONFIG_FILES
5524
  CONFIG_HEADERS  = $CONFIG_HEADERS
5518
  CONFIG_HEADERS  = $CONFIG_HEADERS
5525
  CONFIG_LINKS    = $CONFIG_LINKS
5519
  CONFIG_LINKS    = $CONFIG_LINKS
5526
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5520
  CONFIG_COMMANDS = $CONFIG_COMMANDS
...
...
5568
5562
5569
_ACEOF
5563
_ACEOF
5570
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5564
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5571
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5565
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5572
ac_cs_version="\\
5566
ac_cs_version="\\
5573
rjags config.status 3
5567
rjags config.status 4
5574
configured by $0, generated by GNU Autoconf 2.68,
5568
configured by $0, generated by GNU Autoconf 2.69,
5575
  with options \\"\$ac_cs_config\\"
5569
  with options \\"\$ac_cs_config\\"
5576
5570
5577
Copyright (C) 2010 Free Software Foundation, Inc.
5571
Copyright (C) 2012 Free Software Foundation, Inc.
5578
This config.status script is free software; the Free Software Foundation
5572
This config.status script is free software; the Free Software Foundation
5579
gives unlimited permission to copy, distribute and modify it."
5573
gives unlimited permission to copy, distribute and modify it."
5580
5574
5581
ac_pwd='$ac_pwd'
5575
ac_pwd='$ac_pwd'
5582
srcdir='$srcdir'
5576
srcdir='$srcdir'
...
...
5649
fi
5643
fi
5650
5644
5651
_ACEOF
5645
_ACEOF
5652
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5646
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5653
if \$ac_cs_recheck; then
5647
if \$ac_cs_recheck; then
5654
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5648
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5655
  shift
5649
  shift
5656
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5650
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5657
  CONFIG_SHELL='$SHELL'
5651
  CONFIG_SHELL='$SHELL'
5658
  export CONFIG_SHELL
5652
  export CONFIG_SHELL
5659
  exec "\$@"
5653
  exec "\$@"