~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2004-05-29 02:58:50 UTC
  • Revision ID: james.westby@ubuntu.com-20040529025850-phd20eva5uyhhdrf
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.53 for SoQt 1.0.2.
 
4
#
 
5
# Report bugs to <coin-support@coin3d.org>.
 
6
#
 
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
8
# Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
 
 
12
# Find the correct PATH separator.  Usually this is `:', but
 
13
# DJGPP uses `;' like DOS.
 
14
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
15
  UNAME=${UNAME-`uname 2>/dev/null`}
 
16
  case X$UNAME in
 
17
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
18
    *)     lt_cv_sys_path_separator=':' ;;
 
19
  esac
 
20
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
21
fi
 
22
 
 
23
 
 
24
# Check that we are running under the correct shell.
 
25
SHELL=${CONFIG_SHELL-/bin/sh}
 
26
 
 
27
case X$ECHO in
 
28
X*--fallback-echo)
 
29
  # Remove one level of quotation (which was required for Make).
 
30
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
31
  ;;
 
32
esac
 
33
 
 
34
echo=${ECHO-echo}
 
35
if test "X$1" = X--no-reexec; then
 
36
  # Discard the --no-reexec flag, and continue.
 
37
  shift
 
38
elif test "X$1" = X--fallback-echo; then
 
39
  # Avoid inline document here, it may be left over
 
40
  :
 
41
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
42
  # Yippee, $echo works!
 
43
  :
 
44
else
 
45
  # Restart under the correct shell.
 
46
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
47
fi
 
48
 
 
49
if test "X$1" = X--fallback-echo; then
 
50
  # used as fallback echo
 
51
  shift
 
52
  cat <<EOF
 
53
 
 
54
EOF
 
55
  exit 0
 
56
fi
 
57
 
 
58
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
59
# if CDPATH is set.
 
60
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
61
 
 
62
if test -z "$ECHO"; then
 
63
if test "X${echo_test_string+set}" != Xset; then
 
64
# find a string as large as possible, as long as the shell can cope with it
 
65
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
66
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
67
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
68
       echo_test_string="`eval $cmd`" &&
 
69
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
70
    then
 
71
      break
 
72
    fi
 
73
  done
 
74
fi
 
75
 
 
76
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
77
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
78
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
79
  :
 
80
else
 
81
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
82
  # backslashes.  This makes it impossible to quote backslashes using
 
83
  #   echo "$something" | sed 's/\\/\\\\/g'
 
84
  #
 
85
  # So, first we look for a working echo in the user's PATH.
 
86
 
 
87
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
88
  for dir in $PATH /usr/ucb; do
 
89
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
90
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
91
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
92
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
93
      echo="$dir/echo"
 
94
      break
 
95
    fi
 
96
  done
 
97
  IFS="$save_ifs"
 
98
 
 
99
  if test "X$echo" = Xecho; then
 
100
    # We didn't find a better echo, so look for alternatives.
 
101
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
102
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
103
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
104
      # This shell has a builtin print -r that does the trick.
 
105
      echo='print -r'
 
106
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
107
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
108
      # If we have ksh, try running configure again with it.
 
109
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
110
      export ORIGINAL_CONFIG_SHELL
 
111
      CONFIG_SHELL=/bin/ksh
 
112
      export CONFIG_SHELL
 
113
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
114
    else
 
115
      # Try using printf.
 
116
      echo='printf %s\n'
 
117
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
118
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
119
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
120
        # Cool, printf works
 
121
        :
 
122
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
123
           test "X$echo_testing_string" = 'X\t' &&
 
124
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
125
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
126
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
127
        export CONFIG_SHELL
 
128
        SHELL="$CONFIG_SHELL"
 
129
        export SHELL
 
130
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
131
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
132
           test "X$echo_testing_string" = 'X\t' &&
 
133
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
134
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
135
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
136
      else
 
137
        # maybe with a smaller string...
 
138
        prev=:
 
139
 
 
140
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
141
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
142
          then
 
143
            break
 
144
          fi
 
145
          prev="$cmd"
 
146
        done
 
147
 
 
148
        if test "$prev" != 'sed 50q "$0"'; then
 
149
          echo_test_string=`eval $prev`
 
150
          export echo_test_string
 
151
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
152
        else
 
153
          # Oops.  We lost completely, so just stick with echo.
 
154
          echo=echo
 
155
        fi
 
156
      fi
 
157
    fi
 
158
  fi
 
159
fi
 
160
fi
 
161
 
 
162
# Copy echo and quote the copy suitably for passing to libtool from
 
163
# the Makefile, instead of quoting the original, which is used later.
 
164
ECHO=$echo
 
165
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
166
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
167
fi
 
168
 
 
169
 
 
170
 
 
171
if expr a : '\(a\)' >/dev/null 2>&1; then
 
172
  as_expr=expr
 
173
else
 
174
  as_expr=false
 
175
fi
 
176
 
 
177
 
 
178
## --------------------- ##
 
179
## M4sh Initialization.  ##
 
180
## --------------------- ##
 
181
 
 
182
# Be Bourne compatible
 
183
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
184
  emulate sh
 
185
  NULLCMD=:
 
186
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
187
  set -o posix
 
188
fi
 
189
 
 
190
# NLS nuisances.
 
191
# Support unset when possible.
 
192
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
193
  as_unset=unset
 
194
else
 
195
  as_unset=false
 
196
fi
 
197
 
 
198
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
 
199
    { $as_unset LANG || test "${LANG+set}" != set; } ||
 
200
      { LANG=C; export LANG; }
 
201
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
 
202
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
 
203
      { LC_ALL=C; export LC_ALL; }
 
204
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
 
205
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
 
206
      { LC_TIME=C; export LC_TIME; }
 
207
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
 
208
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
 
209
      { LC_CTYPE=C; export LC_CTYPE; }
 
210
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
 
211
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
 
212
      { LANGUAGE=C; export LANGUAGE; }
 
213
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
 
214
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
 
215
      { LC_COLLATE=C; export LC_COLLATE; }
 
216
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
 
217
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
 
218
      { LC_NUMERIC=C; export LC_NUMERIC; }
 
219
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
 
220
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
 
221
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
222
 
 
223
 
 
224
# Name of the executable.
 
225
as_me=`(basename "$0") 2>/dev/null ||
 
226
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
227
         X"$0" : 'X\(//\)$' \| \
 
228
         X"$0" : 'X\(/\)$' \| \
 
229
         .     : '\(.\)' 2>/dev/null ||
 
230
echo X/"$0" |
 
231
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
232
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
233
          /^X\/\(\/\).*/{ s//\1/; q; }
 
234
          s/.*/./; q'`
 
235
 
 
236
# PATH needs CR, and LINENO needs CR and PATH.
 
237
# Avoid depending upon Character Ranges.
 
238
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
239
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
240
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
241
as_cr_digits='0123456789'
 
242
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
243
 
 
244
# The user is always right.
 
245
if test "${PATH_SEPARATOR+set}" != set; then
 
246
  echo "#! /bin/sh" >conftest.sh
 
247
  echo  "exit 0"   >>conftest.sh
 
248
  chmod +x conftest.sh
 
249
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
250
    PATH_SEPARATOR=';'
 
251
  else
 
252
    PATH_SEPARATOR=:
 
253
  fi
 
254
  rm -f conftest.sh
 
255
fi
 
256
 
 
257
 
 
258
  as_lineno_1=$LINENO
 
259
  as_lineno_2=$LINENO
 
260
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
261
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
262
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
263
  # Find who we are.  Look in the path if we contain no path at all
 
264
  # relative or not.
 
265
  case $0 in
 
266
    *[\\/]* ) as_myself=$0 ;;
 
267
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
268
for as_dir in $PATH
 
269
do
 
270
  IFS=$as_save_IFS
 
271
  test -z "$as_dir" && as_dir=.
 
272
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
273
done
 
274
 
 
275
       ;;
 
276
  esac
 
277
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
278
  # in which case we are not to be found in the path.
 
279
  if test "x$as_myself" = x; then
 
280
    as_myself=$0
 
281
  fi
 
282
  if test ! -f "$as_myself"; then
 
283
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
284
   { (exit 1); exit 1; }; }
 
285
  fi
 
286
  case $CONFIG_SHELL in
 
287
  '')
 
288
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
289
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
290
do
 
291
  IFS=$as_save_IFS
 
292
  test -z "$as_dir" && as_dir=.
 
293
  for as_base in sh bash ksh sh5; do
 
294
         case $as_dir in
 
295
         /*)
 
296
           if ("$as_dir/$as_base" -c '
 
297
  as_lineno_1=$LINENO
 
298
  as_lineno_2=$LINENO
 
299
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
300
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
301
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
302
             CONFIG_SHELL=$as_dir/$as_base
 
303
             export CONFIG_SHELL
 
304
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
305
           fi;;
 
306
         esac
 
307
       done
 
308
done
 
309
;;
 
310
  esac
 
311
 
 
312
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
313
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
314
  # line-number line before each line; the second 'sed' does the real
 
315
  # work.  The second script uses 'N' to pair each line-number line
 
316
  # with the numbered line, and appends trailing '-' during
 
317
  # substitution so that $LINENO is not a special case at line end.
 
318
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
319
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
320
  sed '=' <$as_myself |
 
321
    sed '
 
322
      N
 
323
      s,$,-,
 
324
      : loop
 
325
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
326
      t loop
 
327
      s,-$,,
 
328
      s,^['$as_cr_digits']*\n,,
 
329
    ' >$as_me.lineno &&
 
330
  chmod +x $as_me.lineno ||
 
331
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
332
   { (exit 1); exit 1; }; }
 
333
 
 
334
  # Don't try to exec as it changes $[0], causing all sort of problems
 
335
  # (the dirname of $[0] is not the place where we might find the
 
336
  # original and so on.  Autoconf is especially sensible to this).
 
337
  . ./$as_me.lineno
 
338
  # Exit status is that of the last command.
 
339
  exit
 
340
}
 
341
 
 
342
 
 
343
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
344
  *c*,-n*) ECHO_N= ECHO_C='
 
345
' ECHO_T='      ' ;;
 
346
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
347
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
348
esac
 
349
 
 
350
if expr a : '\(a\)' >/dev/null 2>&1; then
 
351
  as_expr=expr
 
352
else
 
353
  as_expr=false
 
354
fi
 
355
 
 
356
rm -f conf$$ conf$$.exe conf$$.file
 
357
echo >conf$$.file
 
358
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
359
  # We could just check for DJGPP; but this test a) works b) is more generic
 
360
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
361
  if test -f conf$$.exe; then
 
362
    # Don't use ln at all; we don't have any links
 
363
    as_ln_s='cp -p'
 
364
  else
 
365
    as_ln_s='ln -s'
 
366
  fi
 
367
elif ln conf$$.file conf$$ 2>/dev/null; then
 
368
  as_ln_s=ln
 
369
else
 
370
  as_ln_s='cp -p'
 
371
fi
 
372
rm -f conf$$ conf$$.exe conf$$.file
 
373
 
 
374
as_executable_p="test -f"
 
375
 
 
376
# Sed expression to map a string onto a valid CPP name.
 
377
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
378
 
 
379
# Sed expression to map a string onto a valid variable name.
 
380
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
381
 
 
382
 
 
383
# IFS
 
384
# We need space, tab and new line, in precisely that order.
 
385
as_nl='
 
386
'
 
387
IFS="   $as_nl"
 
388
 
 
389
# CDPATH.
 
390
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
391
 
 
392
 
 
393
# Name of the host.
 
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
395
# so uname gets run too.
 
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
397
 
 
398
exec 6>&1
 
399
 
 
400
#
 
401
# Initializations.
 
402
#
 
403
ac_default_prefix=/usr/local
 
404
cross_compiling=no
 
405
subdirs=
 
406
MFLAGS=
 
407
MAKEFLAGS=
 
408
SHELL=${CONFIG_SHELL-/bin/sh}
 
409
 
 
410
# Maximum number of lines to put in a shell here document.
 
411
# This variable seems obsolete.  It should probably be removed, and
 
412
# only ac_max_sed_lines should be used.
 
413
: ${ac_max_here_lines=38}
 
414
 
 
415
# Identity of this package.
 
416
PACKAGE_NAME='SoQt'
 
417
PACKAGE_TARNAME='soqt'
 
418
PACKAGE_VERSION='1.0.2'
 
419
PACKAGE_STRING='SoQt 1.0.2'
 
420
PACKAGE_BUGREPORT='coin-support@coin3d.org'
 
421
 
 
422
ac_unique_file="src/Inventor/Qt/SoQt.cpp"
 
423
# Factoring default headers for most tests.
 
424
ac_includes_default="\
 
425
#include <stdio.h>
 
426
#if HAVE_SYS_TYPES_H
 
427
# include <sys/types.h>
 
428
#endif
 
429
#if HAVE_SYS_STAT_H
 
430
# include <sys/stat.h>
 
431
#endif
 
432
#if STDC_HEADERS
 
433
# include <stdlib.h>
 
434
# include <stddef.h>
 
435
#else
 
436
# if HAVE_STDLIB_H
 
437
#  include <stdlib.h>
 
438
# endif
 
439
#endif
 
440
#if HAVE_STRING_H
 
441
# if !STDC_HEADERS && HAVE_MEMORY_H
 
442
#  include <memory.h>
 
443
# endif
 
444
# include <string.h>
 
445
#endif
 
446
#if HAVE_STRINGS_H
 
447
# include <strings.h>
 
448
#endif
 
449
#if HAVE_INTTYPES_H
 
450
# include <inttypes.h>
 
451
#else
 
452
# if HAVE_STDINT_H
 
453
#  include <stdint.h>
 
454
# endif
 
455
#endif
 
456
#if HAVE_UNISTD_H
 
457
# include <unistd.h>
 
458
#endif"
 
459
 
 
460
 
 
461
# Initialize some variables set by options.
 
462
ac_init_help=
 
463
ac_init_version=false
 
464
# The variables have the same names as the options, with
 
465
# dashes changed to underlines.
 
466
cache_file=/dev/null
 
467
exec_prefix=NONE
 
468
no_create=
 
469
no_recursion=
 
470
prefix=NONE
 
471
program_prefix=NONE
 
472
program_suffix=NONE
 
473
program_transform_name=s,x,x,
 
474
silent=
 
475
site=
 
476
srcdir=
 
477
verbose=
 
478
x_includes=NONE
 
479
x_libraries=NONE
 
480
 
 
481
# Installation directory options.
 
482
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
483
# and all the variables that are supposed to be based on exec_prefix
 
484
# by default will actually change.
 
485
# Use braces instead of parens because sh, perl, etc. also accept them.
 
486
bindir='${exec_prefix}/bin'
 
487
sbindir='${exec_prefix}/sbin'
 
488
libexecdir='${exec_prefix}/libexec'
 
489
datadir='${prefix}/share'
 
490
sysconfdir='${prefix}/etc'
 
491
sharedstatedir='${prefix}/com'
 
492
localstatedir='${prefix}/var'
 
493
libdir='${exec_prefix}/lib'
 
494
includedir='${prefix}/include'
 
495
oldincludedir='/usr/include'
 
496
infodir='${prefix}/info'
 
497
mandir='${prefix}/man'
 
498
 
 
499
ac_prev=
 
500
for ac_option
 
501
do
 
502
  # If the previous option needs an argument, assign it.
 
503
  if test -n "$ac_prev"; then
 
504
    eval "$ac_prev=\$ac_option"
 
505
    ac_prev=
 
506
    continue
 
507
  fi
 
508
 
 
509
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
510
 
 
511
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
512
 
 
513
  case $ac_option in
 
514
 
 
515
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
516
    ac_prev=bindir ;;
 
517
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
518
    bindir=$ac_optarg ;;
 
519
 
 
520
  -build | --build | --buil | --bui | --bu)
 
521
    ac_prev=build_alias ;;
 
522
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
523
    build_alias=$ac_optarg ;;
 
524
 
 
525
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
526
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
527
    ac_prev=cache_file ;;
 
528
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
529
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
530
    cache_file=$ac_optarg ;;
 
531
 
 
532
  --config-cache | -C)
 
533
    cache_file=config.cache ;;
 
534
 
 
535
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
536
    ac_prev=datadir ;;
 
537
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
538
  | --da=*)
 
539
    datadir=$ac_optarg ;;
 
540
 
 
541
  -disable-* | --disable-*)
 
542
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
543
    # Reject names that are not valid shell variable names.
 
544
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
545
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
546
   { (exit 1); exit 1; }; }
 
547
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
548
    eval "enable_$ac_feature=no" ;;
 
549
 
 
550
  -enable-* | --enable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    case $ac_option in
 
558
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
559
      *) ac_optarg=yes ;;
 
560
    esac
 
561
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
562
 
 
563
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
564
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
565
  | --exec | --exe | --ex)
 
566
    ac_prev=exec_prefix ;;
 
567
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
568
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
569
  | --exec=* | --exe=* | --ex=*)
 
570
    exec_prefix=$ac_optarg ;;
 
571
 
 
572
  -gas | --gas | --ga | --g)
 
573
    # Obsolete; use --with-gas.
 
574
    with_gas=yes ;;
 
575
 
 
576
  -help | --help | --hel | --he | -h)
 
577
    ac_init_help=long ;;
 
578
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
579
    ac_init_help=recursive ;;
 
580
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
581
    ac_init_help=short ;;
 
582
 
 
583
  -host | --host | --hos | --ho)
 
584
    ac_prev=host_alias ;;
 
585
  -host=* | --host=* | --hos=* | --ho=*)
 
586
    host_alias=$ac_optarg ;;
 
587
 
 
588
  -includedir | --includedir | --includedi | --included | --include \
 
589
  | --includ | --inclu | --incl | --inc)
 
590
    ac_prev=includedir ;;
 
591
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
592
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
593
    includedir=$ac_optarg ;;
 
594
 
 
595
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
596
    ac_prev=infodir ;;
 
597
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
598
    infodir=$ac_optarg ;;
 
599
 
 
600
  -libdir | --libdir | --libdi | --libd)
 
601
    ac_prev=libdir ;;
 
602
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
603
    libdir=$ac_optarg ;;
 
604
 
 
605
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
606
  | --libexe | --libex | --libe)
 
607
    ac_prev=libexecdir ;;
 
608
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
609
  | --libexe=* | --libex=* | --libe=*)
 
610
    libexecdir=$ac_optarg ;;
 
611
 
 
612
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
613
  | --localstate | --localstat | --localsta | --localst \
 
614
  | --locals | --local | --loca | --loc | --lo)
 
615
    ac_prev=localstatedir ;;
 
616
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
617
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
618
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
619
    localstatedir=$ac_optarg ;;
 
620
 
 
621
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
622
    ac_prev=mandir ;;
 
623
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
624
    mandir=$ac_optarg ;;
 
625
 
 
626
  -nfp | --nfp | --nf)
 
627
    # Obsolete; use --without-fp.
 
628
    with_fp=no ;;
 
629
 
 
630
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
631
  | --no-cr | --no-c | -n)
 
632
    no_create=yes ;;
 
633
 
 
634
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
635
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
636
    no_recursion=yes ;;
 
637
 
 
638
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
639
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
640
  | --oldin | --oldi | --old | --ol | --o)
 
641
    ac_prev=oldincludedir ;;
 
642
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
643
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
644
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
645
    oldincludedir=$ac_optarg ;;
 
646
 
 
647
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
648
    ac_prev=prefix ;;
 
649
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
650
    prefix=$ac_optarg ;;
 
651
 
 
652
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
653
  | --program-pre | --program-pr | --program-p)
 
654
    ac_prev=program_prefix ;;
 
655
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
656
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
657
    program_prefix=$ac_optarg ;;
 
658
 
 
659
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
660
  | --program-suf | --program-su | --program-s)
 
661
    ac_prev=program_suffix ;;
 
662
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
663
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
664
    program_suffix=$ac_optarg ;;
 
665
 
 
666
  -program-transform-name | --program-transform-name \
 
667
  | --program-transform-nam | --program-transform-na \
 
668
  | --program-transform-n | --program-transform- \
 
669
  | --program-transform | --program-transfor \
 
670
  | --program-transfo | --program-transf \
 
671
  | --program-trans | --program-tran \
 
672
  | --progr-tra | --program-tr | --program-t)
 
673
    ac_prev=program_transform_name ;;
 
674
  -program-transform-name=* | --program-transform-name=* \
 
675
  | --program-transform-nam=* | --program-transform-na=* \
 
676
  | --program-transform-n=* | --program-transform-=* \
 
677
  | --program-transform=* | --program-transfor=* \
 
678
  | --program-transfo=* | --program-transf=* \
 
679
  | --program-trans=* | --program-tran=* \
 
680
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
681
    program_transform_name=$ac_optarg ;;
 
682
 
 
683
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
684
  | -silent | --silent | --silen | --sile | --sil)
 
685
    silent=yes ;;
 
686
 
 
687
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
688
    ac_prev=sbindir ;;
 
689
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
690
  | --sbi=* | --sb=*)
 
691
    sbindir=$ac_optarg ;;
 
692
 
 
693
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
694
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
695
  | --sharedst | --shareds | --shared | --share | --shar \
 
696
  | --sha | --sh)
 
697
    ac_prev=sharedstatedir ;;
 
698
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
699
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
700
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
701
  | --sha=* | --sh=*)
 
702
    sharedstatedir=$ac_optarg ;;
 
703
 
 
704
  -site | --site | --sit)
 
705
    ac_prev=site ;;
 
706
  -site=* | --site=* | --sit=*)
 
707
    site=$ac_optarg ;;
 
708
 
 
709
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
710
    ac_prev=srcdir ;;
 
711
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
712
    srcdir=$ac_optarg ;;
 
713
 
 
714
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
715
  | --syscon | --sysco | --sysc | --sys | --sy)
 
716
    ac_prev=sysconfdir ;;
 
717
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
718
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
719
    sysconfdir=$ac_optarg ;;
 
720
 
 
721
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
722
    ac_prev=target_alias ;;
 
723
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
724
    target_alias=$ac_optarg ;;
 
725
 
 
726
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
727
    verbose=yes ;;
 
728
 
 
729
  -version | --version | --versio | --versi | --vers | -V)
 
730
    ac_init_version=: ;;
 
731
 
 
732
  -with-* | --with-*)
 
733
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
734
    # Reject names that are not valid shell variable names.
 
735
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
736
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
737
   { (exit 1); exit 1; }; }
 
738
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
739
    case $ac_option in
 
740
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
741
      *) ac_optarg=yes ;;
 
742
    esac
 
743
    eval "with_$ac_package='$ac_optarg'" ;;
 
744
 
 
745
  -without-* | --without-*)
 
746
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
747
    # Reject names that are not valid shell variable names.
 
748
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
749
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
750
   { (exit 1); exit 1; }; }
 
751
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
752
    eval "with_$ac_package=no" ;;
 
753
 
 
754
  --x)
 
755
    # Obsolete; use --with-x.
 
756
    with_x=yes ;;
 
757
 
 
758
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
759
  | --x-incl | --x-inc | --x-in | --x-i)
 
760
    ac_prev=x_includes ;;
 
761
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
762
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
763
    x_includes=$ac_optarg ;;
 
764
 
 
765
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
766
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
767
    ac_prev=x_libraries ;;
 
768
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
769
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
770
    x_libraries=$ac_optarg ;;
 
771
 
 
772
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
773
Try \`$0 --help' for more information." >&2
 
774
   { (exit 1); exit 1; }; }
 
775
    ;;
 
776
 
 
777
  *=*)
 
778
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
779
    # Reject names that are not valid shell variable names.
 
780
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
781
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
784
    eval "$ac_envvar='$ac_optarg'"
 
785
    export $ac_envvar ;;
 
786
 
 
787
  *)
 
788
    # FIXME: should be removed in autoconf 3.0.
 
789
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
790
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
791
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
792
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
793
    ;;
 
794
 
 
795
  esac
 
796
done
 
797
 
 
798
if test -n "$ac_prev"; then
 
799
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
800
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
801
   { (exit 1); exit 1; }; }
 
802
fi
 
803
 
 
804
# Be sure to have absolute paths.
 
805
for ac_var in exec_prefix prefix
 
806
do
 
807
  eval ac_val=$`echo $ac_var`
 
808
  case $ac_val in
 
809
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
810
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
811
   { (exit 1); exit 1; }; };;
 
812
  esac
 
813
done
 
814
 
 
815
# Be sure to have absolute paths.
 
816
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
817
              localstatedir libdir includedir oldincludedir infodir mandir
 
818
do
 
819
  eval ac_val=$`echo $ac_var`
 
820
  case $ac_val in
 
821
    [\\/$]* | ?:[\\/]* ) ;;
 
822
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
823
   { (exit 1); exit 1; }; };;
 
824
  esac
 
825
done
 
826
 
 
827
# There might be people who depend on the old broken behavior: `$host'
 
828
# used to hold the argument of --host etc.
 
829
# FIXME: To remove some day.
 
830
build=$build_alias
 
831
host=$host_alias
 
832
target=$target_alias
 
833
 
 
834
# FIXME: To remove some day.
 
835
if test "x$host_alias" != x; then
 
836
  if test "x$build_alias" = x; then
 
837
    cross_compiling=maybe
 
838
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
839
    If a cross compiler is detected then cross compile mode will be used." >&2
 
840
  elif test "x$build_alias" != "x$host_alias"; then
 
841
    cross_compiling=yes
 
842
  fi
 
843
fi
 
844
 
 
845
ac_tool_prefix=
 
846
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
847
 
 
848
test "$silent" = yes && exec 6>/dev/null
 
849
 
 
850
 
 
851
# Find the source files, if location was not specified.
 
852
if test -z "$srcdir"; then
 
853
  ac_srcdir_defaulted=yes
 
854
  # Try the directory containing this script, then its parent.
 
855
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
856
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
857
         X"$0" : 'X\(//\)[^/]' \| \
 
858
         X"$0" : 'X\(//\)$' \| \
 
859
         X"$0" : 'X\(/\)' \| \
 
860
         .     : '\(.\)' 2>/dev/null ||
 
861
echo X"$0" |
 
862
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
863
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
864
          /^X\(\/\/\)$/{ s//\1/; q; }
 
865
          /^X\(\/\).*/{ s//\1/; q; }
 
866
          s/.*/./; q'`
 
867
  srcdir=$ac_confdir
 
868
  if test ! -r $srcdir/$ac_unique_file; then
 
869
    srcdir=..
 
870
  fi
 
871
else
 
872
  ac_srcdir_defaulted=no
 
873
fi
 
874
if test ! -r $srcdir/$ac_unique_file; then
 
875
  if test "$ac_srcdir_defaulted" = yes; then
 
876
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
877
   { (exit 1); exit 1; }; }
 
878
  else
 
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
880
   { (exit 1); exit 1; }; }
 
881
  fi
 
882
fi
 
883
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
884
ac_env_build_alias_set=${build_alias+set}
 
885
ac_env_build_alias_value=$build_alias
 
886
ac_cv_env_build_alias_set=${build_alias+set}
 
887
ac_cv_env_build_alias_value=$build_alias
 
888
ac_env_host_alias_set=${host_alias+set}
 
889
ac_env_host_alias_value=$host_alias
 
890
ac_cv_env_host_alias_set=${host_alias+set}
 
891
ac_cv_env_host_alias_value=$host_alias
 
892
ac_env_target_alias_set=${target_alias+set}
 
893
ac_env_target_alias_value=$target_alias
 
894
ac_cv_env_target_alias_set=${target_alias+set}
 
895
ac_cv_env_target_alias_value=$target_alias
 
896
ac_env_CC_set=${CC+set}
 
897
ac_env_CC_value=$CC
 
898
ac_cv_env_CC_set=${CC+set}
 
899
ac_cv_env_CC_value=$CC
 
900
ac_env_CFLAGS_set=${CFLAGS+set}
 
901
ac_env_CFLAGS_value=$CFLAGS
 
902
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
903
ac_cv_env_CFLAGS_value=$CFLAGS
 
904
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
905
ac_env_LDFLAGS_value=$LDFLAGS
 
906
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
907
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
908
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
909
ac_env_CPPFLAGS_value=$CPPFLAGS
 
910
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
911
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
912
ac_env_CPP_set=${CPP+set}
 
913
ac_env_CPP_value=$CPP
 
914
ac_cv_env_CPP_set=${CPP+set}
 
915
ac_cv_env_CPP_value=$CPP
 
916
ac_env_CXX_set=${CXX+set}
 
917
ac_env_CXX_value=$CXX
 
918
ac_cv_env_CXX_set=${CXX+set}
 
919
ac_cv_env_CXX_value=$CXX
 
920
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
921
ac_env_CXXFLAGS_value=$CXXFLAGS
 
922
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
923
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
924
ac_env_CXXCPP_set=${CXXCPP+set}
 
925
ac_env_CXXCPP_value=$CXXCPP
 
926
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
927
ac_cv_env_CXXCPP_value=$CXXCPP
 
928
ac_env_htmldir_set=${htmldir+set}
 
929
ac_env_htmldir_value=$htmldir
 
930
ac_cv_env_htmldir_set=${htmldir+set}
 
931
ac_cv_env_htmldir_value=$htmldir
 
932
 
 
933
#
 
934
# Report the --help message.
 
935
#
 
936
if test "$ac_init_help" = "long"; then
 
937
  # Omit some internal or obsolete options to make the list less imposing.
 
938
  # This message is too long to be a string in the A/UX 3.1 sh.
 
939
  cat <<_ACEOF
 
940
\`configure' configures SoQt 1.0.2 to adapt to many kinds of systems.
 
941
 
 
942
Usage: $0 [OPTION]... [VAR=VALUE]...
 
943
 
 
944
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
945
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
946
 
 
947
Defaults for the options are specified in brackets.
 
948
 
 
949
Configuration:
 
950
  -h, --help              display this help and exit
 
951
      --help=short        display options specific to this package
 
952
      --help=recursive    display the short help of all the included packages
 
953
  -V, --version           display version information and exit
 
954
  -q, --quiet, --silent   do not print \`checking...' messages
 
955
      --cache-file=FILE   cache test results in FILE [disabled]
 
956
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
957
  -n, --no-create         do not create output files
 
958
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
959
 
 
960
_ACEOF
 
961
 
 
962
  cat <<_ACEOF
 
963
Installation directories:
 
964
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
965
                          [$ac_default_prefix]
 
966
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
967
                          [PREFIX]
 
968
 
 
969
By default, \`make install' will install all the files in
 
970
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
971
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
972
for instance \`--prefix=\$HOME'.
 
973
 
 
974
For better control, use the options below.
 
975
 
 
976
Fine tuning of the installation directories:
 
977
  --bindir=DIR           user executables [EPREFIX/bin]
 
978
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
979
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
980
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
981
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
982
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
983
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
984
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
985
  --includedir=DIR       C header files [PREFIX/include]
 
986
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
987
  --infodir=DIR          info documentation [PREFIX/info]
 
988
  --mandir=DIR           man documentation [PREFIX/man]
 
989
_ACEOF
 
990
 
 
991
  cat <<\_ACEOF
 
992
 
 
993
Program names:
 
994
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
995
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
996
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
997
 
 
998
X features:
 
999
  --x-includes=DIR    X include files are in DIR
 
1000
  --x-libraries=DIR   X library files are in DIR
 
1001
 
 
1002
System types:
 
1003
  --build=BUILD     configure for building on BUILD [guessed]
 
1004
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1005
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1006
_ACEOF
 
1007
fi
 
1008
 
 
1009
if test -n "$ac_init_help"; then
 
1010
  case $ac_init_help in
 
1011
     short | recursive ) echo "Configuration of SoQt 1.0.2:";;
 
1012
   esac
 
1013
  cat <<\_ACEOF
 
1014
 
 
1015
Optional Features:
 
1016
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1017
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1018
  --enable-msvcdsp        build .dsp, not library
 
1019
  --disable-msvc          don't require MS Visual C++ on Cygwin
 
1020
  --disable-dependency-tracking Speeds up one-time builds
 
1021
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1022
  --enable-static=PKGS  build static libraries default=no
 
1023
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1024
                          (and sometimes confusing) to the casual installer
 
1025
  --enable-shared=PKGS  build shared libraries default=yes
 
1026
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1027
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1028
  --disable-build         disable configuring for library build
 
1029
  --enable-html           build and install SoQt HTML documentation
 
1030
  --enable-man            build and install SoQt man pages
 
1031
  --disable-loadlibrary   don't use run-time link bindings under Win32
 
1032
  --enable-inventor-debug use debug version of TGS inventor
 
1033
  --enable-qt-debug       win32: link with debug versions of Qt libraries
 
1034
  --enable-debug          compile in debug mode [default=yes]
 
1035
  --enable-symbols        include symbol debug information [default=yes]
 
1036
  --enable-rtti           (g++ only) compile with RTTI [default=yes]
 
1037
  --enable-exceptions     (g++ only) compile with exceptions [default=no]
 
1038
  --enable-profile        (GCC only) turn on inclusion of profiling code
 
1039
                          [default=no]
 
1040
  --enable-warnings       turn on warnings when compiling [default=yes]
 
1041
  --disable-static-defaults
 
1042
                          Disable defaults from being statically linked in
 
1043
 
 
1044
Optional Packages:
 
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1047
  --with-msvcrt=<crt>     set which C run-time library to build against
 
1048
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1049
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1050
  --with-alternate=string specify name of alternate configuration
 
1051
  --with-suffix=string    specify library name suffix (e.g. "_g")
 
1052
  --with-doxygen=DIR      DIR is the directory where the doxygen executable
 
1053
                          resides
 
1054
  --with-x                use the X Window System
 
1055
  --with-dl=DIR           include support for the dynamic link loader library
 
1056
                          [default=yes]
 
1057
  --with-mesa             prefer MesaGL (if found) over OpenGL [default=yes]
 
1058
  --with-opengl=DIR       OpenGL/Mesa installation directory
 
1059
  --with-pthread=DIR      pthread installation directory
 
1060
  --with-glu=DIR          use the OpenGL utility library [default=yes]
 
1061
  --with-inventor         use another Open Inventor than Coin [default=no],
 
1062
                          with InventorXt
 
1063
  --with-inventor=PATH    specify where Open Inventor and InventorXt resides
 
1064
  --with-coin             enable use of Coin [default=yes]
 
1065
  --with-coin=DIR         give prefix location of Coin
 
1066
  --with-iv-extensions=extensions
 
1067
                          enable extra open inventor extensions
 
1068
  --with-qt=DIR           specify location of Qt library default=yes
 
1069
  --with-framework  Do Mac OS X-like framework installation
 
1070
  --without-framework  Do regular installation on Mac OS X
 
1071
  --with-framework-prefix=<path>  (default: "/Library/Frameworks")
 
1072
 
 
1073
Some influential environment variables:
 
1074
  CC          C compiler command
 
1075
  CFLAGS      C compiler flags
 
1076
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1077
              nonstandard directory <lib dir>
 
1078
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1079
              headers in a nonstandard directory <include dir>
 
1080
  CPP         C preprocessor
 
1081
  CXX         C++ compiler command
 
1082
  CXXFLAGS    C++ compiler flags
 
1083
  CXXCPP      C++ preprocessor
 
1084
  htmldir     destination for HTML docs (default ${datadir}/SoQt/html)
 
1085
 
 
1086
Use these variables to override the choices made by `configure' or to help
 
1087
it to find libraries and programs with nonstandard names/locations.
 
1088
 
 
1089
Report bugs to <coin-support@coin3d.org>.
 
1090
_ACEOF
 
1091
fi
 
1092
 
 
1093
if test "$ac_init_help" = "recursive"; then
 
1094
  # If there are subdirs, report their specific --help.
 
1095
  ac_popdir=`pwd`
 
1096
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1097
    test -d $ac_dir || continue
 
1098
    ac_builddir=.
 
1099
 
 
1100
if test "$ac_dir" != .; then
 
1101
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1102
  # A "../" for each directory in $ac_dir_suffix.
 
1103
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1104
else
 
1105
  ac_dir_suffix= ac_top_builddir=
 
1106
fi
 
1107
 
 
1108
case $srcdir in
 
1109
  .)  # No --srcdir option.  We are building in place.
 
1110
    ac_srcdir=.
 
1111
    if test -z "$ac_top_builddir"; then
 
1112
       ac_top_srcdir=.
 
1113
    else
 
1114
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1115
    fi ;;
 
1116
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1117
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1118
    ac_top_srcdir=$srcdir ;;
 
1119
  *) # Relative path.
 
1120
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1121
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1122
esac
 
1123
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1124
# absolute.
 
1125
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1126
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
1127
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1128
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1129
 
 
1130
    cd $ac_dir
 
1131
    # Check for guested configure; otherwise get Cygnus style configure.
 
1132
    if test -f $ac_srcdir/configure.gnu; then
 
1133
      echo
 
1134
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1135
    elif test -f $ac_srcdir/configure; then
 
1136
      echo
 
1137
      $SHELL $ac_srcdir/configure  --help=recursive
 
1138
    elif test -f $ac_srcdir/configure.ac ||
 
1139
           test -f $ac_srcdir/configure.in; then
 
1140
      echo
 
1141
      $ac_configure --help
 
1142
    else
 
1143
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1144
    fi
 
1145
    cd $ac_popdir
 
1146
  done
 
1147
fi
 
1148
 
 
1149
test -n "$ac_init_help" && exit 0
 
1150
if $ac_init_version; then
 
1151
  cat <<\_ACEOF
 
1152
SoQt configure 1.0.2
 
1153
generated by GNU Autoconf 2.53
 
1154
 
 
1155
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1156
Free Software Foundation, Inc.
 
1157
This configure script is free software; the Free Software Foundation
 
1158
gives unlimited permission to copy, distribute and modify it.
 
1159
_ACEOF
 
1160
  exit 0
 
1161
fi
 
1162
exec 5>config.log
 
1163
cat >&5 <<_ACEOF
 
1164
This file contains any messages produced by compilers while
 
1165
running configure, to aid debugging if configure makes a mistake.
 
1166
 
 
1167
It was created by SoQt $as_me 1.0.2, which was
 
1168
generated by GNU Autoconf 2.53.  Invocation command line was
 
1169
 
 
1170
  $ $0 $@
 
1171
 
 
1172
_ACEOF
 
1173
{
 
1174
cat <<_ASUNAME
 
1175
## --------- ##
 
1176
## Platform. ##
 
1177
## --------- ##
 
1178
 
 
1179
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1180
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1181
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1182
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1183
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1184
 
 
1185
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1186
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1187
 
 
1188
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1189
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1190
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1191
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1192
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1193
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1194
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1195
 
 
1196
_ASUNAME
 
1197
 
 
1198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1199
for as_dir in $PATH
 
1200
do
 
1201
  IFS=$as_save_IFS
 
1202
  test -z "$as_dir" && as_dir=.
 
1203
  echo "PATH: $as_dir"
 
1204
done
 
1205
 
 
1206
} >&5
 
1207
 
 
1208
cat >&5 <<_ACEOF
 
1209
 
 
1210
 
 
1211
## ----------- ##
 
1212
## Core tests. ##
 
1213
## ----------- ##
 
1214
 
 
1215
_ACEOF
 
1216
 
 
1217
 
 
1218
# Keep a trace of the command line.
 
1219
# Strip out --no-create and --no-recursion so they do not pile up.
 
1220
# Also quote any args containing shell meta-characters.
 
1221
ac_configure_args=
 
1222
ac_sep=
 
1223
for ac_arg
 
1224
do
 
1225
  case $ac_arg in
 
1226
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1227
  | --no-cr | --no-c | -n ) continue ;;
 
1228
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1229
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1230
    continue ;;
 
1231
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1232
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1233
  esac
 
1234
  case " $ac_configure_args " in
 
1235
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1236
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1237
       ac_sep=" " ;;
 
1238
  esac
 
1239
  # Get rid of the leading space.
 
1240
done
 
1241
 
 
1242
# When interrupted or exit'd, cleanup temporary files, and complete
 
1243
# config.log.  We remove comments because anyway the quotes in there
 
1244
# would cause problems or look ugly.
 
1245
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1246
# such as our DU 5.0 friend, will then `close' the trap.
 
1247
trap 'exit_status=$?
 
1248
  # Save into config.log some information that might help in debugging.
 
1249
  {
 
1250
    echo
 
1251
    cat <<\_ASBOX
 
1252
## ---------------- ##
 
1253
## Cache variables. ##
 
1254
## ---------------- ##
 
1255
_ASBOX
 
1256
    echo
 
1257
    # The following way of writing the cache mishandles newlines in values,
 
1258
{
 
1259
  (set) 2>&1 |
 
1260
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1261
    *ac_space=\ *)
 
1262
      sed -n \
 
1263
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1264
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1265
      ;;
 
1266
    *)
 
1267
      sed -n \
 
1268
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1269
      ;;
 
1270
    esac;
 
1271
}
 
1272
    echo
 
1273
    if test -s confdefs.h; then
 
1274
      cat <<\_ASBOX
 
1275
## ----------- ##
 
1276
## confdefs.h. ##
 
1277
## ----------- ##
 
1278
_ASBOX
 
1279
      echo
 
1280
      sed "/^$/d" confdefs.h
 
1281
      echo
 
1282
    fi
 
1283
    test "$ac_signal" != 0 &&
 
1284
      echo "$as_me: caught signal $ac_signal"
 
1285
    echo "$as_me: exit $exit_status"
 
1286
  } >&5
 
1287
  rm -f core core.* *.core &&
 
1288
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1289
    exit $exit_status
 
1290
     ' 0
 
1291
for ac_signal in 1 2 13 15; do
 
1292
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1293
done
 
1294
ac_signal=0
 
1295
 
 
1296
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1297
rm -rf conftest* confdefs.h
 
1298
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1299
echo >confdefs.h
 
1300
 
 
1301
# Predefined preprocessor variables.
 
1302
 
 
1303
cat >>confdefs.h <<_ACEOF
 
1304
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1305
_ACEOF
 
1306
 
 
1307
 
 
1308
cat >>confdefs.h <<_ACEOF
 
1309
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1310
_ACEOF
 
1311
 
 
1312
 
 
1313
cat >>confdefs.h <<_ACEOF
 
1314
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1315
_ACEOF
 
1316
 
 
1317
 
 
1318
cat >>confdefs.h <<_ACEOF
 
1319
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1320
_ACEOF
 
1321
 
 
1322
 
 
1323
cat >>confdefs.h <<_ACEOF
 
1324
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1325
_ACEOF
 
1326
 
 
1327
 
 
1328
# Let the site file select an alternate cache file if it wants to.
 
1329
# Prefer explicitly selected file to automatically selected ones.
 
1330
if test -z "$CONFIG_SITE"; then
 
1331
  if test "x$prefix" != xNONE; then
 
1332
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1333
  else
 
1334
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1335
  fi
 
1336
fi
 
1337
for ac_site_file in $CONFIG_SITE; do
 
1338
  if test -r "$ac_site_file"; then
 
1339
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1340
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1341
    sed 's/^/| /' "$ac_site_file" >&5
 
1342
    . "$ac_site_file"
 
1343
  fi
 
1344
done
 
1345
 
 
1346
if test -r "$cache_file"; then
 
1347
  # Some versions of bash will fail to source /dev/null (special
 
1348
  # files actually), so we avoid doing that.
 
1349
  if test -f "$cache_file"; then
 
1350
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1351
echo "$as_me: loading cache $cache_file" >&6;}
 
1352
    case $cache_file in
 
1353
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1354
      *)                      . ./$cache_file;;
 
1355
    esac
 
1356
  fi
 
1357
else
 
1358
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1359
echo "$as_me: creating cache $cache_file" >&6;}
 
1360
  >$cache_file
 
1361
fi
 
1362
 
 
1363
# Check that the precious variables saved in the cache have kept the same
 
1364
# value.
 
1365
ac_cache_corrupted=false
 
1366
for ac_var in `(set) 2>&1 |
 
1367
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1368
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1369
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1370
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1371
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1372
  case $ac_old_set,$ac_new_set in
 
1373
    set,)
 
1374
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1375
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1376
      ac_cache_corrupted=: ;;
 
1377
    ,set)
 
1378
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1379
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1380
      ac_cache_corrupted=: ;;
 
1381
    ,);;
 
1382
    *)
 
1383
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1384
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1385
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1386
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1387
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1388
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1389
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1390
        ac_cache_corrupted=:
 
1391
      fi;;
 
1392
  esac
 
1393
  # Pass precious variables to config.status.
 
1394
  if test "$ac_new_set" = set; then
 
1395
    case $ac_new_val in
 
1396
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1397
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1398
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1399
    esac
 
1400
    case " $ac_configure_args " in
 
1401
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1402
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1403
    esac
 
1404
  fi
 
1405
done
 
1406
if $ac_cache_corrupted; then
 
1407
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1408
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1409
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1410
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1411
   { (exit 1); exit 1; }; }
 
1412
fi
 
1413
 
 
1414
ac_ext=c
 
1415
ac_cpp='$CPP $CPPFLAGS'
 
1416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1419
 
 
1420
 
 
1421
 
 
1422
 
 
1423
 
 
1424
 
 
1425
 
 
1426
 
 
1427
 
 
1428
 
 
1429
 
 
1430
 
 
1431
 
 
1432
 
 
1433
 
 
1434
 
 
1435
 
 
1436
 
 
1437
 
 
1438
 
 
1439
 
 
1440
 
 
1441
 
 
1442
 
 
1443
 
 
1444
 
 
1445
 
 
1446
ac_aux_dir=
 
1447
for ac_dir in cfg $srcdir/cfg; do
 
1448
  if test -f $ac_dir/install-sh; then
 
1449
    ac_aux_dir=$ac_dir
 
1450
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1451
    break
 
1452
  elif test -f $ac_dir/install.sh; then
 
1453
    ac_aux_dir=$ac_dir
 
1454
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1455
    break
 
1456
  elif test -f $ac_dir/shtool; then
 
1457
    ac_aux_dir=$ac_dir
 
1458
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1459
    break
 
1460
  fi
 
1461
done
 
1462
if test -z "$ac_aux_dir"; then
 
1463
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfg $srcdir/cfg" >&5
 
1464
echo "$as_me: error: cannot find install-sh or install.sh in cfg $srcdir/cfg" >&2;}
 
1465
   { (exit 1); exit 1; }; }
 
1466
fi
 
1467
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1468
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1469
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
# **************************************************************************
 
1477
 
 
1478
# Make sure we can run config.sub.
 
1479
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1480
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1481
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1482
   { (exit 1); exit 1; }; }
 
1483
 
 
1484
echo "$as_me:$LINENO: checking build system type" >&5
 
1485
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1486
if test "${ac_cv_build+set}" = set; then
 
1487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1488
else
 
1489
  ac_cv_build_alias=$build_alias
 
1490
test -z "$ac_cv_build_alias" &&
 
1491
  ac_cv_build_alias=`$ac_config_guess`
 
1492
test -z "$ac_cv_build_alias" &&
 
1493
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1494
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1495
   { (exit 1); exit 1; }; }
 
1496
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1497
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1498
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1499
   { (exit 1); exit 1; }; }
 
1500
 
 
1501
fi
 
1502
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1503
echo "${ECHO_T}$ac_cv_build" >&6
 
1504
build=$ac_cv_build
 
1505
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1506
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1507
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1508
 
 
1509
 
 
1510
echo "$as_me:$LINENO: checking host system type" >&5
 
1511
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1512
if test "${ac_cv_host+set}" = set; then
 
1513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1514
else
 
1515
  ac_cv_host_alias=$host_alias
 
1516
test -z "$ac_cv_host_alias" &&
 
1517
  ac_cv_host_alias=$ac_cv_build_alias
 
1518
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1519
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1520
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1521
   { (exit 1); exit 1; }; }
 
1522
 
 
1523
fi
 
1524
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1525
echo "${ECHO_T}$ac_cv_host" >&6
 
1526
host=$ac_cv_host
 
1527
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1528
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1529
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1530
 
 
1531
 
 
1532
echo "$as_me:$LINENO: checking target system type" >&5
 
1533
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1534
if test "${ac_cv_target+set}" = set; then
 
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1536
else
 
1537
  ac_cv_target_alias=$target_alias
 
1538
test "x$ac_cv_target_alias" = "x" &&
 
1539
  ac_cv_target_alias=$ac_cv_host_alias
 
1540
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1541
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1542
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1543
   { (exit 1); exit 1; }; }
 
1544
 
 
1545
fi
 
1546
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1547
echo "${ECHO_T}$ac_cv_target" >&6
 
1548
target=$ac_cv_target
 
1549
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1550
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1551
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1552
 
 
1553
 
 
1554
# The aliases save the names the user supplied, while $host etc.
 
1555
# will get canonicalized.
 
1556
test -n "$target_alias" &&
 
1557
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1558
    NONENONEs,x,x, &&
 
1559
  program_prefix=${target_alias}-
 
1560
 
 
1561
 
 
1562
# Check whether --enable-msvcdsp or --disable-msvcdsp was given.
 
1563
if test "${enable_msvcdsp+set}" = set; then
 
1564
  enableval="$enable_msvcdsp"
 
1565
  case $enableval in
 
1566
  no | false) sim_ac_make_dsp=false ;;
 
1567
  *)          sim_ac_make_dsp=true ;;
 
1568
  esac
 
1569
else
 
1570
  sim_ac_make_dsp=false
 
1571
fi;
 
1572
 
 
1573
if $sim_ac_make_dsp; then
 
1574
  enable_dependency_tracking=no
 
1575
  enable_libtool_lock=no
 
1576
fi
 
1577
 
 
1578
 
 
1579
# Check whether --enable-msvc or --disable-msvc was given.
 
1580
if test "${enable_msvc+set}" = set; then
 
1581
  enableval="$enable_msvc"
 
1582
  case $enableval in
 
1583
  no | false) sim_ac_try_msvc=false ;;
 
1584
  *)          sim_ac_try_msvc=true ;;
 
1585
  esac
 
1586
else
 
1587
  sim_ac_try_msvc=true
 
1588
fi;
 
1589
 
 
1590
if $sim_ac_try_msvc; then
 
1591
  # **************************************************************************
 
1592
# If the Microsoft Visual C++ cl.exe compiler is available, set us up for
 
1593
# compiling with it and to generate an MSWindows .dll file.
 
1594
 
 
1595
: ${BUILD_WITH_MSVC=false}
 
1596
sim_ac_wrapmsvc=`cd $srcdir; pwd`/cfg/m4/wrapmsvc.exe
 
1597
if test -z "$CC" -a -z "$CXX" && $sim_ac_wrapmsvc >/dev/null 2>&1; then
 
1598
 
 
1599
 
 
1600
  CC=$sim_ac_wrapmsvc
 
1601
  CXX=$sim_ac_wrapmsvc
 
1602
  export CC CXX
 
1603
  BUILD_WITH_MSVC=true
 
1604
fi
 
1605
 
 
1606
 
 
1607
case $CXX in
 
1608
*wrapmsvc.exe)
 
1609
  BUILD_WITH_MSVC=true
 
1610
 
 
1611
  ;;
 
1612
*)
 
1613
  BUILD_WITH_MSVC=false
 
1614
 
 
1615
    case $host in
 
1616
    *-cygwin)
 
1617
echo >&2 ""
 
1618
 
 
1619
 
 
1620
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
1621
if test -f $sim_ac_message_file; then
 
1622
  sim_ac_message="`sed -n -e '/^!no-msvc++$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
1623
  if test x"$sim_ac_message" = x""; then
 
1624
    { { echo "$as_me:$LINENO: error: no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
1625
echo "$as_me: error: no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
1626
   { (exit 1); exit 1; }; }
 
1627
  else
 
1628
    eval "echo >&2 \"$sim_ac_message\""
 
1629
  fi
 
1630
else
 
1631
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
1632
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
1633
   { (exit 1); exit 1; }; }
 
1634
fi
 
1635
 
 
1636
 
 
1637
 
 
1638
echo >&2 ""
 
1639
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
1640
echo "$as_me: error: aborting" >&2;}
 
1641
   { (exit 1); exit 1; }; }
 
1642
 ;;
 
1643
    esac
 
1644
 
 
1645
  ;;
 
1646
esac
 
1647
 
 
1648
fi
 
1649
 
 
1650
# **************************************************************************
 
1651
# Library versioning. For information about our versioning strategy, see the
 
1652
# document ``HACKING'' in the Coin CVS module.
 
1653
 
 
1654
SOQT_MAJOR_VERSION=1
 
1655
 
 
1656
SOQT_MINOR_VERSION=0
 
1657
 
 
1658
SOQT_MICRO_VERSION=2
 
1659
 
 
1660
SOQT_BETA_VERSION=
 
1661
 
 
1662
SOQT_VERSION=$SOQT_MAJOR_VERSION.$SOQT_MINOR_VERSION.$SOQT_MICRO_VERSION$SOQT_BETA_VERSION
 
1663
 
 
1664
 
 
1665
VERSION=$SOQT_VERSION
 
1666
 
 
1667
# Libtool versioning
 
1668
LT_CURRENT=20
 
1669
 
 
1670
LT_REVISION=2
 
1671
 
 
1672
LT_AGE=0
 
1673
 
 
1674
 
 
1675
SOQT_SO_VERSION=20
 
1676
 
 
1677
 
 
1678
 
 
1679
cat >>confdefs.h <<_ACEOF
 
1680
#define SOQT_MAJOR_VERSION $SOQT_MAJOR_VERSION
 
1681
_ACEOF
 
1682
 
 
1683
 
 
1684
cat >>confdefs.h <<_ACEOF
 
1685
#define SOQT_MINOR_VERSION $SOQT_MINOR_VERSION
 
1686
_ACEOF
 
1687
 
 
1688
 
 
1689
cat >>confdefs.h <<_ACEOF
 
1690
#define SOQT_MICRO_VERSION $SOQT_MICRO_VERSION
 
1691
_ACEOF
 
1692
 
 
1693
 
 
1694
cat >>confdefs.h <<_ACEOF
 
1695
#define SOQT_VERSION "$SOQT_VERSION"
 
1696
_ACEOF
 
1697
 
 
1698
 
 
1699
# **************************************************************************
 
1700
 
 
1701
soqt_build_dir=`pwd`
 
1702
soqt_src_dir=`cd "$srcdir"; pwd`
 
1703
soqt_w32_build_dir=`cygpath -w "$soqt_build_dir" 2>/dev/null || echo "$soqt_build_dir"`
 
1704
soqt_w32_src_dir=`cygpath -w "$soqt_src_dir" 2>/dev/null || echo "$soqt_src_dir"`
 
1705
 
 
1706
# **************************************************************************
 
1707
# Miscellaneous options and initializations.
 
1708
 
 
1709
# Find a good install program.  We prefer a C program (faster),
 
1710
# so one script is as good as another.  But avoid the broken or
 
1711
# incompatible versions:
 
1712
# SysV /etc/install, /usr/sbin/install
 
1713
# SunOS /usr/etc/install
 
1714
# IRIX /sbin/install
 
1715
# AIX /bin/install
 
1716
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1717
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1718
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1719
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1720
# ./install, which can be erroneously created by make from ./install.sh.
 
1721
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1722
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1723
if test -z "$INSTALL"; then
 
1724
if test "${ac_cv_path_install+set}" = set; then
 
1725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1726
else
 
1727
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1728
for as_dir in $PATH
 
1729
do
 
1730
  IFS=$as_save_IFS
 
1731
  test -z "$as_dir" && as_dir=.
 
1732
  # Account for people who put trailing slashes in PATH elements.
 
1733
case $as_dir/ in
 
1734
  ./ | .// | /cC/* | \
 
1735
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1736
  /usr/ucb/* ) ;;
 
1737
  *)
 
1738
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1739
    # Don't use installbsd from OSF since it installs stuff as root
 
1740
    # by default.
 
1741
    for ac_prog in ginstall scoinst install; do
 
1742
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1743
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1744
          if test $ac_prog = install &&
 
1745
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1746
            # AIX install.  It has an incompatible calling convention.
 
1747
            :
 
1748
          elif test $ac_prog = install &&
 
1749
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1750
            # program-specific install script used by HP pwplus--don't use.
 
1751
            :
 
1752
          else
 
1753
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1754
            break 3
 
1755
          fi
 
1756
        fi
 
1757
      done
 
1758
    done
 
1759
    ;;
 
1760
esac
 
1761
done
 
1762
 
 
1763
 
 
1764
fi
 
1765
  if test "${ac_cv_path_install+set}" = set; then
 
1766
    INSTALL=$ac_cv_path_install
 
1767
  else
 
1768
    # As a last resort, use the slow shell script.  We don't cache a
 
1769
    # path for INSTALL within a source directory, because that will
 
1770
    # break other packages using the cache if that directory is
 
1771
    # removed, or if the path is relative.
 
1772
    INSTALL=$ac_install_sh
 
1773
  fi
 
1774
fi
 
1775
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1776
echo "${ECHO_T}$INSTALL" >&6
 
1777
 
 
1778
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1779
# It thinks the first close brace ends the variable substitution.
 
1780
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1781
 
 
1782
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1783
 
 
1784
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1785
 
 
1786
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1787
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1788
# Just in case
 
1789
sleep 1
 
1790
echo timestamp > conftest.file
 
1791
# Do `set' in a subshell so we don't clobber the current shell's
 
1792
# arguments.  Must try -L first in case configure is actually a
 
1793
# symlink; some systems play weird games with the mod time of symlinks
 
1794
# (eg FreeBSD returns the mod time of the symlink's containing
 
1795
# directory).
 
1796
if (
 
1797
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1798
   if test "$*" = "X"; then
 
1799
      # -L didn't work.
 
1800
      set X `ls -t $srcdir/configure conftest.file`
 
1801
   fi
 
1802
   rm -f conftest.file
 
1803
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1804
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1805
 
 
1806
      # If neither matched, then we have a broken ls.  This can happen
 
1807
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1808
      # broken ls alias from the environment.  This has actually
 
1809
      # happened.  Such a system could not be considered "sane".
 
1810
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1811
alias in your environment" >&5
 
1812
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1813
alias in your environment" >&2;}
 
1814
   { (exit 1); exit 1; }; }
 
1815
   fi
 
1816
 
 
1817
   test "$2" = conftest.file
 
1818
   )
 
1819
then
 
1820
   # Ok.
 
1821
   :
 
1822
else
 
1823
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1824
Check your system clock" >&5
 
1825
echo "$as_me: error: newly created file is older than distributed files!
 
1826
Check your system clock" >&2;}
 
1827
   { (exit 1); exit 1; }; }
 
1828
fi
 
1829
echo "$as_me:$LINENO: result: yes" >&5
 
1830
echo "${ECHO_T}yes" >&6
 
1831
test "$program_prefix" != NONE &&
 
1832
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1833
# Use a double $ so make ignores it.
 
1834
test "$program_suffix" != NONE &&
 
1835
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1836
# Double any \ or $.  echo might interpret backslashes.
 
1837
# By default was `s,x,x', remove it if useless.
 
1838
cat <<\_ACEOF >conftest.sed
 
1839
s/[\\$]/&&/g;s/;s,x,x,$//
 
1840
_ACEOF
 
1841
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1842
rm conftest.sed
 
1843
 
 
1844
 
 
1845
# expand $ac_aux_dir to an absolute path
 
1846
if test "${CDPATH+set}" = set; then
 
1847
  CDPATH=${ZSH_VERSION+.}:   # as recommended in autoconf.texi
 
1848
fi
 
1849
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1850
 
 
1851
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1852
# Use eval to expand $SHELL
 
1853
if eval "$MISSING --run true"; then
 
1854
  am_missing_run="$MISSING --run "
 
1855
else
 
1856
  am_missing_run=
 
1857
  am_backtick='`'
 
1858
  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
 
1859
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
 
1860
fi
 
1861
 
 
1862
for ac_prog in gawk mawk nawk awk
 
1863
do
 
1864
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1865
set dummy $ac_prog; ac_word=$2
 
1866
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1868
if test "${ac_cv_prog_AWK+set}" = set; then
 
1869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1870
else
 
1871
  if test -n "$AWK"; then
 
1872
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1873
else
 
1874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1875
for as_dir in $PATH
 
1876
do
 
1877
  IFS=$as_save_IFS
 
1878
  test -z "$as_dir" && as_dir=.
 
1879
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1880
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1881
    ac_cv_prog_AWK="$ac_prog"
 
1882
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1883
    break 2
 
1884
  fi
 
1885
done
 
1886
done
 
1887
 
 
1888
fi
 
1889
fi
 
1890
AWK=$ac_cv_prog_AWK
 
1891
if test -n "$AWK"; then
 
1892
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1893
echo "${ECHO_T}$AWK" >&6
 
1894
else
 
1895
  echo "$as_me:$LINENO: result: no" >&5
 
1896
echo "${ECHO_T}no" >&6
 
1897
fi
 
1898
 
 
1899
  test -n "$AWK" && break
 
1900
done
 
1901
 
 
1902
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
1903
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
1904
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1905
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1907
else
 
1908
  cat >conftest.make <<\_ACEOF
 
1909
all:
 
1910
        @echo 'ac_maketemp="${MAKE}"'
 
1911
_ACEOF
 
1912
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1913
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1914
if test -n "$ac_maketemp"; then
 
1915
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1916
else
 
1917
  eval ac_cv_prog_make_${ac_make}_set=no
 
1918
fi
 
1919
rm -f conftest.make
 
1920
fi
 
1921
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1922
  echo "$as_me:$LINENO: result: yes" >&5
 
1923
echo "${ECHO_T}yes" >&6
 
1924
  SET_MAKE=
 
1925
else
 
1926
  echo "$as_me:$LINENO: result: no" >&5
 
1927
echo "${ECHO_T}no" >&6
 
1928
  SET_MAKE="MAKE=${MAKE-make}"
 
1929
fi
 
1930
 
 
1931
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1932
if test "${enable_dependency_tracking+set}" = set; then
 
1933
  enableval="$enable_dependency_tracking"
 
1934
 
 
1935
fi;
 
1936
if test "x$enable_dependency_tracking" != xno; then
 
1937
  am_depcomp="$ac_aux_dir/depcomp"
 
1938
  AMDEPBACKSLASH='\'
 
1939
fi
 
1940
 
 
1941
 
 
1942
if test "x$enable_dependency_tracking" != xno; then
 
1943
  AMDEP_TRUE=
 
1944
  AMDEP_FALSE='#'
 
1945
else
 
1946
  AMDEP_TRUE='#'
 
1947
  AMDEP_FALSE=
 
1948
fi
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
rm -f .deps 2>/dev/null
 
1954
mkdir .deps 2>/dev/null
 
1955
if test -d .deps; then
 
1956
  DEPDIR=.deps
 
1957
else
 
1958
  # MS-DOS does not allow filenames that begin with a dot.
 
1959
  DEPDIR=_deps
 
1960
fi
 
1961
rmdir .deps 2>/dev/null
 
1962
 
 
1963
 
 
1964
# test to see if srcdir already configured
 
1965
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
1966
   test -f $srcdir/config.status; then
 
1967
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1968
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1969
   { (exit 1); exit 1; }; }
 
1970
fi
 
1971
 
 
1972
# Define the identity of the package.
 
1973
PACKAGE=SoQt
 
1974
VERSION=$VERSION
 
1975
 
 
1976
cat >>confdefs.h <<_ACEOF
 
1977
#define PACKAGE "$PACKAGE"
 
1978
_ACEOF
 
1979
 
 
1980
 
 
1981
cat >>confdefs.h <<_ACEOF
 
1982
#define VERSION "$VERSION"
 
1983
_ACEOF
 
1984
 
 
1985
 
 
1986
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 
1987
# the ones we care about.
 
1988
 
 
1989
# Autoconf 2.50 always computes EXEEXT.  However we need to be
 
1990
# compatible with 2.13, for now.  So we always define EXEEXT, but we
 
1991
# don't compute it.
 
1992
 
 
1993
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
 
1994
# requests that it be used.  This is a bit dumb.
 
1995
: ${OBJEXT=o}
 
1996
 
 
1997
 
 
1998
# Some tools Automake needs.
 
1999
 
 
2000
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
2001
 
 
2002
 
 
2003
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2004
 
 
2005
 
 
2006
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
2007
 
 
2008
 
 
2009
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2010
 
 
2011
 
 
2012
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2013
 
 
2014
 
 
2015
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2016
 
 
2017
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2018
 
 
2019
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2020
 
 
2021
# We need awk for the "check" target.  The system "awk" is bad on
 
2022
# some platforms.
 
2023
 
 
2024
 
 
2025
# File to cram results from the configure tests into.
 
2026
# we pit this in src/ to avoid having to add extra INCLUDES directives in
 
2027
# MAkefile.am
 
2028
 
 
2029
 
 
2030
 
 
2031
                                                    ac_config_headers="$ac_config_headers src/config.h"
 
2032
 
 
2033
 
 
2034
# Default to not building a static library.
 
2035
# Can be overridden by the user with --enable-static.
 
2036
# Check whether --enable-static or --disable-static was given.
 
2037
if test "${enable_static+set}" = set; then
 
2038
  enableval="$enable_static"
 
2039
  p=${PACKAGE-default}
 
2040
case $enableval in
 
2041
yes) enable_static=yes ;;
 
2042
no) enable_static=no ;;
 
2043
*)
 
2044
  enable_static=no
 
2045
  # Look at the argument we got.  We use all the common list separators.
 
2046
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2047
  for pkg in $enableval; do
 
2048
    if test "X$pkg" = "X$p"; then
 
2049
      enable_static=yes
 
2050
    fi
 
2051
  done
 
2052
  IFS="$ac_save_ifs"
 
2053
  ;;
 
2054
esac
 
2055
else
 
2056
  enable_static=no
 
2057
fi;
 
2058
 
 
2059
# Turn off default maintainer make-rules -- use ./bootstrap instead.
 
2060
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2061
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
2062
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
2063
if test "${enable_maintainer_mode+set}" = set; then
 
2064
  enableval="$enable_maintainer_mode"
 
2065
  USE_MAINTAINER_MODE=$enableval
 
2066
else
 
2067
  USE_MAINTAINER_MODE=no
 
2068
fi;
 
2069
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2070
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
2071
 
 
2072
 
 
2073
if test $USE_MAINTAINER_MODE = yes; then
 
2074
  MAINTAINER_MODE_TRUE=
 
2075
  MAINTAINER_MODE_FALSE='#'
 
2076
else
 
2077
  MAINTAINER_MODE_TRUE='#'
 
2078
  MAINTAINER_MODE_FALSE=
 
2079
fi
 
2080
  MAINT=$MAINTAINER_MODE_TRUE
 
2081
 
 
2082
 
 
2083
 
 
2084
# Use C++ for configure tests and Libtool.
 
2085
ac_ext=c
 
2086
ac_cpp='$CPP $CPPFLAGS'
 
2087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2090
if test -n "$ac_tool_prefix"; then
 
2091
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2092
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2093
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2095
if test "${ac_cv_prog_CC+set}" = set; then
 
2096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2097
else
 
2098
  if test -n "$CC"; then
 
2099
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2100
else
 
2101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2102
for as_dir in $PATH
 
2103
do
 
2104
  IFS=$as_save_IFS
 
2105
  test -z "$as_dir" && as_dir=.
 
2106
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2108
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2110
    break 2
 
2111
  fi
 
2112
done
 
2113
done
 
2114
 
 
2115
fi
 
2116
fi
 
2117
CC=$ac_cv_prog_CC
 
2118
if test -n "$CC"; then
 
2119
  echo "$as_me:$LINENO: result: $CC" >&5
 
2120
echo "${ECHO_T}$CC" >&6
 
2121
else
 
2122
  echo "$as_me:$LINENO: result: no" >&5
 
2123
echo "${ECHO_T}no" >&6
 
2124
fi
 
2125
 
 
2126
fi
 
2127
if test -z "$ac_cv_prog_CC"; then
 
2128
  ac_ct_CC=$CC
 
2129
  # Extract the first word of "gcc", so it can be a program name with args.
 
2130
set dummy gcc; ac_word=$2
 
2131
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2133
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2135
else
 
2136
  if test -n "$ac_ct_CC"; then
 
2137
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2138
else
 
2139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2140
for as_dir in $PATH
 
2141
do
 
2142
  IFS=$as_save_IFS
 
2143
  test -z "$as_dir" && as_dir=.
 
2144
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2145
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2146
    ac_cv_prog_ac_ct_CC="gcc"
 
2147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2148
    break 2
 
2149
  fi
 
2150
done
 
2151
done
 
2152
 
 
2153
fi
 
2154
fi
 
2155
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2156
if test -n "$ac_ct_CC"; then
 
2157
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2158
echo "${ECHO_T}$ac_ct_CC" >&6
 
2159
else
 
2160
  echo "$as_me:$LINENO: result: no" >&5
 
2161
echo "${ECHO_T}no" >&6
 
2162
fi
 
2163
 
 
2164
  CC=$ac_ct_CC
 
2165
else
 
2166
  CC="$ac_cv_prog_CC"
 
2167
fi
 
2168
 
 
2169
if test -z "$CC"; then
 
2170
  if test -n "$ac_tool_prefix"; then
 
2171
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2172
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2173
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2174
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2175
if test "${ac_cv_prog_CC+set}" = set; then
 
2176
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2177
else
 
2178
  if test -n "$CC"; then
 
2179
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2180
else
 
2181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2182
for as_dir in $PATH
 
2183
do
 
2184
  IFS=$as_save_IFS
 
2185
  test -z "$as_dir" && as_dir=.
 
2186
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2187
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2188
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2189
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2190
    break 2
 
2191
  fi
 
2192
done
 
2193
done
 
2194
 
 
2195
fi
 
2196
fi
 
2197
CC=$ac_cv_prog_CC
 
2198
if test -n "$CC"; then
 
2199
  echo "$as_me:$LINENO: result: $CC" >&5
 
2200
echo "${ECHO_T}$CC" >&6
 
2201
else
 
2202
  echo "$as_me:$LINENO: result: no" >&5
 
2203
echo "${ECHO_T}no" >&6
 
2204
fi
 
2205
 
 
2206
fi
 
2207
if test -z "$ac_cv_prog_CC"; then
 
2208
  ac_ct_CC=$CC
 
2209
  # Extract the first word of "cc", so it can be a program name with args.
 
2210
set dummy cc; ac_word=$2
 
2211
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2212
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2213
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2215
else
 
2216
  if test -n "$ac_ct_CC"; then
 
2217
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2218
else
 
2219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2220
for as_dir in $PATH
 
2221
do
 
2222
  IFS=$as_save_IFS
 
2223
  test -z "$as_dir" && as_dir=.
 
2224
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2225
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2226
    ac_cv_prog_ac_ct_CC="cc"
 
2227
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2228
    break 2
 
2229
  fi
 
2230
done
 
2231
done
 
2232
 
 
2233
fi
 
2234
fi
 
2235
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2236
if test -n "$ac_ct_CC"; then
 
2237
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2238
echo "${ECHO_T}$ac_ct_CC" >&6
 
2239
else
 
2240
  echo "$as_me:$LINENO: result: no" >&5
 
2241
echo "${ECHO_T}no" >&6
 
2242
fi
 
2243
 
 
2244
  CC=$ac_ct_CC
 
2245
else
 
2246
  CC="$ac_cv_prog_CC"
 
2247
fi
 
2248
 
 
2249
fi
 
2250
if test -z "$CC"; then
 
2251
  # Extract the first word of "cc", so it can be a program name with args.
 
2252
set dummy cc; ac_word=$2
 
2253
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2254
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2255
if test "${ac_cv_prog_CC+set}" = set; then
 
2256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2257
else
 
2258
  if test -n "$CC"; then
 
2259
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2260
else
 
2261
  ac_prog_rejected=no
 
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2263
for as_dir in $PATH
 
2264
do
 
2265
  IFS=$as_save_IFS
 
2266
  test -z "$as_dir" && as_dir=.
 
2267
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2268
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2269
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2270
       ac_prog_rejected=yes
 
2271
       continue
 
2272
     fi
 
2273
    ac_cv_prog_CC="cc"
 
2274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2275
    break 2
 
2276
  fi
 
2277
done
 
2278
done
 
2279
 
 
2280
if test $ac_prog_rejected = yes; then
 
2281
  # We found a bogon in the path, so make sure we never use it.
 
2282
  set dummy $ac_cv_prog_CC
 
2283
  shift
 
2284
  if test $# != 0; then
 
2285
    # We chose a different compiler from the bogus one.
 
2286
    # However, it has the same basename, so the bogon will be chosen
 
2287
    # first if we set CC to just the basename; use the full file name.
 
2288
    shift
 
2289
    set dummy "$as_dir/$ac_word" ${1+"$@"}
 
2290
    shift
 
2291
    ac_cv_prog_CC="$@"
 
2292
  fi
 
2293
fi
 
2294
fi
 
2295
fi
 
2296
CC=$ac_cv_prog_CC
 
2297
if test -n "$CC"; then
 
2298
  echo "$as_me:$LINENO: result: $CC" >&5
 
2299
echo "${ECHO_T}$CC" >&6
 
2300
else
 
2301
  echo "$as_me:$LINENO: result: no" >&5
 
2302
echo "${ECHO_T}no" >&6
 
2303
fi
 
2304
 
 
2305
fi
 
2306
if test -z "$CC"; then
 
2307
  if test -n "$ac_tool_prefix"; then
 
2308
  for ac_prog in cl
 
2309
  do
 
2310
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2311
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2312
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2314
if test "${ac_cv_prog_CC+set}" = set; then
 
2315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2316
else
 
2317
  if test -n "$CC"; then
 
2318
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2319
else
 
2320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2321
for as_dir in $PATH
 
2322
do
 
2323
  IFS=$as_save_IFS
 
2324
  test -z "$as_dir" && as_dir=.
 
2325
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2326
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2327
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2328
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2329
    break 2
 
2330
  fi
 
2331
done
 
2332
done
 
2333
 
 
2334
fi
 
2335
fi
 
2336
CC=$ac_cv_prog_CC
 
2337
if test -n "$CC"; then
 
2338
  echo "$as_me:$LINENO: result: $CC" >&5
 
2339
echo "${ECHO_T}$CC" >&6
 
2340
else
 
2341
  echo "$as_me:$LINENO: result: no" >&5
 
2342
echo "${ECHO_T}no" >&6
 
2343
fi
 
2344
 
 
2345
    test -n "$CC" && break
 
2346
  done
 
2347
fi
 
2348
if test -z "$CC"; then
 
2349
  ac_ct_CC=$CC
 
2350
  for ac_prog in cl
 
2351
do
 
2352
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2353
set dummy $ac_prog; ac_word=$2
 
2354
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2356
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2358
else
 
2359
  if test -n "$ac_ct_CC"; then
 
2360
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2361
else
 
2362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2363
for as_dir in $PATH
 
2364
do
 
2365
  IFS=$as_save_IFS
 
2366
  test -z "$as_dir" && as_dir=.
 
2367
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2368
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2369
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2371
    break 2
 
2372
  fi
 
2373
done
 
2374
done
 
2375
 
 
2376
fi
 
2377
fi
 
2378
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2379
if test -n "$ac_ct_CC"; then
 
2380
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2381
echo "${ECHO_T}$ac_ct_CC" >&6
 
2382
else
 
2383
  echo "$as_me:$LINENO: result: no" >&5
 
2384
echo "${ECHO_T}no" >&6
 
2385
fi
 
2386
 
 
2387
  test -n "$ac_ct_CC" && break
 
2388
done
 
2389
 
 
2390
  CC=$ac_ct_CC
 
2391
fi
 
2392
 
 
2393
fi
 
2394
 
 
2395
 
 
2396
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
 
2397
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
 
2398
   { (exit 1); exit 1; }; }
 
2399
 
 
2400
# Provide some information about the compiler.
 
2401
echo "$as_me:$LINENO:" \
 
2402
     "checking for C compiler version" >&5
 
2403
ac_compiler=`set X $ac_compile; echo $2`
 
2404
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2405
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2406
  ac_status=$?
 
2407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2408
  (exit $ac_status); }
 
2409
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2410
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2411
  ac_status=$?
 
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2413
  (exit $ac_status); }
 
2414
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2415
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2416
  ac_status=$?
 
2417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2418
  (exit $ac_status); }
 
2419
 
 
2420
cat >conftest.$ac_ext <<_ACEOF
 
2421
#line $LINENO "configure"
 
2422
#include "confdefs.h"
 
2423
 
 
2424
#ifdef F77_DUMMY_MAIN
 
2425
#  ifdef __cplusplus
 
2426
     extern "C"
 
2427
#  endif
 
2428
   int F77_DUMMY_MAIN() { return 1; }
 
2429
#endif
 
2430
int
 
2431
main ()
 
2432
{
 
2433
 
 
2434
  ;
 
2435
  return 0;
 
2436
}
 
2437
_ACEOF
 
2438
ac_clean_files_save=$ac_clean_files
 
2439
ac_clean_files="$ac_clean_files a.out a.exe"
 
2440
# Try to create an executable without -o first, disregard a.out.
 
2441
# It will help us diagnose broken compilers, and finding out an intuition
 
2442
# of exeext.
 
2443
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2444
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2445
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2446
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2447
  (eval $ac_link_default) 2>&5
 
2448
  ac_status=$?
 
2449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2450
  (exit $ac_status); }; then
 
2451
  # Find the output, starting from the most likely.  This scheme is
 
2452
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2453
# resort.
 
2454
 
 
2455
# Be careful to initialize this variable, since it used to be cached.
 
2456
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2457
ac_cv_exeext=
 
2458
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
 
2459
                ls a.out conftest 2>/dev/null;
 
2460
                ls a.* conftest.* 2>/dev/null`; do
 
2461
  case $ac_file in
 
2462
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
 
2463
    a.out ) # We found the default executable, but exeext='' is most
 
2464
            # certainly right.
 
2465
            break;;
 
2466
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2467
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
2468
          export ac_cv_exeext
 
2469
          break;;
 
2470
    * ) break;;
 
2471
  esac
 
2472
done
 
2473
else
 
2474
  echo "$as_me: failed program was:" >&5
 
2475
cat conftest.$ac_ext >&5
 
2476
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
 
2477
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2478
   { (exit 77); exit 77; }; }
 
2479
fi
 
2480
 
 
2481
ac_exeext=$ac_cv_exeext
 
2482
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2483
echo "${ECHO_T}$ac_file" >&6
 
2484
 
 
2485
# Check the compiler produces executables we can run.  If not, either
 
2486
# the compiler is broken, or we cross compile.
 
2487
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2488
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2489
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2490
# If not cross compiling, check that we can run a simple program.
 
2491
if test "$cross_compiling" != yes; then
 
2492
  if { ac_try='./$ac_file'
 
2493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2494
  (eval $ac_try) 2>&5
 
2495
  ac_status=$?
 
2496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2497
  (exit $ac_status); }; }; then
 
2498
    cross_compiling=no
 
2499
  else
 
2500
    if test "$cross_compiling" = maybe; then
 
2501
        cross_compiling=yes
 
2502
    else
 
2503
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2504
If you meant to cross compile, use \`--host'." >&5
 
2505
echo "$as_me: error: cannot run C compiled programs.
 
2506
If you meant to cross compile, use \`--host'." >&2;}
 
2507
   { (exit 1); exit 1; }; }
 
2508
    fi
 
2509
  fi
 
2510
fi
 
2511
echo "$as_me:$LINENO: result: yes" >&5
 
2512
echo "${ECHO_T}yes" >&6
 
2513
 
 
2514
rm -f a.out a.exe conftest$ac_cv_exeext
 
2515
ac_clean_files=$ac_clean_files_save
 
2516
# Check the compiler produces executables we can run.  If not, either
 
2517
# the compiler is broken, or we cross compile.
 
2518
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2519
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2520
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2521
echo "${ECHO_T}$cross_compiling" >&6
 
2522
 
 
2523
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2524
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2526
  (eval $ac_link) 2>&5
 
2527
  ac_status=$?
 
2528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2529
  (exit $ac_status); }; then
 
2530
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2531
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2532
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2533
# `rm'.
 
2534
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2535
  case $ac_file in
 
2536
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2537
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2538
          export ac_cv_exeext
 
2539
          break;;
 
2540
    * ) break;;
 
2541
  esac
 
2542
done
 
2543
else
 
2544
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
 
2545
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
 
2546
   { (exit 1); exit 1; }; }
 
2547
fi
 
2548
 
 
2549
rm -f conftest$ac_cv_exeext
 
2550
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2551
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2552
 
 
2553
rm -f conftest.$ac_ext
 
2554
EXEEXT=$ac_cv_exeext
 
2555
ac_exeext=$EXEEXT
 
2556
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2557
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2558
if test "${ac_cv_objext+set}" = set; then
 
2559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2560
else
 
2561
  cat >conftest.$ac_ext <<_ACEOF
 
2562
#line $LINENO "configure"
 
2563
#include "confdefs.h"
 
2564
 
 
2565
#ifdef F77_DUMMY_MAIN
 
2566
#  ifdef __cplusplus
 
2567
     extern "C"
 
2568
#  endif
 
2569
   int F77_DUMMY_MAIN() { return 1; }
 
2570
#endif
 
2571
int
 
2572
main ()
 
2573
{
 
2574
 
 
2575
  ;
 
2576
  return 0;
 
2577
}
 
2578
_ACEOF
 
2579
rm -f conftest.o conftest.obj
 
2580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2581
  (eval $ac_compile) 2>&5
 
2582
  ac_status=$?
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); }; then
 
2585
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2586
  case $ac_file in
 
2587
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2588
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2589
       break;;
 
2590
  esac
 
2591
done
 
2592
else
 
2593
  echo "$as_me: failed program was:" >&5
 
2594
cat conftest.$ac_ext >&5
 
2595
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
 
2596
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
 
2597
   { (exit 1); exit 1; }; }
 
2598
fi
 
2599
 
 
2600
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2601
fi
 
2602
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2603
echo "${ECHO_T}$ac_cv_objext" >&6
 
2604
OBJEXT=$ac_cv_objext
 
2605
ac_objext=$OBJEXT
 
2606
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2607
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2608
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2610
else
 
2611
  cat >conftest.$ac_ext <<_ACEOF
 
2612
#line $LINENO "configure"
 
2613
#include "confdefs.h"
 
2614
 
 
2615
#ifdef F77_DUMMY_MAIN
 
2616
#  ifdef __cplusplus
 
2617
     extern "C"
 
2618
#  endif
 
2619
   int F77_DUMMY_MAIN() { return 1; }
 
2620
#endif
 
2621
int
 
2622
main ()
 
2623
{
 
2624
#ifndef __GNUC__
 
2625
       choke me
 
2626
#endif
 
2627
 
 
2628
  ;
 
2629
  return 0;
 
2630
}
 
2631
_ACEOF
 
2632
rm -f conftest.$ac_objext
 
2633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2634
  (eval $ac_compile) 2>&5
 
2635
  ac_status=$?
 
2636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2637
  (exit $ac_status); } &&
 
2638
         { ac_try='test -s conftest.$ac_objext'
 
2639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2640
  (eval $ac_try) 2>&5
 
2641
  ac_status=$?
 
2642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2643
  (exit $ac_status); }; }; then
 
2644
  ac_compiler_gnu=yes
 
2645
else
 
2646
  echo "$as_me: failed program was:" >&5
 
2647
cat conftest.$ac_ext >&5
 
2648
ac_compiler_gnu=no
 
2649
fi
 
2650
rm -f conftest.$ac_objext conftest.$ac_ext
 
2651
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2652
 
 
2653
fi
 
2654
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2655
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2656
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2657
ac_test_CFLAGS=${CFLAGS+set}
 
2658
ac_save_CFLAGS=$CFLAGS
 
2659
CFLAGS="-g"
 
2660
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2661
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2662
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2664
else
 
2665
  cat >conftest.$ac_ext <<_ACEOF
 
2666
#line $LINENO "configure"
 
2667
#include "confdefs.h"
 
2668
 
 
2669
#ifdef F77_DUMMY_MAIN
 
2670
#  ifdef __cplusplus
 
2671
     extern "C"
 
2672
#  endif
 
2673
   int F77_DUMMY_MAIN() { return 1; }
 
2674
#endif
 
2675
int
 
2676
main ()
 
2677
{
 
2678
 
 
2679
  ;
 
2680
  return 0;
 
2681
}
 
2682
_ACEOF
 
2683
rm -f conftest.$ac_objext
 
2684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2685
  (eval $ac_compile) 2>&5
 
2686
  ac_status=$?
 
2687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2688
  (exit $ac_status); } &&
 
2689
         { ac_try='test -s conftest.$ac_objext'
 
2690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2691
  (eval $ac_try) 2>&5
 
2692
  ac_status=$?
 
2693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2694
  (exit $ac_status); }; }; then
 
2695
  ac_cv_prog_cc_g=yes
 
2696
else
 
2697
  echo "$as_me: failed program was:" >&5
 
2698
cat conftest.$ac_ext >&5
 
2699
ac_cv_prog_cc_g=no
 
2700
fi
 
2701
rm -f conftest.$ac_objext conftest.$ac_ext
 
2702
fi
 
2703
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2704
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2705
if test "$ac_test_CFLAGS" = set; then
 
2706
  CFLAGS=$ac_save_CFLAGS
 
2707
elif test $ac_cv_prog_cc_g = yes; then
 
2708
  if test "$GCC" = yes; then
 
2709
    CFLAGS="-g -O2"
 
2710
  else
 
2711
    CFLAGS="-g"
 
2712
  fi
 
2713
else
 
2714
  if test "$GCC" = yes; then
 
2715
    CFLAGS="-O2"
 
2716
  else
 
2717
    CFLAGS=
 
2718
  fi
 
2719
fi
 
2720
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2721
# in C++ we need to declare it.  In case someone uses the same compiler
 
2722
# for both compiling C and C++ we need to have the C++ compiler decide
 
2723
# the declaration of exit, since it's the most demanding environment.
 
2724
cat >conftest.$ac_ext <<_ACEOF
 
2725
#ifndef __cplusplus
 
2726
  choke me
 
2727
#endif
 
2728
_ACEOF
 
2729
rm -f conftest.$ac_objext
 
2730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2731
  (eval $ac_compile) 2>&5
 
2732
  ac_status=$?
 
2733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2734
  (exit $ac_status); } &&
 
2735
         { ac_try='test -s conftest.$ac_objext'
 
2736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2737
  (eval $ac_try) 2>&5
 
2738
  ac_status=$?
 
2739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2740
  (exit $ac_status); }; }; then
 
2741
  for ac_declaration in \
 
2742
   ''\
 
2743
   '#include <stdlib.h>' \
 
2744
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2745
   'extern "C" void std::exit (int); using std::exit;' \
 
2746
   'extern "C" void exit (int) throw ();' \
 
2747
   'extern "C" void exit (int);' \
 
2748
   'void exit (int);'
 
2749
do
 
2750
  cat >conftest.$ac_ext <<_ACEOF
 
2751
#line $LINENO "configure"
 
2752
#include "confdefs.h"
 
2753
#include <stdlib.h>
 
2754
$ac_declaration
 
2755
#ifdef F77_DUMMY_MAIN
 
2756
#  ifdef __cplusplus
 
2757
     extern "C"
 
2758
#  endif
 
2759
   int F77_DUMMY_MAIN() { return 1; }
 
2760
#endif
 
2761
int
 
2762
main ()
 
2763
{
 
2764
exit (42);
 
2765
  ;
 
2766
  return 0;
 
2767
}
 
2768
_ACEOF
 
2769
rm -f conftest.$ac_objext
 
2770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2771
  (eval $ac_compile) 2>&5
 
2772
  ac_status=$?
 
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2774
  (exit $ac_status); } &&
 
2775
         { ac_try='test -s conftest.$ac_objext'
 
2776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2777
  (eval $ac_try) 2>&5
 
2778
  ac_status=$?
 
2779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2780
  (exit $ac_status); }; }; then
 
2781
  :
 
2782
else
 
2783
  echo "$as_me: failed program was:" >&5
 
2784
cat conftest.$ac_ext >&5
 
2785
continue
 
2786
fi
 
2787
rm -f conftest.$ac_objext conftest.$ac_ext
 
2788
  cat >conftest.$ac_ext <<_ACEOF
 
2789
#line $LINENO "configure"
 
2790
#include "confdefs.h"
 
2791
$ac_declaration
 
2792
#ifdef F77_DUMMY_MAIN
 
2793
#  ifdef __cplusplus
 
2794
     extern "C"
 
2795
#  endif
 
2796
   int F77_DUMMY_MAIN() { return 1; }
 
2797
#endif
 
2798
int
 
2799
main ()
 
2800
{
 
2801
exit (42);
 
2802
  ;
 
2803
  return 0;
 
2804
}
 
2805
_ACEOF
 
2806
rm -f conftest.$ac_objext
 
2807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2808
  (eval $ac_compile) 2>&5
 
2809
  ac_status=$?
 
2810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2811
  (exit $ac_status); } &&
 
2812
         { ac_try='test -s conftest.$ac_objext'
 
2813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2814
  (eval $ac_try) 2>&5
 
2815
  ac_status=$?
 
2816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2817
  (exit $ac_status); }; }; then
 
2818
  break
 
2819
else
 
2820
  echo "$as_me: failed program was:" >&5
 
2821
cat conftest.$ac_ext >&5
 
2822
fi
 
2823
rm -f conftest.$ac_objext conftest.$ac_ext
 
2824
done
 
2825
rm -f conftest*
 
2826
if test -n "$ac_declaration"; then
 
2827
  echo '#ifdef __cplusplus' >>confdefs.h
 
2828
  echo $ac_declaration      >>confdefs.h
 
2829
  echo '#endif'             >>confdefs.h
 
2830
fi
 
2831
 
 
2832
else
 
2833
  echo "$as_me: failed program was:" >&5
 
2834
cat conftest.$ac_ext >&5
 
2835
fi
 
2836
rm -f conftest.$ac_objext conftest.$ac_ext
 
2837
ac_ext=c
 
2838
ac_cpp='$CPP $CPPFLAGS'
 
2839
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2840
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2841
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2842
 
 
2843
ac_config_commands="$ac_config_commands default-1"
 
2844
 
 
2845
am_make=${MAKE-make}
 
2846
cat > confinc << 'END'
 
2847
doit:
 
2848
        @echo done
 
2849
END
 
2850
# If we don't find an include directive, just comment out the code.
 
2851
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2852
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2853
am__include='#'
 
2854
am__quote=
 
2855
_am_result=none
 
2856
# First try GNU make style include.
 
2857
echo "include confinc" > confmf
 
2858
# We grep out `Entering directory' and `Leaving directory'
 
2859
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2860
# In particular we don't look at `^make:' because GNU make might
 
2861
# be invoked under some other name (usually "gmake"), in which
 
2862
# case it prints its new name instead of `make'.
 
2863
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
2864
   am__include=include
 
2865
   am__quote=
 
2866
   _am_result=GNU
 
2867
fi
 
2868
# Now try BSD make style include.
 
2869
if test "$am__include" = "#"; then
 
2870
   echo '.include "confinc"' > confmf
 
2871
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2872
      am__include=.include
 
2873
      am__quote='"'
 
2874
      _am_result=BSD
 
2875
   fi
 
2876
fi
 
2877
 
 
2878
 
 
2879
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2880
echo "${ECHO_T}$_am_result" >&6
 
2881
rm -f confinc confmf
 
2882
 
 
2883
 
 
2884
depcc="$CC"   am_compiler_list=
 
2885
 
 
2886
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2887
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2888
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2890
else
 
2891
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2892
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2893
  # making bogus files that we don't know about and never remove.  For
 
2894
  # instance it was reported that on HP-UX the gcc test will end up
 
2895
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2896
  # in D'.
 
2897
  mkdir conftest.dir
 
2898
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2899
  # using a relative directory.
 
2900
  cp "$am_depcomp" conftest.dir
 
2901
  cd conftest.dir
 
2902
 
 
2903
  am_cv_CC_dependencies_compiler_type=none
 
2904
  if test "$am_compiler_list" = ""; then
 
2905
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2906
  fi
 
2907
  for depmode in $am_compiler_list; do
 
2908
    # We need to recreate these files for each test, as the compiler may
 
2909
    # overwrite some of them when testing with obscure command lines.
 
2910
    # This happens at least with the AIX C compiler.
 
2911
    echo '#include "conftest.h"' > conftest.c
 
2912
    echo 'int i;' > conftest.h
 
2913
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2914
 
 
2915
    case $depmode in
 
2916
    nosideeffect)
 
2917
      # after this tag, mechanisms are not by side-effect, so they'll
 
2918
      # only be used when explicitly requested
 
2919
      if test "x$enable_dependency_tracking" = xyes; then
 
2920
        continue
 
2921
      else
 
2922
        break
 
2923
      fi
 
2924
      ;;
 
2925
    none) break ;;
 
2926
    esac
 
2927
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2928
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2929
    # handle `-M -o', and we need to detect this.
 
2930
    if depmode=$depmode \
 
2931
       source=conftest.c object=conftest.o \
 
2932
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2933
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
2934
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2935
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2936
      am_cv_CC_dependencies_compiler_type=$depmode
 
2937
      break
 
2938
    fi
 
2939
  done
 
2940
 
 
2941
  cd ..
 
2942
  rm -rf conftest.dir
 
2943
else
 
2944
  am_cv_CC_dependencies_compiler_type=none
 
2945
fi
 
2946
 
 
2947
fi
 
2948
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2949
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2950
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 
2951
 
 
2952
 
 
2953
ac_ext=c
 
2954
ac_cpp='$CPP $CPPFLAGS'
 
2955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2958
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2959
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2960
# On Suns, sometimes $CPP names a directory.
 
2961
if test -n "$CPP" && test -d "$CPP"; then
 
2962
  CPP=
 
2963
fi
 
2964
if test -z "$CPP"; then
 
2965
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2967
else
 
2968
      # Double quotes because CPP needs to be expanded
 
2969
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2970
    do
 
2971
      ac_preproc_ok=false
 
2972
for ac_c_preproc_warn_flag in '' yes
 
2973
do
 
2974
  # Use a header file that comes with gcc, so configuring glibc
 
2975
  # with a fresh cross-compiler works.
 
2976
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2977
  # not just through cpp. "Syntax error" is here to catch this case.
 
2978
  cat >conftest.$ac_ext <<_ACEOF
 
2979
#line $LINENO "configure"
 
2980
#include "confdefs.h"
 
2981
#include <assert.h>
 
2982
                     Syntax error
 
2983
_ACEOF
 
2984
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2985
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2986
  ac_status=$?
 
2987
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2988
  rm -f conftest.er1
 
2989
  cat conftest.err >&5
 
2990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2991
  (exit $ac_status); } >/dev/null; then
 
2992
  if test -s conftest.err; then
 
2993
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2994
  else
 
2995
    ac_cpp_err=
 
2996
  fi
 
2997
else
 
2998
  ac_cpp_err=yes
 
2999
fi
 
3000
if test -z "$ac_cpp_err"; then
 
3001
  :
 
3002
else
 
3003
  echo "$as_me: failed program was:" >&5
 
3004
  cat conftest.$ac_ext >&5
 
3005
  # Broken: fails on valid input.
 
3006
continue
 
3007
fi
 
3008
rm -f conftest.err conftest.$ac_ext
 
3009
 
 
3010
  # OK, works on sane cases.  Now check whether non-existent headers
 
3011
  # can be detected and how.
 
3012
  cat >conftest.$ac_ext <<_ACEOF
 
3013
#line $LINENO "configure"
 
3014
#include "confdefs.h"
 
3015
#include <ac_nonexistent.h>
 
3016
_ACEOF
 
3017
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3018
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3019
  ac_status=$?
 
3020
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3021
  rm -f conftest.er1
 
3022
  cat conftest.err >&5
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); } >/dev/null; then
 
3025
  if test -s conftest.err; then
 
3026
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3027
  else
 
3028
    ac_cpp_err=
 
3029
  fi
 
3030
else
 
3031
  ac_cpp_err=yes
 
3032
fi
 
3033
if test -z "$ac_cpp_err"; then
 
3034
  # Broken: success on invalid input.
 
3035
continue
 
3036
else
 
3037
  echo "$as_me: failed program was:" >&5
 
3038
  cat conftest.$ac_ext >&5
 
3039
  # Passes both tests.
 
3040
ac_preproc_ok=:
 
3041
break
 
3042
fi
 
3043
rm -f conftest.err conftest.$ac_ext
 
3044
 
 
3045
done
 
3046
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3047
rm -f conftest.err conftest.$ac_ext
 
3048
if $ac_preproc_ok; then
 
3049
  break
 
3050
fi
 
3051
 
 
3052
    done
 
3053
    ac_cv_prog_CPP=$CPP
 
3054
 
 
3055
fi
 
3056
  CPP=$ac_cv_prog_CPP
 
3057
else
 
3058
  ac_cv_prog_CPP=$CPP
 
3059
fi
 
3060
echo "$as_me:$LINENO: result: $CPP" >&5
 
3061
echo "${ECHO_T}$CPP" >&6
 
3062
ac_preproc_ok=false
 
3063
for ac_c_preproc_warn_flag in '' yes
 
3064
do
 
3065
  # Use a header file that comes with gcc, so configuring glibc
 
3066
  # with a fresh cross-compiler works.
 
3067
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3068
  # not just through cpp. "Syntax error" is here to catch this case.
 
3069
  cat >conftest.$ac_ext <<_ACEOF
 
3070
#line $LINENO "configure"
 
3071
#include "confdefs.h"
 
3072
#include <assert.h>
 
3073
                     Syntax error
 
3074
_ACEOF
 
3075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3076
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3077
  ac_status=$?
 
3078
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3079
  rm -f conftest.er1
 
3080
  cat conftest.err >&5
 
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3082
  (exit $ac_status); } >/dev/null; then
 
3083
  if test -s conftest.err; then
 
3084
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3085
  else
 
3086
    ac_cpp_err=
 
3087
  fi
 
3088
else
 
3089
  ac_cpp_err=yes
 
3090
fi
 
3091
if test -z "$ac_cpp_err"; then
 
3092
  :
 
3093
else
 
3094
  echo "$as_me: failed program was:" >&5
 
3095
  cat conftest.$ac_ext >&5
 
3096
  # Broken: fails on valid input.
 
3097
continue
 
3098
fi
 
3099
rm -f conftest.err conftest.$ac_ext
 
3100
 
 
3101
  # OK, works on sane cases.  Now check whether non-existent headers
 
3102
  # can be detected and how.
 
3103
  cat >conftest.$ac_ext <<_ACEOF
 
3104
#line $LINENO "configure"
 
3105
#include "confdefs.h"
 
3106
#include <ac_nonexistent.h>
 
3107
_ACEOF
 
3108
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3109
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3110
  ac_status=$?
 
3111
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3112
  rm -f conftest.er1
 
3113
  cat conftest.err >&5
 
3114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3115
  (exit $ac_status); } >/dev/null; then
 
3116
  if test -s conftest.err; then
 
3117
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3118
  else
 
3119
    ac_cpp_err=
 
3120
  fi
 
3121
else
 
3122
  ac_cpp_err=yes
 
3123
fi
 
3124
if test -z "$ac_cpp_err"; then
 
3125
  # Broken: success on invalid input.
 
3126
continue
 
3127
else
 
3128
  echo "$as_me: failed program was:" >&5
 
3129
  cat conftest.$ac_ext >&5
 
3130
  # Passes both tests.
 
3131
ac_preproc_ok=:
 
3132
break
 
3133
fi
 
3134
rm -f conftest.err conftest.$ac_ext
 
3135
 
 
3136
done
 
3137
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3138
rm -f conftest.err conftest.$ac_ext
 
3139
if $ac_preproc_ok; then
 
3140
  :
 
3141
else
 
3142
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
3143
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
3144
   { (exit 1); exit 1; }; }
 
3145
fi
 
3146
 
 
3147
ac_ext=c
 
3148
ac_cpp='$CPP $CPPFLAGS'
 
3149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3152
 
 
3153
ac_ext=cc
 
3154
ac_cpp='$CXXCPP $CPPFLAGS'
 
3155
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3156
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3157
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3158
if test -n "$ac_tool_prefix"; then
 
3159
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3160
  do
 
3161
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3162
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3163
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3165
if test "${ac_cv_prog_CXX+set}" = set; then
 
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3167
else
 
3168
  if test -n "$CXX"; then
 
3169
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3170
else
 
3171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3172
for as_dir in $PATH
 
3173
do
 
3174
  IFS=$as_save_IFS
 
3175
  test -z "$as_dir" && as_dir=.
 
3176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3178
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3180
    break 2
 
3181
  fi
 
3182
done
 
3183
done
 
3184
 
 
3185
fi
 
3186
fi
 
3187
CXX=$ac_cv_prog_CXX
 
3188
if test -n "$CXX"; then
 
3189
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3190
echo "${ECHO_T}$CXX" >&6
 
3191
else
 
3192
  echo "$as_me:$LINENO: result: no" >&5
 
3193
echo "${ECHO_T}no" >&6
 
3194
fi
 
3195
 
 
3196
    test -n "$CXX" && break
 
3197
  done
 
3198
fi
 
3199
if test -z "$CXX"; then
 
3200
  ac_ct_CXX=$CXX
 
3201
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3202
do
 
3203
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3204
set dummy $ac_prog; ac_word=$2
 
3205
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3207
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3209
else
 
3210
  if test -n "$ac_ct_CXX"; then
 
3211
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3212
else
 
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3214
for as_dir in $PATH
 
3215
do
 
3216
  IFS=$as_save_IFS
 
3217
  test -z "$as_dir" && as_dir=.
 
3218
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3219
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3220
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3222
    break 2
 
3223
  fi
 
3224
done
 
3225
done
 
3226
 
 
3227
fi
 
3228
fi
 
3229
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3230
if test -n "$ac_ct_CXX"; then
 
3231
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3232
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3233
else
 
3234
  echo "$as_me:$LINENO: result: no" >&5
 
3235
echo "${ECHO_T}no" >&6
 
3236
fi
 
3237
 
 
3238
  test -n "$ac_ct_CXX" && break
 
3239
done
 
3240
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3241
 
 
3242
  CXX=$ac_ct_CXX
 
3243
fi
 
3244
 
 
3245
 
 
3246
# Provide some information about the compiler.
 
3247
echo "$as_me:$LINENO:" \
 
3248
     "checking for C++ compiler version" >&5
 
3249
ac_compiler=`set X $ac_compile; echo $2`
 
3250
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3251
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3252
  ac_status=$?
 
3253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3254
  (exit $ac_status); }
 
3255
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3256
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3257
  ac_status=$?
 
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3259
  (exit $ac_status); }
 
3260
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3261
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3262
  ac_status=$?
 
3263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3264
  (exit $ac_status); }
 
3265
 
 
3266
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3267
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3268
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3270
else
 
3271
  cat >conftest.$ac_ext <<_ACEOF
 
3272
#line $LINENO "configure"
 
3273
#include "confdefs.h"
 
3274
 
 
3275
#ifdef F77_DUMMY_MAIN
 
3276
#  ifdef __cplusplus
 
3277
     extern "C"
 
3278
#  endif
 
3279
   int F77_DUMMY_MAIN() { return 1; }
 
3280
#endif
 
3281
int
 
3282
main ()
 
3283
{
 
3284
#ifndef __GNUC__
 
3285
       choke me
 
3286
#endif
 
3287
 
 
3288
  ;
 
3289
  return 0;
 
3290
}
 
3291
_ACEOF
 
3292
rm -f conftest.$ac_objext
 
3293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3294
  (eval $ac_compile) 2>&5
 
3295
  ac_status=$?
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); } &&
 
3298
         { ac_try='test -s conftest.$ac_objext'
 
3299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3300
  (eval $ac_try) 2>&5
 
3301
  ac_status=$?
 
3302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3303
  (exit $ac_status); }; }; then
 
3304
  ac_compiler_gnu=yes
 
3305
else
 
3306
  echo "$as_me: failed program was:" >&5
 
3307
cat conftest.$ac_ext >&5
 
3308
ac_compiler_gnu=no
 
3309
fi
 
3310
rm -f conftest.$ac_objext conftest.$ac_ext
 
3311
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3312
 
 
3313
fi
 
3314
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3315
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3316
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3317
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3318
ac_save_CXXFLAGS=$CXXFLAGS
 
3319
CXXFLAGS="-g"
 
3320
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3321
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3322
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3324
else
 
3325
  cat >conftest.$ac_ext <<_ACEOF
 
3326
#line $LINENO "configure"
 
3327
#include "confdefs.h"
 
3328
 
 
3329
#ifdef F77_DUMMY_MAIN
 
3330
#  ifdef __cplusplus
 
3331
     extern "C"
 
3332
#  endif
 
3333
   int F77_DUMMY_MAIN() { return 1; }
 
3334
#endif
 
3335
int
 
3336
main ()
 
3337
{
 
3338
 
 
3339
  ;
 
3340
  return 0;
 
3341
}
 
3342
_ACEOF
 
3343
rm -f conftest.$ac_objext
 
3344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3345
  (eval $ac_compile) 2>&5
 
3346
  ac_status=$?
 
3347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3348
  (exit $ac_status); } &&
 
3349
         { ac_try='test -s conftest.$ac_objext'
 
3350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3351
  (eval $ac_try) 2>&5
 
3352
  ac_status=$?
 
3353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3354
  (exit $ac_status); }; }; then
 
3355
  ac_cv_prog_cxx_g=yes
 
3356
else
 
3357
  echo "$as_me: failed program was:" >&5
 
3358
cat conftest.$ac_ext >&5
 
3359
ac_cv_prog_cxx_g=no
 
3360
fi
 
3361
rm -f conftest.$ac_objext conftest.$ac_ext
 
3362
fi
 
3363
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3364
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3365
if test "$ac_test_CXXFLAGS" = set; then
 
3366
  CXXFLAGS=$ac_save_CXXFLAGS
 
3367
elif test $ac_cv_prog_cxx_g = yes; then
 
3368
  if test "$GXX" = yes; then
 
3369
    CXXFLAGS="-g -O2"
 
3370
  else
 
3371
    CXXFLAGS="-g"
 
3372
  fi
 
3373
else
 
3374
  if test "$GXX" = yes; then
 
3375
    CXXFLAGS="-O2"
 
3376
  else
 
3377
    CXXFLAGS=
 
3378
  fi
 
3379
fi
 
3380
for ac_declaration in \
 
3381
   ''\
 
3382
   '#include <stdlib.h>' \
 
3383
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3384
   'extern "C" void std::exit (int); using std::exit;' \
 
3385
   'extern "C" void exit (int) throw ();' \
 
3386
   'extern "C" void exit (int);' \
 
3387
   'void exit (int);'
 
3388
do
 
3389
  cat >conftest.$ac_ext <<_ACEOF
 
3390
#line $LINENO "configure"
 
3391
#include "confdefs.h"
 
3392
#include <stdlib.h>
 
3393
$ac_declaration
 
3394
#ifdef F77_DUMMY_MAIN
 
3395
#  ifdef __cplusplus
 
3396
     extern "C"
 
3397
#  endif
 
3398
   int F77_DUMMY_MAIN() { return 1; }
 
3399
#endif
 
3400
int
 
3401
main ()
 
3402
{
 
3403
exit (42);
 
3404
  ;
 
3405
  return 0;
 
3406
}
 
3407
_ACEOF
 
3408
rm -f conftest.$ac_objext
 
3409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3410
  (eval $ac_compile) 2>&5
 
3411
  ac_status=$?
 
3412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3413
  (exit $ac_status); } &&
 
3414
         { ac_try='test -s conftest.$ac_objext'
 
3415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3416
  (eval $ac_try) 2>&5
 
3417
  ac_status=$?
 
3418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3419
  (exit $ac_status); }; }; then
 
3420
  :
 
3421
else
 
3422
  echo "$as_me: failed program was:" >&5
 
3423
cat conftest.$ac_ext >&5
 
3424
continue
 
3425
fi
 
3426
rm -f conftest.$ac_objext conftest.$ac_ext
 
3427
  cat >conftest.$ac_ext <<_ACEOF
 
3428
#line $LINENO "configure"
 
3429
#include "confdefs.h"
 
3430
$ac_declaration
 
3431
#ifdef F77_DUMMY_MAIN
 
3432
#  ifdef __cplusplus
 
3433
     extern "C"
 
3434
#  endif
 
3435
   int F77_DUMMY_MAIN() { return 1; }
 
3436
#endif
 
3437
int
 
3438
main ()
 
3439
{
 
3440
exit (42);
 
3441
  ;
 
3442
  return 0;
 
3443
}
 
3444
_ACEOF
 
3445
rm -f conftest.$ac_objext
 
3446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3447
  (eval $ac_compile) 2>&5
 
3448
  ac_status=$?
 
3449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3450
  (exit $ac_status); } &&
 
3451
         { ac_try='test -s conftest.$ac_objext'
 
3452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3453
  (eval $ac_try) 2>&5
 
3454
  ac_status=$?
 
3455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3456
  (exit $ac_status); }; }; then
 
3457
  break
 
3458
else
 
3459
  echo "$as_me: failed program was:" >&5
 
3460
cat conftest.$ac_ext >&5
 
3461
fi
 
3462
rm -f conftest.$ac_objext conftest.$ac_ext
 
3463
done
 
3464
rm -f conftest*
 
3465
if test -n "$ac_declaration"; then
 
3466
  echo '#ifdef __cplusplus' >>confdefs.h
 
3467
  echo $ac_declaration      >>confdefs.h
 
3468
  echo '#endif'             >>confdefs.h
 
3469
fi
 
3470
 
 
3471
ac_ext=c
 
3472
ac_cpp='$CPP $CPPFLAGS'
 
3473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3476
 
 
3477
depcc="$CXX"  am_compiler_list=
 
3478
 
 
3479
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3480
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3481
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3483
else
 
3484
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3485
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3486
  # making bogus files that we don't know about and never remove.  For
 
3487
  # instance it was reported that on HP-UX the gcc test will end up
 
3488
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3489
  # in D'.
 
3490
  mkdir conftest.dir
 
3491
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3492
  # using a relative directory.
 
3493
  cp "$am_depcomp" conftest.dir
 
3494
  cd conftest.dir
 
3495
 
 
3496
  am_cv_CXX_dependencies_compiler_type=none
 
3497
  if test "$am_compiler_list" = ""; then
 
3498
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3499
  fi
 
3500
  for depmode in $am_compiler_list; do
 
3501
    # We need to recreate these files for each test, as the compiler may
 
3502
    # overwrite some of them when testing with obscure command lines.
 
3503
    # This happens at least with the AIX C compiler.
 
3504
    echo '#include "conftest.h"' > conftest.c
 
3505
    echo 'int i;' > conftest.h
 
3506
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3507
 
 
3508
    case $depmode in
 
3509
    nosideeffect)
 
3510
      # after this tag, mechanisms are not by side-effect, so they'll
 
3511
      # only be used when explicitly requested
 
3512
      if test "x$enable_dependency_tracking" = xyes; then
 
3513
        continue
 
3514
      else
 
3515
        break
 
3516
      fi
 
3517
      ;;
 
3518
    none) break ;;
 
3519
    esac
 
3520
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3521
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3522
    # handle `-M -o', and we need to detect this.
 
3523
    if depmode=$depmode \
 
3524
       source=conftest.c object=conftest.o \
 
3525
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3526
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
3527
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3528
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3529
      am_cv_CXX_dependencies_compiler_type=$depmode
 
3530
      break
 
3531
    fi
 
3532
  done
 
3533
 
 
3534
  cd ..
 
3535
  rm -rf conftest.dir
 
3536
else
 
3537
  am_cv_CXX_dependencies_compiler_type=none
 
3538
fi
 
3539
 
 
3540
fi
 
3541
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3542
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3543
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
 
3544
 
 
3545
 
 
3546
ac_ext=cc
 
3547
ac_cpp='$CXXCPP $CPPFLAGS'
 
3548
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3549
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3550
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3551
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
3552
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
3553
if test -z "$CXXCPP"; then
 
3554
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
3555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3556
else
 
3557
      # Double quotes because CXXCPP needs to be expanded
 
3558
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
3559
    do
 
3560
      ac_preproc_ok=false
 
3561
for ac_cxx_preproc_warn_flag in '' yes
 
3562
do
 
3563
  # Use a header file that comes with gcc, so configuring glibc
 
3564
  # with a fresh cross-compiler works.
 
3565
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3566
  # not just through cpp. "Syntax error" is here to catch this case.
 
3567
  cat >conftest.$ac_ext <<_ACEOF
 
3568
#line $LINENO "configure"
 
3569
#include "confdefs.h"
 
3570
#include <assert.h>
 
3571
                     Syntax error
 
3572
_ACEOF
 
3573
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3574
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3575
  ac_status=$?
 
3576
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3577
  rm -f conftest.er1
 
3578
  cat conftest.err >&5
 
3579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3580
  (exit $ac_status); } >/dev/null; then
 
3581
  if test -s conftest.err; then
 
3582
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3583
  else
 
3584
    ac_cpp_err=
 
3585
  fi
 
3586
else
 
3587
  ac_cpp_err=yes
 
3588
fi
 
3589
if test -z "$ac_cpp_err"; then
 
3590
  :
 
3591
else
 
3592
  echo "$as_me: failed program was:" >&5
 
3593
  cat conftest.$ac_ext >&5
 
3594
  # Broken: fails on valid input.
 
3595
continue
 
3596
fi
 
3597
rm -f conftest.err conftest.$ac_ext
 
3598
 
 
3599
  # OK, works on sane cases.  Now check whether non-existent headers
 
3600
  # can be detected and how.
 
3601
  cat >conftest.$ac_ext <<_ACEOF
 
3602
#line $LINENO "configure"
 
3603
#include "confdefs.h"
 
3604
#include <ac_nonexistent.h>
 
3605
_ACEOF
 
3606
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3607
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3608
  ac_status=$?
 
3609
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3610
  rm -f conftest.er1
 
3611
  cat conftest.err >&5
 
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3613
  (exit $ac_status); } >/dev/null; then
 
3614
  if test -s conftest.err; then
 
3615
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3616
  else
 
3617
    ac_cpp_err=
 
3618
  fi
 
3619
else
 
3620
  ac_cpp_err=yes
 
3621
fi
 
3622
if test -z "$ac_cpp_err"; then
 
3623
  # Broken: success on invalid input.
 
3624
continue
 
3625
else
 
3626
  echo "$as_me: failed program was:" >&5
 
3627
  cat conftest.$ac_ext >&5
 
3628
  # Passes both tests.
 
3629
ac_preproc_ok=:
 
3630
break
 
3631
fi
 
3632
rm -f conftest.err conftest.$ac_ext
 
3633
 
 
3634
done
 
3635
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3636
rm -f conftest.err conftest.$ac_ext
 
3637
if $ac_preproc_ok; then
 
3638
  break
 
3639
fi
 
3640
 
 
3641
    done
 
3642
    ac_cv_prog_CXXCPP=$CXXCPP
 
3643
 
 
3644
fi
 
3645
  CXXCPP=$ac_cv_prog_CXXCPP
 
3646
else
 
3647
  ac_cv_prog_CXXCPP=$CXXCPP
 
3648
fi
 
3649
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
3650
echo "${ECHO_T}$CXXCPP" >&6
 
3651
ac_preproc_ok=false
 
3652
for ac_cxx_preproc_warn_flag in '' yes
 
3653
do
 
3654
  # Use a header file that comes with gcc, so configuring glibc
 
3655
  # with a fresh cross-compiler works.
 
3656
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3657
  # not just through cpp. "Syntax error" is here to catch this case.
 
3658
  cat >conftest.$ac_ext <<_ACEOF
 
3659
#line $LINENO "configure"
 
3660
#include "confdefs.h"
 
3661
#include <assert.h>
 
3662
                     Syntax error
 
3663
_ACEOF
 
3664
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3665
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3666
  ac_status=$?
 
3667
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3668
  rm -f conftest.er1
 
3669
  cat conftest.err >&5
 
3670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3671
  (exit $ac_status); } >/dev/null; then
 
3672
  if test -s conftest.err; then
 
3673
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3674
  else
 
3675
    ac_cpp_err=
 
3676
  fi
 
3677
else
 
3678
  ac_cpp_err=yes
 
3679
fi
 
3680
if test -z "$ac_cpp_err"; then
 
3681
  :
 
3682
else
 
3683
  echo "$as_me: failed program was:" >&5
 
3684
  cat conftest.$ac_ext >&5
 
3685
  # Broken: fails on valid input.
 
3686
continue
 
3687
fi
 
3688
rm -f conftest.err conftest.$ac_ext
 
3689
 
 
3690
  # OK, works on sane cases.  Now check whether non-existent headers
 
3691
  # can be detected and how.
 
3692
  cat >conftest.$ac_ext <<_ACEOF
 
3693
#line $LINENO "configure"
 
3694
#include "confdefs.h"
 
3695
#include <ac_nonexistent.h>
 
3696
_ACEOF
 
3697
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3698
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3699
  ac_status=$?
 
3700
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3701
  rm -f conftest.er1
 
3702
  cat conftest.err >&5
 
3703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3704
  (exit $ac_status); } >/dev/null; then
 
3705
  if test -s conftest.err; then
 
3706
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3707
  else
 
3708
    ac_cpp_err=
 
3709
  fi
 
3710
else
 
3711
  ac_cpp_err=yes
 
3712
fi
 
3713
if test -z "$ac_cpp_err"; then
 
3714
  # Broken: success on invalid input.
 
3715
continue
 
3716
else
 
3717
  echo "$as_me: failed program was:" >&5
 
3718
  cat conftest.$ac_ext >&5
 
3719
  # Passes both tests.
 
3720
ac_preproc_ok=:
 
3721
break
 
3722
fi
 
3723
rm -f conftest.err conftest.$ac_ext
 
3724
 
 
3725
done
 
3726
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3727
rm -f conftest.err conftest.$ac_ext
 
3728
if $ac_preproc_ok; then
 
3729
  :
 
3730
else
 
3731
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
 
3732
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
 
3733
   { (exit 1); exit 1; }; }
 
3734
fi
 
3735
 
 
3736
ac_ext=c
 
3737
ac_cpp='$CPP $CPPFLAGS'
 
3738
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3739
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3741
 
 
3742
ac_ext=cc
 
3743
ac_cpp='$CXXCPP $CPPFLAGS'
 
3744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3747
 
 
3748
 
 
3749
 
 
3750
 
 
3751
 
 
3752
# moved below AC_PROG_CC so -g is preserved in $C[XX]FLAGS - 20020110 larsa
 
3753
if $BUILD_WITH_MSVC; then
 
3754
  sim_ac_msvcrt_LDFLAGS=""
 
3755
sim_ac_msvcrt_LIBS=""
 
3756
 
 
3757
 
 
3758
# Check whether --with-msvcrt or --without-msvcrt was given.
 
3759
if test "${with_msvcrt+set}" = set; then
 
3760
  withval="$with_msvcrt"
 
3761
  case `echo "$withval" | tr "A-Z" "a-z"` in
 
3762
  default | singlethread-static | ml | /ml | libc | libc\.lib )
 
3763
    sim_ac_msvcrt=singlethread-static
 
3764
    sim_ac_msvcrt_CFLAGS="/ML"
 
3765
    sim_ac_msvcrt_CXXFLAGS="/ML"
 
3766
    ;;
 
3767
  default-debug | singlethread-static-debug | mld | /mld | libcd | libcd\.lib )
 
3768
    sim_ac_msvcrt=singlethread-static-debug
 
3769
    sim_ac_msvcrt_CFLAGS="/MLd"
 
3770
    sim_ac_msvcrt_CXXFLAGS="/MLd"
 
3771
    ;;
 
3772
  multithread-static | mt | /mt | libcmt | libcmt\.lib )
 
3773
    sim_ac_msvcrt=multithread-static
 
3774
    sim_ac_msvcrt_CFLAGS="/MT"
 
3775
    sim_ac_msvcrt_CXXFLAGS="/MT"
 
3776
    ;;
 
3777
  multithread-static-debug | mtd | /mtd | libcmtd | libcmtd\.lib )
 
3778
    sim_ac_msvcrt=multithread-static-debug
 
3779
    sim_ac_msvcrt_CFLAGS="/MTd"
 
3780
    sim_ac_msvcrt_CXXFLAGS="/MTd"
 
3781
    ;;
 
3782
  multithread-dynamic | md | /md | msvcrt | msvcrt\.lib )
 
3783
    sim_ac_msvcrt=multithread-dynamic
 
3784
    sim_ac_msvcrt_CFLAGS="/MD"
 
3785
    sim_ac_msvcrt_CXXFLAGS="/MD"
 
3786
    ;;
 
3787
  multithread-dynamic-debug | mdd | /mdd | msvcrtd | msvcrtd\.lib )
 
3788
    sim_ac_msvcrt=multithread-dynamic-debug
 
3789
    sim_ac_msvcrt_CFLAGS="/MDd"
 
3790
    sim_ac_msvcrt_CXXFLAGS="/MDd"
 
3791
    ;;
 
3792
  *)
 
3793
 
 
3794
echo >&2 ""
 
3795
 
 
3796
 
 
3797
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
3798
if test -f $sim_ac_message_file; then
 
3799
  sim_ac_message="`sed -n -e '/^!invalid-msvcrt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
3800
  if test x"$sim_ac_message" = x""; then
 
3801
    { { echo "$as_me:$LINENO: error: no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
3802
echo "$as_me: error: no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
3803
   { (exit 1); exit 1; }; }
 
3804
  else
 
3805
    eval "echo >&2 \"$sim_ac_message\""
 
3806
  fi
 
3807
else
 
3808
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
3809
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
3810
   { (exit 1); exit 1; }; }
 
3811
fi
 
3812
 
 
3813
 
 
3814
 
 
3815
echo >&2 ""
 
3816
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
3817
echo "$as_me: error: aborting" >&2;}
 
3818
   { (exit 1); exit 1; }; }
 
3819
 
 
3820
    ;;
 
3821
  esac
 
3822
else
 
3823
  sim_ac_msvcrt=singlethread-static
 
3824
fi;
 
3825
 
 
3826
echo "$as_me:$LINENO: checking MSVC++ C library choice" >&5
 
3827
echo $ECHO_N "checking MSVC++ C library choice... $ECHO_C" >&6
 
3828
echo "$as_me:$LINENO: result: $sim_ac_msvcrt" >&5
 
3829
echo "${ECHO_T}$sim_ac_msvcrt" >&6
 
3830
 
 
3831
 
 
3832
    CPPFLAGS="$CPPFLAGS $sim_ac_msvcrt_CPPFLAGS"
 
3833
    CFLAGS="$CFLAGS $sim_ac_msvcrt_CFLAGS"
 
3834
    CXXFLAGS="$CXXFLAGS $sim_ac_msvcrt_CXXFLAGS"
 
3835
    LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LDFLAGS"
 
3836
    LIBS="$LIBS $sim_ac_msvcrt_LIBS"
 
3837
    # sim_ac_msvcrt_LIBLIBS is set up at the end
 
3838
    # sim_ac_msvcrt_LIBLDFLAGS is set up at the end
 
3839
    LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LIBLDFLAGS"
 
3840
    LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS"
 
3841
    SOGUI_MSVC_LIBC=$sim_ac_msvcrt
 
3842
 
 
3843
 
 
3844
 
 
3845
fi
 
3846
 
 
3847
# Initialize libtool
 
3848
if $BUILD_WITH_MSVC; then
 
3849
  RANLIB=:
 
3850
  export RANLIB
 
3851
fi
 
3852
 
 
3853
 
 
3854
case $host_os in
 
3855
darwin*)
 
3856
  if test x"$GCC" = x"yes"; then
 
3857
    # FIXME: create a SIM_AC_CPP_OPTION macro
 
3858
 
 
3859
 
 
3860
 
 
3861
ac_ext=c
 
3862
ac_cpp='$CPP $CPPFLAGS'
 
3863
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3864
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3865
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3866
 
 
3867
echo "$as_me:$LINENO: checking whether $CC accepts -no-cpp-precomp" >&5
 
3868
echo $ECHO_N "checking whether $CC accepts -no-cpp-precomp... $ECHO_C" >&6
 
3869
 
 
3870
sim_ac_save_cppflags=$CPPFLAGS
 
3871
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
 
3872
cat >conftest.$ac_ext <<_ACEOF
 
3873
#line $LINENO "configure"
 
3874
#include "confdefs.h"
 
3875
 
 
3876
#ifdef F77_DUMMY_MAIN
 
3877
#  ifdef __cplusplus
 
3878
     extern "C"
 
3879
#  endif
 
3880
   int F77_DUMMY_MAIN() { return 1; }
 
3881
#endif
 
3882
int
 
3883
main ()
 
3884
{
 
3885
 
 
3886
  ;
 
3887
  return 0;
 
3888
}
 
3889
_ACEOF
 
3890
rm -f conftest.$ac_objext
 
3891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3892
  (eval $ac_compile) 2>&5
 
3893
  ac_status=$?
 
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3895
  (exit $ac_status); } &&
 
3896
         { ac_try='test -s conftest.$ac_objext'
 
3897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3898
  (eval $ac_try) 2>&5
 
3899
  ac_status=$?
 
3900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3901
  (exit $ac_status); }; }; then
 
3902
  sim_ac_accept_result=yes
 
3903
else
 
3904
  echo "$as_me: failed program was:" >&5
 
3905
cat conftest.$ac_ext >&5
 
3906
sim_ac_accept_result=no
 
3907
fi
 
3908
rm -f conftest.$ac_objext conftest.$ac_ext
 
3909
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
3910
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
3911
CPPFLAGS=$sim_ac_save_cppflags
 
3912
# This need to go last, in case CPPFLAGS is modified in CPPFLAGS="$CPPFLAGS -no-cpp-precomp" or .
 
3913
if test $sim_ac_accept_result = yes; then
 
3914
  CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
 
3915
else
 
3916
  :
 
3917
fi
 
3918
 
 
3919
ac_ext=cc
 
3920
ac_cpp='$CXXCPP $CPPFLAGS'
 
3921
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3922
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3923
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3924
 
 
3925
 
 
3926
  fi
 
3927
  ;;
 
3928
esac
 
3929
 
 
3930
 
 
3931
# Check whether --enable-shared or --disable-shared was given.
 
3932
if test "${enable_shared+set}" = set; then
 
3933
  enableval="$enable_shared"
 
3934
  p=${PACKAGE-default}
 
3935
case $enableval in
 
3936
yes) enable_shared=yes ;;
 
3937
no) enable_shared=no ;;
 
3938
*)
 
3939
  enable_shared=no
 
3940
  # Look at the argument we got.  We use all the common list separators.
 
3941
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3942
  for pkg in $enableval; do
 
3943
    if test "X$pkg" = "X$p"; then
 
3944
      enable_shared=yes
 
3945
    fi
 
3946
  done
 
3947
  IFS="$ac_save_ifs"
 
3948
  ;;
 
3949
esac
 
3950
else
 
3951
  enable_shared=yes
 
3952
fi;
 
3953
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3954
if test "${enable_fast_install+set}" = set; then
 
3955
  enableval="$enable_fast_install"
 
3956
  p=${PACKAGE-default}
 
3957
case $enableval in
 
3958
yes) enable_fast_install=yes ;;
 
3959
no) enable_fast_install=no ;;
 
3960
*)
 
3961
  enable_fast_install=no
 
3962
  # Look at the argument we got.  We use all the common list separators.
 
3963
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3964
  for pkg in $enableval; do
 
3965
    if test "X$pkg" = "X$p"; then
 
3966
      enable_fast_install=yes
 
3967
    fi
 
3968
  done
 
3969
  IFS="$ac_save_ifs"
 
3970
  ;;
 
3971
esac
 
3972
else
 
3973
  enable_fast_install=yes
 
3974
fi;
 
3975
# Find the correct PATH separator.  Usually this is `:', but
 
3976
# DJGPP uses `;' like DOS.
 
3977
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
3978
  UNAME=${UNAME-`uname 2>/dev/null`}
 
3979
  case X$UNAME in
 
3980
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
3981
    *)     lt_cv_sys_path_separator=':' ;;
 
3982
  esac
 
3983
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
3984
fi
 
3985
 
 
3986
 
 
3987
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3988
if test "${with_gnu_ld+set}" = set; then
 
3989
  withval="$with_gnu_ld"
 
3990
  test "$withval" = no || with_gnu_ld=yes
 
3991
else
 
3992
  with_gnu_ld=no
 
3993
fi;
 
3994
ac_prog=ld
 
3995
if test "$GCC" = yes; then
 
3996
  # Check if gcc -print-prog-name=ld gives a path.
 
3997
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
3998
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3999
  case $host in
 
4000
  *-*-mingw*)
 
4001
    # gcc leaves a trailing carriage return which upsets mingw
 
4002
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4003
  *)
 
4004
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4005
  esac
 
4006
  case $ac_prog in
 
4007
    # Accept absolute paths.
 
4008
    [\\/]* | [A-Za-z]:[\\/]*)
 
4009
      re_direlt='/[^/][^/]*/\.\./'
 
4010
      # Canonicalize the path of ld
 
4011
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4012
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4013
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4014
      done
 
4015
      test -z "$LD" && LD="$ac_prog"
 
4016
      ;;
 
4017
  "")
 
4018
    # If it fails, then pretend we aren't using GCC.
 
4019
    ac_prog=ld
 
4020
    ;;
 
4021
  *)
 
4022
    # If it is relative, then search for the first ld in PATH.
 
4023
    with_gnu_ld=unknown
 
4024
    ;;
 
4025
  esac
 
4026
elif test "$with_gnu_ld" = yes; then
 
4027
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4028
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4029
else
 
4030
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4031
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4032
fi
 
4033
if test "${lt_cv_path_LD+set}" = set; then
 
4034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4035
else
 
4036
  if test -z "$LD"; then
 
4037
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4038
  for ac_dir in $PATH; do
 
4039
    test -z "$ac_dir" && ac_dir=.
 
4040
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4041
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4042
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4043
      # but apparently some GNU ld's only accept -v.
 
4044
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4045
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
4046
        test "$with_gnu_ld" != no && break
 
4047
      else
 
4048
        test "$with_gnu_ld" != yes && break
 
4049
      fi
 
4050
    fi
 
4051
  done
 
4052
  IFS="$ac_save_ifs"
 
4053
else
 
4054
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4055
fi
 
4056
fi
 
4057
 
 
4058
LD="$lt_cv_path_LD"
 
4059
if test -n "$LD"; then
 
4060
  echo "$as_me:$LINENO: result: $LD" >&5
 
4061
echo "${ECHO_T}$LD" >&6
 
4062
else
 
4063
  echo "$as_me:$LINENO: result: no" >&5
 
4064
echo "${ECHO_T}no" >&6
 
4065
fi
 
4066
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4067
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4068
   { (exit 1); exit 1; }; }
 
4069
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4070
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4071
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4073
else
 
4074
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4075
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
4076
  lt_cv_prog_gnu_ld=yes
 
4077
else
 
4078
  lt_cv_prog_gnu_ld=no
 
4079
fi
 
4080
fi
 
4081
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4082
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4083
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4084
 
 
4085
 
 
4086
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4087
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4088
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4090
else
 
4091
  lt_cv_ld_reload_flag='-r'
 
4092
fi
 
4093
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4094
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4095
reload_flag=$lt_cv_ld_reload_flag
 
4096
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
4097
 
 
4098
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4099
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4100
if test "${lt_cv_path_NM+set}" = set; then
 
4101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4102
else
 
4103
  if test -n "$NM"; then
 
4104
  # Let the user override the test.
 
4105
  lt_cv_path_NM="$NM"
 
4106
else
 
4107
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4108
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4109
    test -z "$ac_dir" && ac_dir=.
 
4110
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
4111
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
4112
      # Check to see if the nm accepts a BSD-compat flag.
 
4113
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4114
      #   nm: unknown option "B" ignored
 
4115
      # Tru64's nm complains that /dev/null is an invalid object file
 
4116
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
4117
        lt_cv_path_NM="$tmp_nm -B"
 
4118
        break
 
4119
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
4120
        lt_cv_path_NM="$tmp_nm -p"
 
4121
        break
 
4122
      else
 
4123
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4124
        continue # so that we can try to find one that supports BSD flags
 
4125
      fi
 
4126
    fi
 
4127
  done
 
4128
  IFS="$ac_save_ifs"
 
4129
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4130
fi
 
4131
fi
 
4132
 
 
4133
NM="$lt_cv_path_NM"
 
4134
echo "$as_me:$LINENO: result: $NM" >&5
 
4135
echo "${ECHO_T}$NM" >&6
 
4136
 
 
4137
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4138
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4139
LN_S=$as_ln_s
 
4140
if test "$LN_S" = "ln -s"; then
 
4141
  echo "$as_me:$LINENO: result: yes" >&5
 
4142
echo "${ECHO_T}yes" >&6
 
4143
else
 
4144
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4145
echo "${ECHO_T}no, using $LN_S" >&6
 
4146
fi
 
4147
 
 
4148
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
 
4149
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
4150
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4152
else
 
4153
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4154
lt_cv_file_magic_test_file=
 
4155
lt_cv_deplibs_check_method='unknown'
 
4156
# Need to set the preceding variable on all platforms that support
 
4157
# interlibrary dependencies.
 
4158
# 'none' -- dependencies not supported.
 
4159
# `unknown' -- same as none, but documents that we really don't know.
 
4160
# 'pass_all' -- all dependencies passed with no checks.
 
4161
# 'test_compile' -- check by making test program.
 
4162
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4163
# which responds to the $file_magic_cmd with a given egrep regex.
 
4164
# If you have `file' or equivalent on your system and you're not sure
 
4165
# whether `pass_all' will *always* work, you probably want this one.
 
4166
 
 
4167
case $host_os in
 
4168
aix4* | aix5*)
 
4169
  lt_cv_deplibs_check_method=pass_all
 
4170
  ;;
 
4171
 
 
4172
beos*)
 
4173
  lt_cv_deplibs_check_method=pass_all
 
4174
  ;;
 
4175
 
 
4176
bsdi4*)
 
4177
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4178
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4179
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4180
  ;;
 
4181
 
 
4182
cygwin* | mingw* | pw32*)
 
4183
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4184
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4185
  ;;
 
4186
 
 
4187
darwin* | rhapsody*)
 
4188
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
4189
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4190
  case "$host_os" in
 
4191
  rhapsody* | darwin1.[012])
 
4192
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
4193
    ;;
 
4194
  *) # Darwin 1.3 on
 
4195
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
4196
    ;;
 
4197
  esac
 
4198
  ;;
 
4199
 
 
4200
freebsd*)
 
4201
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4202
    case $host_cpu in
 
4203
    i*86 )
 
4204
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4205
      # Let's accept both of them until this is cleared up.
 
4206
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4207
      lt_cv_file_magic_cmd=/usr/bin/file
 
4208
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4209
      ;;
 
4210
    esac
 
4211
  else
 
4212
    lt_cv_deplibs_check_method=pass_all
 
4213
  fi
 
4214
  ;;
 
4215
 
 
4216
gnu*)
 
4217
  lt_cv_deplibs_check_method=pass_all
 
4218
  ;;
 
4219
 
 
4220
hpux10.20*|hpux11*)
 
4221
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4222
  lt_cv_file_magic_cmd=/usr/bin/file
 
4223
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4224
  ;;
 
4225
 
 
4226
irix5* | irix6*)
 
4227
  case $host_os in
 
4228
  irix5*)
 
4229
    # this will be overridden with pass_all, but let us keep it just in case
 
4230
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
4231
    ;;
 
4232
  *)
 
4233
    case $LD in
 
4234
    *-32|*"-32 ") libmagic=32-bit;;
 
4235
    *-n32|*"-n32 ") libmagic=N32;;
 
4236
    *-64|*"-64 ") libmagic=64-bit;;
 
4237
    *) libmagic=never-match;;
 
4238
    esac
 
4239
    # this will be overridden with pass_all, but let us keep it just in case
 
4240
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
4241
    ;;
 
4242
  esac
 
4243
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
4244
  lt_cv_deplibs_check_method=pass_all
 
4245
  ;;
 
4246
 
 
4247
# This must be Linux ELF.
 
4248
linux-gnu*)
 
4249
  case $host_cpu in
 
4250
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
 
4251
    lt_cv_deplibs_check_method=pass_all ;;
 
4252
  *)
 
4253
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
4254
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
4255
  esac
 
4256
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4257
  ;;
 
4258
 
 
4259
netbsd*)
 
4260
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4261
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
4262
  else
 
4263
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
4264
  fi
 
4265
  ;;
 
4266
 
 
4267
newos6*)
 
4268
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4269
  lt_cv_file_magic_cmd=/usr/bin/file
 
4270
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4271
  ;;
 
4272
 
 
4273
openbsd*)
 
4274
  lt_cv_file_magic_cmd=/usr/bin/file
 
4275
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4276
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4277
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4278
  else
 
4279
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4280
  fi
 
4281
  ;;
 
4282
 
 
4283
osf3* | osf4* | osf5*)
 
4284
  # this will be overridden with pass_all, but let us keep it just in case
 
4285
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
4286
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4287
  lt_cv_deplibs_check_method=pass_all
 
4288
  ;;
 
4289
 
 
4290
sco3.2v5*)
 
4291
  lt_cv_deplibs_check_method=pass_all
 
4292
  ;;
 
4293
 
 
4294
solaris*)
 
4295
  lt_cv_deplibs_check_method=pass_all
 
4296
  lt_cv_file_magic_test_file=/lib/libc.so
 
4297
  ;;
 
4298
 
 
4299
sysv5uw[78]* | sysv4*uw2*)
 
4300
  lt_cv_deplibs_check_method=pass_all
 
4301
  ;;
 
4302
 
 
4303
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4304
  case $host_vendor in
 
4305
  motorola)
 
4306
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
4307
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4308
    ;;
 
4309
  ncr)
 
4310
    lt_cv_deplibs_check_method=pass_all
 
4311
    ;;
 
4312
  sequent)
 
4313
    lt_cv_file_magic_cmd='/bin/file'
 
4314
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4315
    ;;
 
4316
  sni)
 
4317
    lt_cv_file_magic_cmd='/bin/file'
 
4318
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4319
    lt_cv_file_magic_test_file=/lib/libc.so
 
4320
    ;;
 
4321
  esac
 
4322
  ;;
 
4323
esac
 
4324
 
 
4325
fi
 
4326
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4327
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4328
file_magic_cmd=$lt_cv_file_magic_cmd
 
4329
deplibs_check_method=$lt_cv_deplibs_check_method
 
4330
 
 
4331
 
 
4332
 
 
4333
 
 
4334
 
 
4335
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4336
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
4337
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
4338
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4340
else
 
4341
 
 
4342
# These are sane defaults that work on at least a few old systems.
 
4343
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4344
 
 
4345
# Character class describing NM global symbol codes.
 
4346
symcode='[BCDEGRST]'
 
4347
 
 
4348
# Regexp to match symbols that can be accessed directly from C.
 
4349
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
4350
 
 
4351
# Transform the above into a raw symbol and a C symbol.
 
4352
symxfrm='\1 \2\3 \3'
 
4353
 
 
4354
# Transform an extracted symbol line into a proper C declaration
 
4355
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
4356
 
 
4357
# Transform an extracted symbol line into symbol name and symbol address
 
4358
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4359
 
 
4360
# Define system-specific variables.
 
4361
case $host_os in
 
4362
aix*)
 
4363
  symcode='[BCDT]'
 
4364
  ;;
 
4365
cygwin* | mingw* | pw32*)
 
4366
  symcode='[ABCDGISTW]'
 
4367
  ;;
 
4368
hpux*) # Its linker distinguishes data from code symbols
 
4369
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4370
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4371
  ;;
 
4372
irix*)
 
4373
  symcode='[BCDEGRST]'
 
4374
  ;;
 
4375
solaris* | sysv5*)
 
4376
  symcode='[BDT]'
 
4377
  ;;
 
4378
sysv4)
 
4379
  symcode='[DFNSTU]'
 
4380
  ;;
 
4381
esac
 
4382
 
 
4383
# Handle CRLF in mingw tool chain
 
4384
opt_cr=
 
4385
case $host_os in
 
4386
mingw*)
 
4387
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4388
  ;;
 
4389
esac
 
4390
 
 
4391
# If we're using GNU nm, then use its standard symbol codes.
 
4392
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
4393
  symcode='[ABCDGISTW]'
 
4394
fi
 
4395
 
 
4396
# Try without a prefix undercore, then with it.
 
4397
for ac_symprfx in "" "_"; do
 
4398
 
 
4399
  # Write the raw and C identifiers.
 
4400
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4401
 
 
4402
  # Check to see that the pipe works correctly.
 
4403
  pipe_works=no
 
4404
  rm -f conftest*
 
4405
  cat > conftest.$ac_ext <<EOF
 
4406
#ifdef __cplusplus
 
4407
extern "C" {
 
4408
#endif
 
4409
char nm_test_var;
 
4410
void nm_test_func(){}
 
4411
#ifdef __cplusplus
 
4412
}
 
4413
#endif
 
4414
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4415
EOF
 
4416
 
 
4417
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4418
  (eval $ac_compile) 2>&5
 
4419
  ac_status=$?
 
4420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4421
  (exit $ac_status); }; then
 
4422
    # Now try to grab the symbols.
 
4423
    nlist=conftest.nm
 
4424
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4425
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4426
  ac_status=$?
 
4427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4428
  (exit $ac_status); } && test -s "$nlist"; then
 
4429
      # Try sorting and uniquifying the output.
 
4430
      if sort "$nlist" | uniq > "$nlist"T; then
 
4431
        mv -f "$nlist"T "$nlist"
 
4432
      else
 
4433
        rm -f "$nlist"T
 
4434
      fi
 
4435
 
 
4436
      # Make sure that we snagged all the symbols we need.
 
4437
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
4438
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
4439
          cat <<EOF > conftest.$ac_ext
 
4440
#ifdef __cplusplus
 
4441
extern "C" {
 
4442
#endif
 
4443
 
 
4444
EOF
 
4445
          # Now generate the symbol file.
 
4446
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
4447
 
 
4448
          cat <<EOF >> conftest.$ac_ext
 
4449
#if defined (__STDC__) && __STDC__
 
4450
# define lt_ptr void *
 
4451
#else
 
4452
# define lt_ptr char *
 
4453
# define const
 
4454
#endif
 
4455
 
 
4456
/* The mapping between symbol names and symbols. */
 
4457
const struct {
 
4458
  const char *name;
 
4459
  lt_ptr address;
 
4460
}
 
4461
lt_preloaded_symbols[] =
 
4462
{
 
4463
EOF
 
4464
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
4465
          cat <<\EOF >> conftest.$ac_ext
 
4466
  {0, (lt_ptr) 0}
 
4467
};
 
4468
 
 
4469
#ifdef __cplusplus
 
4470
}
 
4471
#endif
 
4472
EOF
 
4473
          # Now try linking the two files.
 
4474
          mv conftest.$ac_objext conftstm.$ac_objext
 
4475
          save_LIBS="$LIBS"
 
4476
          save_CFLAGS="$CFLAGS"
 
4477
          LIBS="conftstm.$ac_objext"
 
4478
          CFLAGS="$CFLAGS$no_builtin_flag"
 
4479
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4480
  (eval $ac_link) 2>&5
 
4481
  ac_status=$?
 
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4483
  (exit $ac_status); } && test -s conftest; then
 
4484
            pipe_works=yes
 
4485
          fi
 
4486
          LIBS="$save_LIBS"
 
4487
          CFLAGS="$save_CFLAGS"
 
4488
        else
 
4489
          echo "cannot find nm_test_func in $nlist" >&5
 
4490
        fi
 
4491
      else
 
4492
        echo "cannot find nm_test_var in $nlist" >&5
 
4493
      fi
 
4494
    else
 
4495
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4496
    fi
 
4497
  else
 
4498
    echo "$progname: failed program was:" >&5
 
4499
    cat conftest.$ac_ext >&5
 
4500
  fi
 
4501
  rm -f conftest* conftst*
 
4502
 
 
4503
  # Do not use the global_symbol_pipe unless it works.
 
4504
  if test "$pipe_works" = yes; then
 
4505
    break
 
4506
  else
 
4507
    lt_cv_sys_global_symbol_pipe=
 
4508
  fi
 
4509
done
 
4510
 
 
4511
fi
 
4512
 
 
4513
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
4514
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4515
  global_symbol_to_cdecl=
 
4516
  global_symbol_to_c_name_address=
 
4517
else
 
4518
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
4519
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
4520
fi
 
4521
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
4522
then
 
4523
  echo "$as_me:$LINENO: result: failed" >&5
 
4524
echo "${ECHO_T}failed" >&6
 
4525
else
 
4526
  echo "$as_me:$LINENO: result: ok" >&5
 
4527
echo "${ECHO_T}ok" >&6
 
4528
fi
 
4529
 
 
4530
 
 
4531
 
 
4532
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4533
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4534
if test "${ac_cv_header_stdc+set}" = set; then
 
4535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4536
else
 
4537
  cat >conftest.$ac_ext <<_ACEOF
 
4538
#line $LINENO "configure"
 
4539
#include "confdefs.h"
 
4540
#include <stdlib.h>
 
4541
#include <stdarg.h>
 
4542
#include <string.h>
 
4543
#include <float.h>
 
4544
 
 
4545
_ACEOF
 
4546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4547
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4548
  ac_status=$?
 
4549
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4550
  rm -f conftest.er1
 
4551
  cat conftest.err >&5
 
4552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4553
  (exit $ac_status); } >/dev/null; then
 
4554
  if test -s conftest.err; then
 
4555
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4556
  else
 
4557
    ac_cpp_err=
 
4558
  fi
 
4559
else
 
4560
  ac_cpp_err=yes
 
4561
fi
 
4562
if test -z "$ac_cpp_err"; then
 
4563
  ac_cv_header_stdc=yes
 
4564
else
 
4565
  echo "$as_me: failed program was:" >&5
 
4566
  cat conftest.$ac_ext >&5
 
4567
  ac_cv_header_stdc=no
 
4568
fi
 
4569
rm -f conftest.err conftest.$ac_ext
 
4570
 
 
4571
if test $ac_cv_header_stdc = yes; then
 
4572
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4573
  cat >conftest.$ac_ext <<_ACEOF
 
4574
#line $LINENO "configure"
 
4575
#include "confdefs.h"
 
4576
#include <string.h>
 
4577
 
 
4578
_ACEOF
 
4579
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4580
  egrep "memchr" >/dev/null 2>&1; then
 
4581
  :
 
4582
else
 
4583
  ac_cv_header_stdc=no
 
4584
fi
 
4585
rm -f conftest*
 
4586
 
 
4587
fi
 
4588
 
 
4589
if test $ac_cv_header_stdc = yes; then
 
4590
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4591
  cat >conftest.$ac_ext <<_ACEOF
 
4592
#line $LINENO "configure"
 
4593
#include "confdefs.h"
 
4594
#include <stdlib.h>
 
4595
 
 
4596
_ACEOF
 
4597
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4598
  egrep "free" >/dev/null 2>&1; then
 
4599
  :
 
4600
else
 
4601
  ac_cv_header_stdc=no
 
4602
fi
 
4603
rm -f conftest*
 
4604
 
 
4605
fi
 
4606
 
 
4607
if test $ac_cv_header_stdc = yes; then
 
4608
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4609
  if test "$cross_compiling" = yes; then
 
4610
  :
 
4611
else
 
4612
  cat >conftest.$ac_ext <<_ACEOF
 
4613
#line $LINENO "configure"
 
4614
#include "confdefs.h"
 
4615
#include <ctype.h>
 
4616
#if ((' ' & 0x0FF) == 0x020)
 
4617
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4618
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4619
#else
 
4620
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
4621
                     || ('j' <= (c) && (c) <= 'r') \
 
4622
                     || ('s' <= (c) && (c) <= 'z'))
 
4623
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4624
#endif
 
4625
 
 
4626
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4627
int
 
4628
main ()
 
4629
{
 
4630
  int i;
 
4631
  for (i = 0; i < 256; i++)
 
4632
    if (XOR (islower (i), ISLOWER (i))
 
4633
        || toupper (i) != TOUPPER (i))
 
4634
      exit(2);
 
4635
  exit (0);
 
4636
}
 
4637
_ACEOF
 
4638
rm -f conftest$ac_exeext
 
4639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4640
  (eval $ac_link) 2>&5
 
4641
  ac_status=$?
 
4642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4643
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4645
  (eval $ac_try) 2>&5
 
4646
  ac_status=$?
 
4647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4648
  (exit $ac_status); }; }; then
 
4649
  :
 
4650
else
 
4651
  echo "$as_me: program exited with status $ac_status" >&5
 
4652
echo "$as_me: failed program was:" >&5
 
4653
cat conftest.$ac_ext >&5
 
4654
( exit $ac_status )
 
4655
ac_cv_header_stdc=no
 
4656
fi
 
4657
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4658
fi
 
4659
fi
 
4660
fi
 
4661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4663
if test $ac_cv_header_stdc = yes; then
 
4664
 
 
4665
cat >>confdefs.h <<\_ACEOF
 
4666
#define STDC_HEADERS 1
 
4667
_ACEOF
 
4668
 
 
4669
fi
 
4670
 
 
4671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4672
 
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
 
 
4681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4682
                  inttypes.h stdint.h unistd.h
 
4683
do
 
4684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4685
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4689
else
 
4690
  cat >conftest.$ac_ext <<_ACEOF
 
4691
#line $LINENO "configure"
 
4692
#include "confdefs.h"
 
4693
$ac_includes_default
 
4694
 
 
4695
#include <$ac_header>
 
4696
_ACEOF
 
4697
rm -f conftest.$ac_objext
 
4698
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4699
  (eval $ac_compile) 2>&5
 
4700
  ac_status=$?
 
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4702
  (exit $ac_status); } &&
 
4703
         { ac_try='test -s conftest.$ac_objext'
 
4704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4705
  (eval $ac_try) 2>&5
 
4706
  ac_status=$?
 
4707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4708
  (exit $ac_status); }; }; then
 
4709
  eval "$as_ac_Header=yes"
 
4710
else
 
4711
  echo "$as_me: failed program was:" >&5
 
4712
cat conftest.$ac_ext >&5
 
4713
eval "$as_ac_Header=no"
 
4714
fi
 
4715
rm -f conftest.$ac_objext conftest.$ac_ext
 
4716
fi
 
4717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4719
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4720
  cat >>confdefs.h <<_ACEOF
 
4721
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4722
_ACEOF
 
4723
 
 
4724
fi
 
4725
 
 
4726
done
 
4727
 
 
4728
 
 
4729
 
 
4730
for ac_header in dlfcn.h
 
4731
do
 
4732
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4733
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4734
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4735
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4736
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4738
fi
 
4739
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4740
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4741
else
 
4742
  # Is the header compilable?
 
4743
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4744
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4745
cat >conftest.$ac_ext <<_ACEOF
 
4746
#line $LINENO "configure"
 
4747
#include "confdefs.h"
 
4748
$ac_includes_default
 
4749
#include <$ac_header>
 
4750
_ACEOF
 
4751
rm -f conftest.$ac_objext
 
4752
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4753
  (eval $ac_compile) 2>&5
 
4754
  ac_status=$?
 
4755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4756
  (exit $ac_status); } &&
 
4757
         { ac_try='test -s conftest.$ac_objext'
 
4758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4759
  (eval $ac_try) 2>&5
 
4760
  ac_status=$?
 
4761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4762
  (exit $ac_status); }; }; then
 
4763
  ac_header_compiler=yes
 
4764
else
 
4765
  echo "$as_me: failed program was:" >&5
 
4766
cat conftest.$ac_ext >&5
 
4767
ac_header_compiler=no
 
4768
fi
 
4769
rm -f conftest.$ac_objext conftest.$ac_ext
 
4770
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4771
echo "${ECHO_T}$ac_header_compiler" >&6
 
4772
 
 
4773
# Is the header present?
 
4774
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4775
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4776
cat >conftest.$ac_ext <<_ACEOF
 
4777
#line $LINENO "configure"
 
4778
#include "confdefs.h"
 
4779
#include <$ac_header>
 
4780
_ACEOF
 
4781
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4782
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4783
  ac_status=$?
 
4784
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4785
  rm -f conftest.er1
 
4786
  cat conftest.err >&5
 
4787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4788
  (exit $ac_status); } >/dev/null; then
 
4789
  if test -s conftest.err; then
 
4790
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4791
  else
 
4792
    ac_cpp_err=
 
4793
  fi
 
4794
else
 
4795
  ac_cpp_err=yes
 
4796
fi
 
4797
if test -z "$ac_cpp_err"; then
 
4798
  ac_header_preproc=yes
 
4799
else
 
4800
  echo "$as_me: failed program was:" >&5
 
4801
  cat conftest.$ac_ext >&5
 
4802
  ac_header_preproc=no
 
4803
fi
 
4804
rm -f conftest.err conftest.$ac_ext
 
4805
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4806
echo "${ECHO_T}$ac_header_preproc" >&6
 
4807
 
 
4808
# So?  What about this header?
 
4809
case $ac_header_compiler:$ac_header_preproc in
 
4810
  yes:no )
 
4811
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4812
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4813
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4814
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
4815
  no:yes )
 
4816
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4817
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4818
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4819
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4820
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4821
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
4822
esac
 
4823
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4824
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4825
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4827
else
 
4828
  eval "$as_ac_Header=$ac_header_preproc"
 
4829
fi
 
4830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4831
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4832
 
 
4833
fi
 
4834
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4835
  cat >>confdefs.h <<_ACEOF
 
4836
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4837
_ACEOF
 
4838
 
 
4839
fi
 
4840
 
 
4841
done
 
4842
 
 
4843
 
 
4844
 
 
4845
 
 
4846
 
 
4847
# Only perform the check for file, if the check method requires it
 
4848
case $deplibs_check_method in
 
4849
file_magic*)
 
4850
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
4851
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
4852
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
4853
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4855
else
 
4856
  case $MAGIC_CMD in
 
4857
  /*)
 
4858
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4859
  ;;
 
4860
  ?:/*)
 
4861
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4862
  ;;
 
4863
  *)
 
4864
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4865
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4866
  ac_dummy="/usr/bin:$PATH"
 
4867
  for ac_dir in $ac_dummy; do
 
4868
    test -z "$ac_dir" && ac_dir=.
 
4869
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
4870
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
4871
      if test -n "$file_magic_test_file"; then
 
4872
        case $deplibs_check_method in
 
4873
        "file_magic "*)
 
4874
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4875
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4876
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4877
            egrep "$file_magic_regex" > /dev/null; then
 
4878
            :
 
4879
          else
 
4880
            cat <<EOF 1>&2
 
4881
 
 
4882
*** Warning: the command libtool uses to detect shared libraries,
 
4883
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4884
*** The result is that libtool may fail to recognize shared libraries
 
4885
*** as such.  This will affect the creation of libtool libraries that
 
4886
*** depend on shared libraries, but programs linked with such libtool
 
4887
*** libraries will work regardless of this problem.  Nevertheless, you
 
4888
*** may want to report the problem to your system manager and/or to
 
4889
*** bug-libtool@gnu.org
 
4890
 
 
4891
EOF
 
4892
          fi ;;
 
4893
        esac
 
4894
      fi
 
4895
      break
 
4896
    fi
 
4897
  done
 
4898
  IFS="$ac_save_ifs"
 
4899
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4900
  ;;
 
4901
esac
 
4902
fi
 
4903
 
 
4904
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4905
if test -n "$MAGIC_CMD"; then
 
4906
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4907
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4908
else
 
4909
  echo "$as_me:$LINENO: result: no" >&5
 
4910
echo "${ECHO_T}no" >&6
 
4911
fi
 
4912
 
 
4913
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4914
  if test -n "$ac_tool_prefix"; then
 
4915
    echo "$as_me:$LINENO: checking for file" >&5
 
4916
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
4917
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4919
else
 
4920
  case $MAGIC_CMD in
 
4921
  /*)
 
4922
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4923
  ;;
 
4924
  ?:/*)
 
4925
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4926
  ;;
 
4927
  *)
 
4928
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4929
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4930
  ac_dummy="/usr/bin:$PATH"
 
4931
  for ac_dir in $ac_dummy; do
 
4932
    test -z "$ac_dir" && ac_dir=.
 
4933
    if test -f $ac_dir/file; then
 
4934
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
4935
      if test -n "$file_magic_test_file"; then
 
4936
        case $deplibs_check_method in
 
4937
        "file_magic "*)
 
4938
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4939
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4940
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4941
            egrep "$file_magic_regex" > /dev/null; then
 
4942
            :
 
4943
          else
 
4944
            cat <<EOF 1>&2
 
4945
 
 
4946
*** Warning: the command libtool uses to detect shared libraries,
 
4947
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4948
*** The result is that libtool may fail to recognize shared libraries
 
4949
*** as such.  This will affect the creation of libtool libraries that
 
4950
*** depend on shared libraries, but programs linked with such libtool
 
4951
*** libraries will work regardless of this problem.  Nevertheless, you
 
4952
*** may want to report the problem to your system manager and/or to
 
4953
*** bug-libtool@gnu.org
 
4954
 
 
4955
EOF
 
4956
          fi ;;
 
4957
        esac
 
4958
      fi
 
4959
      break
 
4960
    fi
 
4961
  done
 
4962
  IFS="$ac_save_ifs"
 
4963
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4964
  ;;
 
4965
esac
 
4966
fi
 
4967
 
 
4968
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4969
if test -n "$MAGIC_CMD"; then
 
4970
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4971
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4972
else
 
4973
  echo "$as_me:$LINENO: result: no" >&5
 
4974
echo "${ECHO_T}no" >&6
 
4975
fi
 
4976
 
 
4977
  else
 
4978
    MAGIC_CMD=:
 
4979
  fi
 
4980
fi
 
4981
 
 
4982
  fi
 
4983
  ;;
 
4984
esac
 
4985
 
 
4986
if test -n "$ac_tool_prefix"; then
 
4987
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4988
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4989
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4991
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4993
else
 
4994
  if test -n "$RANLIB"; then
 
4995
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4996
else
 
4997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4998
for as_dir in $PATH
 
4999
do
 
5000
  IFS=$as_save_IFS
 
5001
  test -z "$as_dir" && as_dir=.
 
5002
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5003
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5004
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5005
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5006
    break 2
 
5007
  fi
 
5008
done
 
5009
done
 
5010
 
 
5011
fi
 
5012
fi
 
5013
RANLIB=$ac_cv_prog_RANLIB
 
5014
if test -n "$RANLIB"; then
 
5015
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5016
echo "${ECHO_T}$RANLIB" >&6
 
5017
else
 
5018
  echo "$as_me:$LINENO: result: no" >&5
 
5019
echo "${ECHO_T}no" >&6
 
5020
fi
 
5021
 
 
5022
fi
 
5023
if test -z "$ac_cv_prog_RANLIB"; then
 
5024
  ac_ct_RANLIB=$RANLIB
 
5025
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5026
set dummy ranlib; ac_word=$2
 
5027
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5029
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5030
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5031
else
 
5032
  if test -n "$ac_ct_RANLIB"; then
 
5033
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5034
else
 
5035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5036
for as_dir in $PATH
 
5037
do
 
5038
  IFS=$as_save_IFS
 
5039
  test -z "$as_dir" && as_dir=.
 
5040
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5041
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5042
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5043
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5044
    break 2
 
5045
  fi
 
5046
done
 
5047
done
 
5048
 
 
5049
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5050
fi
 
5051
fi
 
5052
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5053
if test -n "$ac_ct_RANLIB"; then
 
5054
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5055
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5056
else
 
5057
  echo "$as_me:$LINENO: result: no" >&5
 
5058
echo "${ECHO_T}no" >&6
 
5059
fi
 
5060
 
 
5061
  RANLIB=$ac_ct_RANLIB
 
5062
else
 
5063
  RANLIB="$ac_cv_prog_RANLIB"
 
5064
fi
 
5065
 
 
5066
if test -n "$ac_tool_prefix"; then
 
5067
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5068
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5069
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5071
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5073
else
 
5074
  if test -n "$STRIP"; then
 
5075
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5076
else
 
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5078
for as_dir in $PATH
 
5079
do
 
5080
  IFS=$as_save_IFS
 
5081
  test -z "$as_dir" && as_dir=.
 
5082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5084
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5086
    break 2
 
5087
  fi
 
5088
done
 
5089
done
 
5090
 
 
5091
fi
 
5092
fi
 
5093
STRIP=$ac_cv_prog_STRIP
 
5094
if test -n "$STRIP"; then
 
5095
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5096
echo "${ECHO_T}$STRIP" >&6
 
5097
else
 
5098
  echo "$as_me:$LINENO: result: no" >&5
 
5099
echo "${ECHO_T}no" >&6
 
5100
fi
 
5101
 
 
5102
fi
 
5103
if test -z "$ac_cv_prog_STRIP"; then
 
5104
  ac_ct_STRIP=$STRIP
 
5105
  # Extract the first word of "strip", so it can be a program name with args.
 
5106
set dummy strip; ac_word=$2
 
5107
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5109
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5111
else
 
5112
  if test -n "$ac_ct_STRIP"; then
 
5113
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5114
else
 
5115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5116
for as_dir in $PATH
 
5117
do
 
5118
  IFS=$as_save_IFS
 
5119
  test -z "$as_dir" && as_dir=.
 
5120
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5122
    ac_cv_prog_ac_ct_STRIP="strip"
 
5123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5124
    break 2
 
5125
  fi
 
5126
done
 
5127
done
 
5128
 
 
5129
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5130
fi
 
5131
fi
 
5132
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5133
if test -n "$ac_ct_STRIP"; then
 
5134
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5135
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5136
else
 
5137
  echo "$as_me:$LINENO: result: no" >&5
 
5138
echo "${ECHO_T}no" >&6
 
5139
fi
 
5140
 
 
5141
  STRIP=$ac_ct_STRIP
 
5142
else
 
5143
  STRIP="$ac_cv_prog_STRIP"
 
5144
fi
 
5145
 
 
5146
 
 
5147
enable_dlopen=no
 
5148
enable_win32_dll=no
 
5149
 
 
5150
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5151
if test "${enable_libtool_lock+set}" = set; then
 
5152
  enableval="$enable_libtool_lock"
 
5153
 
 
5154
fi;
 
5155
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5156
 
 
5157
# Some flags need to be propagated to the compiler or linker for good
 
5158
# libtool support.
 
5159
case $host in
 
5160
*-*-irix6*)
 
5161
  # Find out which ABI we are using.
 
5162
  echo '#line 5162 "configure"' > conftest.$ac_ext
 
5163
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5164
  (eval $ac_compile) 2>&5
 
5165
  ac_status=$?
 
5166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5167
  (exit $ac_status); }; then
 
5168
    case `/usr/bin/file conftest.$ac_objext` in
 
5169
    *32-bit*)
 
5170
      LD="${LD-ld} -32"
 
5171
      ;;
 
5172
    *N32*)
 
5173
      LD="${LD-ld} -n32"
 
5174
      ;;
 
5175
    *64-bit*)
 
5176
      LD="${LD-ld} -64"
 
5177
      ;;
 
5178
    esac
 
5179
  fi
 
5180
  rm -rf conftest*
 
5181
  ;;
 
5182
 
 
5183
*-*-sco3.2v5*)
 
5184
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5185
  SAVE_CFLAGS="$CFLAGS"
 
5186
  CFLAGS="$CFLAGS -belf"
 
5187
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5188
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5189
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5191
else
 
5192
 
 
5193
 
 
5194
     ac_ext=c
 
5195
ac_cpp='$CPP $CPPFLAGS'
 
5196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5199
 
 
5200
     cat >conftest.$ac_ext <<_ACEOF
 
5201
#line $LINENO "configure"
 
5202
#include "confdefs.h"
 
5203
 
 
5204
#ifdef F77_DUMMY_MAIN
 
5205
#  ifdef __cplusplus
 
5206
     extern "C"
 
5207
#  endif
 
5208
   int F77_DUMMY_MAIN() { return 1; }
 
5209
#endif
 
5210
int
 
5211
main ()
 
5212
{
 
5213
 
 
5214
  ;
 
5215
  return 0;
 
5216
}
 
5217
_ACEOF
 
5218
rm -f conftest.$ac_objext conftest$ac_exeext
 
5219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5220
  (eval $ac_link) 2>&5
 
5221
  ac_status=$?
 
5222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5223
  (exit $ac_status); } &&
 
5224
         { ac_try='test -s conftest$ac_exeext'
 
5225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5226
  (eval $ac_try) 2>&5
 
5227
  ac_status=$?
 
5228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5229
  (exit $ac_status); }; }; then
 
5230
  lt_cv_cc_needs_belf=yes
 
5231
else
 
5232
  echo "$as_me: failed program was:" >&5
 
5233
cat conftest.$ac_ext >&5
 
5234
lt_cv_cc_needs_belf=no
 
5235
fi
 
5236
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5237
     ac_ext=cc
 
5238
ac_cpp='$CXXCPP $CPPFLAGS'
 
5239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5242
 
 
5243
fi
 
5244
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5245
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5246
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5247
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5248
    CFLAGS="$SAVE_CFLAGS"
 
5249
  fi
 
5250
  ;;
 
5251
 
 
5252
 
 
5253
esac
 
5254
 
 
5255
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5256
# metacharacters that are still active within double-quoted strings.
 
5257
Xsed='sed -e s/^X//'
 
5258
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5259
 
 
5260
# Same as above, but do not quote variable references.
 
5261
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5262
 
 
5263
# Sed substitution to delay expansion of an escaped shell variable in a
 
5264
# double_quote_subst'ed string.
 
5265
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5266
 
 
5267
# Constants:
 
5268
rm="rm -f"
 
5269
 
 
5270
# Global variables:
 
5271
default_ofile=libtool
 
5272
can_build_shared=yes
 
5273
 
 
5274
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5275
# which needs '.lib').
 
5276
libext=a
 
5277
ltmain="$ac_aux_dir/ltmain.sh"
 
5278
ofile="$default_ofile"
 
5279
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5280
need_locks="$enable_libtool_lock"
 
5281
 
 
5282
old_CC="$CC"
 
5283
old_CFLAGS="$CFLAGS"
 
5284
 
 
5285
# Set sane defaults for various variables
 
5286
test -z "$AR" && AR=ar
 
5287
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5288
test -z "$AS" && AS=as
 
5289
test -z "$CC" && CC=cc
 
5290
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5291
test -z "$LD" && LD=ld
 
5292
test -z "$LN_S" && LN_S="ln -s"
 
5293
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5294
test -z "$NM" && NM=nm
 
5295
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5296
test -z "$RANLIB" && RANLIB=:
 
5297
test -z "$STRIP" && STRIP=:
 
5298
test -z "$ac_objext" && ac_objext=o
 
5299
 
 
5300
if test x"$host" != x"$build"; then
 
5301
  ac_tool_prefix=${host_alias}-
 
5302
else
 
5303
  ac_tool_prefix=
 
5304
fi
 
5305
 
 
5306
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
5307
case $host_os in
 
5308
linux-gnu*) ;;
 
5309
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
5310
esac
 
5311
 
 
5312
case $host_os in
 
5313
aix3*)
 
5314
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5315
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5316
  # vanish in a puff of smoke.
 
5317
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5318
    COLLECT_NAMES=
 
5319
    export COLLECT_NAMES
 
5320
  fi
 
5321
  ;;
 
5322
esac
 
5323
 
 
5324
# Determine commands to create old-style static archives.
 
5325
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5326
old_postinstall_cmds='chmod 644 $oldlib'
 
5327
old_postuninstall_cmds=
 
5328
 
 
5329
if test -n "$RANLIB"; then
 
5330
  case $host_os in
 
5331
  openbsd*)
 
5332
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5333
    ;;
 
5334
  *)
 
5335
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5336
    ;;
 
5337
  esac
 
5338
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5339
fi
 
5340
 
 
5341
# Allow CC to be a program name with arguments.
 
5342
set dummy $CC
 
5343
compiler="$2"
 
5344
 
 
5345
echo "$as_me:$LINENO: checking for objdir" >&5
 
5346
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5347
rm -f .libs 2>/dev/null
 
5348
mkdir .libs 2>/dev/null
 
5349
if test -d .libs; then
 
5350
  objdir=.libs
 
5351
else
 
5352
  # MS-DOS does not allow filenames that begin with a dot.
 
5353
  objdir=_libs
 
5354
fi
 
5355
rmdir .libs 2>/dev/null
 
5356
echo "$as_me:$LINENO: result: $objdir" >&5
 
5357
echo "${ECHO_T}$objdir" >&6
 
5358
 
 
5359
 
 
5360
 
 
5361
# Check whether --with-pic or --without-pic was given.
 
5362
if test "${with_pic+set}" = set; then
 
5363
  withval="$with_pic"
 
5364
  pic_mode="$withval"
 
5365
else
 
5366
  pic_mode=default
 
5367
fi;
 
5368
test -z "$pic_mode" && pic_mode=default
 
5369
 
 
5370
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
5371
# in isolation, and that seeing it set (from the cache) indicates that
 
5372
# the associated values are set (in the cache) correctly too.
 
5373
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5374
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5375
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
5376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5377
else
 
5378
   lt_cv_prog_cc_pic=
 
5379
  lt_cv_prog_cc_shlib=
 
5380
  lt_cv_prog_cc_wl=
 
5381
  lt_cv_prog_cc_static=
 
5382
  lt_cv_prog_cc_no_builtin=
 
5383
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
5384
 
 
5385
  if test "$GCC" = yes; then
 
5386
    lt_cv_prog_cc_wl='-Wl,'
 
5387
    lt_cv_prog_cc_static='-static'
 
5388
 
 
5389
    case $host_os in
 
5390
    aix*)
 
5391
      # Below there is a dirty hack to force normal static linking with -ldl
 
5392
      # The problem is because libdl dynamically linked with both libc and
 
5393
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
5394
      # list by gcc. This cause undefined symbols with -static flags.
 
5395
      # This hack allows C programs to be linked with "-static -ldl", but
 
5396
      # not sure about C++ programs.
 
5397
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
5398
      ;;
 
5399
    amigaos*)
 
5400
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5401
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5402
      # like `-m68040'.
 
5403
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
5404
      ;;
 
5405
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
5406
      # PIC is the default for these OSes.
 
5407
      ;;
 
5408
    darwin* | rhapsody*)
 
5409
      # PIC is the default on this platform
 
5410
      # Common symbols not allowed in MH_DYLIB files
 
5411
      lt_cv_prog_cc_pic='-fno-common'
 
5412
      ;;
 
5413
    cygwin* | mingw* | pw32* | os2*)
 
5414
      # This hack is so that the source file can tell whether it is being
 
5415
      # built for inclusion in a dll (and should export symbols for example).
 
5416
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5417
      ;;
 
5418
    sysv4*MP*)
 
5419
      if test -d /usr/nec; then
 
5420
         lt_cv_prog_cc_pic=-Kconform_pic
 
5421
      fi
 
5422
      ;;
 
5423
    *)
 
5424
      lt_cv_prog_cc_pic='-fPIC'
 
5425
      ;;
 
5426
    esac
 
5427
  else
 
5428
    # PORTME Check for PIC flags for the system compiler.
 
5429
    case $host_os in
 
5430
    aix3* | aix4* | aix5*)
 
5431
      lt_cv_prog_cc_wl='-Wl,'
 
5432
      # All AIX code is PIC.
 
5433
      if test "$host_cpu" = ia64; then
 
5434
        # AIX 5 now supports IA64 processor
 
5435
        lt_cv_prog_cc_static='-Bstatic'
 
5436
      else
 
5437
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
5438
      fi
 
5439
      ;;
 
5440
 
 
5441
    hpux9* | hpux10* | hpux11*)
 
5442
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
5443
      lt_cv_prog_cc_wl='-Wl,'
 
5444
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
5445
      lt_cv_prog_cc_pic='+Z'
 
5446
      ;;
 
5447
 
 
5448
    irix5* | irix6*)
 
5449
      lt_cv_prog_cc_wl='-Wl,'
 
5450
      lt_cv_prog_cc_static='-non_shared'
 
5451
      # PIC (with -KPIC) is the default.
 
5452
      ;;
 
5453
 
 
5454
    cygwin* | mingw* | pw32* | os2*)
 
5455
      # This hack is so that the source file can tell whether it is being
 
5456
      # built for inclusion in a dll (and should export symbols for example).
 
5457
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5458
      ;;
 
5459
 
 
5460
    newsos6)
 
5461
      lt_cv_prog_cc_pic='-KPIC'
 
5462
      lt_cv_prog_cc_static='-Bstatic'
 
5463
      ;;
 
5464
 
 
5465
    osf3* | osf4* | osf5*)
 
5466
      # All OSF/1 code is PIC.
 
5467
      lt_cv_prog_cc_wl='-Wl,'
 
5468
      lt_cv_prog_cc_static='-non_shared'
 
5469
      ;;
 
5470
 
 
5471
    sco3.2v5*)
 
5472
      lt_cv_prog_cc_pic='-Kpic'
 
5473
      lt_cv_prog_cc_static='-dn'
 
5474
      lt_cv_prog_cc_shlib='-belf'
 
5475
      ;;
 
5476
 
 
5477
    solaris*)
 
5478
      lt_cv_prog_cc_pic='-KPIC'
 
5479
      lt_cv_prog_cc_static='-Bstatic'
 
5480
      lt_cv_prog_cc_wl='-Wl,'
 
5481
      ;;
 
5482
 
 
5483
    sunos4*)
 
5484
      lt_cv_prog_cc_pic='-PIC'
 
5485
      lt_cv_prog_cc_static='-Bstatic'
 
5486
      lt_cv_prog_cc_wl='-Qoption ld '
 
5487
      ;;
 
5488
 
 
5489
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5490
      lt_cv_prog_cc_pic='-KPIC'
 
5491
      lt_cv_prog_cc_static='-Bstatic'
 
5492
      if test "x$host_vendor" = xsni; then
 
5493
        lt_cv_prog_cc_wl='-LD'
 
5494
      else
 
5495
        lt_cv_prog_cc_wl='-Wl,'
 
5496
      fi
 
5497
      ;;
 
5498
 
 
5499
    uts4*)
 
5500
      lt_cv_prog_cc_pic='-pic'
 
5501
      lt_cv_prog_cc_static='-Bstatic'
 
5502
      ;;
 
5503
 
 
5504
    sysv4*MP*)
 
5505
      if test -d /usr/nec ;then
 
5506
        lt_cv_prog_cc_pic='-Kconform_pic'
 
5507
        lt_cv_prog_cc_static='-Bstatic'
 
5508
      fi
 
5509
      ;;
 
5510
 
 
5511
    *)
 
5512
      lt_cv_prog_cc_can_build_shared=no
 
5513
      ;;
 
5514
    esac
 
5515
  fi
 
5516
 
 
5517
fi
 
5518
 
 
5519
if test -z "$lt_cv_prog_cc_pic"; then
 
5520
  echo "$as_me:$LINENO: result: none" >&5
 
5521
echo "${ECHO_T}none" >&6
 
5522
else
 
5523
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
5524
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
5525
 
 
5526
  # Check to make sure the pic_flag actually works.
 
5527
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
5528
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
5529
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
5530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5531
else
 
5532
      save_CFLAGS="$CFLAGS"
 
5533
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
5534
    cat >conftest.$ac_ext <<_ACEOF
 
5535
#line $LINENO "configure"
 
5536
#include "confdefs.h"
 
5537
 
 
5538
#ifdef F77_DUMMY_MAIN
 
5539
#  ifdef __cplusplus
 
5540
     extern "C"
 
5541
#  endif
 
5542
   int F77_DUMMY_MAIN() { return 1; }
 
5543
#endif
 
5544
int
 
5545
main ()
 
5546
{
 
5547
 
 
5548
  ;
 
5549
  return 0;
 
5550
}
 
5551
_ACEOF
 
5552
rm -f conftest.$ac_objext
 
5553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5554
  (eval $ac_compile) 2>&5
 
5555
  ac_status=$?
 
5556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5557
  (exit $ac_status); } &&
 
5558
         { ac_try='test -s conftest.$ac_objext'
 
5559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5560
  (eval $ac_try) 2>&5
 
5561
  ac_status=$?
 
5562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5563
  (exit $ac_status); }; }; then
 
5564
        case $host_os in
 
5565
      hpux9* | hpux10* | hpux11*)
 
5566
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
5567
        # they create non-PIC objects.  So, if there were any warnings, we
 
5568
        # assume that PIC is not supported.
 
5569
        if test -s conftest.err; then
 
5570
          lt_cv_prog_cc_pic_works=no
 
5571
        else
 
5572
          lt_cv_prog_cc_pic_works=yes
 
5573
        fi
 
5574
        ;;
 
5575
      *)
 
5576
        lt_cv_prog_cc_pic_works=yes
 
5577
        ;;
 
5578
      esac
 
5579
 
 
5580
else
 
5581
  echo "$as_me: failed program was:" >&5
 
5582
cat conftest.$ac_ext >&5
 
5583
      lt_cv_prog_cc_pic_works=no
 
5584
 
 
5585
fi
 
5586
rm -f conftest.$ac_objext conftest.$ac_ext
 
5587
    CFLAGS="$save_CFLAGS"
 
5588
 
 
5589
fi
 
5590
 
 
5591
 
 
5592
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
5593
    lt_cv_prog_cc_pic=
 
5594
    lt_cv_prog_cc_can_build_shared=no
 
5595
  else
 
5596
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
5597
  fi
 
5598
 
 
5599
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
5600
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
5601
fi
 
5602
 
 
5603
# Check for any special shared library compilation flags.
 
5604
if test -n "$lt_cv_prog_cc_shlib"; then
 
5605
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
5606
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
5607
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5608
  else
 
5609
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5610
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5611
    lt_cv_prog_cc_can_build_shared=no
 
5612
  fi
 
5613
fi
 
5614
 
 
5615
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
5616
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
5617
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
5618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5619
else
 
5620
    lt_cv_prog_cc_static_works=no
 
5621
  save_LDFLAGS="$LDFLAGS"
 
5622
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
5623
  cat >conftest.$ac_ext <<_ACEOF
 
5624
#line $LINENO "configure"
 
5625
#include "confdefs.h"
 
5626
 
 
5627
#ifdef F77_DUMMY_MAIN
 
5628
#  ifdef __cplusplus
 
5629
     extern "C"
 
5630
#  endif
 
5631
   int F77_DUMMY_MAIN() { return 1; }
 
5632
#endif
 
5633
int
 
5634
main ()
 
5635
{
 
5636
 
 
5637
  ;
 
5638
  return 0;
 
5639
}
 
5640
_ACEOF
 
5641
rm -f conftest.$ac_objext conftest$ac_exeext
 
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5643
  (eval $ac_link) 2>&5
 
5644
  ac_status=$?
 
5645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5646
  (exit $ac_status); } &&
 
5647
         { ac_try='test -s conftest$ac_exeext'
 
5648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5649
  (eval $ac_try) 2>&5
 
5650
  ac_status=$?
 
5651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5652
  (exit $ac_status); }; }; then
 
5653
  lt_cv_prog_cc_static_works=yes
 
5654
else
 
5655
  echo "$as_me: failed program was:" >&5
 
5656
cat conftest.$ac_ext >&5
 
5657
fi
 
5658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5659
  LDFLAGS="$save_LDFLAGS"
 
5660
 
 
5661
fi
 
5662
 
 
5663
 
 
5664
# Belt *and* braces to stop my trousers falling down:
 
5665
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
5666
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
5667
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
5668
 
 
5669
pic_flag="$lt_cv_prog_cc_pic"
 
5670
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
5671
wl="$lt_cv_prog_cc_wl"
 
5672
link_static_flag="$lt_cv_prog_cc_static"
 
5673
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
5674
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
5675
 
 
5676
 
 
5677
# Check to see if options -o and -c are simultaneously supported by compiler
 
5678
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5679
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5680
if test "${lt_cv_compiler_c_o+set}" = set; then
 
5681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5682
else
 
5683
 
 
5684
$rm -r conftest 2>/dev/null
 
5685
mkdir conftest
 
5686
cd conftest
 
5687
echo "int some_variable = 0;" > conftest.$ac_ext
 
5688
mkdir out
 
5689
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
5690
# that will create temporary files in the current directory regardless of
 
5691
# the output directory.  Thus, making CWD read-only will cause this test
 
5692
# to fail, enabling locking or at least warning the user not to do parallel
 
5693
# builds.
 
5694
chmod -w .
 
5695
save_CFLAGS="$CFLAGS"
 
5696
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
5697
compiler_c_o=no
 
5698
if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
5699
  # The compiler can only warn and ignore the option if not recognized
 
5700
  # So say no if there are warnings
 
5701
  if test -s out/conftest.err; then
 
5702
    lt_cv_compiler_c_o=no
 
5703
  else
 
5704
    lt_cv_compiler_c_o=yes
 
5705
  fi
 
5706
else
 
5707
  # Append any errors to the config.log.
 
5708
  cat out/conftest.err 1>&5
 
5709
  lt_cv_compiler_c_o=no
 
5710
fi
 
5711
CFLAGS="$save_CFLAGS"
 
5712
chmod u+w .
 
5713
$rm conftest* out/*
 
5714
rmdir out
 
5715
cd ..
 
5716
rmdir conftest
 
5717
$rm -r conftest 2>/dev/null
 
5718
 
 
5719
fi
 
5720
 
 
5721
compiler_c_o=$lt_cv_compiler_c_o
 
5722
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
5723
echo "${ECHO_T}$compiler_c_o" >&6
 
5724
 
 
5725
if test x"$compiler_c_o" = x"yes"; then
 
5726
  # Check to see if we can write to a .lo
 
5727
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
5728
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
5729
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
5730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5731
else
 
5732
 
 
5733
  lt_cv_compiler_o_lo=no
 
5734
  save_CFLAGS="$CFLAGS"
 
5735
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
5736
  save_objext="$ac_objext"
 
5737
  ac_objext=lo
 
5738
  cat >conftest.$ac_ext <<_ACEOF
 
5739
#line $LINENO "configure"
 
5740
#include "confdefs.h"
 
5741
 
 
5742
#ifdef F77_DUMMY_MAIN
 
5743
#  ifdef __cplusplus
 
5744
     extern "C"
 
5745
#  endif
 
5746
   int F77_DUMMY_MAIN() { return 1; }
 
5747
#endif
 
5748
int
 
5749
main ()
 
5750
{
 
5751
int some_variable = 0;
 
5752
  ;
 
5753
  return 0;
 
5754
}
 
5755
_ACEOF
 
5756
rm -f conftest.$ac_objext
 
5757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5758
  (eval $ac_compile) 2>&5
 
5759
  ac_status=$?
 
5760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5761
  (exit $ac_status); } &&
 
5762
         { ac_try='test -s conftest.$ac_objext'
 
5763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5764
  (eval $ac_try) 2>&5
 
5765
  ac_status=$?
 
5766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5767
  (exit $ac_status); }; }; then
 
5768
      # The compiler can only warn and ignore the option if not recognized
 
5769
    # So say no if there are warnings
 
5770
    if test -s conftest.err; then
 
5771
      lt_cv_compiler_o_lo=no
 
5772
    else
 
5773
      lt_cv_compiler_o_lo=yes
 
5774
    fi
 
5775
 
 
5776
else
 
5777
  echo "$as_me: failed program was:" >&5
 
5778
cat conftest.$ac_ext >&5
 
5779
fi
 
5780
rm -f conftest.$ac_objext conftest.$ac_ext
 
5781
  ac_objext="$save_objext"
 
5782
  CFLAGS="$save_CFLAGS"
 
5783
 
 
5784
fi
 
5785
 
 
5786
  compiler_o_lo=$lt_cv_compiler_o_lo
 
5787
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
5788
echo "${ECHO_T}$compiler_o_lo" >&6
 
5789
else
 
5790
  compiler_o_lo=no
 
5791
fi
 
5792
 
 
5793
# Check to see if we can do hard links to lock some files if needed
 
5794
hard_links="nottested"
 
5795
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
5796
  # do not overwrite the value of need_locks provided by the user
 
5797
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5798
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5799
  hard_links=yes
 
5800
  $rm conftest*
 
5801
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5802
  touch conftest.a
 
5803
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5804
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5805
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
5806
echo "${ECHO_T}$hard_links" >&6
 
5807
  if test "$hard_links" = no; then
 
5808
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5809
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5810
    need_locks=warn
 
5811
  fi
 
5812
else
 
5813
  need_locks=no
 
5814
fi
 
5815
 
 
5816
if test "$GCC" = yes; then
 
5817
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
5818
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5819
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5820
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5821
  save_CFLAGS="$CFLAGS"
 
5822
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
5823
  compiler_rtti_exceptions=no
 
5824
  cat >conftest.$ac_ext <<_ACEOF
 
5825
#line $LINENO "configure"
 
5826
#include "confdefs.h"
 
5827
 
 
5828
#ifdef F77_DUMMY_MAIN
 
5829
#  ifdef __cplusplus
 
5830
     extern "C"
 
5831
#  endif
 
5832
   int F77_DUMMY_MAIN() { return 1; }
 
5833
#endif
 
5834
int
 
5835
main ()
 
5836
{
 
5837
int some_variable = 0;
 
5838
  ;
 
5839
  return 0;
 
5840
}
 
5841
_ACEOF
 
5842
rm -f conftest.$ac_objext
 
5843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5844
  (eval $ac_compile) 2>&5
 
5845
  ac_status=$?
 
5846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5847
  (exit $ac_status); } &&
 
5848
         { ac_try='test -s conftest.$ac_objext'
 
5849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5850
  (eval $ac_try) 2>&5
 
5851
  ac_status=$?
 
5852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5853
  (exit $ac_status); }; }; then
 
5854
      # The compiler can only warn and ignore the option if not recognized
 
5855
    # So say no if there are warnings
 
5856
    if test -s conftest.err; then
 
5857
      compiler_rtti_exceptions=no
 
5858
    else
 
5859
      compiler_rtti_exceptions=yes
 
5860
    fi
 
5861
 
 
5862
else
 
5863
  echo "$as_me: failed program was:" >&5
 
5864
cat conftest.$ac_ext >&5
 
5865
fi
 
5866
rm -f conftest.$ac_objext conftest.$ac_ext
 
5867
  CFLAGS="$save_CFLAGS"
 
5868
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
5869
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
5870
 
 
5871
  if test "$compiler_rtti_exceptions" = "yes"; then
 
5872
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
5873
  else
 
5874
    no_builtin_flag=' -fno-builtin'
 
5875
  fi
 
5876
fi
 
5877
 
 
5878
# See if the linker supports building shared libraries.
 
5879
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
5880
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5881
 
 
5882
allow_undefined_flag=
 
5883
no_undefined_flag=
 
5884
need_lib_prefix=unknown
 
5885
need_version=unknown
 
5886
# when you set need_version to no, make sure it does not cause -set_version
 
5887
# flags to be left without arguments
 
5888
archive_cmds=
 
5889
archive_expsym_cmds=
 
5890
old_archive_from_new_cmds=
 
5891
old_archive_from_expsyms_cmds=
 
5892
export_dynamic_flag_spec=
 
5893
whole_archive_flag_spec=
 
5894
thread_safe_flag_spec=
 
5895
hardcode_into_libs=no
 
5896
hardcode_libdir_flag_spec=
 
5897
hardcode_libdir_separator=
 
5898
hardcode_direct=no
 
5899
hardcode_minus_L=no
 
5900
hardcode_shlibpath_var=unsupported
 
5901
runpath_var=
 
5902
link_all_deplibs=unknown
 
5903
always_export_symbols=no
 
5904
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5905
# include_expsyms should be a list of space-separated symbols to be *always*
 
5906
# included in the symbol list
 
5907
include_expsyms=
 
5908
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
5909
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5910
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5911
# as well as any symbol that contains `d'.
 
5912
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5913
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5914
# platforms (ab)use it in PIC code, but their linkers get confused if
 
5915
# the symbol is explicitly referenced.  Since portable code cannot
 
5916
# rely on this symbol name, it's probably fine to never include it in
 
5917
# preloaded symbol tables.
 
5918
extract_expsyms_cmds=
 
5919
 
 
5920
case $host_os in
 
5921
cygwin* | mingw* | pw32*)
 
5922
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5923
  # When not using gcc, we currently assume that we are using
 
5924
  # Microsoft Visual C++.
 
5925
  if test "$GCC" != yes; then
 
5926
    with_gnu_ld=no
 
5927
  fi
 
5928
  ;;
 
5929
openbsd*)
 
5930
  with_gnu_ld=no
 
5931
  ;;
 
5932
esac
 
5933
 
 
5934
ld_shlibs=yes
 
5935
if test "$with_gnu_ld" = yes; then
 
5936
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
5937
  wlarc='${wl}'
 
5938
 
 
5939
  # See if GNU ld supports shared libraries.
 
5940
  case $host_os in
 
5941
  aix3* | aix4* | aix5*)
 
5942
    # On AIX, the GNU linker is very broken
 
5943
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
5944
    ld_shlibs=no
 
5945
    cat <<EOF 1>&2
 
5946
 
 
5947
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5948
*** to be unable to reliably create shared libraries on AIX.
 
5949
*** Therefore, libtool is disabling shared libraries support.  If you
 
5950
*** really care for shared libraries, you may want to modify your PATH
 
5951
*** so that a non-GNU linker is found, and then restart.
 
5952
 
 
5953
EOF
 
5954
    ;;
 
5955
 
 
5956
  amigaos*)
 
5957
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5958
    hardcode_libdir_flag_spec='-L$libdir'
 
5959
    hardcode_minus_L=yes
 
5960
 
 
5961
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5962
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
5963
    # to version 4, is to share data among multiple programs linked
 
5964
    # with the same dynamic library.  Since this doesn't match the
 
5965
    # behavior of shared libraries on other platforms, we can use
 
5966
    # them.
 
5967
    ld_shlibs=no
 
5968
    ;;
 
5969
 
 
5970
  beos*)
 
5971
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5972
      allow_undefined_flag=unsupported
 
5973
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5974
      # support --undefined.  This deserves some investigation.  FIXME
 
5975
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5976
    else
 
5977
      ld_shlibs=no
 
5978
    fi
 
5979
    ;;
 
5980
 
 
5981
  cygwin* | mingw* | pw32*)
 
5982
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5983
    # no search path for DLLs.
 
5984
    hardcode_libdir_flag_spec='-L$libdir'
 
5985
    allow_undefined_flag=unsupported
 
5986
    always_export_symbols=yes
 
5987
 
 
5988
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
5989
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
5990
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
5991
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
5992
      else $CC -o impgen impgen.c ; fi)~
 
5993
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
5994
 
 
5995
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
5996
 
 
5997
    # cygwin and mingw dlls have different entry points and sets of symbols
 
5998
    # to exclude.
 
5999
    # FIXME: what about values for MSVC?
 
6000
    dll_entry=__cygwin_dll_entry@12
 
6001
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
6002
    case $host_os in
 
6003
    mingw*)
 
6004
      # mingw values
 
6005
      dll_entry=_DllMainCRTStartup@12
 
6006
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
6007
      ;;
 
6008
    esac
 
6009
 
 
6010
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
6011
    # of the two symbol sets.
 
6012
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
6013
 
 
6014
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
6015
    # can override, but on older systems we have to supply one (in ltdll.c)
 
6016
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
6017
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
6018
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 
6019
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
6020
    else
 
6021
      ltdll_obj=
 
6022
      ltdll_cmds=
 
6023
    fi
 
6024
 
 
6025
    # Extract the symbol export list from an `--export-all' def file,
 
6026
    # then regenerate the def file from the symbol export list, so that
 
6027
    # the compiled dll only exports the symbol export list.
 
6028
    # Be careful not to strip the DATA tag left be newer dlltools.
 
6029
    export_symbols_cmds="$ltdll_cmds"'
 
6030
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
6031
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
6032
 
 
6033
    # If the export-symbols file already is a .def file (1st line
 
6034
    # is EXPORTS), use it as is.
 
6035
    # If DATA tags from a recent dlltool are present, honour them!
 
6036
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
6037
        cp $export_symbols $output_objdir/$soname-def;
 
6038
      else
 
6039
        echo EXPORTS > $output_objdir/$soname-def;
 
6040
        _lt_hint=1;
 
6041
        cat $export_symbols | while read symbol; do
 
6042
         set dummy \$symbol;
 
6043
         case \$# in
 
6044
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
6045
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
6046
         esac;
 
6047
         _lt_hint=`expr 1 + \$_lt_hint`;
 
6048
        done;
 
6049
      fi~
 
6050
      '"$ltdll_cmds"'
 
6051
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
6052
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 
6053
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
6054
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 
6055
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
6056
    ;;
 
6057
 
 
6058
  netbsd*)
 
6059
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6060
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6061
      wlarc=
 
6062
    else
 
6063
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6064
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6065
    fi
 
6066
    ;;
 
6067
 
 
6068
  solaris* | sysv5*)
 
6069
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
6070
      ld_shlibs=no
 
6071
      cat <<EOF 1>&2
 
6072
 
 
6073
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6074
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6075
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6076
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6077
*** your PATH or compiler configuration so that the native linker is
 
6078
*** used, and then restart.
 
6079
 
 
6080
EOF
 
6081
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6082
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6083
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6084
    else
 
6085
      ld_shlibs=no
 
6086
    fi
 
6087
    ;;
 
6088
 
 
6089
  sunos4*)
 
6090
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6091
    wlarc=
 
6092
    hardcode_direct=yes
 
6093
    hardcode_shlibpath_var=no
 
6094
    ;;
 
6095
 
 
6096
  *)
 
6097
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6098
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6099
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6100
    else
 
6101
      ld_shlibs=no
 
6102
    fi
 
6103
    ;;
 
6104
  esac
 
6105
 
 
6106
  if test "$ld_shlibs" = yes; then
 
6107
    runpath_var=LD_RUN_PATH
 
6108
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6109
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6110
    case $host_os in
 
6111
    cygwin* | mingw* | pw32*)
 
6112
      # dlltool doesn't understand --whole-archive et. al.
 
6113
      whole_archive_flag_spec=
 
6114
      ;;
 
6115
    *)
 
6116
      # ancient GNU ld didn't support --whole-archive et. al.
 
6117
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
6118
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6119
      else
 
6120
        whole_archive_flag_spec=
 
6121
      fi
 
6122
      ;;
 
6123
    esac
 
6124
  fi
 
6125
else
 
6126
  # PORTME fill in a description of your system's linker (not GNU ld)
 
6127
  case $host_os in
 
6128
  aix3*)
 
6129
    allow_undefined_flag=unsupported
 
6130
    always_export_symbols=yes
 
6131
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
6132
    # Note: this linker hardcodes the directories in LIBPATH if there
 
6133
    # are no directories specified by -L.
 
6134
    hardcode_minus_L=yes
 
6135
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6136
      # Neither direct hardcoding nor static linking is supported with a
 
6137
      # broken collect2.
 
6138
      hardcode_direct=unsupported
 
6139
    fi
 
6140
    ;;
 
6141
 
 
6142
  aix4* | aix5*)
 
6143
    if test "$host_cpu" = ia64; then
 
6144
      # On IA64, the linker does run time linking by default, so we don't
 
6145
      # have to do anything special.
 
6146
      aix_use_runtimelinking=no
 
6147
      exp_sym_flag='-Bexport'
 
6148
      no_entry_flag=""
 
6149
    else
 
6150
      aix_use_runtimelinking=no
 
6151
 
 
6152
      # Test if we are trying to use run time linking or normal
 
6153
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6154
      # need to do runtime linking.
 
6155
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6156
        for ld_flag in $LDFLAGS; do
 
6157
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6158
            aix_use_runtimelinking=yes
 
6159
            break
 
6160
          fi
 
6161
        done
 
6162
      esac
 
6163
 
 
6164
      exp_sym_flag='-bexport'
 
6165
      no_entry_flag='-bnoentry'
 
6166
    fi
 
6167
 
 
6168
    # When large executables or shared objects are built, AIX ld can
 
6169
    # have problems creating the table of contents.  If linking a library
 
6170
    # or program results in "error TOC overflow" add -mminimal-toc to
 
6171
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6172
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6173
 
 
6174
    hardcode_direct=yes
 
6175
    archive_cmds=''
 
6176
    hardcode_libdir_separator=':'
 
6177
    if test "$GCC" = yes; then
 
6178
      case $host_os in aix4.[012]|aix4.[012].*)
 
6179
        collect2name=`${CC} -print-prog-name=collect2`
 
6180
        if test -f "$collect2name" && \
 
6181
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6182
        then
 
6183
          # We have reworked collect2
 
6184
          hardcode_direct=yes
 
6185
        else
 
6186
          # We have old collect2
 
6187
          hardcode_direct=unsupported
 
6188
          # It fails to find uninstalled libraries when the uninstalled
 
6189
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6190
          # to unsupported forces relinking
 
6191
          hardcode_minus_L=yes
 
6192
          hardcode_libdir_flag_spec='-L$libdir'
 
6193
          hardcode_libdir_separator=
 
6194
        fi
 
6195
      esac
 
6196
 
 
6197
      shared_flag='-shared'
 
6198
    else
 
6199
      # not using gcc
 
6200
      if test "$host_cpu" = ia64; then
 
6201
        shared_flag='${wl}-G'
 
6202
      else
 
6203
        if test "$aix_use_runtimelinking" = yes; then
 
6204
          shared_flag='${wl}-G'
 
6205
        else
 
6206
          shared_flag='${wl}-bM:SRE'
 
6207
        fi
 
6208
      fi
 
6209
    fi
 
6210
 
 
6211
    # It seems that -bexpall can do strange things, so it is better to
 
6212
    # generate a list of symbols to export.
 
6213
    always_export_symbols=yes
 
6214
    if test "$aix_use_runtimelinking" = yes; then
 
6215
      # Warning - without using the other runtime loading flags (-brtl),
 
6216
      # -berok will link without error, but may produce a broken library.
 
6217
      allow_undefined_flag='-berok'
 
6218
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6219
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6220
    else
 
6221
      if test "$host_cpu" = ia64; then
 
6222
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6223
        allow_undefined_flag="-z nodefs"
 
6224
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6225
      else
 
6226
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6227
        # Warning - without using the other run time loading flags,
 
6228
        # -berok will link without error, but may produce a broken library.
 
6229
        allow_undefined_flag='${wl}-berok'
 
6230
        # This is a bit strange, but is similar to how AIX traditionally builds
 
6231
        # it's shared libraries.
 
6232
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
6233
      fi
 
6234
    fi
 
6235
    ;;
 
6236
 
 
6237
  amigaos*)
 
6238
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
6239
    hardcode_libdir_flag_spec='-L$libdir'
 
6240
    hardcode_minus_L=yes
 
6241
    # see comment about different semantics on the GNU ld section
 
6242
    ld_shlibs=no
 
6243
    ;;
 
6244
 
 
6245
  cygwin* | mingw* | pw32*)
 
6246
    # When not using gcc, we currently assume that we are using
 
6247
    # Microsoft Visual C++.
 
6248
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6249
    # no search path for DLLs.
 
6250
    hardcode_libdir_flag_spec=' '
 
6251
    allow_undefined_flag=unsupported
 
6252
    # Tell ltmain to make .lib files, not .a files.
 
6253
    libext=lib
 
6254
    # FIXME: Setting linknames here is a bad hack.
 
6255
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6256
    # The linker will automatically build a .lib file if we build a DLL.
 
6257
    old_archive_from_new_cmds='true'
 
6258
    # FIXME: Should let the user specify the lib program.
 
6259
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6260
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6261
    ;;
 
6262
 
 
6263
  darwin* | rhapsody*)
 
6264
    case "$host_os" in
 
6265
    rhapsody* | darwin1.[012])
 
6266
      allow_undefined_flag='-undefined suppress'
 
6267
      ;;
 
6268
    *) # Darwin 1.3 on
 
6269
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
6270
      ;;
 
6271
    esac
 
6272
    # FIXME: Relying on posixy $() will cause problems for
 
6273
    #        cross-compilation, but unfortunately the echo tests do not
 
6274
    #        yet detect zsh echo's removal of \ escapes.
 
6275
    archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
 
6276
    # We need to add '_' to the symbols in $export_symbols first
 
6277
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
6278
    hardcode_direct=yes
 
6279
    hardcode_shlibpath_var=no
 
6280
    whole_archive_flag_spec='-all_load $convenience'
 
6281
    ;;
 
6282
 
 
6283
  freebsd1*)
 
6284
    ld_shlibs=no
 
6285
    ;;
 
6286
 
 
6287
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6288
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6289
  # does not break anything, and helps significantly (at the cost of a little
 
6290
  # extra space).
 
6291
  freebsd2.2*)
 
6292
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6293
    hardcode_libdir_flag_spec='-R$libdir'
 
6294
    hardcode_direct=yes
 
6295
    hardcode_shlibpath_var=no
 
6296
    ;;
 
6297
 
 
6298
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6299
  freebsd2*)
 
6300
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6301
    hardcode_direct=yes
 
6302
    hardcode_minus_L=yes
 
6303
    hardcode_shlibpath_var=no
 
6304
    ;;
 
6305
 
 
6306
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6307
  freebsd*)
 
6308
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6309
    hardcode_libdir_flag_spec='-R$libdir'
 
6310
    hardcode_direct=yes
 
6311
    hardcode_shlibpath_var=no
 
6312
    ;;
 
6313
 
 
6314
  hpux9* | hpux10* | hpux11*)
 
6315
    case $host_os in
 
6316
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
 
6317
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
6318
    esac
 
6319
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6320
    hardcode_libdir_separator=:
 
6321
    hardcode_direct=yes
 
6322
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
6323
                         # location of the library.
 
6324
    export_dynamic_flag_spec='${wl}-E'
 
6325
    ;;
 
6326
 
 
6327
  irix5* | irix6*)
 
6328
    if test "$GCC" = yes; then
 
6329
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6330
    else
 
6331
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6332
    fi
 
6333
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6334
    hardcode_libdir_separator=:
 
6335
    link_all_deplibs=yes
 
6336
    ;;
 
6337
 
 
6338
  netbsd*)
 
6339
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6340
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6341
    else
 
6342
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6343
    fi
 
6344
    hardcode_libdir_flag_spec='-R$libdir'
 
6345
    hardcode_direct=yes
 
6346
    hardcode_shlibpath_var=no
 
6347
    ;;
 
6348
 
 
6349
  newsos6)
 
6350
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6351
    hardcode_direct=yes
 
6352
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6353
    hardcode_libdir_separator=:
 
6354
    hardcode_shlibpath_var=no
 
6355
    ;;
 
6356
 
 
6357
  openbsd*)
 
6358
    hardcode_direct=yes
 
6359
    hardcode_shlibpath_var=no
 
6360
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6361
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
6362
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6363
      export_dynamic_flag_spec='${wl}-E'
 
6364
    else
 
6365
      case "$host_os" in
 
6366
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6367
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6368
        hardcode_libdir_flag_spec='-R$libdir'
 
6369
        ;;
 
6370
      *)
 
6371
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
6372
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6373
        ;;
 
6374
      esac
 
6375
    fi
 
6376
    ;;
 
6377
 
 
6378
  os2*)
 
6379
    hardcode_libdir_flag_spec='-L$libdir'
 
6380
    hardcode_minus_L=yes
 
6381
    allow_undefined_flag=unsupported
 
6382
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
6383
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6384
    ;;
 
6385
 
 
6386
  osf3*)
 
6387
    if test "$GCC" = yes; then
 
6388
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6389
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6390
    else
 
6391
      allow_undefined_flag=' -expect_unresolved \*'
 
6392
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6393
    fi
 
6394
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6395
    hardcode_libdir_separator=:
 
6396
    ;;
 
6397
 
 
6398
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
6399
    if test "$GCC" = yes; then
 
6400
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6401
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6402
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6403
    else
 
6404
      allow_undefined_flag=' -expect_unresolved \*'
 
6405
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6406
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6407
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6408
 
 
6409
      #Both c and cxx compiler support -rpath directly
 
6410
      hardcode_libdir_flag_spec='-rpath $libdir'
 
6411
    fi
 
6412
    hardcode_libdir_separator=:
 
6413
    ;;
 
6414
 
 
6415
  sco3.2v5*)
 
6416
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6417
    hardcode_shlibpath_var=no
 
6418
    runpath_var=LD_RUN_PATH
 
6419
    hardcode_runpath_var=yes
 
6420
    export_dynamic_flag_spec='${wl}-Bexport'
 
6421
    ;;
 
6422
 
 
6423
  solaris*)
 
6424
    # gcc --version < 3.0 without binutils cannot create self contained
 
6425
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
6426
    # the object symbols generated in some cases.  Libraries that use
 
6427
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
6428
    # a copy of libgcc.a into every shared library to guarantee resolving
 
6429
    # such symbols causes other problems:  According to Tim Van Holder
 
6430
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
6431
    # (to the application) exception stack for one thing.
 
6432
    no_undefined_flag=' -z defs'
 
6433
    if test "$GCC" = yes; then
 
6434
      case `$CC --version 2>/dev/null` in
 
6435
      [12].*)
 
6436
        cat <<EOF 1>&2
 
6437
 
 
6438
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
6439
*** create self contained shared libraries on Solaris systems, without
 
6440
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
6441
*** -no-undefined support, which will at least allow you to build shared
 
6442
*** libraries.  However, you may find that when you link such libraries
 
6443
*** into an application without using GCC, you have to manually add
 
6444
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
6445
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
6446
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
6447
 
 
6448
EOF
 
6449
        no_undefined_flag=
 
6450
        ;;
 
6451
      esac
 
6452
    fi
 
6453
    # $CC -shared without GNU ld will not create a library from C++
 
6454
    # object files and a static libstdc++, better avoid it by now
 
6455
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6456
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6457
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6458
    hardcode_libdir_flag_spec='-R$libdir'
 
6459
    hardcode_shlibpath_var=no
 
6460
    case $host_os in
 
6461
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6462
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6463
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6464
    esac
 
6465
    link_all_deplibs=yes
 
6466
    ;;
 
6467
 
 
6468
  sunos4*)
 
6469
    if test "x$host_vendor" = xsequent; then
 
6470
      # Use $CC to link under sequent, because it throws in some extra .o
 
6471
      # files that make .init and .fini sections work.
 
6472
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6473
    else
 
6474
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6475
    fi
 
6476
    hardcode_libdir_flag_spec='-L$libdir'
 
6477
    hardcode_direct=yes
 
6478
    hardcode_minus_L=yes
 
6479
    hardcode_shlibpath_var=no
 
6480
    ;;
 
6481
 
 
6482
  sysv4)
 
6483
    if test "x$host_vendor" = xsno; then
 
6484
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6485
      hardcode_direct=yes # is this really true???
 
6486
    else
 
6487
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6488
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6489
    fi
 
6490
    runpath_var='LD_RUN_PATH'
 
6491
    hardcode_shlibpath_var=no
 
6492
    ;;
 
6493
 
 
6494
  sysv4.3*)
 
6495
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6496
    hardcode_shlibpath_var=no
 
6497
    export_dynamic_flag_spec='-Bexport'
 
6498
    ;;
 
6499
 
 
6500
  sysv5*)
 
6501
    no_undefined_flag=' -z text'
 
6502
    # $CC -shared without GNU ld will not create a library from C++
 
6503
    # object files and a static libstdc++, better avoid it by now
 
6504
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6505
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6506
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6507
    hardcode_libdir_flag_spec=
 
6508
    hardcode_shlibpath_var=no
 
6509
    runpath_var='LD_RUN_PATH'
 
6510
    ;;
 
6511
 
 
6512
  uts4*)
 
6513
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6514
    hardcode_libdir_flag_spec='-L$libdir'
 
6515
    hardcode_shlibpath_var=no
 
6516
    ;;
 
6517
 
 
6518
  dgux*)
 
6519
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6520
    hardcode_libdir_flag_spec='-L$libdir'
 
6521
    hardcode_shlibpath_var=no
 
6522
    ;;
 
6523
 
 
6524
  sysv4*MP*)
 
6525
    if test -d /usr/nec; then
 
6526
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6527
      hardcode_shlibpath_var=no
 
6528
      runpath_var=LD_RUN_PATH
 
6529
      hardcode_runpath_var=yes
 
6530
      ld_shlibs=yes
 
6531
    fi
 
6532
    ;;
 
6533
 
 
6534
  sysv4.2uw2*)
 
6535
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6536
    hardcode_direct=yes
 
6537
    hardcode_minus_L=no
 
6538
    hardcode_shlibpath_var=no
 
6539
    hardcode_runpath_var=yes
 
6540
    runpath_var=LD_RUN_PATH
 
6541
    ;;
 
6542
 
 
6543
  sysv5uw7* | unixware7*)
 
6544
    no_undefined_flag='${wl}-z ${wl}text'
 
6545
    if test "$GCC" = yes; then
 
6546
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6547
    else
 
6548
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6549
    fi
 
6550
    runpath_var='LD_RUN_PATH'
 
6551
    hardcode_shlibpath_var=no
 
6552
    ;;
 
6553
 
 
6554
  *)
 
6555
    ld_shlibs=no
 
6556
    ;;
 
6557
  esac
 
6558
fi
 
6559
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6560
echo "${ECHO_T}$ld_shlibs" >&6
 
6561
test "$ld_shlibs" = no && can_build_shared=no
 
6562
 
 
6563
# Check hardcoding attributes.
 
6564
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
6565
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6566
hardcode_action=
 
6567
if test -n "$hardcode_libdir_flag_spec" || \
 
6568
   test -n "$runpath_var"; then
 
6569
 
 
6570
  # We can hardcode non-existant directories.
 
6571
  if test "$hardcode_direct" != no &&
 
6572
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
6573
     # have to relink, otherwise we might link with an installed library
 
6574
     # when we should be linking with a yet-to-be-installed one
 
6575
     ## test "$hardcode_shlibpath_var" != no &&
 
6576
     test "$hardcode_minus_L" != no; then
 
6577
    # Linking always hardcodes the temporary library directory.
 
6578
    hardcode_action=relink
 
6579
  else
 
6580
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
6581
    hardcode_action=immediate
 
6582
  fi
 
6583
else
 
6584
  # We cannot hardcode anything, or else we can only hardcode existing
 
6585
  # directories.
 
6586
  hardcode_action=unsupported
 
6587
fi
 
6588
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
6589
echo "${ECHO_T}$hardcode_action" >&6
 
6590
 
 
6591
striplib=
 
6592
old_striplib=
 
6593
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
6594
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6595
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6596
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6597
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6598
  echo "$as_me:$LINENO: result: yes" >&5
 
6599
echo "${ECHO_T}yes" >&6
 
6600
else
 
6601
  echo "$as_me:$LINENO: result: no" >&5
 
6602
echo "${ECHO_T}no" >&6
 
6603
fi
 
6604
 
 
6605
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6606
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6607
 
 
6608
# PORTME Fill in your ld.so characteristics
 
6609
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6610
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6611
library_names_spec=
 
6612
libname_spec='lib$name'
 
6613
soname_spec=
 
6614
postinstall_cmds=
 
6615
postuninstall_cmds=
 
6616
finish_cmds=
 
6617
finish_eval=
 
6618
shlibpath_var=
 
6619
shlibpath_overrides_runpath=unknown
 
6620
version_type=none
 
6621
dynamic_linker="$host_os ld.so"
 
6622
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6623
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6624
 
 
6625
case $host_os in
 
6626
aix3*)
 
6627
  version_type=linux
 
6628
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
6629
  shlibpath_var=LIBPATH
 
6630
 
 
6631
  # AIX has no versioning support, so we append a major version to the name.
 
6632
  soname_spec='${libname}${release}.so$major'
 
6633
  ;;
 
6634
 
 
6635
aix4* | aix5*)
 
6636
  version_type=linux
 
6637
  if test "$host_cpu" = ia64; then
 
6638
    # AIX 5 supports IA64
 
6639
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
6640
    shlibpath_var=LD_LIBRARY_PATH
 
6641
  else
 
6642
    # With GCC up to 2.95.x, collect2 would create an import file
 
6643
    # for dependence libraries.  The import file would start with
 
6644
    # the line `#! .'.  This would cause the generated library to
 
6645
    # depend on `.', always an invalid library.  This was fixed in
 
6646
    # development snapshots of GCC prior to 3.0.
 
6647
    case $host_os in
 
6648
      aix4 | aix4.[01] | aix4.[01].*)
 
6649
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6650
             echo ' yes '
 
6651
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6652
          :
 
6653
        else
 
6654
          can_build_shared=no
 
6655
        fi
 
6656
        ;;
 
6657
    esac
 
6658
    # AIX (on Power*) has no versioning support, so currently we can
 
6659
    # not hardcode correct soname into executable. Probably we can
 
6660
    # add versioning support to collect2, so additional links can
 
6661
    # be useful in future.
 
6662
    if test "$aix_use_runtimelinking" = yes; then
 
6663
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6664
      # instead of lib<name>.a to let people know that these are not
 
6665
      # typical AIX shared libraries.
 
6666
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6667
    else
 
6668
      # We preserve .a as extension for shared libraries through AIX4.2
 
6669
      # and later when we are not doing run time linking.
 
6670
      library_names_spec='${libname}${release}.a $libname.a'
 
6671
      soname_spec='${libname}${release}.so$major'
 
6672
    fi
 
6673
    shlibpath_var=LIBPATH
 
6674
  fi
 
6675
  ;;
 
6676
 
 
6677
amigaos*)
 
6678
  library_names_spec='$libname.ixlibrary $libname.a'
 
6679
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6680
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
6681
  ;;
 
6682
 
 
6683
beos*)
 
6684
  library_names_spec='${libname}.so'
 
6685
  dynamic_linker="$host_os ld.so"
 
6686
  shlibpath_var=LIBRARY_PATH
 
6687
  ;;
 
6688
 
 
6689
bsdi4*)
 
6690
  version_type=linux
 
6691
  need_version=no
 
6692
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6693
  soname_spec='${libname}${release}.so$major'
 
6694
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6695
  shlibpath_var=LD_LIBRARY_PATH
 
6696
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6697
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6698
  export_dynamic_flag_spec=-rdynamic
 
6699
  # the default ld.so.conf also contains /usr/contrib/lib and
 
6700
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6701
  # libtool to hard-code these into programs
 
6702
  ;;
 
6703
 
 
6704
cygwin* | mingw* | pw32*)
 
6705
  version_type=windows
 
6706
  need_version=no
 
6707
  need_lib_prefix=no
 
6708
  case $GCC,$host_os in
 
6709
  yes,cygwin*)
 
6710
    library_names_spec='$libname.dll.a'
 
6711
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6712
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
6713
      dldir=$destdir/`dirname \$dlpath`~
 
6714
      test -d \$dldir || mkdir -p \$dldir~
 
6715
      $install_prog .libs/$dlname \$dldir/$dlname'
 
6716
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
6717
      dlpath=$dir/\$dldll~
 
6718
       $rm \$dlpath'
 
6719
    ;;
 
6720
  yes,mingw*)
 
6721
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6722
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
6723
    ;;
 
6724
  yes,pw32*)
 
6725
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
6726
    ;;
 
6727
  *)
 
6728
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
6729
    ;;
 
6730
  esac
 
6731
  dynamic_linker='Win32 ld.exe'
 
6732
  # FIXME: first we should search . and the directory the executable is in
 
6733
  shlibpath_var=PATH
 
6734
  ;;
 
6735
 
 
6736
darwin* | rhapsody*)
 
6737
  dynamic_linker="$host_os dyld"
 
6738
  version_type=darwin
 
6739
  need_lib_prefix=no
 
6740
  need_version=no
 
6741
  # FIXME: Relying on posixy $() will cause problems for
 
6742
  #        cross-compilation, but unfortunately the echo tests do not
 
6743
  #        yet detect zsh echo's removal of \ escapes.
 
6744
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
6745
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6746
  shlibpath_overrides_runpath=yes
 
6747
  shlibpath_var=DYLD_LIBRARY_PATH
 
6748
  ;;
 
6749
 
 
6750
freebsd1*)
 
6751
  dynamic_linker=no
 
6752
  ;;
 
6753
 
 
6754
freebsd*)
 
6755
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
6756
  version_type=freebsd-$objformat
 
6757
  case $version_type in
 
6758
    freebsd-elf*)
 
6759
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6760
      need_version=no
 
6761
      need_lib_prefix=no
 
6762
      ;;
 
6763
    freebsd-*)
 
6764
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
6765
      need_version=yes
 
6766
      ;;
 
6767
  esac
 
6768
  shlibpath_var=LD_LIBRARY_PATH
 
6769
  case $host_os in
 
6770
  freebsd2*)
 
6771
    shlibpath_overrides_runpath=yes
 
6772
    ;;
 
6773
  *)
 
6774
    shlibpath_overrides_runpath=no
 
6775
    hardcode_into_libs=yes
 
6776
    ;;
 
6777
  esac
 
6778
  ;;
 
6779
 
 
6780
gnu*)
 
6781
  version_type=linux
 
6782
  need_lib_prefix=no
 
6783
  need_version=no
 
6784
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
6785
  soname_spec='${libname}${release}.so$major'
 
6786
  shlibpath_var=LD_LIBRARY_PATH
 
6787
  hardcode_into_libs=yes
 
6788
  ;;
 
6789
 
 
6790
hpux9* | hpux10* | hpux11*)
 
6791
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
6792
  # link against other versions.
 
6793
  dynamic_linker="$host_os dld.sl"
 
6794
  version_type=sunos
 
6795
  need_lib_prefix=no
 
6796
  need_version=no
 
6797
  shlibpath_var=SHLIB_PATH
 
6798
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
6799
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
6800
  soname_spec='${libname}${release}.sl$major'
 
6801
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
6802
  postinstall_cmds='chmod 555 $lib'
 
6803
  ;;
 
6804
 
 
6805
irix5* | irix6*)
 
6806
  version_type=irix
 
6807
  need_lib_prefix=no
 
6808
  need_version=no
 
6809
  soname_spec='${libname}${release}.so$major'
 
6810
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
6811
  case $host_os in
 
6812
  irix5*)
 
6813
    libsuff= shlibsuff=
 
6814
    ;;
 
6815
  *)
 
6816
    case $LD in # libtool.m4 will add one of these switches to LD
 
6817
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
6818
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
6819
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
6820
    *) libsuff= shlibsuff= libmagic=never-match;;
 
6821
    esac
 
6822
    ;;
 
6823
  esac
 
6824
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
6825
  shlibpath_overrides_runpath=no
 
6826
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
6827
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
6828
  ;;
 
6829
 
 
6830
# No shared lib support for Linux oldld, aout, or coff.
 
6831
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
6832
  dynamic_linker=no
 
6833
  ;;
 
6834
 
 
6835
# This must be Linux ELF.
 
6836
linux-gnu*)
 
6837
  version_type=linux
 
6838
  need_lib_prefix=no
 
6839
  need_version=no
 
6840
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6841
  soname_spec='${libname}${release}.so$major'
 
6842
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
6843
  shlibpath_var=LD_LIBRARY_PATH
 
6844
  shlibpath_overrides_runpath=no
 
6845
  # This implies no fast_install, which is unacceptable.
 
6846
  # Some rework will be needed to allow for fast_install
 
6847
  # before this can be enabled.
 
6848
  hardcode_into_libs=yes
 
6849
 
 
6850
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
6851
  # powerpc, because MkLinux only supported shared libraries with the
 
6852
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
6853
  # most powerpc-linux boxes support dynamic linking these days and
 
6854
  # people can always --disable-shared, the test was removed, and we
 
6855
  # assume the GNU/Linux dynamic linker is in use.
 
6856
  dynamic_linker='GNU/Linux ld.so'
 
6857
  ;;
 
6858
 
 
6859
netbsd*)
 
6860
  version_type=sunos
 
6861
  need_lib_prefix=no
 
6862
  need_version=no
 
6863
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6864
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6865
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6866
    dynamic_linker='NetBSD (a.out) ld.so'
 
6867
  else
 
6868
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
6869
    soname_spec='${libname}${release}.so$major'
 
6870
    dynamic_linker='NetBSD ld.elf_so'
 
6871
  fi
 
6872
  shlibpath_var=LD_LIBRARY_PATH
 
6873
  shlibpath_overrides_runpath=yes
 
6874
  hardcode_into_libs=yes
 
6875
  ;;
 
6876
 
 
6877
newsos6)
 
6878
  version_type=linux
 
6879
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6880
  shlibpath_var=LD_LIBRARY_PATH
 
6881
  shlibpath_overrides_runpath=yes
 
6882
  ;;
 
6883
 
 
6884
openbsd*)
 
6885
  version_type=sunos
 
6886
  need_lib_prefix=no
 
6887
  need_version=no
 
6888
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6889
    case "$host_os" in
 
6890
    openbsd2.[89] | openbsd2.[89].*)
 
6891
      shlibpath_overrides_runpath=no
 
6892
      ;;
 
6893
    *)
 
6894
      shlibpath_overrides_runpath=yes
 
6895
      ;;
 
6896
    esac
 
6897
  else
 
6898
    shlibpath_overrides_runpath=yes
 
6899
  fi
 
6900
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6901
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6902
  shlibpath_var=LD_LIBRARY_PATH
 
6903
  ;;
 
6904
 
 
6905
os2*)
 
6906
  libname_spec='$name'
 
6907
  need_lib_prefix=no
 
6908
  library_names_spec='$libname.dll $libname.a'
 
6909
  dynamic_linker='OS/2 ld.exe'
 
6910
  shlibpath_var=LIBPATH
 
6911
  ;;
 
6912
 
 
6913
osf3* | osf4* | osf5*)
 
6914
  version_type=osf
 
6915
  need_version=no
 
6916
  soname_spec='${libname}${release}.so'
 
6917
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6918
  shlibpath_var=LD_LIBRARY_PATH
 
6919
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
6920
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
6921
  ;;
 
6922
 
 
6923
sco3.2v5*)
 
6924
  version_type=osf
 
6925
  soname_spec='${libname}${release}.so$major'
 
6926
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6927
  shlibpath_var=LD_LIBRARY_PATH
 
6928
  ;;
 
6929
 
 
6930
solaris*)
 
6931
  version_type=linux
 
6932
  need_lib_prefix=no
 
6933
  need_version=no
 
6934
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6935
  soname_spec='${libname}${release}.so$major'
 
6936
  shlibpath_var=LD_LIBRARY_PATH
 
6937
  shlibpath_overrides_runpath=yes
 
6938
  hardcode_into_libs=yes
 
6939
  # ldd complains unless libraries are executable
 
6940
  postinstall_cmds='chmod +x $lib'
 
6941
  ;;
 
6942
 
 
6943
sunos4*)
 
6944
  version_type=sunos
 
6945
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6946
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
6947
  shlibpath_var=LD_LIBRARY_PATH
 
6948
  shlibpath_overrides_runpath=yes
 
6949
  if test "$with_gnu_ld" = yes; then
 
6950
    need_lib_prefix=no
 
6951
  fi
 
6952
  need_version=yes
 
6953
  ;;
 
6954
 
 
6955
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6956
  version_type=linux
 
6957
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6958
  soname_spec='${libname}${release}.so$major'
 
6959
  shlibpath_var=LD_LIBRARY_PATH
 
6960
  case $host_vendor in
 
6961
    sni)
 
6962
      shlibpath_overrides_runpath=no
 
6963
      ;;
 
6964
    motorola)
 
6965
      need_lib_prefix=no
 
6966
      need_version=no
 
6967
      shlibpath_overrides_runpath=no
 
6968
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
6969
      ;;
 
6970
  esac
 
6971
  ;;
 
6972
 
 
6973
uts4*)
 
6974
  version_type=linux
 
6975
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6976
  soname_spec='${libname}${release}.so$major'
 
6977
  shlibpath_var=LD_LIBRARY_PATH
 
6978
  ;;
 
6979
 
 
6980
dgux*)
 
6981
  version_type=linux
 
6982
  need_lib_prefix=no
 
6983
  need_version=no
 
6984
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6985
  soname_spec='${libname}${release}.so$major'
 
6986
  shlibpath_var=LD_LIBRARY_PATH
 
6987
  ;;
 
6988
 
 
6989
sysv4*MP*)
 
6990
  if test -d /usr/nec ;then
 
6991
    version_type=linux
 
6992
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
6993
    soname_spec='$libname.so.$major'
 
6994
    shlibpath_var=LD_LIBRARY_PATH
 
6995
  fi
 
6996
  ;;
 
6997
 
 
6998
*)
 
6999
  dynamic_linker=no
 
7000
  ;;
 
7001
esac
 
7002
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7003
echo "${ECHO_T}$dynamic_linker" >&6
 
7004
test "$dynamic_linker" = no && can_build_shared=no
 
7005
 
 
7006
# Report the final consequences.
 
7007
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
7008
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
7009
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
7010
echo "${ECHO_T}$can_build_shared" >&6
 
7011
 
 
7012
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
7013
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
7014
test "$can_build_shared" = "no" && enable_shared=no
 
7015
 
 
7016
# On AIX, shared libraries and static libraries use the same namespace, and
 
7017
# are all built from PIC.
 
7018
case "$host_os" in
 
7019
aix3*)
 
7020
  test "$enable_shared" = yes && enable_static=no
 
7021
  if test -n "$RANLIB"; then
 
7022
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7023
    postinstall_cmds='$RANLIB $lib'
 
7024
  fi
 
7025
  ;;
 
7026
 
 
7027
aix4*)
 
7028
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7029
    test "$enable_shared" = yes && enable_static=no
 
7030
  fi
 
7031
  ;;
 
7032
esac
 
7033
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
7034
echo "${ECHO_T}$enable_shared" >&6
 
7035
 
 
7036
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
7037
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
7038
# Make sure either enable_shared or enable_static is yes.
 
7039
test "$enable_shared" = yes || enable_static=yes
 
7040
echo "$as_me:$LINENO: result: $enable_static" >&5
 
7041
echo "${ECHO_T}$enable_static" >&6
 
7042
 
 
7043
if test "$hardcode_action" = relink; then
 
7044
  # Fast installation is not supported
 
7045
  enable_fast_install=no
 
7046
elif test "$shlibpath_overrides_runpath" = yes ||
 
7047
     test "$enable_shared" = no; then
 
7048
  # Fast installation is not necessary
 
7049
  enable_fast_install=needless
 
7050
fi
 
7051
 
 
7052
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7053
if test "$GCC" = yes; then
 
7054
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7055
fi
 
7056
 
 
7057
if test "x$enable_dlopen" != xyes; then
 
7058
  enable_dlopen=unknown
 
7059
  enable_dlopen_self=unknown
 
7060
  enable_dlopen_self_static=unknown
 
7061
else
 
7062
  lt_cv_dlopen=no
 
7063
  lt_cv_dlopen_libs=
 
7064
 
 
7065
  case $host_os in
 
7066
  beos*)
 
7067
    lt_cv_dlopen="load_add_on"
 
7068
    lt_cv_dlopen_libs=
 
7069
    lt_cv_dlopen_self=yes
 
7070
    ;;
 
7071
 
 
7072
  cygwin* | mingw* | pw32*)
 
7073
    lt_cv_dlopen="LoadLibrary"
 
7074
    lt_cv_dlopen_libs=
 
7075
   ;;
 
7076
 
 
7077
  *)
 
7078
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7079
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7080
if test "${ac_cv_func_shl_load+set}" = set; then
 
7081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7082
else
 
7083
  cat >conftest.$ac_ext <<_ACEOF
 
7084
#line $LINENO "configure"
 
7085
#include "confdefs.h"
 
7086
/* System header to define __stub macros and hopefully few prototypes,
 
7087
    which can conflict with char shl_load (); below.  */
 
7088
#include <assert.h>
 
7089
/* Override any gcc2 internal prototype to avoid an error.  */
 
7090
#ifdef __cplusplus
 
7091
extern "C"
 
7092
#endif
 
7093
/* We use char because int might match the return type of a gcc2
 
7094
   builtin and then its argument prototype would still apply.  */
 
7095
char shl_load ();
 
7096
char (*f) ();
 
7097
 
 
7098
#ifdef F77_DUMMY_MAIN
 
7099
#  ifdef __cplusplus
 
7100
     extern "C"
 
7101
#  endif
 
7102
   int F77_DUMMY_MAIN() { return 1; }
 
7103
#endif
 
7104
int
 
7105
main ()
 
7106
{
 
7107
/* The GNU C library defines this for functions which it implements
 
7108
    to always fail with ENOSYS.  Some functions are actually named
 
7109
    something starting with __ and the normal name is an alias.  */
 
7110
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7111
choke me
 
7112
#else
 
7113
f = shl_load;
 
7114
#endif
 
7115
 
 
7116
  ;
 
7117
  return 0;
 
7118
}
 
7119
_ACEOF
 
7120
rm -f conftest.$ac_objext conftest$ac_exeext
 
7121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7122
  (eval $ac_link) 2>&5
 
7123
  ac_status=$?
 
7124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7125
  (exit $ac_status); } &&
 
7126
         { ac_try='test -s conftest$ac_exeext'
 
7127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7128
  (eval $ac_try) 2>&5
 
7129
  ac_status=$?
 
7130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7131
  (exit $ac_status); }; }; then
 
7132
  ac_cv_func_shl_load=yes
 
7133
else
 
7134
  echo "$as_me: failed program was:" >&5
 
7135
cat conftest.$ac_ext >&5
 
7136
ac_cv_func_shl_load=no
 
7137
fi
 
7138
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7139
fi
 
7140
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7141
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7142
if test $ac_cv_func_shl_load = yes; then
 
7143
  lt_cv_dlopen="shl_load"
 
7144
else
 
7145
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7146
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7147
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7149
else
 
7150
  ac_check_lib_save_LIBS=$LIBS
 
7151
LIBS="-ldld  $LIBS"
 
7152
cat >conftest.$ac_ext <<_ACEOF
 
7153
#line $LINENO "configure"
 
7154
#include "confdefs.h"
 
7155
 
 
7156
/* Override any gcc2 internal prototype to avoid an error.  */
 
7157
#ifdef __cplusplus
 
7158
extern "C"
 
7159
#endif
 
7160
/* We use char because int might match the return type of a gcc2
 
7161
   builtin and then its argument prototype would still apply.  */
 
7162
char shl_load ();
 
7163
#ifdef F77_DUMMY_MAIN
 
7164
#  ifdef __cplusplus
 
7165
     extern "C"
 
7166
#  endif
 
7167
   int F77_DUMMY_MAIN() { return 1; }
 
7168
#endif
 
7169
int
 
7170
main ()
 
7171
{
 
7172
shl_load ();
 
7173
  ;
 
7174
  return 0;
 
7175
}
 
7176
_ACEOF
 
7177
rm -f conftest.$ac_objext conftest$ac_exeext
 
7178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7179
  (eval $ac_link) 2>&5
 
7180
  ac_status=$?
 
7181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7182
  (exit $ac_status); } &&
 
7183
         { ac_try='test -s conftest$ac_exeext'
 
7184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7185
  (eval $ac_try) 2>&5
 
7186
  ac_status=$?
 
7187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7188
  (exit $ac_status); }; }; then
 
7189
  ac_cv_lib_dld_shl_load=yes
 
7190
else
 
7191
  echo "$as_me: failed program was:" >&5
 
7192
cat conftest.$ac_ext >&5
 
7193
ac_cv_lib_dld_shl_load=no
 
7194
fi
 
7195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7196
LIBS=$ac_check_lib_save_LIBS
 
7197
fi
 
7198
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7199
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7200
if test $ac_cv_lib_dld_shl_load = yes; then
 
7201
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7202
else
 
7203
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7204
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7205
if test "${ac_cv_func_dlopen+set}" = set; then
 
7206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7207
else
 
7208
  cat >conftest.$ac_ext <<_ACEOF
 
7209
#line $LINENO "configure"
 
7210
#include "confdefs.h"
 
7211
/* System header to define __stub macros and hopefully few prototypes,
 
7212
    which can conflict with char dlopen (); below.  */
 
7213
#include <assert.h>
 
7214
/* Override any gcc2 internal prototype to avoid an error.  */
 
7215
#ifdef __cplusplus
 
7216
extern "C"
 
7217
#endif
 
7218
/* We use char because int might match the return type of a gcc2
 
7219
   builtin and then its argument prototype would still apply.  */
 
7220
char dlopen ();
 
7221
char (*f) ();
 
7222
 
 
7223
#ifdef F77_DUMMY_MAIN
 
7224
#  ifdef __cplusplus
 
7225
     extern "C"
 
7226
#  endif
 
7227
   int F77_DUMMY_MAIN() { return 1; }
 
7228
#endif
 
7229
int
 
7230
main ()
 
7231
{
 
7232
/* The GNU C library defines this for functions which it implements
 
7233
    to always fail with ENOSYS.  Some functions are actually named
 
7234
    something starting with __ and the normal name is an alias.  */
 
7235
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
7236
choke me
 
7237
#else
 
7238
f = dlopen;
 
7239
#endif
 
7240
 
 
7241
  ;
 
7242
  return 0;
 
7243
}
 
7244
_ACEOF
 
7245
rm -f conftest.$ac_objext conftest$ac_exeext
 
7246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7247
  (eval $ac_link) 2>&5
 
7248
  ac_status=$?
 
7249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7250
  (exit $ac_status); } &&
 
7251
         { ac_try='test -s conftest$ac_exeext'
 
7252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7253
  (eval $ac_try) 2>&5
 
7254
  ac_status=$?
 
7255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7256
  (exit $ac_status); }; }; then
 
7257
  ac_cv_func_dlopen=yes
 
7258
else
 
7259
  echo "$as_me: failed program was:" >&5
 
7260
cat conftest.$ac_ext >&5
 
7261
ac_cv_func_dlopen=no
 
7262
fi
 
7263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7264
fi
 
7265
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7266
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7267
if test $ac_cv_func_dlopen = yes; then
 
7268
  lt_cv_dlopen="dlopen"
 
7269
else
 
7270
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7271
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7272
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7274
else
 
7275
  ac_check_lib_save_LIBS=$LIBS
 
7276
LIBS="-ldl  $LIBS"
 
7277
cat >conftest.$ac_ext <<_ACEOF
 
7278
#line $LINENO "configure"
 
7279
#include "confdefs.h"
 
7280
 
 
7281
/* Override any gcc2 internal prototype to avoid an error.  */
 
7282
#ifdef __cplusplus
 
7283
extern "C"
 
7284
#endif
 
7285
/* We use char because int might match the return type of a gcc2
 
7286
   builtin and then its argument prototype would still apply.  */
 
7287
char dlopen ();
 
7288
#ifdef F77_DUMMY_MAIN
 
7289
#  ifdef __cplusplus
 
7290
     extern "C"
 
7291
#  endif
 
7292
   int F77_DUMMY_MAIN() { return 1; }
 
7293
#endif
 
7294
int
 
7295
main ()
 
7296
{
 
7297
dlopen ();
 
7298
  ;
 
7299
  return 0;
 
7300
}
 
7301
_ACEOF
 
7302
rm -f conftest.$ac_objext conftest$ac_exeext
 
7303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7304
  (eval $ac_link) 2>&5
 
7305
  ac_status=$?
 
7306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7307
  (exit $ac_status); } &&
 
7308
         { ac_try='test -s conftest$ac_exeext'
 
7309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7310
  (eval $ac_try) 2>&5
 
7311
  ac_status=$?
 
7312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7313
  (exit $ac_status); }; }; then
 
7314
  ac_cv_lib_dl_dlopen=yes
 
7315
else
 
7316
  echo "$as_me: failed program was:" >&5
 
7317
cat conftest.$ac_ext >&5
 
7318
ac_cv_lib_dl_dlopen=no
 
7319
fi
 
7320
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7321
LIBS=$ac_check_lib_save_LIBS
 
7322
fi
 
7323
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7324
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7325
if test $ac_cv_lib_dl_dlopen = yes; then
 
7326
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7327
else
 
7328
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
7329
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
7330
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
7331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7332
else
 
7333
  ac_check_lib_save_LIBS=$LIBS
 
7334
LIBS="-lsvld  $LIBS"
 
7335
cat >conftest.$ac_ext <<_ACEOF
 
7336
#line $LINENO "configure"
 
7337
#include "confdefs.h"
 
7338
 
 
7339
/* Override any gcc2 internal prototype to avoid an error.  */
 
7340
#ifdef __cplusplus
 
7341
extern "C"
 
7342
#endif
 
7343
/* We use char because int might match the return type of a gcc2
 
7344
   builtin and then its argument prototype would still apply.  */
 
7345
char dlopen ();
 
7346
#ifdef F77_DUMMY_MAIN
 
7347
#  ifdef __cplusplus
 
7348
     extern "C"
 
7349
#  endif
 
7350
   int F77_DUMMY_MAIN() { return 1; }
 
7351
#endif
 
7352
int
 
7353
main ()
 
7354
{
 
7355
dlopen ();
 
7356
  ;
 
7357
  return 0;
 
7358
}
 
7359
_ACEOF
 
7360
rm -f conftest.$ac_objext conftest$ac_exeext
 
7361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7362
  (eval $ac_link) 2>&5
 
7363
  ac_status=$?
 
7364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7365
  (exit $ac_status); } &&
 
7366
         { ac_try='test -s conftest$ac_exeext'
 
7367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7368
  (eval $ac_try) 2>&5
 
7369
  ac_status=$?
 
7370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7371
  (exit $ac_status); }; }; then
 
7372
  ac_cv_lib_svld_dlopen=yes
 
7373
else
 
7374
  echo "$as_me: failed program was:" >&5
 
7375
cat conftest.$ac_ext >&5
 
7376
ac_cv_lib_svld_dlopen=no
 
7377
fi
 
7378
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7379
LIBS=$ac_check_lib_save_LIBS
 
7380
fi
 
7381
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
7382
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
7383
if test $ac_cv_lib_svld_dlopen = yes; then
 
7384
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
7385
else
 
7386
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
7387
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
7388
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
7389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7390
else
 
7391
  ac_check_lib_save_LIBS=$LIBS
 
7392
LIBS="-ldld  $LIBS"
 
7393
cat >conftest.$ac_ext <<_ACEOF
 
7394
#line $LINENO "configure"
 
7395
#include "confdefs.h"
 
7396
 
 
7397
/* Override any gcc2 internal prototype to avoid an error.  */
 
7398
#ifdef __cplusplus
 
7399
extern "C"
 
7400
#endif
 
7401
/* We use char because int might match the return type of a gcc2
 
7402
   builtin and then its argument prototype would still apply.  */
 
7403
char dld_link ();
 
7404
#ifdef F77_DUMMY_MAIN
 
7405
#  ifdef __cplusplus
 
7406
     extern "C"
 
7407
#  endif
 
7408
   int F77_DUMMY_MAIN() { return 1; }
 
7409
#endif
 
7410
int
 
7411
main ()
 
7412
{
 
7413
dld_link ();
 
7414
  ;
 
7415
  return 0;
 
7416
}
 
7417
_ACEOF
 
7418
rm -f conftest.$ac_objext conftest$ac_exeext
 
7419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7420
  (eval $ac_link) 2>&5
 
7421
  ac_status=$?
 
7422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7423
  (exit $ac_status); } &&
 
7424
         { ac_try='test -s conftest$ac_exeext'
 
7425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7426
  (eval $ac_try) 2>&5
 
7427
  ac_status=$?
 
7428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7429
  (exit $ac_status); }; }; then
 
7430
  ac_cv_lib_dld_dld_link=yes
 
7431
else
 
7432
  echo "$as_me: failed program was:" >&5
 
7433
cat conftest.$ac_ext >&5
 
7434
ac_cv_lib_dld_dld_link=no
 
7435
fi
 
7436
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7437
LIBS=$ac_check_lib_save_LIBS
 
7438
fi
 
7439
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
7440
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
7441
if test $ac_cv_lib_dld_dld_link = yes; then
 
7442
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
7443
fi
 
7444
 
 
7445
 
 
7446
fi
 
7447
 
 
7448
 
 
7449
fi
 
7450
 
 
7451
 
 
7452
fi
 
7453
 
 
7454
 
 
7455
fi
 
7456
 
 
7457
 
 
7458
fi
 
7459
 
 
7460
    ;;
 
7461
  esac
 
7462
 
 
7463
  if test "x$lt_cv_dlopen" != xno; then
 
7464
    enable_dlopen=yes
 
7465
  else
 
7466
    enable_dlopen=no
 
7467
  fi
 
7468
 
 
7469
  case $lt_cv_dlopen in
 
7470
  dlopen)
 
7471
    save_CPPFLAGS="$CPPFLAGS"
 
7472
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
7473
 
 
7474
    save_LDFLAGS="$LDFLAGS"
 
7475
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
7476
 
 
7477
    save_LIBS="$LIBS"
 
7478
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
7479
 
 
7480
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
7481
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
7482
if test "${lt_cv_dlopen_self+set}" = set; then
 
7483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7484
else
 
7485
          if test "$cross_compiling" = yes; then :
 
7486
  lt_cv_dlopen_self=cross
 
7487
else
 
7488
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7489
  lt_status=$lt_dlunknown
 
7490
  cat > conftest.$ac_ext <<EOF
 
7491
#line 7491 "configure"
 
7492
#include "confdefs.h"
 
7493
 
 
7494
#if HAVE_DLFCN_H
 
7495
#include <dlfcn.h>
 
7496
#endif
 
7497
 
 
7498
#include <stdio.h>
 
7499
 
 
7500
#ifdef RTLD_GLOBAL
 
7501
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7502
#else
 
7503
#  ifdef DL_GLOBAL
 
7504
#    define LT_DLGLOBAL         DL_GLOBAL
 
7505
#  else
 
7506
#    define LT_DLGLOBAL         0
 
7507
#  endif
 
7508
#endif
 
7509
 
 
7510
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7511
   find out it does not work in some platform. */
 
7512
#ifndef LT_DLLAZY_OR_NOW
 
7513
#  ifdef RTLD_LAZY
 
7514
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7515
#  else
 
7516
#    ifdef DL_LAZY
 
7517
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7518
#    else
 
7519
#      ifdef RTLD_NOW
 
7520
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7521
#      else
 
7522
#        ifdef DL_NOW
 
7523
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7524
#        else
 
7525
#          define LT_DLLAZY_OR_NOW      0
 
7526
#        endif
 
7527
#      endif
 
7528
#    endif
 
7529
#  endif
 
7530
#endif
 
7531
 
 
7532
#ifdef __cplusplus
 
7533
extern "C" void exit (int);
 
7534
#endif
 
7535
 
 
7536
void fnord() { int i=42;}
 
7537
int main ()
 
7538
{
 
7539
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7540
  int status = $lt_dlunknown;
 
7541
 
 
7542
  if (self)
 
7543
    {
 
7544
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7545
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7546
      /* dlclose (self); */
 
7547
    }
 
7548
 
 
7549
    exit (status);
 
7550
}
 
7551
EOF
 
7552
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7553
  (eval $ac_link) 2>&5
 
7554
  ac_status=$?
 
7555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7556
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7557
    (./conftest; exit; ) 2>/dev/null
 
7558
    lt_status=$?
 
7559
    case x$lt_status in
 
7560
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
7561
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
7562
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
7563
    esac
 
7564
  else :
 
7565
    # compilation failed
 
7566
    lt_cv_dlopen_self=no
 
7567
  fi
 
7568
fi
 
7569
rm -fr conftest*
 
7570
 
 
7571
 
 
7572
fi
 
7573
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
7574
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
7575
 
 
7576
    if test "x$lt_cv_dlopen_self" = xyes; then
 
7577
      LDFLAGS="$LDFLAGS $link_static_flag"
 
7578
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
7579
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
7580
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
7581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7582
else
 
7583
          if test "$cross_compiling" = yes; then :
 
7584
  lt_cv_dlopen_self_static=cross
 
7585
else
 
7586
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7587
  lt_status=$lt_dlunknown
 
7588
  cat > conftest.$ac_ext <<EOF
 
7589
#line 7589 "configure"
 
7590
#include "confdefs.h"
 
7591
 
 
7592
#if HAVE_DLFCN_H
 
7593
#include <dlfcn.h>
 
7594
#endif
 
7595
 
 
7596
#include <stdio.h>
 
7597
 
 
7598
#ifdef RTLD_GLOBAL
 
7599
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7600
#else
 
7601
#  ifdef DL_GLOBAL
 
7602
#    define LT_DLGLOBAL         DL_GLOBAL
 
7603
#  else
 
7604
#    define LT_DLGLOBAL         0
 
7605
#  endif
 
7606
#endif
 
7607
 
 
7608
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7609
   find out it does not work in some platform. */
 
7610
#ifndef LT_DLLAZY_OR_NOW
 
7611
#  ifdef RTLD_LAZY
 
7612
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7613
#  else
 
7614
#    ifdef DL_LAZY
 
7615
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7616
#    else
 
7617
#      ifdef RTLD_NOW
 
7618
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7619
#      else
 
7620
#        ifdef DL_NOW
 
7621
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7622
#        else
 
7623
#          define LT_DLLAZY_OR_NOW      0
 
7624
#        endif
 
7625
#      endif
 
7626
#    endif
 
7627
#  endif
 
7628
#endif
 
7629
 
 
7630
#ifdef __cplusplus
 
7631
extern "C" void exit (int);
 
7632
#endif
 
7633
 
 
7634
void fnord() { int i=42;}
 
7635
int main ()
 
7636
{
 
7637
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7638
  int status = $lt_dlunknown;
 
7639
 
 
7640
  if (self)
 
7641
    {
 
7642
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7643
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7644
      /* dlclose (self); */
 
7645
    }
 
7646
 
 
7647
    exit (status);
 
7648
}
 
7649
EOF
 
7650
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7651
  (eval $ac_link) 2>&5
 
7652
  ac_status=$?
 
7653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7654
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7655
    (./conftest; exit; ) 2>/dev/null
 
7656
    lt_status=$?
 
7657
    case x$lt_status in
 
7658
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
7659
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
7660
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
7661
    esac
 
7662
  else :
 
7663
    # compilation failed
 
7664
    lt_cv_dlopen_self_static=no
 
7665
  fi
 
7666
fi
 
7667
rm -fr conftest*
 
7668
 
 
7669
 
 
7670
fi
 
7671
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
7672
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
7673
    fi
 
7674
 
 
7675
    CPPFLAGS="$save_CPPFLAGS"
 
7676
    LDFLAGS="$save_LDFLAGS"
 
7677
    LIBS="$save_LIBS"
 
7678
    ;;
 
7679
  esac
 
7680
 
 
7681
  case $lt_cv_dlopen_self in
 
7682
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
7683
  *) enable_dlopen_self=unknown ;;
 
7684
  esac
 
7685
 
 
7686
  case $lt_cv_dlopen_self_static in
 
7687
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
7688
  *) enable_dlopen_self_static=unknown ;;
 
7689
  esac
 
7690
fi
 
7691
 
 
7692
 
 
7693
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7694
  case $archive_cmds in
 
7695
  *'~'*)
 
7696
    # FIXME: we may have to deal with multi-command sequences.
 
7697
    ;;
 
7698
  '$CC '*)
 
7699
    # Test whether the compiler implicitly links with -lc since on some
 
7700
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7701
    # to ld, don't add -lc before -lgcc.
 
7702
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7703
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7704
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
7705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7706
else
 
7707
  $rm conftest*
 
7708
    echo 'static int dummy;' > conftest.$ac_ext
 
7709
 
 
7710
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7711
  (eval $ac_compile) 2>&5
 
7712
  ac_status=$?
 
7713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7714
  (exit $ac_status); }; then
 
7715
      soname=conftest
 
7716
      lib=conftest
 
7717
      libobjs=conftest.$ac_objext
 
7718
      deplibs=
 
7719
      wl=$lt_cv_prog_cc_wl
 
7720
      compiler_flags=-v
 
7721
      linker_flags=-v
 
7722
      verstring=
 
7723
      output_objdir=.
 
7724
      libname=conftest
 
7725
      save_allow_undefined_flag=$allow_undefined_flag
 
7726
      allow_undefined_flag=
 
7727
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7728
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7729
  ac_status=$?
 
7730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7731
  (exit $ac_status); }
 
7732
      then
 
7733
        lt_cv_archive_cmds_need_lc=no
 
7734
      else
 
7735
        lt_cv_archive_cmds_need_lc=yes
 
7736
      fi
 
7737
      allow_undefined_flag=$save_allow_undefined_flag
 
7738
    else
 
7739
      cat conftest.err 1>&5
 
7740
    fi
 
7741
fi
 
7742
 
 
7743
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
7744
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7745
    ;;
 
7746
  esac
 
7747
fi
 
7748
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7749
 
 
7750
# The second clause should only fire when bootstrapping the
 
7751
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7752
# with your package, and you will get complaints that there are
 
7753
# no rules to generate ltmain.sh.
 
7754
if test -f "$ltmain"; then
 
7755
  :
 
7756
else
 
7757
  # If there is no Makefile yet, we rely on a make rule to execute
 
7758
  # `config.status --recheck' to rerun these tests and create the
 
7759
  # libtool script then.
 
7760
  test -f Makefile && make "$ltmain"
 
7761
fi
 
7762
 
 
7763
if test -f "$ltmain"; then
 
7764
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7765
  $rm -f "${ofile}T"
 
7766
 
 
7767
  echo creating $ofile
 
7768
 
 
7769
  # Now quote all the things that may contain metacharacters while being
 
7770
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7771
  # variables and quote the copies for generation of the libtool script.
 
7772
  for var in echo old_CC old_CFLAGS \
 
7773
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7774
    reload_flag reload_cmds wl \
 
7775
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7776
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7777
    library_names_spec soname_spec \
 
7778
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7779
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7780
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7781
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7782
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7783
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7784
    global_symbol_to_c_name_address \
 
7785
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7786
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7787
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7788
 
 
7789
    case $var in
 
7790
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7791
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7792
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7793
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7794
    postinstall_cmds | postuninstall_cmds | \
 
7795
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7796
      # Double-quote double-evaled strings.
 
7797
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7798
      ;;
 
7799
    *)
 
7800
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7801
      ;;
 
7802
    esac
 
7803
  done
 
7804
 
 
7805
  cat <<__EOF__ > "${ofile}T"
 
7806
#! $SHELL
 
7807
 
 
7808
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7809
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7810
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7811
#
 
7812
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7813
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7814
#
 
7815
# This program is free software; you can redistribute it and/or modify
 
7816
# it under the terms of the GNU General Public License as published by
 
7817
# the Free Software Foundation; either version 2 of the License, or
 
7818
# (at your option) any later version.
 
7819
#
 
7820
# This program is distributed in the hope that it will be useful, but
 
7821
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7822
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7823
# General Public License for more details.
 
7824
#
 
7825
# You should have received a copy of the GNU General Public License
 
7826
# along with this program; if not, write to the Free Software
 
7827
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7828
#
 
7829
# As a special exception to the GNU General Public License, if you
 
7830
# distribute this file as part of a program that contains a
 
7831
# configuration script generated by Autoconf, you may include it under
 
7832
# the same distribution terms that you use for the rest of that program.
 
7833
 
 
7834
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
7835
Xsed="sed -e s/^X//"
 
7836
 
 
7837
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
7838
# if CDPATH is set.
 
7839
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7840
 
 
7841
# ### BEGIN LIBTOOL CONFIG
 
7842
 
 
7843
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
7844
 
 
7845
# Shell to use when invoking shell scripts.
 
7846
SHELL=$lt_SHELL
 
7847
 
 
7848
# Whether or not to build shared libraries.
 
7849
build_libtool_libs=$enable_shared
 
7850
 
 
7851
# Whether or not to build static libraries.
 
7852
build_old_libs=$enable_static
 
7853
 
 
7854
# Whether or not to add -lc for building shared libraries.
 
7855
build_libtool_need_lc=$need_lc
 
7856
 
 
7857
# Whether or not to optimize for fast installation.
 
7858
fast_install=$enable_fast_install
 
7859
 
 
7860
# The host system.
 
7861
host_alias=$host_alias
 
7862
host=$host
 
7863
 
 
7864
# An echo program that does not interpret backslashes.
 
7865
echo=$lt_echo
 
7866
 
 
7867
# The archiver.
 
7868
AR=$lt_AR
 
7869
AR_FLAGS=$lt_AR_FLAGS
 
7870
 
 
7871
# The default C compiler.
 
7872
CC=$lt_CC
 
7873
 
 
7874
# Is the compiler the GNU C compiler?
 
7875
with_gcc=$GCC
 
7876
 
 
7877
# The linker used to build libraries.
 
7878
LD=$lt_LD
 
7879
 
 
7880
# Whether we need hard or soft links.
 
7881
LN_S=$lt_LN_S
 
7882
 
 
7883
# A BSD-compatible nm program.
 
7884
NM=$lt_NM
 
7885
 
 
7886
# A symbol stripping program
 
7887
STRIP=$STRIP
 
7888
 
 
7889
# Used to examine libraries when file_magic_cmd begins "file"
 
7890
MAGIC_CMD=$MAGIC_CMD
 
7891
 
 
7892
# Used on cygwin: DLL creation program.
 
7893
DLLTOOL="$DLLTOOL"
 
7894
 
 
7895
# Used on cygwin: object dumper.
 
7896
OBJDUMP="$OBJDUMP"
 
7897
 
 
7898
# Used on cygwin: assembler.
 
7899
AS="$AS"
 
7900
 
 
7901
# The name of the directory that contains temporary libtool files.
 
7902
objdir=$objdir
 
7903
 
 
7904
# How to create reloadable object files.
 
7905
reload_flag=$lt_reload_flag
 
7906
reload_cmds=$lt_reload_cmds
 
7907
 
 
7908
# How to pass a linker flag through the compiler.
 
7909
wl=$lt_wl
 
7910
 
 
7911
# Object file suffix (normally "o").
 
7912
objext="$ac_objext"
 
7913
 
 
7914
# Old archive suffix (normally "a").
 
7915
libext="$libext"
 
7916
 
 
7917
# Executable file suffix (normally "").
 
7918
exeext="$exeext"
 
7919
 
 
7920
# Additional compiler flags for building library objects.
 
7921
pic_flag=$lt_pic_flag
 
7922
pic_mode=$pic_mode
 
7923
 
 
7924
# Does compiler simultaneously support -c and -o options?
 
7925
compiler_c_o=$lt_compiler_c_o
 
7926
 
 
7927
# Can we write directly to a .lo ?
 
7928
compiler_o_lo=$lt_compiler_o_lo
 
7929
 
 
7930
# Must we lock files when doing compilation ?
 
7931
need_locks=$lt_need_locks
 
7932
 
 
7933
# Do we need the lib prefix for modules?
 
7934
need_lib_prefix=$need_lib_prefix
 
7935
 
 
7936
# Do we need a version for libraries?
 
7937
need_version=$need_version
 
7938
 
 
7939
# Whether dlopen is supported.
 
7940
dlopen_support=$enable_dlopen
 
7941
 
 
7942
# Whether dlopen of programs is supported.
 
7943
dlopen_self=$enable_dlopen_self
 
7944
 
 
7945
# Whether dlopen of statically linked programs is supported.
 
7946
dlopen_self_static=$enable_dlopen_self_static
 
7947
 
 
7948
# Compiler flag to prevent dynamic linking.
 
7949
link_static_flag=$lt_link_static_flag
 
7950
 
 
7951
# Compiler flag to turn off builtin functions.
 
7952
no_builtin_flag=$lt_no_builtin_flag
 
7953
 
 
7954
# Compiler flag to allow reflexive dlopens.
 
7955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
7956
 
 
7957
# Compiler flag to generate shared objects directly from archives.
 
7958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
7959
 
 
7960
# Compiler flag to generate thread-safe objects.
 
7961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
7962
 
 
7963
# Library versioning type.
 
7964
version_type=$version_type
 
7965
 
 
7966
# Format of library name prefix.
 
7967
libname_spec=$lt_libname_spec
 
7968
 
 
7969
# List of archive names.  First name is the real one, the rest are links.
 
7970
# The last name is the one that the linker finds with -lNAME.
 
7971
library_names_spec=$lt_library_names_spec
 
7972
 
 
7973
# The coded name of the library, if different from the real name.
 
7974
soname_spec=$lt_soname_spec
 
7975
 
 
7976
# Commands used to build and install an old-style archive.
 
7977
RANLIB=$lt_RANLIB
 
7978
old_archive_cmds=$lt_old_archive_cmds
 
7979
old_postinstall_cmds=$lt_old_postinstall_cmds
 
7980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
7981
 
 
7982
# Create an old-style archive from a shared archive.
 
7983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
7984
 
 
7985
# Create a temporary old-style archive to link instead of a shared archive.
 
7986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
7987
 
 
7988
# Commands used to build and install a shared archive.
 
7989
archive_cmds=$lt_archive_cmds
 
7990
archive_expsym_cmds=$lt_archive_expsym_cmds
 
7991
postinstall_cmds=$lt_postinstall_cmds
 
7992
postuninstall_cmds=$lt_postuninstall_cmds
 
7993
 
 
7994
# Commands to strip libraries.
 
7995
old_striplib=$lt_old_striplib
 
7996
striplib=$lt_striplib
 
7997
 
 
7998
# Method to check whether dependent libraries are shared objects.
 
7999
deplibs_check_method=$lt_deplibs_check_method
 
8000
 
 
8001
# Command to use when deplibs_check_method == file_magic.
 
8002
file_magic_cmd=$lt_file_magic_cmd
 
8003
 
 
8004
# Flag that allows shared libraries with undefined symbols to be built.
 
8005
allow_undefined_flag=$lt_allow_undefined_flag
 
8006
 
 
8007
# Flag that forces no undefined symbols.
 
8008
no_undefined_flag=$lt_no_undefined_flag
 
8009
 
 
8010
# Commands used to finish a libtool library installation in a directory.
 
8011
finish_cmds=$lt_finish_cmds
 
8012
 
 
8013
# Same as above, but a single script fragment to be evaled but not shown.
 
8014
finish_eval=$lt_finish_eval
 
8015
 
 
8016
# Take the output of nm and produce a listing of raw symbols and C names.
 
8017
global_symbol_pipe=$lt_global_symbol_pipe
 
8018
 
 
8019
# Transform the output of nm in a proper C declaration
 
8020
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
8021
 
 
8022
# Transform the output of nm in a C name address pair
 
8023
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
8024
 
 
8025
# This is the shared library runtime path variable.
 
8026
runpath_var=$runpath_var
 
8027
 
 
8028
# This is the shared library path variable.
 
8029
shlibpath_var=$shlibpath_var
 
8030
 
 
8031
# Is shlibpath searched before the hard-coded library search path?
 
8032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8033
 
 
8034
# How to hardcode a shared library path into an executable.
 
8035
hardcode_action=$hardcode_action
 
8036
 
 
8037
# Whether we should hardcode library paths into libraries.
 
8038
hardcode_into_libs=$hardcode_into_libs
 
8039
 
 
8040
# Flag to hardcode \$libdir into a binary during linking.
 
8041
# This must work even if \$libdir does not exist.
 
8042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8043
 
 
8044
# Whether we need a single -rpath flag with a separated argument.
 
8045
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8046
 
 
8047
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
8048
# resulting binary.
 
8049
hardcode_direct=$hardcode_direct
 
8050
 
 
8051
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8052
# resulting binary.
 
8053
hardcode_minus_L=$hardcode_minus_L
 
8054
 
 
8055
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8056
# the resulting binary.
 
8057
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8058
 
 
8059
# Variables whose values should be saved in libtool wrapper scripts and
 
8060
# restored at relink time.
 
8061
variables_saved_for_relink="$variables_saved_for_relink"
 
8062
 
 
8063
# Whether libtool must link a program against all its dependency libraries.
 
8064
link_all_deplibs=$link_all_deplibs
 
8065
 
 
8066
# Compile-time system search path for libraries
 
8067
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8068
 
 
8069
# Run-time system search path for libraries
 
8070
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8071
 
 
8072
# Fix the shell variable \$srcfile for the compiler.
 
8073
fix_srcfile_path="$fix_srcfile_path"
 
8074
 
 
8075
# Set to yes if exported symbols are required.
 
8076
always_export_symbols=$always_export_symbols
 
8077
 
 
8078
# The commands to list exported symbols.
 
8079
export_symbols_cmds=$lt_export_symbols_cmds
 
8080
 
 
8081
# The commands to extract the exported symbol list from a shared archive.
 
8082
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
8083
 
 
8084
# Symbols that should not be listed in the preloaded symbols.
 
8085
exclude_expsyms=$lt_exclude_expsyms
 
8086
 
 
8087
# Symbols that must always be exported.
 
8088
include_expsyms=$lt_include_expsyms
 
8089
 
 
8090
# ### END LIBTOOL CONFIG
 
8091
 
 
8092
__EOF__
 
8093
 
 
8094
  case $host_os in
 
8095
  aix3*)
 
8096
    cat <<\EOF >> "${ofile}T"
 
8097
 
 
8098
# AIX sometimes has problems with the GCC collect2 program.  For some
 
8099
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
8100
# vanish in a puff of smoke.
 
8101
if test "X${COLLECT_NAMES+set}" != Xset; then
 
8102
  COLLECT_NAMES=
 
8103
  export COLLECT_NAMES
 
8104
fi
 
8105
EOF
 
8106
    ;;
 
8107
  esac
 
8108
 
 
8109
  case $host_os in
 
8110
  cygwin* | mingw* | pw32* | os2*)
 
8111
    cat <<'EOF' >> "${ofile}T"
 
8112
      # This is a source program that is used to create dlls on Windows
 
8113
      # Don't remove nor modify the starting and closing comments
 
8114
# /* ltdll.c starts here */
 
8115
# #define WIN32_LEAN_AND_MEAN
 
8116
# #include <windows.h>
 
8117
# #undef WIN32_LEAN_AND_MEAN
 
8118
# #include <stdio.h>
 
8119
#
 
8120
# #ifndef __CYGWIN__
 
8121
# #  ifdef __CYGWIN32__
 
8122
# #    define __CYGWIN__ __CYGWIN32__
 
8123
# #  endif
 
8124
# #endif
 
8125
#
 
8126
# #ifdef __cplusplus
 
8127
# extern "C" {
 
8128
# #endif
 
8129
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
8130
# #ifdef __cplusplus
 
8131
# }
 
8132
# #endif
 
8133
#
 
8134
# #ifdef __CYGWIN__
 
8135
# #include <cygwin/cygwin_dll.h>
 
8136
# DECLARE_CYGWIN_DLL( DllMain );
 
8137
# #endif
 
8138
# HINSTANCE __hDllInstance_base;
 
8139
#
 
8140
# BOOL APIENTRY
 
8141
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
8142
# {
 
8143
#   __hDllInstance_base = hInst;
 
8144
#   return TRUE;
 
8145
# }
 
8146
# /* ltdll.c ends here */
 
8147
        # This is a source program that is used to create import libraries
 
8148
        # on Windows for dlls which lack them. Don't remove nor modify the
 
8149
        # starting and closing comments
 
8150
# /* impgen.c starts here */
 
8151
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
8152
#
 
8153
#  This file is part of GNU libtool.
 
8154
#
 
8155
#  This program is free software; you can redistribute it and/or modify
 
8156
#  it under the terms of the GNU General Public License as published by
 
8157
#  the Free Software Foundation; either version 2 of the License, or
 
8158
#  (at your option) any later version.
 
8159
#
 
8160
#  This program is distributed in the hope that it will be useful,
 
8161
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8162
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
8163
#  GNU General Public License for more details.
 
8164
#
 
8165
#  You should have received a copy of the GNU General Public License
 
8166
#  along with this program; if not, write to the Free Software
 
8167
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8168
#  */
 
8169
#
 
8170
# #include <stdio.h>            /* for printf() */
 
8171
# #include <unistd.h>           /* for open(), lseek(), read() */
 
8172
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
8173
# #include <string.h>           /* for strdup() */
 
8174
#
 
8175
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
8176
# #ifndef O_BINARY
 
8177
# #define O_BINARY 0
 
8178
# #endif
 
8179
#
 
8180
# static unsigned int
 
8181
# pe_get16 (fd, offset)
 
8182
#      int fd;
 
8183
#      int offset;
 
8184
# {
 
8185
#   unsigned char b[2];
 
8186
#   lseek (fd, offset, SEEK_SET);
 
8187
#   read (fd, b, 2);
 
8188
#   return b[0] + (b[1]<<8);
 
8189
# }
 
8190
#
 
8191
# static unsigned int
 
8192
# pe_get32 (fd, offset)
 
8193
#     int fd;
 
8194
#     int offset;
 
8195
# {
 
8196
#   unsigned char b[4];
 
8197
#   lseek (fd, offset, SEEK_SET);
 
8198
#   read (fd, b, 4);
 
8199
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8200
# }
 
8201
#
 
8202
# static unsigned int
 
8203
# pe_as32 (ptr)
 
8204
#      void *ptr;
 
8205
# {
 
8206
#   unsigned char *b = ptr;
 
8207
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8208
# }
 
8209
#
 
8210
# int
 
8211
# main (argc, argv)
 
8212
#     int argc;
 
8213
#     char *argv[];
 
8214
# {
 
8215
#     int dll;
 
8216
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
8217
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
8218
#     unsigned long name_rvas, nexp;
 
8219
#     unsigned char *expdata, *erva;
 
8220
#     char *filename, *dll_name;
 
8221
#
 
8222
#     filename = argv[1];
 
8223
#
 
8224
#     dll = open(filename, O_RDONLY|O_BINARY);
 
8225
#     if (dll < 1)
 
8226
#       return 1;
 
8227
#
 
8228
#     dll_name = filename;
 
8229
#
 
8230
#     for (i=0; filename[i]; i++)
 
8231
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
8232
#           dll_name = filename + i +1;
 
8233
#
 
8234
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
8235
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
8236
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
8237
#
 
8238
#     if (num_entries < 1) /* no exports */
 
8239
#       return 1;
 
8240
#
 
8241
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
8242
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
8243
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
8244
#     secptr = (pe_header_offset + 4 + 20 +
 
8245
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
8246
#
 
8247
#     expptr = 0;
 
8248
#     for (i = 0; i < nsections; i++)
 
8249
#     {
 
8250
#       char sname[8];
 
8251
#       unsigned long secptr1 = secptr + 40 * i;
 
8252
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
8253
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
8254
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
8255
#       lseek(dll, secptr1, SEEK_SET);
 
8256
#       read(dll, sname, 8);
 
8257
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
8258
#       {
 
8259
#           expptr = fptr + (export_rva - vaddr);
 
8260
#           if (export_rva + export_size > vaddr + vsize)
 
8261
#               export_size = vsize - (export_rva - vaddr);
 
8262
#           break;
 
8263
#       }
 
8264
#     }
 
8265
#
 
8266
#     expdata = (unsigned char*)malloc(export_size);
 
8267
#     lseek (dll, expptr, SEEK_SET);
 
8268
#     read (dll, expdata, export_size);
 
8269
#     erva = expdata - export_rva;
 
8270
#
 
8271
#     nexp = pe_as32 (expdata+24);
 
8272
#     name_rvas = pe_as32 (expdata+32);
 
8273
#
 
8274
#     printf ("EXPORTS\n");
 
8275
#     for (i = 0; i<nexp; i++)
 
8276
#     {
 
8277
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
8278
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
8279
#     }
 
8280
#
 
8281
#     return 0;
 
8282
# }
 
8283
# /* impgen.c ends here */
 
8284
 
 
8285
EOF
 
8286
    ;;
 
8287
  esac
 
8288
 
 
8289
  # We use sed instead of cat because bash on DJGPP gets confused if
 
8290
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
8291
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
8292
  # is reportedly fixed, but why not run on old versions too?
 
8293
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
8294
 
 
8295
  mv -f "${ofile}T" "$ofile" || \
 
8296
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
8297
  chmod +x "$ofile"
 
8298
fi
 
8299
 
 
8300
 
 
8301
 
 
8302
 
 
8303
 
 
8304
# This can be used to rebuild libtool when needed
 
8305
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
8306
 
 
8307
# Always use our own libtool.
 
8308
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8309
 
 
8310
# Prevent multiple expansion
 
8311
 
 
8312
 
 
8313
 
 
8314
# **************************************************************************
 
8315
if test x"$prefix" = x"NONE"; then
 
8316
  prefix=/usr/local
 
8317
fi
 
8318
 
 
8319
# These are used for constructing the soqt-config file.
 
8320
SOGUI_EXTRA_CPPFLAGS=$CPPFLAGS
 
8321
 
 
8322
SOGUI_EXTRA_CFLAGS=$CFLAGS
 
8323
 
 
8324
SOGUI_EXTRA_CXXFLAGS=$CXXFLAGS
 
8325
 
 
8326
SOGUI_EXTRA_LDFLAGS=$LDFLAGS
 
8327
 
 
8328
SOGUI_EXTRA_LIBS=$LIBS
 
8329
 
 
8330
 
 
8331
# SIM_EXPAND_DIR_VARS
 
8332
 
 
8333
# **************************************************************************
 
8334
 
 
8335
 
 
8336
# Check whether --with-alternate or --without-alternate was given.
 
8337
if test "${with_alternate+set}" = set; then
 
8338
  withval="$with_alternate"
 
8339
  CONFIG=$withval
 
8340
else
 
8341
  CONFIG=default
 
8342
fi;
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
# Check whether --with-suffix or --without-suffix was given.
 
8348
if test "${with_suffix+set}" = set; then
 
8349
  withval="$with_suffix"
 
8350
  SUFFIX=$withval
 
8351
else
 
8352
  SUFFIX=
 
8353
fi;
 
8354
 
 
8355
 
 
8356
 
 
8357
# **************************************************************************
 
8358
# If you just want to generate docs, ignore all the build-related tests
 
8359
 
 
8360
sim_ac_build_library=true
 
8361
# Check whether --enable-build or --disable-build was given.
 
8362
if test "${enable_build+set}" = set; then
 
8363
  enableval="$enable_build"
 
8364
 
 
8365
  case $enableval in
 
8366
    no) sim_ac_build_library=false ;;
 
8367
    *)  ;;
 
8368
  esac
 
8369
fi;
 
8370
 
 
8371
 
 
8372
 
 
8373
if $sim_ac_build_library; then
 
8374
  BUILD_LIBRARY_TRUE=
 
8375
  BUILD_LIBRARY_FALSE='#'
 
8376
else
 
8377
  BUILD_LIBRARY_TRUE='#'
 
8378
  BUILD_LIBRARY_FALSE=
 
8379
fi
 
8380
 
 
8381
# *******************************************************************
 
8382
# * Do we want to build the documentation?
 
8383
# *******************************************************************
 
8384
 
 
8385
 
 
8386
 
 
8387
 
 
8388
# Check whether --enable-html or --disable-html was given.
 
8389
if test "${enable_html+set}" = set; then
 
8390
  enableval="$enable_html"
 
8391
  case $enableval in
 
8392
    yes | true) want_html=yes ;;
 
8393
    *)          want_html=no ;;
 
8394
  esac
 
8395
else
 
8396
  want_html=no
 
8397
fi;
 
8398
 
 
8399
case $htmldir in
 
8400
"")
 
8401
  htmldir="$datadir/SoQt/html"
 
8402
  ;;
 
8403
/*)
 
8404
  # do nothing - absolute path
 
8405
  ;;
 
8406
*)
 
8407
  htmldir="\${prefix}/$htmldir"
 
8408
  ;;
 
8409
esac
 
8410
 
 
8411
 
 
8412
 
 
8413
# Check whether --enable-man or --disable-man was given.
 
8414
if test "${enable_man+set}" = set; then
 
8415
  enableval="$enable_man"
 
8416
  case $enableval in
 
8417
    yes | true) want_man=yes ;;
 
8418
    *)          want_man=no ;;
 
8419
  esac
 
8420
else
 
8421
  want_man=no
 
8422
fi;
 
8423
 
 
8424
# Used in the Doxygen parameter file.
 
8425
SOGUI_DOC_HTML=`echo $want_html | tr 'a-z' 'A-Z'`
 
8426
 
 
8427
SOGUI_DOC_MAN=`echo $want_man | tr 'a-z' 'A-Z'`
 
8428
 
 
8429
 
 
8430
sogui_build_dir=`pwd`
 
8431
 
 
8432
sogui_src_dir=`cd $srcdir; pwd`
 
8433
 
 
8434
sogui_html_dir=`pwd`/html
 
8435
 
 
8436
sogui_man_dir=`pwd`/man
 
8437
 
 
8438
 
 
8439
 
 
8440
 
 
8441
if test x"$want_man" = x"yes"; then
 
8442
  BUILD_MANPAGES_TRUE=
 
8443
  BUILD_MANPAGES_FALSE='#'
 
8444
else
 
8445
  BUILD_MANPAGES_TRUE='#'
 
8446
  BUILD_MANPAGES_FALSE=
 
8447
fi
 
8448
 
 
8449
 
 
8450
if test x"$want_html" = x"yes"; then
 
8451
  BUILD_HTMLPAGES_TRUE=
 
8452
  BUILD_HTMLPAGES_FALSE='#'
 
8453
else
 
8454
  BUILD_HTMLPAGES_TRUE='#'
 
8455
  BUILD_HTMLPAGES_FALSE=
 
8456
fi
 
8457
 
 
8458
if test x"$want_man" = x"yes"; then
 
8459
  if test x${sim_ac_configuration_settings+set} != xset; then
 
8460
  sim_ac_configuration_settings="manpage installation:$mandir"
 
8461
else
 
8462
  sim_ac_configuration_settings="$sim_ac_configuration_settings|manpage installation:$mandir"
 
8463
fi
 
8464
 
 
8465
fi
 
8466
 
 
8467
if test x"$want_html" = x"yes"; then
 
8468
  if test x${sim_ac_configuration_settings+set} != xset; then
 
8469
  sim_ac_configuration_settings="HTML installation:$htmldir"
 
8470
else
 
8471
  sim_ac_configuration_settings="$sim_ac_configuration_settings|HTML installation:$htmldir"
 
8472
fi
 
8473
 
 
8474
fi
 
8475
 
 
8476
if test x"$want_html" != xno -o x"$want_man" != xno; then
 
8477
 
 
8478
 
 
8479
# Check whether --with-doxygen or --without-doxygen was given.
 
8480
if test "${with_doxygen+set}" = set; then
 
8481
  withval="$with_doxygen"
 
8482
 
 
8483
else
 
8484
  with_doxygen=yes
 
8485
fi;
 
8486
 
 
8487
sim_ac_doxygen_avail=no
 
8488
 
 
8489
if test x"$with_doxygen" != xno; then
 
8490
  sim_ac_path=$PATH
 
8491
  if test x"$with_doxygen" != xyes; then
 
8492
    sim_ac_path=${with_doxygen}:$PATH
 
8493
  fi
 
8494
 
 
8495
  # Extract the first word of "doxygen", so it can be a program name with args.
 
8496
set dummy doxygen; ac_word=$2
 
8497
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8499
if test "${ac_cv_path_sim_ac_doxygen_exe+set}" = set; then
 
8500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8501
else
 
8502
  case $sim_ac_doxygen_exe in
 
8503
  [\\/]* | ?:[\\/]*)
 
8504
  ac_cv_path_sim_ac_doxygen_exe="$sim_ac_doxygen_exe" # Let the user override the test with a path.
 
8505
  ;;
 
8506
  *)
 
8507
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8508
for as_dir in $sim_ac_path
 
8509
do
 
8510
  IFS=$as_save_IFS
 
8511
  test -z "$as_dir" && as_dir=.
 
8512
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8513
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8514
    ac_cv_path_sim_ac_doxygen_exe="$as_dir/$ac_word$ac_exec_ext"
 
8515
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8516
    break 2
 
8517
  fi
 
8518
done
 
8519
done
 
8520
 
 
8521
  test -z "$ac_cv_path_sim_ac_doxygen_exe" && ac_cv_path_sim_ac_doxygen_exe="false"
 
8522
  ;;
 
8523
esac
 
8524
fi
 
8525
sim_ac_doxygen_exe=$ac_cv_path_sim_ac_doxygen_exe
 
8526
 
 
8527
if test -n "$sim_ac_doxygen_exe"; then
 
8528
  echo "$as_me:$LINENO: result: $sim_ac_doxygen_exe" >&5
 
8529
echo "${ECHO_T}$sim_ac_doxygen_exe" >&6
 
8530
else
 
8531
  echo "$as_me:$LINENO: result: no" >&5
 
8532
echo "${ECHO_T}no" >&6
 
8533
fi
 
8534
 
 
8535
  if test x"$sim_ac_doxygen_exe" = xfalse; then
 
8536
 
 
8537
echo >&2 ""
 
8538
 
 
8539
 
 
8540
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
8541
if test -f $sim_ac_message_file; then
 
8542
  sim_ac_message="`sed -n -e '/^!no-doxygen$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
8543
  if test x"$sim_ac_message" = x""; then
 
8544
    { { echo "$as_me:$LINENO: error: no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
8545
echo "$as_me: error: no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
8546
   { (exit 1); exit 1; }; }
 
8547
  else
 
8548
    eval "echo >&2 \"$sim_ac_message\""
 
8549
  fi
 
8550
else
 
8551
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
8552
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
8553
   { (exit 1); exit 1; }; }
 
8554
fi
 
8555
 
 
8556
 
 
8557
 
 
8558
echo >&2 ""
 
8559
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
8560
echo "$as_me: error: aborting" >&2;}
 
8561
   { (exit 1); exit 1; }; }
 
8562
 
 
8563
  else
 
8564
    sim_ac_doxygen_avail=`$sim_ac_doxygen_exe -help 2> /dev/null | head -1 | sed 's%[^ ]\+ [^ ]\+ %%'`
 
8565
 
 
8566
  fi
 
8567
fi
 
8568
 
 
8569
 
 
8570
  # Extract the first word of "perl", so it can be a program name with args.
 
8571
set dummy perl; ac_word=$2
 
8572
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8574
if test "${ac_cv_path_sim_ac_perl_exe+set}" = set; then
 
8575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8576
else
 
8577
  case $sim_ac_perl_exe in
 
8578
  [\\/]* | ?:[\\/]*)
 
8579
  ac_cv_path_sim_ac_perl_exe="$sim_ac_perl_exe" # Let the user override the test with a path.
 
8580
  ;;
 
8581
  *)
 
8582
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8583
for as_dir in $PATH
 
8584
do
 
8585
  IFS=$as_save_IFS
 
8586
  test -z "$as_dir" && as_dir=.
 
8587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8588
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8589
    ac_cv_path_sim_ac_perl_exe="$as_dir/$ac_word$ac_exec_ext"
 
8590
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8591
    break 2
 
8592
  fi
 
8593
done
 
8594
done
 
8595
 
 
8596
  test -z "$ac_cv_path_sim_ac_perl_exe" && ac_cv_path_sim_ac_perl_exe="false"
 
8597
  ;;
 
8598
esac
 
8599
fi
 
8600
sim_ac_perl_exe=$ac_cv_path_sim_ac_perl_exe
 
8601
 
 
8602
if test -n "$sim_ac_perl_exe"; then
 
8603
  echo "$as_me:$LINENO: result: $sim_ac_perl_exe" >&5
 
8604
echo "${ECHO_T}$sim_ac_perl_exe" >&6
 
8605
else
 
8606
  echo "$as_me:$LINENO: result: no" >&5
 
8607
echo "${ECHO_T}no" >&6
 
8608
fi
 
8609
 
 
8610
  if test x"$sim_ac_perl_exe" = xfalse; then
 
8611
    { echo "$as_me:$LINENO: WARNING: Could not find the Perl executable" >&5
 
8612
echo "$as_me: WARNING: Could not find the Perl executable" >&2;}
 
8613
  fi
 
8614
fi
 
8615
 
 
8616
# path_tag is used to identify paths in docs/coin.doxygen that needs to be
 
8617
# transformed using cygpath under cygwin.
 
8618
 
 
8619
case $host in
 
8620
*-cygwin) path_tag="<PATH>" ;;
 
8621
*)        path_tag= ;;
 
8622
esac
 
8623
 
 
8624
 
 
8625
 
 
8626
 
 
8627
 
 
8628
 
 
8629
 
 
8630
if true; then
 
8631
  BUILD_METAFILES_TRUE=
 
8632
  BUILD_METAFILES_FALSE='#'
 
8633
else
 
8634
  BUILD_METAFILES_TRUE='#'
 
8635
  BUILD_METAFILES_FALSE=
 
8636
fi
 
8637
meta_prefix=moc_
 
8638
 
 
8639
 
 
8640
if $sim_ac_build_library; then
 
8641
 
 
8642
# **************************************************************************
 
8643
# Header files we might want.
 
8644
 
 
8645
 
 
8646
 
 
8647
 
 
8648
 
 
8649
 
 
8650
 
 
8651
 
 
8652
 
 
8653
 
 
8654
for ac_header in windows.h tlhelp32.h unistd.h sys/types.h sys/time.h X11/extensions/SGIMisc.h X11/Xproto.h X11/extensions/XInput.h netinet/in.h
 
8655
do
 
8656
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8657
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8658
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8660
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8662
fi
 
8663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8665
else
 
8666
  # Is the header compilable?
 
8667
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8668
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8669
cat >conftest.$ac_ext <<_ACEOF
 
8670
#line $LINENO "configure"
 
8671
#include "confdefs.h"
 
8672
$ac_includes_default
 
8673
#include <$ac_header>
 
8674
_ACEOF
 
8675
rm -f conftest.$ac_objext
 
8676
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8677
  (eval $ac_compile) 2>&5
 
8678
  ac_status=$?
 
8679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8680
  (exit $ac_status); } &&
 
8681
         { ac_try='test -s conftest.$ac_objext'
 
8682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8683
  (eval $ac_try) 2>&5
 
8684
  ac_status=$?
 
8685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8686
  (exit $ac_status); }; }; then
 
8687
  ac_header_compiler=yes
 
8688
else
 
8689
  echo "$as_me: failed program was:" >&5
 
8690
cat conftest.$ac_ext >&5
 
8691
ac_header_compiler=no
 
8692
fi
 
8693
rm -f conftest.$ac_objext conftest.$ac_ext
 
8694
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8695
echo "${ECHO_T}$ac_header_compiler" >&6
 
8696
 
 
8697
# Is the header present?
 
8698
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8699
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8700
cat >conftest.$ac_ext <<_ACEOF
 
8701
#line $LINENO "configure"
 
8702
#include "confdefs.h"
 
8703
#include <$ac_header>
 
8704
_ACEOF
 
8705
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8706
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8707
  ac_status=$?
 
8708
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
8709
  rm -f conftest.er1
 
8710
  cat conftest.err >&5
 
8711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8712
  (exit $ac_status); } >/dev/null; then
 
8713
  if test -s conftest.err; then
 
8714
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
8715
  else
 
8716
    ac_cpp_err=
 
8717
  fi
 
8718
else
 
8719
  ac_cpp_err=yes
 
8720
fi
 
8721
if test -z "$ac_cpp_err"; then
 
8722
  ac_header_preproc=yes
 
8723
else
 
8724
  echo "$as_me: failed program was:" >&5
 
8725
  cat conftest.$ac_ext >&5
 
8726
  ac_header_preproc=no
 
8727
fi
 
8728
rm -f conftest.err conftest.$ac_ext
 
8729
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8730
echo "${ECHO_T}$ac_header_preproc" >&6
 
8731
 
 
8732
# So?  What about this header?
 
8733
case $ac_header_compiler:$ac_header_preproc in
 
8734
  yes:no )
 
8735
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8737
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8738
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
8739
  no:yes )
 
8740
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8741
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8742
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8743
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8744
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8745
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
8746
esac
 
8747
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8748
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8749
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8751
else
 
8752
  eval "$as_ac_Header=$ac_header_preproc"
 
8753
fi
 
8754
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8755
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8756
 
 
8757
fi
 
8758
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8759
  cat >>confdefs.h <<_ACEOF
 
8760
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8761
_ACEOF
 
8762
 
 
8763
fi
 
8764
 
 
8765
done
 
8766
 
 
8767
 
 
8768
# *******************************************************************
 
8769
# Instead of getenv() on most Win32 platforms (not Windows CE).
 
8770
 
 
8771
echo "$as_me:$LINENO: checking for GetEnvironmentVariable() function" >&5
 
8772
echo $ECHO_N "checking for GetEnvironmentVariable() function... $ECHO_C" >&6
 
8773
cat >conftest.$ac_ext <<_ACEOF
 
8774
#line $LINENO "configure"
 
8775
#include "confdefs.h"
 
8776
#include <windows.h>
 
8777
#ifdef F77_DUMMY_MAIN
 
8778
#  ifdef __cplusplus
 
8779
     extern "C"
 
8780
#  endif
 
8781
   int F77_DUMMY_MAIN() { return 1; }
 
8782
#endif
 
8783
int
 
8784
main ()
 
8785
{
 
8786
(void)GetEnvironmentVariable("FOOBAR", NULL, 0);
 
8787
  ;
 
8788
  return 0;
 
8789
}
 
8790
_ACEOF
 
8791
rm -f conftest.$ac_objext conftest$ac_exeext
 
8792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8793
  (eval $ac_link) 2>&5
 
8794
  ac_status=$?
 
8795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8796
  (exit $ac_status); } &&
 
8797
         { ac_try='test -s conftest$ac_exeext'
 
8798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8799
  (eval $ac_try) 2>&5
 
8800
  ac_status=$?
 
8801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8802
  (exit $ac_status); }; }; then
 
8803
  echo "$as_me:$LINENO: result: yes" >&5
 
8804
echo "${ECHO_T}yes" >&6
 
8805
 
 
8806
cat >>confdefs.h <<\_ACEOF
 
8807
#define HAVE_GETENVIRONMENTVARIABLE 1
 
8808
_ACEOF
 
8809
 
 
8810
else
 
8811
  echo "$as_me: failed program was:" >&5
 
8812
cat conftest.$ac_ext >&5
 
8813
echo "$as_me:$LINENO: result: no" >&5
 
8814
echo "${ECHO_T}no" >&6
 
8815
fi
 
8816
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8817
 
 
8818
# *******************************************************************
 
8819
# Win32 LoadLibrary() and friends available? (Used for Win32-specific
 
8820
# debugging code).
 
8821
 
 
8822
 
 
8823
# Check whether --enable-loadlibrary or --disable-loadlibrary was given.
 
8824
if test "${enable_loadlibrary+set}" = set; then
 
8825
  enableval="$enable_loadlibrary"
 
8826
  case $enableval in
 
8827
  yes | true ) sim_ac_win32_loadlibrary=true ;;
 
8828
  *) sim_ac_win32_loadlibrary=false ;;
 
8829
  esac
 
8830
else
 
8831
  sim_ac_win32_loadlibrary=true
 
8832
fi;
 
8833
 
 
8834
if $sim_ac_win32_loadlibrary; then
 
8835
  # Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the
 
8836
  # HAVE_DLFCN_H symbol set up in config.h automatically.
 
8837
 
 
8838
for ac_header in windows.h
 
8839
do
 
8840
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8841
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8842
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8843
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8844
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8846
fi
 
8847
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8848
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8849
else
 
8850
  # Is the header compilable?
 
8851
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8852
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8853
cat >conftest.$ac_ext <<_ACEOF
 
8854
#line $LINENO "configure"
 
8855
#include "confdefs.h"
 
8856
$ac_includes_default
 
8857
#include <$ac_header>
 
8858
_ACEOF
 
8859
rm -f conftest.$ac_objext
 
8860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8861
  (eval $ac_compile) 2>&5
 
8862
  ac_status=$?
 
8863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8864
  (exit $ac_status); } &&
 
8865
         { ac_try='test -s conftest.$ac_objext'
 
8866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8867
  (eval $ac_try) 2>&5
 
8868
  ac_status=$?
 
8869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8870
  (exit $ac_status); }; }; then
 
8871
  ac_header_compiler=yes
 
8872
else
 
8873
  echo "$as_me: failed program was:" >&5
 
8874
cat conftest.$ac_ext >&5
 
8875
ac_header_compiler=no
 
8876
fi
 
8877
rm -f conftest.$ac_objext conftest.$ac_ext
 
8878
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8879
echo "${ECHO_T}$ac_header_compiler" >&6
 
8880
 
 
8881
# Is the header present?
 
8882
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8883
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8884
cat >conftest.$ac_ext <<_ACEOF
 
8885
#line $LINENO "configure"
 
8886
#include "confdefs.h"
 
8887
#include <$ac_header>
 
8888
_ACEOF
 
8889
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8890
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8891
  ac_status=$?
 
8892
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
8893
  rm -f conftest.er1
 
8894
  cat conftest.err >&5
 
8895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8896
  (exit $ac_status); } >/dev/null; then
 
8897
  if test -s conftest.err; then
 
8898
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
8899
  else
 
8900
    ac_cpp_err=
 
8901
  fi
 
8902
else
 
8903
  ac_cpp_err=yes
 
8904
fi
 
8905
if test -z "$ac_cpp_err"; then
 
8906
  ac_header_preproc=yes
 
8907
else
 
8908
  echo "$as_me: failed program was:" >&5
 
8909
  cat conftest.$ac_ext >&5
 
8910
  ac_header_preproc=no
 
8911
fi
 
8912
rm -f conftest.err conftest.$ac_ext
 
8913
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8914
echo "${ECHO_T}$ac_header_preproc" >&6
 
8915
 
 
8916
# So?  What about this header?
 
8917
case $ac_header_compiler:$ac_header_preproc in
 
8918
  yes:no )
 
8919
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8920
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8921
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8922
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
8923
  no:yes )
 
8924
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8925
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8926
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8927
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8928
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8929
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
8930
esac
 
8931
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8932
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8933
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8935
else
 
8936
  eval "$as_ac_Header=$ac_header_preproc"
 
8937
fi
 
8938
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8939
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8940
 
 
8941
fi
 
8942
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8943
  cat >>confdefs.h <<_ACEOF
 
8944
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8945
_ACEOF
 
8946
 
 
8947
fi
 
8948
 
 
8949
done
 
8950
 
 
8951
 
 
8952
  echo "$as_me:$LINENO: checking whether the Win32 LoadLibrary() method is available" >&5
 
8953
echo $ECHO_N "checking whether the Win32 LoadLibrary() method is available... $ECHO_C" >&6
 
8954
if test "${sim_cv_lib_loadlibrary_avail+set}" = set; then
 
8955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8956
else
 
8957
  cat >conftest.$ac_ext <<_ACEOF
 
8958
#line $LINENO "configure"
 
8959
#include "confdefs.h"
 
8960
 
 
8961
#if HAVE_WINDOWS_H
 
8962
#include <windows.h>
 
8963
#endif /* HAVE_WINDOWS_H */
 
8964
 
 
8965
#ifdef F77_DUMMY_MAIN
 
8966
#  ifdef __cplusplus
 
8967
     extern "C"
 
8968
#  endif
 
8969
   int F77_DUMMY_MAIN() { return 1; }
 
8970
#endif
 
8971
int
 
8972
main ()
 
8973
{
 
8974
(void)LoadLibrary(0L); (void)GetProcAddress(0L, 0L); (void)FreeLibrary(0L);
 
8975
  ;
 
8976
  return 0;
 
8977
}
 
8978
_ACEOF
 
8979
rm -f conftest.$ac_objext conftest$ac_exeext
 
8980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8981
  (eval $ac_link) 2>&5
 
8982
  ac_status=$?
 
8983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8984
  (exit $ac_status); } &&
 
8985
         { ac_try='test -s conftest$ac_exeext'
 
8986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8987
  (eval $ac_try) 2>&5
 
8988
  ac_status=$?
 
8989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8990
  (exit $ac_status); }; }; then
 
8991
  sim_cv_lib_loadlibrary_avail=yes
 
8992
else
 
8993
  echo "$as_me: failed program was:" >&5
 
8994
cat conftest.$ac_ext >&5
 
8995
sim_cv_lib_loadlibrary_avail=no
 
8996
fi
 
8997
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8998
fi
 
8999
echo "$as_me:$LINENO: result: $sim_cv_lib_loadlibrary_avail" >&5
 
9000
echo "${ECHO_T}$sim_cv_lib_loadlibrary_avail" >&6
 
9001
 
 
9002
  if test x"$sim_cv_lib_loadlibrary_avail" = xyes; then
 
9003
 
 
9004
cat >>confdefs.h <<\_ACEOF
 
9005
#define HAVE_WIN32_LOADLIBRARY 1
 
9006
_ACEOF
 
9007
 
 
9008
 
 
9009
  else
 
9010
    :
 
9011
  fi
 
9012
fi
 
9013
 
 
9014
 
 
9015
# **************************************************************************
 
9016
# Search and set up necessary stuff to use Open Inventor or Coin.
 
9017
 
 
9018
## Run AC_PATH_XTRA outside the if-then-else-fi, as AC_PATH_XTRA
 
9019
## AC_REQUIREs AC_PATH_X, which means AC_PATH_X will only get
 
9020
## expanded on the first AC_PATH_XTRA, which means trouble when
 
9021
## AC_PATH_XTRA uses $no_x="yes"? from AC_PATH_X to decide whether
 
9022
## or not to define X_DISPLAY_MISSING on X11-less systems.
 
9023
 
 
9024
echo "$as_me:$LINENO: checking for X" >&5
 
9025
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
9026
 
 
9027
 
 
9028
# Check whether --with-x or --without-x was given.
 
9029
if test "${with_x+set}" = set; then
 
9030
  withval="$with_x"
 
9031
 
 
9032
fi;
 
9033
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
9034
if test "x$with_x" = xno; then
 
9035
  # The user explicitly disabled X.
 
9036
  have_x=disabled
 
9037
else
 
9038
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
9039
    # Both variables are already set.
 
9040
    have_x=yes
 
9041
  else
 
9042
    if test "${ac_cv_have_x+set}" = set; then
 
9043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9044
else
 
9045
  # One or both of the vars are not set, and there is no cached value.
 
9046
ac_x_includes=no ac_x_libraries=no
 
9047
rm -fr conftest.dir
 
9048
if mkdir conftest.dir; then
 
9049
  cd conftest.dir
 
9050
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
9051
  cat >Imakefile <<'_ACEOF'
 
9052
acfindx:
 
9053
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
9054
_ACEOF
 
9055
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
9056
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
9057
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
9058
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
9059
    for ac_extension in a so sl; do
 
9060
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
9061
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
9062
        ac_im_usrlibdir=$ac_im_libdir; break
 
9063
      fi
 
9064
    done
 
9065
    # Screen out bogus values from the imake configuration.  They are
 
9066
    # bogus both because they are the default anyway, and because
 
9067
    # using them would break gcc on systems where it needs fixed includes.
 
9068
    case $ac_im_incroot in
 
9069
        /usr/include) ;;
 
9070
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
9071
    esac
 
9072
    case $ac_im_usrlibdir in
 
9073
        /usr/lib | /lib) ;;
 
9074
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
9075
    esac
 
9076
  fi
 
9077
  cd ..
 
9078
  rm -fr conftest.dir
 
9079
fi
 
9080
 
 
9081
# Standard set of common directories for X headers.
 
9082
# Check X11 before X11Rn because it is often a symlink to the current release.
 
9083
ac_x_header_dirs='
 
9084
/usr/X11/include
 
9085
/usr/X11R6/include
 
9086
/usr/X11R5/include
 
9087
/usr/X11R4/include
 
9088
 
 
9089
/usr/include/X11
 
9090
/usr/include/X11R6
 
9091
/usr/include/X11R5
 
9092
/usr/include/X11R4
 
9093
 
 
9094
/usr/local/X11/include
 
9095
/usr/local/X11R6/include
 
9096
/usr/local/X11R5/include
 
9097
/usr/local/X11R4/include
 
9098
 
 
9099
/usr/local/include/X11
 
9100
/usr/local/include/X11R6
 
9101
/usr/local/include/X11R5
 
9102
/usr/local/include/X11R4
 
9103
 
 
9104
/usr/X386/include
 
9105
/usr/x386/include
 
9106
/usr/XFree86/include/X11
 
9107
 
 
9108
/usr/include
 
9109
/usr/local/include
 
9110
/usr/unsupported/include
 
9111
/usr/athena/include
 
9112
/usr/local/x11r5/include
 
9113
/usr/lpp/Xamples/include
 
9114
 
 
9115
/usr/openwin/include
 
9116
/usr/openwin/share/include'
 
9117
 
 
9118
if test "$ac_x_includes" = no; then
 
9119
  # Guess where to find include files, by looking for Intrinsic.h.
 
9120
  # First, try using that file with no special directory specified.
 
9121
  cat >conftest.$ac_ext <<_ACEOF
 
9122
#line $LINENO "configure"
 
9123
#include "confdefs.h"
 
9124
#include <X11/Intrinsic.h>
 
9125
_ACEOF
 
9126
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9127
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9128
  ac_status=$?
 
9129
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9130
  rm -f conftest.er1
 
9131
  cat conftest.err >&5
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); } >/dev/null; then
 
9134
  if test -s conftest.err; then
 
9135
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
9136
  else
 
9137
    ac_cpp_err=
 
9138
  fi
 
9139
else
 
9140
  ac_cpp_err=yes
 
9141
fi
 
9142
if test -z "$ac_cpp_err"; then
 
9143
  # We can compile using X headers with no special include directory.
 
9144
ac_x_includes=
 
9145
else
 
9146
  echo "$as_me: failed program was:" >&5
 
9147
  cat conftest.$ac_ext >&5
 
9148
  for ac_dir in $ac_x_header_dirs; do
 
9149
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
9150
    ac_x_includes=$ac_dir
 
9151
    break
 
9152
  fi
 
9153
done
 
9154
fi
 
9155
rm -f conftest.err conftest.$ac_ext
 
9156
fi # $ac_x_includes = no
 
9157
 
 
9158
if test "$ac_x_libraries" = no; then
 
9159
  # Check for the libraries.
 
9160
  # See if we find them without any special options.
 
9161
  # Don't add to $LIBS permanently.
 
9162
  ac_save_LIBS=$LIBS
 
9163
  LIBS="-lXt $LIBS"
 
9164
  cat >conftest.$ac_ext <<_ACEOF
 
9165
#line $LINENO "configure"
 
9166
#include "confdefs.h"
 
9167
#include <X11/Intrinsic.h>
 
9168
#ifdef F77_DUMMY_MAIN
 
9169
#  ifdef __cplusplus
 
9170
     extern "C"
 
9171
#  endif
 
9172
   int F77_DUMMY_MAIN() { return 1; }
 
9173
#endif
 
9174
int
 
9175
main ()
 
9176
{
 
9177
XtMalloc (0)
 
9178
  ;
 
9179
  return 0;
 
9180
}
 
9181
_ACEOF
 
9182
rm -f conftest.$ac_objext conftest$ac_exeext
 
9183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9184
  (eval $ac_link) 2>&5
 
9185
  ac_status=$?
 
9186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9187
  (exit $ac_status); } &&
 
9188
         { ac_try='test -s conftest$ac_exeext'
 
9189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9190
  (eval $ac_try) 2>&5
 
9191
  ac_status=$?
 
9192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9193
  (exit $ac_status); }; }; then
 
9194
  LIBS=$ac_save_LIBS
 
9195
# We can link X programs with no special library path.
 
9196
ac_x_libraries=
 
9197
else
 
9198
  echo "$as_me: failed program was:" >&5
 
9199
cat conftest.$ac_ext >&5
 
9200
LIBS=$ac_save_LIBS
 
9201
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
9202
do
 
9203
  # Don't even attempt the hair of trying to link an X program!
 
9204
  for ac_extension in a so sl; do
 
9205
    if test -r $ac_dir/libXt.$ac_extension; then
 
9206
      ac_x_libraries=$ac_dir
 
9207
      break 2
 
9208
    fi
 
9209
  done
 
9210
done
 
9211
fi
 
9212
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9213
fi # $ac_x_libraries = no
 
9214
 
 
9215
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
9216
  # Didn't find X anywhere.  Cache the known absence of X.
 
9217
  ac_cv_have_x="have_x=no"
 
9218
else
 
9219
  # Record where we found X for the cache.
 
9220
  ac_cv_have_x="have_x=yes \
 
9221
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
9222
fi
 
9223
fi
 
9224
 
 
9225
  fi
 
9226
  eval "$ac_cv_have_x"
 
9227
fi # $with_x != no
 
9228
 
 
9229
if test "$have_x" != yes; then
 
9230
  echo "$as_me:$LINENO: result: $have_x" >&5
 
9231
echo "${ECHO_T}$have_x" >&6
 
9232
  no_x=yes
 
9233
else
 
9234
  # If each of the values was on the command line, it overrides each guess.
 
9235
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
9236
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
9237
  # Update the cache value to reflect the command line values.
 
9238
  ac_cv_have_x="have_x=yes \
 
9239
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
9240
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
9241
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
9242
fi
 
9243
 
 
9244
if test "$no_x" = yes; then
 
9245
  # Not all programs may use this symbol, but it does not hurt to define it.
 
9246
 
 
9247
cat >>confdefs.h <<\_ACEOF
 
9248
#define X_DISPLAY_MISSING 1
 
9249
_ACEOF
 
9250
 
 
9251
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
9252
else
 
9253
  if test -n "$x_includes"; then
 
9254
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
9255
  fi
 
9256
 
 
9257
  # It would also be nice to do this for all -L options, not just this one.
 
9258
  if test -n "$x_libraries"; then
 
9259
    X_LIBS="$X_LIBS -L$x_libraries"
 
9260
    # For Solaris; some versions of Sun CC require a space after -R and
 
9261
    # others require no space.  Words are not sufficient . . . .
 
9262
    case `(uname -sr) 2>/dev/null` in
 
9263
    "SunOS 5"*)
 
9264
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
9265
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
9266
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
9267
      cat >conftest.$ac_ext <<_ACEOF
 
9268
#line $LINENO "configure"
 
9269
#include "confdefs.h"
 
9270
 
 
9271
#ifdef F77_DUMMY_MAIN
 
9272
#  ifdef __cplusplus
 
9273
     extern "C"
 
9274
#  endif
 
9275
   int F77_DUMMY_MAIN() { return 1; }
 
9276
#endif
 
9277
int
 
9278
main ()
 
9279
{
 
9280
 
 
9281
  ;
 
9282
  return 0;
 
9283
}
 
9284
_ACEOF
 
9285
rm -f conftest.$ac_objext conftest$ac_exeext
 
9286
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9287
  (eval $ac_link) 2>&5
 
9288
  ac_status=$?
 
9289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9290
  (exit $ac_status); } &&
 
9291
         { ac_try='test -s conftest$ac_exeext'
 
9292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9293
  (eval $ac_try) 2>&5
 
9294
  ac_status=$?
 
9295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9296
  (exit $ac_status); }; }; then
 
9297
  ac_R_nospace=yes
 
9298
else
 
9299
  echo "$as_me: failed program was:" >&5
 
9300
cat conftest.$ac_ext >&5
 
9301
ac_R_nospace=no
 
9302
fi
 
9303
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9304
      if test $ac_R_nospace = yes; then
 
9305
        echo "$as_me:$LINENO: result: no" >&5
 
9306
echo "${ECHO_T}no" >&6
 
9307
        X_LIBS="$X_LIBS -R$x_libraries"
 
9308
      else
 
9309
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
9310
        cat >conftest.$ac_ext <<_ACEOF
 
9311
#line $LINENO "configure"
 
9312
#include "confdefs.h"
 
9313
 
 
9314
#ifdef F77_DUMMY_MAIN
 
9315
#  ifdef __cplusplus
 
9316
     extern "C"
 
9317
#  endif
 
9318
   int F77_DUMMY_MAIN() { return 1; }
 
9319
#endif
 
9320
int
 
9321
main ()
 
9322
{
 
9323
 
 
9324
  ;
 
9325
  return 0;
 
9326
}
 
9327
_ACEOF
 
9328
rm -f conftest.$ac_objext conftest$ac_exeext
 
9329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9330
  (eval $ac_link) 2>&5
 
9331
  ac_status=$?
 
9332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9333
  (exit $ac_status); } &&
 
9334
         { ac_try='test -s conftest$ac_exeext'
 
9335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9336
  (eval $ac_try) 2>&5
 
9337
  ac_status=$?
 
9338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9339
  (exit $ac_status); }; }; then
 
9340
  ac_R_space=yes
 
9341
else
 
9342
  echo "$as_me: failed program was:" >&5
 
9343
cat conftest.$ac_ext >&5
 
9344
ac_R_space=no
 
9345
fi
 
9346
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9347
        if test $ac_R_space = yes; then
 
9348
          echo "$as_me:$LINENO: result: yes" >&5
 
9349
echo "${ECHO_T}yes" >&6
 
9350
          X_LIBS="$X_LIBS -R $x_libraries"
 
9351
        else
 
9352
          echo "$as_me:$LINENO: result: neither works" >&5
 
9353
echo "${ECHO_T}neither works" >&6
 
9354
        fi
 
9355
      fi
 
9356
      LIBS=$ac_xsave_LIBS
 
9357
    esac
 
9358
  fi
 
9359
 
 
9360
  # Check for system-dependent libraries X programs must link with.
 
9361
  # Do this before checking for the system-independent R6 libraries
 
9362
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
9363
 
 
9364
  if test "$ISC" = yes; then
 
9365
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
9366
  else
 
9367
    # Martyn Johnson says this is needed for Ultrix, if the X
 
9368
    # libraries were built with DECnet support.  And Karl Berry says
 
9369
    # the Alpha needs dnet_stub (dnet does not exist).
 
9370
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
9371
    cat >conftest.$ac_ext <<_ACEOF
 
9372
#line $LINENO "configure"
 
9373
#include "confdefs.h"
 
9374
 
 
9375
/* Override any gcc2 internal prototype to avoid an error.  */
 
9376
#ifdef __cplusplus
 
9377
extern "C"
 
9378
#endif
 
9379
/* We use char because int might match the return type of a gcc2
 
9380
   builtin and then its argument prototype would still apply.  */
 
9381
char XOpenDisplay ();
 
9382
#ifdef F77_DUMMY_MAIN
 
9383
#  ifdef __cplusplus
 
9384
     extern "C"
 
9385
#  endif
 
9386
   int F77_DUMMY_MAIN() { return 1; }
 
9387
#endif
 
9388
int
 
9389
main ()
 
9390
{
 
9391
XOpenDisplay ();
 
9392
  ;
 
9393
  return 0;
 
9394
}
 
9395
_ACEOF
 
9396
rm -f conftest.$ac_objext conftest$ac_exeext
 
9397
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9398
  (eval $ac_link) 2>&5
 
9399
  ac_status=$?
 
9400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9401
  (exit $ac_status); } &&
 
9402
         { ac_try='test -s conftest$ac_exeext'
 
9403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9404
  (eval $ac_try) 2>&5
 
9405
  ac_status=$?
 
9406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9407
  (exit $ac_status); }; }; then
 
9408
  :
 
9409
else
 
9410
  echo "$as_me: failed program was:" >&5
 
9411
cat conftest.$ac_ext >&5
 
9412
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
9413
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
9414
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
9415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9416
else
 
9417
  ac_check_lib_save_LIBS=$LIBS
 
9418
LIBS="-ldnet  $LIBS"
 
9419
cat >conftest.$ac_ext <<_ACEOF
 
9420
#line $LINENO "configure"
 
9421
#include "confdefs.h"
 
9422
 
 
9423
/* Override any gcc2 internal prototype to avoid an error.  */
 
9424
#ifdef __cplusplus
 
9425
extern "C"
 
9426
#endif
 
9427
/* We use char because int might match the return type of a gcc2
 
9428
   builtin and then its argument prototype would still apply.  */
 
9429
char dnet_ntoa ();
 
9430
#ifdef F77_DUMMY_MAIN
 
9431
#  ifdef __cplusplus
 
9432
     extern "C"
 
9433
#  endif
 
9434
   int F77_DUMMY_MAIN() { return 1; }
 
9435
#endif
 
9436
int
 
9437
main ()
 
9438
{
 
9439
dnet_ntoa ();
 
9440
  ;
 
9441
  return 0;
 
9442
}
 
9443
_ACEOF
 
9444
rm -f conftest.$ac_objext conftest$ac_exeext
 
9445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9446
  (eval $ac_link) 2>&5
 
9447
  ac_status=$?
 
9448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9449
  (exit $ac_status); } &&
 
9450
         { ac_try='test -s conftest$ac_exeext'
 
9451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9452
  (eval $ac_try) 2>&5
 
9453
  ac_status=$?
 
9454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9455
  (exit $ac_status); }; }; then
 
9456
  ac_cv_lib_dnet_dnet_ntoa=yes
 
9457
else
 
9458
  echo "$as_me: failed program was:" >&5
 
9459
cat conftest.$ac_ext >&5
 
9460
ac_cv_lib_dnet_dnet_ntoa=no
 
9461
fi
 
9462
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9463
LIBS=$ac_check_lib_save_LIBS
 
9464
fi
 
9465
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
9466
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
9467
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
9468
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
9469
fi
 
9470
 
 
9471
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
9472
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
9473
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
9474
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
9475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9476
else
 
9477
  ac_check_lib_save_LIBS=$LIBS
 
9478
LIBS="-ldnet_stub  $LIBS"
 
9479
cat >conftest.$ac_ext <<_ACEOF
 
9480
#line $LINENO "configure"
 
9481
#include "confdefs.h"
 
9482
 
 
9483
/* Override any gcc2 internal prototype to avoid an error.  */
 
9484
#ifdef __cplusplus
 
9485
extern "C"
 
9486
#endif
 
9487
/* We use char because int might match the return type of a gcc2
 
9488
   builtin and then its argument prototype would still apply.  */
 
9489
char dnet_ntoa ();
 
9490
#ifdef F77_DUMMY_MAIN
 
9491
#  ifdef __cplusplus
 
9492
     extern "C"
 
9493
#  endif
 
9494
   int F77_DUMMY_MAIN() { return 1; }
 
9495
#endif
 
9496
int
 
9497
main ()
 
9498
{
 
9499
dnet_ntoa ();
 
9500
  ;
 
9501
  return 0;
 
9502
}
 
9503
_ACEOF
 
9504
rm -f conftest.$ac_objext conftest$ac_exeext
 
9505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9506
  (eval $ac_link) 2>&5
 
9507
  ac_status=$?
 
9508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9509
  (exit $ac_status); } &&
 
9510
         { ac_try='test -s conftest$ac_exeext'
 
9511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9512
  (eval $ac_try) 2>&5
 
9513
  ac_status=$?
 
9514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9515
  (exit $ac_status); }; }; then
 
9516
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
9517
else
 
9518
  echo "$as_me: failed program was:" >&5
 
9519
cat conftest.$ac_ext >&5
 
9520
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
9521
fi
 
9522
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9523
LIBS=$ac_check_lib_save_LIBS
 
9524
fi
 
9525
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
9526
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
9527
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
9528
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
9529
fi
 
9530
 
 
9531
    fi
 
9532
fi
 
9533
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9534
    LIBS="$ac_xsave_LIBS"
 
9535
 
 
9536
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
9537
    # to get the SysV transport functions.
 
9538
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
9539
    # needs -lnsl.
 
9540
    # The nsl library prevents programs from opening the X display
 
9541
    # on Irix 5.2, according to T.E. Dickey.
 
9542
    # The functions gethostbyname, getservbyname, and inet_addr are
 
9543
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
9544
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
9545
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
9546
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
9547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9548
else
 
9549
  cat >conftest.$ac_ext <<_ACEOF
 
9550
#line $LINENO "configure"
 
9551
#include "confdefs.h"
 
9552
/* System header to define __stub macros and hopefully few prototypes,
 
9553
    which can conflict with char gethostbyname (); below.  */
 
9554
#include <assert.h>
 
9555
/* Override any gcc2 internal prototype to avoid an error.  */
 
9556
#ifdef __cplusplus
 
9557
extern "C"
 
9558
#endif
 
9559
/* We use char because int might match the return type of a gcc2
 
9560
   builtin and then its argument prototype would still apply.  */
 
9561
char gethostbyname ();
 
9562
char (*f) ();
 
9563
 
 
9564
#ifdef F77_DUMMY_MAIN
 
9565
#  ifdef __cplusplus
 
9566
     extern "C"
 
9567
#  endif
 
9568
   int F77_DUMMY_MAIN() { return 1; }
 
9569
#endif
 
9570
int
 
9571
main ()
 
9572
{
 
9573
/* The GNU C library defines this for functions which it implements
 
9574
    to always fail with ENOSYS.  Some functions are actually named
 
9575
    something starting with __ and the normal name is an alias.  */
 
9576
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
9577
choke me
 
9578
#else
 
9579
f = gethostbyname;
 
9580
#endif
 
9581
 
 
9582
  ;
 
9583
  return 0;
 
9584
}
 
9585
_ACEOF
 
9586
rm -f conftest.$ac_objext conftest$ac_exeext
 
9587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9588
  (eval $ac_link) 2>&5
 
9589
  ac_status=$?
 
9590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9591
  (exit $ac_status); } &&
 
9592
         { ac_try='test -s conftest$ac_exeext'
 
9593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9594
  (eval $ac_try) 2>&5
 
9595
  ac_status=$?
 
9596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9597
  (exit $ac_status); }; }; then
 
9598
  ac_cv_func_gethostbyname=yes
 
9599
else
 
9600
  echo "$as_me: failed program was:" >&5
 
9601
cat conftest.$ac_ext >&5
 
9602
ac_cv_func_gethostbyname=no
 
9603
fi
 
9604
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9605
fi
 
9606
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
9607
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
9608
 
 
9609
    if test $ac_cv_func_gethostbyname = no; then
 
9610
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
9611
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
9612
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
9613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9614
else
 
9615
  ac_check_lib_save_LIBS=$LIBS
 
9616
LIBS="-lnsl  $LIBS"
 
9617
cat >conftest.$ac_ext <<_ACEOF
 
9618
#line $LINENO "configure"
 
9619
#include "confdefs.h"
 
9620
 
 
9621
/* Override any gcc2 internal prototype to avoid an error.  */
 
9622
#ifdef __cplusplus
 
9623
extern "C"
 
9624
#endif
 
9625
/* We use char because int might match the return type of a gcc2
 
9626
   builtin and then its argument prototype would still apply.  */
 
9627
char gethostbyname ();
 
9628
#ifdef F77_DUMMY_MAIN
 
9629
#  ifdef __cplusplus
 
9630
     extern "C"
 
9631
#  endif
 
9632
   int F77_DUMMY_MAIN() { return 1; }
 
9633
#endif
 
9634
int
 
9635
main ()
 
9636
{
 
9637
gethostbyname ();
 
9638
  ;
 
9639
  return 0;
 
9640
}
 
9641
_ACEOF
 
9642
rm -f conftest.$ac_objext conftest$ac_exeext
 
9643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9644
  (eval $ac_link) 2>&5
 
9645
  ac_status=$?
 
9646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9647
  (exit $ac_status); } &&
 
9648
         { ac_try='test -s conftest$ac_exeext'
 
9649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9650
  (eval $ac_try) 2>&5
 
9651
  ac_status=$?
 
9652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9653
  (exit $ac_status); }; }; then
 
9654
  ac_cv_lib_nsl_gethostbyname=yes
 
9655
else
 
9656
  echo "$as_me: failed program was:" >&5
 
9657
cat conftest.$ac_ext >&5
 
9658
ac_cv_lib_nsl_gethostbyname=no
 
9659
fi
 
9660
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9661
LIBS=$ac_check_lib_save_LIBS
 
9662
fi
 
9663
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
9664
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
9665
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
9666
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
9667
fi
 
9668
 
 
9669
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
9670
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
9671
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
9672
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
9673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9674
else
 
9675
  ac_check_lib_save_LIBS=$LIBS
 
9676
LIBS="-lbsd  $LIBS"
 
9677
cat >conftest.$ac_ext <<_ACEOF
 
9678
#line $LINENO "configure"
 
9679
#include "confdefs.h"
 
9680
 
 
9681
/* Override any gcc2 internal prototype to avoid an error.  */
 
9682
#ifdef __cplusplus
 
9683
extern "C"
 
9684
#endif
 
9685
/* We use char because int might match the return type of a gcc2
 
9686
   builtin and then its argument prototype would still apply.  */
 
9687
char gethostbyname ();
 
9688
#ifdef F77_DUMMY_MAIN
 
9689
#  ifdef __cplusplus
 
9690
     extern "C"
 
9691
#  endif
 
9692
   int F77_DUMMY_MAIN() { return 1; }
 
9693
#endif
 
9694
int
 
9695
main ()
 
9696
{
 
9697
gethostbyname ();
 
9698
  ;
 
9699
  return 0;
 
9700
}
 
9701
_ACEOF
 
9702
rm -f conftest.$ac_objext conftest$ac_exeext
 
9703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9704
  (eval $ac_link) 2>&5
 
9705
  ac_status=$?
 
9706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9707
  (exit $ac_status); } &&
 
9708
         { ac_try='test -s conftest$ac_exeext'
 
9709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9710
  (eval $ac_try) 2>&5
 
9711
  ac_status=$?
 
9712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9713
  (exit $ac_status); }; }; then
 
9714
  ac_cv_lib_bsd_gethostbyname=yes
 
9715
else
 
9716
  echo "$as_me: failed program was:" >&5
 
9717
cat conftest.$ac_ext >&5
 
9718
ac_cv_lib_bsd_gethostbyname=no
 
9719
fi
 
9720
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9721
LIBS=$ac_check_lib_save_LIBS
 
9722
fi
 
9723
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
9724
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
9725
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
9726
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
9727
fi
 
9728
 
 
9729
      fi
 
9730
    fi
 
9731
 
 
9732
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
9733
    # socket/setsockopt and other routines are undefined under SCO ODT
 
9734
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
9735
    # on later versions), says Simon Leinen: it contains gethostby*
 
9736
    # variants that don't use the nameserver (or something).  -lsocket
 
9737
    # must be given before -lnsl if both are needed.  We assume that
 
9738
    # if connect needs -lnsl, so does gethostbyname.
 
9739
    echo "$as_me:$LINENO: checking for connect" >&5
 
9740
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
9741
if test "${ac_cv_func_connect+set}" = set; then
 
9742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9743
else
 
9744
  cat >conftest.$ac_ext <<_ACEOF
 
9745
#line $LINENO "configure"
 
9746
#include "confdefs.h"
 
9747
/* System header to define __stub macros and hopefully few prototypes,
 
9748
    which can conflict with char connect (); below.  */
 
9749
#include <assert.h>
 
9750
/* Override any gcc2 internal prototype to avoid an error.  */
 
9751
#ifdef __cplusplus
 
9752
extern "C"
 
9753
#endif
 
9754
/* We use char because int might match the return type of a gcc2
 
9755
   builtin and then its argument prototype would still apply.  */
 
9756
char connect ();
 
9757
char (*f) ();
 
9758
 
 
9759
#ifdef F77_DUMMY_MAIN
 
9760
#  ifdef __cplusplus
 
9761
     extern "C"
 
9762
#  endif
 
9763
   int F77_DUMMY_MAIN() { return 1; }
 
9764
#endif
 
9765
int
 
9766
main ()
 
9767
{
 
9768
/* The GNU C library defines this for functions which it implements
 
9769
    to always fail with ENOSYS.  Some functions are actually named
 
9770
    something starting with __ and the normal name is an alias.  */
 
9771
#if defined (__stub_connect) || defined (__stub___connect)
 
9772
choke me
 
9773
#else
 
9774
f = connect;
 
9775
#endif
 
9776
 
 
9777
  ;
 
9778
  return 0;
 
9779
}
 
9780
_ACEOF
 
9781
rm -f conftest.$ac_objext conftest$ac_exeext
 
9782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9783
  (eval $ac_link) 2>&5
 
9784
  ac_status=$?
 
9785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9786
  (exit $ac_status); } &&
 
9787
         { ac_try='test -s conftest$ac_exeext'
 
9788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9789
  (eval $ac_try) 2>&5
 
9790
  ac_status=$?
 
9791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9792
  (exit $ac_status); }; }; then
 
9793
  ac_cv_func_connect=yes
 
9794
else
 
9795
  echo "$as_me: failed program was:" >&5
 
9796
cat conftest.$ac_ext >&5
 
9797
ac_cv_func_connect=no
 
9798
fi
 
9799
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9800
fi
 
9801
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
9802
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
9803
 
 
9804
    if test $ac_cv_func_connect = no; then
 
9805
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
9806
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
9807
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
9808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9809
else
 
9810
  ac_check_lib_save_LIBS=$LIBS
 
9811
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
9812
cat >conftest.$ac_ext <<_ACEOF
 
9813
#line $LINENO "configure"
 
9814
#include "confdefs.h"
 
9815
 
 
9816
/* Override any gcc2 internal prototype to avoid an error.  */
 
9817
#ifdef __cplusplus
 
9818
extern "C"
 
9819
#endif
 
9820
/* We use char because int might match the return type of a gcc2
 
9821
   builtin and then its argument prototype would still apply.  */
 
9822
char connect ();
 
9823
#ifdef F77_DUMMY_MAIN
 
9824
#  ifdef __cplusplus
 
9825
     extern "C"
 
9826
#  endif
 
9827
   int F77_DUMMY_MAIN() { return 1; }
 
9828
#endif
 
9829
int
 
9830
main ()
 
9831
{
 
9832
connect ();
 
9833
  ;
 
9834
  return 0;
 
9835
}
 
9836
_ACEOF
 
9837
rm -f conftest.$ac_objext conftest$ac_exeext
 
9838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9839
  (eval $ac_link) 2>&5
 
9840
  ac_status=$?
 
9841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9842
  (exit $ac_status); } &&
 
9843
         { ac_try='test -s conftest$ac_exeext'
 
9844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9845
  (eval $ac_try) 2>&5
 
9846
  ac_status=$?
 
9847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9848
  (exit $ac_status); }; }; then
 
9849
  ac_cv_lib_socket_connect=yes
 
9850
else
 
9851
  echo "$as_me: failed program was:" >&5
 
9852
cat conftest.$ac_ext >&5
 
9853
ac_cv_lib_socket_connect=no
 
9854
fi
 
9855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9856
LIBS=$ac_check_lib_save_LIBS
 
9857
fi
 
9858
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
9859
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
9860
if test $ac_cv_lib_socket_connect = yes; then
 
9861
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
9862
fi
 
9863
 
 
9864
    fi
 
9865
 
 
9866
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
9867
    echo "$as_me:$LINENO: checking for remove" >&5
 
9868
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
9869
if test "${ac_cv_func_remove+set}" = set; then
 
9870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9871
else
 
9872
  cat >conftest.$ac_ext <<_ACEOF
 
9873
#line $LINENO "configure"
 
9874
#include "confdefs.h"
 
9875
/* System header to define __stub macros and hopefully few prototypes,
 
9876
    which can conflict with char remove (); below.  */
 
9877
#include <assert.h>
 
9878
/* Override any gcc2 internal prototype to avoid an error.  */
 
9879
#ifdef __cplusplus
 
9880
extern "C"
 
9881
#endif
 
9882
/* We use char because int might match the return type of a gcc2
 
9883
   builtin and then its argument prototype would still apply.  */
 
9884
char remove ();
 
9885
char (*f) ();
 
9886
 
 
9887
#ifdef F77_DUMMY_MAIN
 
9888
#  ifdef __cplusplus
 
9889
     extern "C"
 
9890
#  endif
 
9891
   int F77_DUMMY_MAIN() { return 1; }
 
9892
#endif
 
9893
int
 
9894
main ()
 
9895
{
 
9896
/* The GNU C library defines this for functions which it implements
 
9897
    to always fail with ENOSYS.  Some functions are actually named
 
9898
    something starting with __ and the normal name is an alias.  */
 
9899
#if defined (__stub_remove) || defined (__stub___remove)
 
9900
choke me
 
9901
#else
 
9902
f = remove;
 
9903
#endif
 
9904
 
 
9905
  ;
 
9906
  return 0;
 
9907
}
 
9908
_ACEOF
 
9909
rm -f conftest.$ac_objext conftest$ac_exeext
 
9910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9911
  (eval $ac_link) 2>&5
 
9912
  ac_status=$?
 
9913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9914
  (exit $ac_status); } &&
 
9915
         { ac_try='test -s conftest$ac_exeext'
 
9916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9917
  (eval $ac_try) 2>&5
 
9918
  ac_status=$?
 
9919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9920
  (exit $ac_status); }; }; then
 
9921
  ac_cv_func_remove=yes
 
9922
else
 
9923
  echo "$as_me: failed program was:" >&5
 
9924
cat conftest.$ac_ext >&5
 
9925
ac_cv_func_remove=no
 
9926
fi
 
9927
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9928
fi
 
9929
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
9930
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
9931
 
 
9932
    if test $ac_cv_func_remove = no; then
 
9933
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
9934
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
9935
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
9936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9937
else
 
9938
  ac_check_lib_save_LIBS=$LIBS
 
9939
LIBS="-lposix  $LIBS"
 
9940
cat >conftest.$ac_ext <<_ACEOF
 
9941
#line $LINENO "configure"
 
9942
#include "confdefs.h"
 
9943
 
 
9944
/* Override any gcc2 internal prototype to avoid an error.  */
 
9945
#ifdef __cplusplus
 
9946
extern "C"
 
9947
#endif
 
9948
/* We use char because int might match the return type of a gcc2
 
9949
   builtin and then its argument prototype would still apply.  */
 
9950
char remove ();
 
9951
#ifdef F77_DUMMY_MAIN
 
9952
#  ifdef __cplusplus
 
9953
     extern "C"
 
9954
#  endif
 
9955
   int F77_DUMMY_MAIN() { return 1; }
 
9956
#endif
 
9957
int
 
9958
main ()
 
9959
{
 
9960
remove ();
 
9961
  ;
 
9962
  return 0;
 
9963
}
 
9964
_ACEOF
 
9965
rm -f conftest.$ac_objext conftest$ac_exeext
 
9966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9967
  (eval $ac_link) 2>&5
 
9968
  ac_status=$?
 
9969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9970
  (exit $ac_status); } &&
 
9971
         { ac_try='test -s conftest$ac_exeext'
 
9972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9973
  (eval $ac_try) 2>&5
 
9974
  ac_status=$?
 
9975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9976
  (exit $ac_status); }; }; then
 
9977
  ac_cv_lib_posix_remove=yes
 
9978
else
 
9979
  echo "$as_me: failed program was:" >&5
 
9980
cat conftest.$ac_ext >&5
 
9981
ac_cv_lib_posix_remove=no
 
9982
fi
 
9983
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9984
LIBS=$ac_check_lib_save_LIBS
 
9985
fi
 
9986
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
9987
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
9988
if test $ac_cv_lib_posix_remove = yes; then
 
9989
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
9990
fi
 
9991
 
 
9992
    fi
 
9993
 
 
9994
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
9995
    echo "$as_me:$LINENO: checking for shmat" >&5
 
9996
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
9997
if test "${ac_cv_func_shmat+set}" = set; then
 
9998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9999
else
 
10000
  cat >conftest.$ac_ext <<_ACEOF
 
10001
#line $LINENO "configure"
 
10002
#include "confdefs.h"
 
10003
/* System header to define __stub macros and hopefully few prototypes,
 
10004
    which can conflict with char shmat (); below.  */
 
10005
#include <assert.h>
 
10006
/* Override any gcc2 internal prototype to avoid an error.  */
 
10007
#ifdef __cplusplus
 
10008
extern "C"
 
10009
#endif
 
10010
/* We use char because int might match the return type of a gcc2
 
10011
   builtin and then its argument prototype would still apply.  */
 
10012
char shmat ();
 
10013
char (*f) ();
 
10014
 
 
10015
#ifdef F77_DUMMY_MAIN
 
10016
#  ifdef __cplusplus
 
10017
     extern "C"
 
10018
#  endif
 
10019
   int F77_DUMMY_MAIN() { return 1; }
 
10020
#endif
 
10021
int
 
10022
main ()
 
10023
{
 
10024
/* The GNU C library defines this for functions which it implements
 
10025
    to always fail with ENOSYS.  Some functions are actually named
 
10026
    something starting with __ and the normal name is an alias.  */
 
10027
#if defined (__stub_shmat) || defined (__stub___shmat)
 
10028
choke me
 
10029
#else
 
10030
f = shmat;
 
10031
#endif
 
10032
 
 
10033
  ;
 
10034
  return 0;
 
10035
}
 
10036
_ACEOF
 
10037
rm -f conftest.$ac_objext conftest$ac_exeext
 
10038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10039
  (eval $ac_link) 2>&5
 
10040
  ac_status=$?
 
10041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10042
  (exit $ac_status); } &&
 
10043
         { ac_try='test -s conftest$ac_exeext'
 
10044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10045
  (eval $ac_try) 2>&5
 
10046
  ac_status=$?
 
10047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10048
  (exit $ac_status); }; }; then
 
10049
  ac_cv_func_shmat=yes
 
10050
else
 
10051
  echo "$as_me: failed program was:" >&5
 
10052
cat conftest.$ac_ext >&5
 
10053
ac_cv_func_shmat=no
 
10054
fi
 
10055
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10056
fi
 
10057
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
10058
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
10059
 
 
10060
    if test $ac_cv_func_shmat = no; then
 
10061
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
10062
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
10063
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
10064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10065
else
 
10066
  ac_check_lib_save_LIBS=$LIBS
 
10067
LIBS="-lipc  $LIBS"
 
10068
cat >conftest.$ac_ext <<_ACEOF
 
10069
#line $LINENO "configure"
 
10070
#include "confdefs.h"
 
10071
 
 
10072
/* Override any gcc2 internal prototype to avoid an error.  */
 
10073
#ifdef __cplusplus
 
10074
extern "C"
 
10075
#endif
 
10076
/* We use char because int might match the return type of a gcc2
 
10077
   builtin and then its argument prototype would still apply.  */
 
10078
char shmat ();
 
10079
#ifdef F77_DUMMY_MAIN
 
10080
#  ifdef __cplusplus
 
10081
     extern "C"
 
10082
#  endif
 
10083
   int F77_DUMMY_MAIN() { return 1; }
 
10084
#endif
 
10085
int
 
10086
main ()
 
10087
{
 
10088
shmat ();
 
10089
  ;
 
10090
  return 0;
 
10091
}
 
10092
_ACEOF
 
10093
rm -f conftest.$ac_objext conftest$ac_exeext
 
10094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10095
  (eval $ac_link) 2>&5
 
10096
  ac_status=$?
 
10097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10098
  (exit $ac_status); } &&
 
10099
         { ac_try='test -s conftest$ac_exeext'
 
10100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10101
  (eval $ac_try) 2>&5
 
10102
  ac_status=$?
 
10103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10104
  (exit $ac_status); }; }; then
 
10105
  ac_cv_lib_ipc_shmat=yes
 
10106
else
 
10107
  echo "$as_me: failed program was:" >&5
 
10108
cat conftest.$ac_ext >&5
 
10109
ac_cv_lib_ipc_shmat=no
 
10110
fi
 
10111
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10112
LIBS=$ac_check_lib_save_LIBS
 
10113
fi
 
10114
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
10115
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
10116
if test $ac_cv_lib_ipc_shmat = yes; then
 
10117
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
10118
fi
 
10119
 
 
10120
    fi
 
10121
  fi
 
10122
 
 
10123
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
10124
  ac_save_LDFLAGS=$LDFLAGS
 
10125
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
10126
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
10127
  # check for ICE first), but we must link in the order -lSM -lICE or
 
10128
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
10129
  # These have to be linked with before -lX11, unlike the other
 
10130
  # libraries we check for below, so use a different variable.
 
10131
  # John Interrante, Karl Berry
 
10132
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
10133
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
10134
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
10135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10136
else
 
10137
  ac_check_lib_save_LIBS=$LIBS
 
10138
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
10139
cat >conftest.$ac_ext <<_ACEOF
 
10140
#line $LINENO "configure"
 
10141
#include "confdefs.h"
 
10142
 
 
10143
/* Override any gcc2 internal prototype to avoid an error.  */
 
10144
#ifdef __cplusplus
 
10145
extern "C"
 
10146
#endif
 
10147
/* We use char because int might match the return type of a gcc2
 
10148
   builtin and then its argument prototype would still apply.  */
 
10149
char IceConnectionNumber ();
 
10150
#ifdef F77_DUMMY_MAIN
 
10151
#  ifdef __cplusplus
 
10152
     extern "C"
 
10153
#  endif
 
10154
   int F77_DUMMY_MAIN() { return 1; }
 
10155
#endif
 
10156
int
 
10157
main ()
 
10158
{
 
10159
IceConnectionNumber ();
 
10160
  ;
 
10161
  return 0;
 
10162
}
 
10163
_ACEOF
 
10164
rm -f conftest.$ac_objext conftest$ac_exeext
 
10165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10166
  (eval $ac_link) 2>&5
 
10167
  ac_status=$?
 
10168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10169
  (exit $ac_status); } &&
 
10170
         { ac_try='test -s conftest$ac_exeext'
 
10171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10172
  (eval $ac_try) 2>&5
 
10173
  ac_status=$?
 
10174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10175
  (exit $ac_status); }; }; then
 
10176
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
10177
else
 
10178
  echo "$as_me: failed program was:" >&5
 
10179
cat conftest.$ac_ext >&5
 
10180
ac_cv_lib_ICE_IceConnectionNumber=no
 
10181
fi
 
10182
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10183
LIBS=$ac_check_lib_save_LIBS
 
10184
fi
 
10185
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
10186
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
10187
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
10188
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
10189
fi
 
10190
 
 
10191
  LDFLAGS=$ac_save_LDFLAGS
 
10192
 
 
10193
fi
 
10194
 
 
10195
 
 
10196
# $with_inventor is from within SIM_AC_HAVE_INVENTOR_IFELSE, and can
 
10197
# be used here since the value is empty when it reaches this point
 
10198
# unless it has been explicitly set.
 
10199
 
 
10200
# Check whether --enable-inventor-debug or --disable-inventor-debug was given.
 
10201
if test "${enable_inventor_debug+set}" = set; then
 
10202
  enableval="$enable_inventor_debug"
 
10203
 
 
10204
fi;
 
10205
 
 
10206
if test x"${with_inventor+set}" = x"set" &&
 
10207
   test x"${with_inventor}" != x"no"; then
 
10208
 
 
10209
  # For Open Inventor linkage, we need to check for a shitload of libraries.
 
10210
 
 
10211
 
 
10212
 
 
10213
# Check whether --with-dl or --without-dl was given.
 
10214
if test "${with_dl+set}" = set; then
 
10215
  withval="$with_dl"
 
10216
 
 
10217
else
 
10218
  with_dl=yes
 
10219
fi;
 
10220
 
 
10221
if test x"$with_dl" != xno; then
 
10222
  if test x"$with_dl" != xyes; then
 
10223
    sim_ac_dl_cppflags="-I${with_dl}/include"
 
10224
    sim_ac_dl_ldflags="-L${with_dl}/lib"
 
10225
  fi
 
10226
 
 
10227
  sim_ac_save_cppflags=$CPPFLAGS
 
10228
  sim_ac_save_ldflags=$LDFLAGS
 
10229
  sim_ac_save_libs=$LIBS
 
10230
 
 
10231
  CPPFLAGS="$CPPFLAGS $sim_ac_dl_cppflags"
 
10232
  LDFLAGS="$LDFLAGS $sim_ac_dl_ldflags"
 
10233
 
 
10234
  # Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the
 
10235
  # HAVE_DLFCN_H symbol set up in config.h automatically.
 
10236
 
 
10237
for ac_header in dlfcn.h
 
10238
do
 
10239
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10241
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10245
fi
 
10246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10248
else
 
10249
  # Is the header compilable?
 
10250
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10251
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10252
cat >conftest.$ac_ext <<_ACEOF
 
10253
#line $LINENO "configure"
 
10254
#include "confdefs.h"
 
10255
$ac_includes_default
 
10256
#include <$ac_header>
 
10257
_ACEOF
 
10258
rm -f conftest.$ac_objext
 
10259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10260
  (eval $ac_compile) 2>&5
 
10261
  ac_status=$?
 
10262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10263
  (exit $ac_status); } &&
 
10264
         { ac_try='test -s conftest.$ac_objext'
 
10265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10266
  (eval $ac_try) 2>&5
 
10267
  ac_status=$?
 
10268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10269
  (exit $ac_status); }; }; then
 
10270
  ac_header_compiler=yes
 
10271
else
 
10272
  echo "$as_me: failed program was:" >&5
 
10273
cat conftest.$ac_ext >&5
 
10274
ac_header_compiler=no
 
10275
fi
 
10276
rm -f conftest.$ac_objext conftest.$ac_ext
 
10277
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10278
echo "${ECHO_T}$ac_header_compiler" >&6
 
10279
 
 
10280
# Is the header present?
 
10281
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10282
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10283
cat >conftest.$ac_ext <<_ACEOF
 
10284
#line $LINENO "configure"
 
10285
#include "confdefs.h"
 
10286
#include <$ac_header>
 
10287
_ACEOF
 
10288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10289
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10290
  ac_status=$?
 
10291
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10292
  rm -f conftest.er1
 
10293
  cat conftest.err >&5
 
10294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10295
  (exit $ac_status); } >/dev/null; then
 
10296
  if test -s conftest.err; then
 
10297
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
10298
  else
 
10299
    ac_cpp_err=
 
10300
  fi
 
10301
else
 
10302
  ac_cpp_err=yes
 
10303
fi
 
10304
if test -z "$ac_cpp_err"; then
 
10305
  ac_header_preproc=yes
 
10306
else
 
10307
  echo "$as_me: failed program was:" >&5
 
10308
  cat conftest.$ac_ext >&5
 
10309
  ac_header_preproc=no
 
10310
fi
 
10311
rm -f conftest.err conftest.$ac_ext
 
10312
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10313
echo "${ECHO_T}$ac_header_preproc" >&6
 
10314
 
 
10315
# So?  What about this header?
 
10316
case $ac_header_compiler:$ac_header_preproc in
 
10317
  yes:no )
 
10318
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10319
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10320
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10321
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
10322
  no:yes )
 
10323
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10324
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10325
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
10326
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
10327
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10328
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
10329
esac
 
10330
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10331
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10332
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10334
else
 
10335
  eval "$as_ac_Header=$ac_header_preproc"
 
10336
fi
 
10337
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10338
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10339
 
 
10340
fi
 
10341
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10342
  cat >>confdefs.h <<_ACEOF
 
10343
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10344
_ACEOF
 
10345
 
 
10346
fi
 
10347
 
 
10348
done
 
10349
 
 
10350
 
 
10351
  sim_ac_dl_avail=false
 
10352
 
 
10353
  echo "$as_me:$LINENO: checking for the dl library" >&5
 
10354
echo $ECHO_N "checking for the dl library... $ECHO_C" >&6
 
10355
  # At least under FreeBSD, dlopen() et al is part of the C library.
 
10356
  for sim_ac_dl_libcheck in "" "-ldl"; do
 
10357
    if ! $sim_ac_dl_avail; then
 
10358
      LIBS="$sim_ac_dl_libcheck $sim_ac_save_libs"
 
10359
      cat >conftest.$ac_ext <<_ACEOF
 
10360
#line $LINENO "configure"
 
10361
#include "confdefs.h"
 
10362
 
 
10363
#if HAVE_DLFCN_H
 
10364
#include <dlfcn.h>
 
10365
#endif /* HAVE_DLFCN_H */
 
10366
 
 
10367
#ifdef F77_DUMMY_MAIN
 
10368
#  ifdef __cplusplus
 
10369
     extern "C"
 
10370
#  endif
 
10371
   int F77_DUMMY_MAIN() { return 1; }
 
10372
#endif
 
10373
int
 
10374
main ()
 
10375
{
 
10376
(void)dlopen(0L, 0); (void)dlsym(0L, "Gunners!"); (void)dlclose(0L);
 
10377
  ;
 
10378
  return 0;
 
10379
}
 
10380
_ACEOF
 
10381
rm -f conftest.$ac_objext conftest$ac_exeext
 
10382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10383
  (eval $ac_link) 2>&5
 
10384
  ac_status=$?
 
10385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10386
  (exit $ac_status); } &&
 
10387
         { ac_try='test -s conftest$ac_exeext'
 
10388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10389
  (eval $ac_try) 2>&5
 
10390
  ac_status=$?
 
10391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10392
  (exit $ac_status); }; }; then
 
10393
  sim_ac_dl_avail=true
 
10394
                   sim_ac_dl_libs="$sim_ac_dl_libcheck"
 
10395
 
 
10396
else
 
10397
  echo "$as_me: failed program was:" >&5
 
10398
cat conftest.$ac_ext >&5
 
10399
fi
 
10400
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10401
    fi
 
10402
  done
 
10403
 
 
10404
  if $sim_ac_dl_avail; then
 
10405
    if test x"$sim_ac_dl_libs" = x""; then
 
10406
      echo "$as_me:$LINENO: result: yes" >&5
 
10407
echo "${ECHO_T}yes" >&6
 
10408
    else
 
10409
      echo "$as_me:$LINENO: result: $sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&5
 
10410
echo "${ECHO_T}$sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&6
 
10411
    fi
 
10412
  else
 
10413
    echo "$as_me:$LINENO: result: not available" >&5
 
10414
echo "${ECHO_T}not available" >&6
 
10415
  fi
 
10416
 
 
10417
  if $sim_ac_dl_avail; then
 
10418
 
 
10419
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_dl_cppflags"
 
10420
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_dl_ldflags"
 
10421
    SOGUI_EXTRA_LIBS="$sim_ac_dl_libs $SOGUI_EXTRA_LIBS"
 
10422
 
 
10423
  else
 
10424
    CPPFLAGS=$sim_ac_save_cppflags
 
10425
    LDFLAGS=$sim_ac_save_ldflags
 
10426
    LIBS=$sim_ac_save_libs
 
10427
    :
 
10428
  fi
 
10429
fi
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
sim_ac_x11_avail=no
 
10436
 
 
10437
if test x"$no_x" != xyes; then
 
10438
  #  *** DEBUG ***
 
10439
  #  Keep this around, as it can be handy when testing on new systems.
 
10440
  # echo "X_CFLAGS: $X_CFLAGS"
 
10441
  # echo "X_PRE_LIBS: $X_PRE_LIBS"
 
10442
  # echo "X_LIBS: $X_LIBS"
 
10443
  # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
 
10444
  # echo
 
10445
  # exit 0
 
10446
 
 
10447
  sim_ac_x11_cppflags="$X_CFLAGS"
 
10448
  sim_ac_x11_ldflags="$X_LIBS"
 
10449
  sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
 
10450
 
 
10451
  sim_ac_save_cppflags=$CPPFLAGS
 
10452
  sim_ac_save_ldflags=$LDFLAGS
 
10453
  sim_ac_save_libs=$LIBS
 
10454
 
 
10455
  CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
 
10456
  LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
 
10457
  LIBS="$sim_ac_x11_libs $LIBS"
 
10458
 
 
10459
  echo "$as_me:$LINENO: checking whether we can link against X11" >&5
 
10460
echo $ECHO_N "checking whether we can link against X11... $ECHO_C" >&6
 
10461
if test "${sim_cv_lib_x11_avail+set}" = set; then
 
10462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10463
else
 
10464
  cat >conftest.$ac_ext <<_ACEOF
 
10465
#line $LINENO "configure"
 
10466
#include "confdefs.h"
 
10467
#include <X11/Xlib.h>
 
10468
#ifdef F77_DUMMY_MAIN
 
10469
#  ifdef __cplusplus
 
10470
     extern "C"
 
10471
#  endif
 
10472
   int F77_DUMMY_MAIN() { return 1; }
 
10473
#endif
 
10474
int
 
10475
main ()
 
10476
{
 
10477
(void)XOpenDisplay(0L);
 
10478
  ;
 
10479
  return 0;
 
10480
}
 
10481
_ACEOF
 
10482
rm -f conftest.$ac_objext conftest$ac_exeext
 
10483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10484
  (eval $ac_link) 2>&5
 
10485
  ac_status=$?
 
10486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10487
  (exit $ac_status); } &&
 
10488
         { ac_try='test -s conftest$ac_exeext'
 
10489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10490
  (eval $ac_try) 2>&5
 
10491
  ac_status=$?
 
10492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10493
  (exit $ac_status); }; }; then
 
10494
  sim_cv_lib_x11_avail=yes
 
10495
else
 
10496
  echo "$as_me: failed program was:" >&5
 
10497
cat conftest.$ac_ext >&5
 
10498
sim_cv_lib_x11_avail=no
 
10499
fi
 
10500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10501
fi
 
10502
echo "$as_me:$LINENO: result: $sim_cv_lib_x11_avail" >&5
 
10503
echo "${ECHO_T}$sim_cv_lib_x11_avail" >&6
 
10504
 
 
10505
  if test x"$sim_cv_lib_x11_avail" = x"yes"; then
 
10506
    sim_ac_x11_avail=yes
 
10507
 
 
10508
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
 
10509
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
 
10510
    SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS"
 
10511
 
 
10512
  else
 
10513
    CPPFLAGS=$sim_ac_save_cppflags
 
10514
    LDFLAGS=$sim_ac_save_ldflags
 
10515
    LIBS=$sim_ac_save_libs
 
10516
 
 
10517
  fi
 
10518
fi
 
10519
 
 
10520
 
 
10521
  if test x"$sim_ac_x11_avail" = xyes; then
 
10522
 
 
10523
 
 
10524
sim_ac_x11shmem_avail=no
 
10525
sim_ac_x11shmem_libs="-lXext"
 
10526
sim_ac_save_libs=$LIBS
 
10527
LIBS="$sim_ac_x11shmem_libs $LIBS"
 
10528
 
 
10529
echo "$as_me:$LINENO: checking whether the X11 shared memory extension is available" >&5
 
10530
echo $ECHO_N "checking whether the X11 shared memory extension is available... $ECHO_C" >&6
 
10531
if test "${sim_cv_lib_x11shmem_avail+set}" = set; then
 
10532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10533
else
 
10534
  cat >conftest.$ac_ext <<_ACEOF
 
10535
#line $LINENO "configure"
 
10536
#include "confdefs.h"
 
10537
#include <X11/Xlib.h>
 
10538
               #include <X11/extensions/XShm.h>
 
10539
#ifdef F77_DUMMY_MAIN
 
10540
#  ifdef __cplusplus
 
10541
     extern "C"
 
10542
#  endif
 
10543
   int F77_DUMMY_MAIN() { return 1; }
 
10544
#endif
 
10545
int
 
10546
main ()
 
10547
{
 
10548
(void)XShmQueryVersion(0L, 0L, 0L, 0L);
 
10549
  ;
 
10550
  return 0;
 
10551
}
 
10552
_ACEOF
 
10553
rm -f conftest.$ac_objext conftest$ac_exeext
 
10554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10555
  (eval $ac_link) 2>&5
 
10556
  ac_status=$?
 
10557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10558
  (exit $ac_status); } &&
 
10559
         { ac_try='test -s conftest$ac_exeext'
 
10560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10561
  (eval $ac_try) 2>&5
 
10562
  ac_status=$?
 
10563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10564
  (exit $ac_status); }; }; then
 
10565
  sim_cv_lib_x11shmem_avail=yes
 
10566
else
 
10567
  echo "$as_me: failed program was:" >&5
 
10568
cat conftest.$ac_ext >&5
 
10569
sim_cv_lib_x11shmem_avail=no
 
10570
fi
 
10571
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10572
fi
 
10573
echo "$as_me:$LINENO: result: $sim_cv_lib_x11shmem_avail" >&5
 
10574
echo "${ECHO_T}$sim_cv_lib_x11shmem_avail" >&6
 
10575
 
 
10576
if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
 
10577
  sim_ac_x11shmem_avail=yes
 
10578
  SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS"
 
10579
else
 
10580
  LIBS=$sim_ac_save_libs
 
10581
 
 
10582
fi
 
10583
 
 
10584
 
 
10585
 
 
10586
sim_ac_x11mu_avail=no
 
10587
sim_ac_x11mu_libs="-lXmu"
 
10588
sim_ac_save_libs=$LIBS
 
10589
LIBS="$sim_ac_x11mu_libs $LIBS"
 
10590
 
 
10591
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
 
10592
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
 
10593
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
 
10594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10595
else
 
10596
  cat >conftest.$ac_ext <<_ACEOF
 
10597
#line $LINENO "configure"
 
10598
#include "confdefs.h"
 
10599
#include <X11/Xlib.h>
 
10600
                #include <X11/Xmu/Xmu.h>
 
10601
                #include <X11/Xmu/StdCmap.h>
 
10602
#ifdef F77_DUMMY_MAIN
 
10603
#  ifdef __cplusplus
 
10604
     extern "C"
 
10605
#  endif
 
10606
   int F77_DUMMY_MAIN() { return 1; }
 
10607
#endif
 
10608
int
 
10609
main ()
 
10610
{
 
10611
(void)XmuAllStandardColormaps(0L);
 
10612
  ;
 
10613
  return 0;
 
10614
}
 
10615
_ACEOF
 
10616
rm -f conftest.$ac_objext conftest$ac_exeext
 
10617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10618
  (eval $ac_link) 2>&5
 
10619
  ac_status=$?
 
10620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10621
  (exit $ac_status); } &&
 
10622
         { ac_try='test -s conftest$ac_exeext'
 
10623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10624
  (eval $ac_try) 2>&5
 
10625
  ac_status=$?
 
10626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10627
  (exit $ac_status); }; }; then
 
10628
  sim_cv_lib_x11mu_avail=yes
 
10629
else
 
10630
  echo "$as_me: failed program was:" >&5
 
10631
cat conftest.$ac_ext >&5
 
10632
sim_cv_lib_x11mu_avail=no
 
10633
fi
 
10634
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10635
fi
 
10636
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
 
10637
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
 
10638
 
 
10639
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
 
10640
  sim_ac_x11mu_avail=yes
 
10641
  SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
 
10642
else
 
10643
  LIBS=$sim_ac_save_libs
 
10644
 
 
10645
fi
 
10646
 
 
10647
 
 
10648
 
 
10649
sim_ac_x11xid_avail=no
 
10650
sim_ac_x11xid_libs="-lXi"
 
10651
sim_ac_save_libs=$LIBS
 
10652
LIBS="$sim_ac_x11xid_libs $LIBS"
 
10653
 
 
10654
echo "$as_me:$LINENO: checking whether the X11 extension device library is available" >&5
 
10655
echo $ECHO_N "checking whether the X11 extension device library is available... $ECHO_C" >&6
 
10656
if test "${sim_cv_lib_x11xid_avail+set}" = set; then
 
10657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10658
else
 
10659
  cat >conftest.$ac_ext <<_ACEOF
 
10660
#line $LINENO "configure"
 
10661
#include "confdefs.h"
 
10662
#include <X11/extensions/XInput.h>
 
10663
#ifdef F77_DUMMY_MAIN
 
10664
#  ifdef __cplusplus
 
10665
     extern "C"
 
10666
#  endif
 
10667
   int F77_DUMMY_MAIN() { return 1; }
 
10668
#endif
 
10669
int
 
10670
main ()
 
10671
{
 
10672
(void)XOpenDevice(0L, 0);
 
10673
  ;
 
10674
  return 0;
 
10675
}
 
10676
_ACEOF
 
10677
rm -f conftest.$ac_objext conftest$ac_exeext
 
10678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10679
  (eval $ac_link) 2>&5
 
10680
  ac_status=$?
 
10681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10682
  (exit $ac_status); } &&
 
10683
         { ac_try='test -s conftest$ac_exeext'
 
10684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10685
  (eval $ac_try) 2>&5
 
10686
  ac_status=$?
 
10687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10688
  (exit $ac_status); }; }; then
 
10689
  sim_cv_lib_x11xid_avail=yes
 
10690
else
 
10691
  echo "$as_me: failed program was:" >&5
 
10692
cat conftest.$ac_ext >&5
 
10693
sim_cv_lib_x11xid_avail=no
 
10694
fi
 
10695
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10696
fi
 
10697
echo "$as_me:$LINENO: result: $sim_cv_lib_x11xid_avail" >&5
 
10698
echo "${ECHO_T}$sim_cv_lib_x11xid_avail" >&6
 
10699
 
 
10700
if test x"$sim_cv_lib_x11xid_avail" = xyes; then
 
10701
  sim_ac_x11xid_avail=yes
 
10702
  SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS"
 
10703
else
 
10704
  LIBS=$sim_ac_save_libs
 
10705
 
 
10706
fi
 
10707
 
 
10708
  fi
 
10709
 
 
10710
 
 
10711
 
 
10712
sim_ac_ogl_cppflags=
 
10713
sim_ac_ogl_ldflags=
 
10714
sim_ac_ogl_libs=
 
10715
 
 
10716
 
 
10717
# Check whether --with-mesa or --without-mesa was given.
 
10718
if test "${with_mesa+set}" = set; then
 
10719
  withval="$with_mesa"
 
10720
 
 
10721
else
 
10722
  with_mesa=yes
 
10723
fi;
 
10724
 
 
10725
 
 
10726
sim_ac_ogl_glnames="-lGL -lopengl32"
 
10727
sim_ac_ogl_mesaglnames=-lMesaGL
 
10728
 
 
10729
if test "x$with_mesa" = "xyes"; then
 
10730
  sim_ac_ogl_first=$sim_ac_ogl_mesaglnames
 
10731
  sim_ac_ogl_second=$sim_ac_ogl_glnames
 
10732
else
 
10733
  sim_ac_ogl_first=$sim_ac_ogl_glnames
 
10734
  sim_ac_ogl_second=$sim_ac_ogl_mesaglnames
 
10735
fi
 
10736
 
 
10737
 
 
10738
# Check whether --with-opengl or --without-opengl was given.
 
10739
if test "${with_opengl+set}" = set; then
 
10740
  withval="$with_opengl"
 
10741
 
 
10742
else
 
10743
  with_opengl=yes
 
10744
fi;
 
10745
 
 
10746
if test x"$with_opengl" != xno; then
 
10747
 
 
10748
  if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
 
10749
    sim_ac_ogl_ldflags=-L$with_opengl/lib
 
10750
    # $sim_ac_ogl_cppflags is set up in the SIM_AC_CHECK_HEADER_GL
 
10751
    # invocation further below.
 
10752
  else
 
10753
    # On HP-UX platforms, OpenGL headers and libraries are usually installed
 
10754
    # at this location.
 
10755
    sim_ac_gl_hpux=/opt/graphics/OpenGL
 
10756
    if test -d $sim_ac_gl_hpux; then
 
10757
      sim_ac_ogl_ldflags=-L$sim_ac_gl_hpux/lib
 
10758
    fi
 
10759
  fi
 
10760
 
 
10761
  sim_ac_use_framework_option=false;
 
10762
  case $host_os in
 
10763
  darwin*)
 
10764
    if test x"$GCC" = x"yes"; then
 
10765
 
 
10766
 
 
10767
 
 
10768
ac_ext=c
 
10769
ac_cpp='$CPP $CPPFLAGS'
 
10770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10773
 
 
10774
echo "$as_me:$LINENO: checking whether $CC accepts -framework OpenGL" >&5
 
10775
echo $ECHO_N "checking whether $CC accepts -framework OpenGL... $ECHO_C" >&6
 
10776
 
 
10777
sim_ac_save_cppflags=$CPPFLAGS
 
10778
CPPFLAGS="$CPPFLAGS -framework OpenGL"
 
10779
cat >conftest.$ac_ext <<_ACEOF
 
10780
#line $LINENO "configure"
 
10781
#include "confdefs.h"
 
10782
 
 
10783
#ifdef F77_DUMMY_MAIN
 
10784
#  ifdef __cplusplus
 
10785
     extern "C"
 
10786
#  endif
 
10787
   int F77_DUMMY_MAIN() { return 1; }
 
10788
#endif
 
10789
int
 
10790
main ()
 
10791
{
 
10792
 
 
10793
  ;
 
10794
  return 0;
 
10795
}
 
10796
_ACEOF
 
10797
rm -f conftest.$ac_objext
 
10798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10799
  (eval $ac_compile) 2>&5
 
10800
  ac_status=$?
 
10801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10802
  (exit $ac_status); } &&
 
10803
         { ac_try='test -s conftest.$ac_objext'
 
10804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10805
  (eval $ac_try) 2>&5
 
10806
  ac_status=$?
 
10807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10808
  (exit $ac_status); }; }; then
 
10809
  sim_ac_accept_result=yes
 
10810
else
 
10811
  echo "$as_me: failed program was:" >&5
 
10812
cat conftest.$ac_ext >&5
 
10813
sim_ac_accept_result=no
 
10814
fi
 
10815
rm -f conftest.$ac_objext conftest.$ac_ext
 
10816
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
10817
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
10818
CPPFLAGS=$sim_ac_save_cppflags
 
10819
# This need to go last, in case CPPFLAGS is modified in sim_ac_use_framework_option=true or .
 
10820
if test $sim_ac_accept_result = yes; then
 
10821
  sim_ac_use_framework_option=true
 
10822
else
 
10823
  :
 
10824
fi
 
10825
 
 
10826
ac_ext=cc
 
10827
ac_cpp='$CXXCPP $CPPFLAGS'
 
10828
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10829
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10830
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10831
 
 
10832
 
 
10833
    fi
 
10834
    ;;
 
10835
  esac
 
10836
 
 
10837
  if $sim_ac_use_framework_option; then
 
10838
    # hopefully, this is the default behavior and not needed. 20011005 larsa
 
10839
    # sim_ac_ogl_cppflags="-F/System/Library/Frameworks/OpenGL.framework/"
 
10840
    sim_ac_ogl_ldflags="-Wl,-framework,OpenGL"
 
10841
  fi
 
10842
 
 
10843
  sim_ac_save_cppflags=$CPPFLAGS
 
10844
  sim_ac_save_ldflags=$LDFLAGS
 
10845
  sim_ac_save_libs=$LIBS
 
10846
 
 
10847
  CPPFLAGS="$CPPFLAGS $sim_ac_ogl_cppflags"
 
10848
  LDFLAGS="$LDFLAGS $sim_ac_ogl_ldflags"
 
10849
 
 
10850
  sim_ac_gl_header_avail=false
 
10851
echo "$as_me:$LINENO: checking how to include gl.h" >&5
 
10852
echo $ECHO_N "checking how to include gl.h... $ECHO_C" >&6
 
10853
if test x"$with_opengl" != x"no"; then
 
10854
  sim_ac_gl_save_CPPFLAGS=$CPPFLAGS
 
10855
  sim_ac_gl_cppflags=
 
10856
 
 
10857
  if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
 
10858
    sim_ac_gl_cppflags="-I${with_opengl}/include"
 
10859
  else
 
10860
    # On HP-UX platforms, OpenGL headers and libraries are usually installed
 
10861
    # at this location.
 
10862
    sim_ac_gl_hpux=/opt/graphics/OpenGL
 
10863
    if test -d $sim_ac_gl_hpux; then
 
10864
      sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include
 
10865
    fi
 
10866
  fi
 
10867
 
 
10868
  CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 
10869
 
 
10870
 
 
10871
cat >conftest.$ac_ext <<_ACEOF
 
10872
#line $LINENO "configure"
 
10873
#include "confdefs.h"
 
10874
#include <GL/gl.h>
 
10875
_ACEOF
 
10876
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10877
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10878
  ac_status=$?
 
10879
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10880
  rm -f conftest.er1
 
10881
  cat conftest.err >&5
 
10882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10883
  (exit $ac_status); } >/dev/null; then
 
10884
  if test -s conftest.err; then
 
10885
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
10886
  else
 
10887
    ac_cpp_err=
 
10888
  fi
 
10889
else
 
10890
  ac_cpp_err=yes
 
10891
fi
 
10892
if test -z "$ac_cpp_err"; then
 
10893
  ac_cv_header_GL_gl_h=yes
 
10894
else
 
10895
  echo "$as_me: failed program was:" >&5
 
10896
  cat conftest.$ac_ext >&5
 
10897
  ac_cv_header_GL_gl_h=no
 
10898
fi
 
10899
rm -f conftest.err conftest.$ac_ext
 
10900
if test $ac_cv_header_GL_gl_h = yes; then
 
10901
 
 
10902
    sim_ac_gl_header_avail=true
 
10903
    sim_ac_gl_header=GL/gl.h
 
10904
 
 
10905
cat >>confdefs.h <<\_ACEOF
 
10906
#define HAVE_GL_GL_H 1
 
10907
_ACEOF
 
10908
 
 
10909
 
 
10910
else
 
10911
 
 
10912
 
 
10913
cat >conftest.$ac_ext <<_ACEOF
 
10914
#line $LINENO "configure"
 
10915
#include "confdefs.h"
 
10916
#include <OpenGL/gl.h>
 
10917
_ACEOF
 
10918
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10919
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10920
  ac_status=$?
 
10921
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10922
  rm -f conftest.er1
 
10923
  cat conftest.err >&5
 
10924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10925
  (exit $ac_status); } >/dev/null; then
 
10926
  if test -s conftest.err; then
 
10927
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
10928
  else
 
10929
    ac_cpp_err=
 
10930
  fi
 
10931
else
 
10932
  ac_cpp_err=yes
 
10933
fi
 
10934
if test -z "$ac_cpp_err"; then
 
10935
  ac_cv_header_OpenGL_gl_h=yes
 
10936
else
 
10937
  echo "$as_me: failed program was:" >&5
 
10938
  cat conftest.$ac_ext >&5
 
10939
  ac_cv_header_OpenGL_gl_h=no
 
10940
fi
 
10941
rm -f conftest.err conftest.$ac_ext
 
10942
if test $ac_cv_header_OpenGL_gl_h = yes; then
 
10943
 
 
10944
      sim_ac_gl_header_avail=true
 
10945
      sim_ac_gl_header=OpenGL/gl.h
 
10946
 
 
10947
cat >>confdefs.h <<\_ACEOF
 
10948
#define HAVE_OPENGL_GL_H 1
 
10949
_ACEOF
 
10950
 
 
10951
 
 
10952
fi
 
10953
 
 
10954
 
 
10955
 
 
10956
 
 
10957
fi
 
10958
 
 
10959
 
 
10960
 
 
10961
 
 
10962
  CPPFLAGS="$sim_ac_gl_save_CPPFLAGS"
 
10963
  if $sim_ac_gl_header_avail; then
 
10964
    if test x"$sim_ac_gl_cppflags" = x""; then
 
10965
      echo "$as_me:$LINENO: result: #include <$sim_ac_gl_header>" >&5
 
10966
echo "${ECHO_T}#include <$sim_ac_gl_header>" >&6
 
10967
    else
 
10968
      echo "$as_me:$LINENO: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5
 
10969
echo "${ECHO_T}$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6
 
10970
    fi
 
10971
    CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 
10972
  else
 
10973
    echo "$as_me:$LINENO: result: not found" >&5
 
10974
echo "${ECHO_T}not found" >&6
 
10975
    { echo "$as_me:$LINENO: WARNING: could not find gl.h" >&5
 
10976
echo "$as_me: WARNING: could not find gl.h" >&2;}
 
10977
  fi
 
10978
else
 
10979
  echo "$as_me:$LINENO: result: disabled" >&5
 
10980
echo "${ECHO_T}disabled" >&6
 
10981
  { echo "$as_me:$LINENO: WARNING: could not find gl.h" >&5
 
10982
echo "$as_me: WARNING: could not find gl.h" >&2;}
 
10983
fi
 
10984
 
 
10985
 
 
10986
  sim_ac_glchk_hit=false
 
10987
  for sim_ac_tmp_outerloop in barebones withpthreads; do
 
10988
    if ! $sim_ac_glchk_hit; then
 
10989
 
 
10990
      sim_ac_oglchk_pthreadslib=""
 
10991
      if test "$sim_ac_tmp_outerloop" = "withpthreads"; then
 
10992
        { echo "$as_me:$LINENO: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&5
 
10993
echo "$as_me: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&2;}
 
10994
        LIBS="$sim_ac_save_libs"
 
10995
 
 
10996
 
 
10997
 
 
10998
# Check whether --with-pthread or --without-pthread was given.
 
10999
if test "${with_pthread+set}" = set; then
 
11000
  withval="$with_pthread"
 
11001
 
 
11002
else
 
11003
  with_pthread=yes
 
11004
fi;
 
11005
 
 
11006
sim_ac_pthread_avail=no
 
11007
 
 
11008
if test x"$with_pthread" != xno; then
 
11009
  if test x"$with_pthread" != xyes; then
 
11010
    sim_ac_pthread_cppflags="-I${with_pthread}/include"
 
11011
    sim_ac_pthread_ldflags="-L${with_pthread}/lib"
 
11012
  fi
 
11013
 
 
11014
  # FIXME: should investigate and document the exact meaning of
 
11015
  # the _REENTRANT flag. larsa's commit message mentions
 
11016
  # "glibc-doc/FAQ.threads.html".
 
11017
  #
 
11018
  # Preferably, it should only be set up when really needed
 
11019
  # (as detected by some other configure check).
 
11020
  #
 
11021
  # 20030306 mortene.
 
11022
  sim_ac_pthread_cppflags="-D_REENTRANT ${sim_ac_pthread_cppflags}"
 
11023
 
 
11024
  sim_ac_save_cppflags=$CPPFLAGS
 
11025
  sim_ac_save_ldflags=$LDFLAGS
 
11026
  sim_ac_save_libs=$LIBS
 
11027
 
 
11028
  CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags"
 
11029
  LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags"
 
11030
 
 
11031
  sim_ac_pthread_avail=false
 
11032
 
 
11033
  echo "$as_me:$LINENO: checking for POSIX threads" >&5
 
11034
echo $ECHO_N "checking for POSIX threads... $ECHO_C" >&6
 
11035
  # At least under FreeBSD, we link to pthreads library with -pthread.
 
11036
  for sim_ac_pthreads_libcheck in "-lpthread" "-pthread"; do
 
11037
    if ! $sim_ac_pthread_avail; then
 
11038
      LIBS="$sim_ac_pthreads_libcheck $sim_ac_save_libs"
 
11039
      cat >conftest.$ac_ext <<_ACEOF
 
11040
#line $LINENO "configure"
 
11041
#include "confdefs.h"
 
11042
#include <pthread.h>
 
11043
#ifdef F77_DUMMY_MAIN
 
11044
#  ifdef __cplusplus
 
11045
     extern "C"
 
11046
#  endif
 
11047
   int F77_DUMMY_MAIN() { return 1; }
 
11048
#endif
 
11049
int
 
11050
main ()
 
11051
{
 
11052
(void)pthread_create(0L, 0L, 0L, 0L);
 
11053
  ;
 
11054
  return 0;
 
11055
}
 
11056
_ACEOF
 
11057
rm -f conftest.$ac_objext conftest$ac_exeext
 
11058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11059
  (eval $ac_link) 2>&5
 
11060
  ac_status=$?
 
11061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11062
  (exit $ac_status); } &&
 
11063
         { ac_try='test -s conftest$ac_exeext'
 
11064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11065
  (eval $ac_try) 2>&5
 
11066
  ac_status=$?
 
11067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11068
  (exit $ac_status); }; }; then
 
11069
  sim_ac_pthread_avail=true
 
11070
                   sim_ac_pthread_libs="$sim_ac_pthreads_libcheck"
 
11071
 
 
11072
else
 
11073
  echo "$as_me: failed program was:" >&5
 
11074
cat conftest.$ac_ext >&5
 
11075
fi
 
11076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11077
    fi
 
11078
  done
 
11079
 
 
11080
  if $sim_ac_pthread_avail; then
 
11081
    echo "$as_me:$LINENO: result: $sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&5
 
11082
echo "${ECHO_T}$sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&6
 
11083
  else
 
11084
    echo "$as_me:$LINENO: result: not available" >&5
 
11085
echo "${ECHO_T}not available" >&6
 
11086
  fi
 
11087
 
 
11088
  if $sim_ac_pthread_avail; then
 
11089
    echo "$as_me:$LINENO: checking the struct timespec resolution" >&5
 
11090
echo $ECHO_N "checking the struct timespec resolution... $ECHO_C" >&6
 
11091
if test "${sim_cv_lib_pthread_timespec_resolution+set}" = set; then
 
11092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11093
else
 
11094
  cat >conftest.$ac_ext <<_ACEOF
 
11095
#line $LINENO "configure"
 
11096
#include "confdefs.h"
 
11097
#include <pthread.h>
 
11098
#ifdef F77_DUMMY_MAIN
 
11099
#  ifdef __cplusplus
 
11100
     extern "C"
 
11101
#  endif
 
11102
   int F77_DUMMY_MAIN() { return 1; }
 
11103
#endif
 
11104
int
 
11105
main ()
 
11106
{
 
11107
struct timespec timeout;
 
11108
                       timeout.tv_nsec = 0;
 
11109
  ;
 
11110
  return 0;
 
11111
}
 
11112
_ACEOF
 
11113
rm -f conftest.$ac_objext
 
11114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11115
  (eval $ac_compile) 2>&5
 
11116
  ac_status=$?
 
11117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11118
  (exit $ac_status); } &&
 
11119
         { ac_try='test -s conftest.$ac_objext'
 
11120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11121
  (eval $ac_try) 2>&5
 
11122
  ac_status=$?
 
11123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11124
  (exit $ac_status); }; }; then
 
11125
  sim_cv_lib_pthread_timespec_resolution=nsecs
 
11126
else
 
11127
  echo "$as_me: failed program was:" >&5
 
11128
cat conftest.$ac_ext >&5
 
11129
sim_cv_lib_pthread_timespec_resolution=usecs
 
11130
fi
 
11131
rm -f conftest.$ac_objext conftest.$ac_ext
 
11132
fi
 
11133
echo "$as_me:$LINENO: result: $sim_cv_lib_pthread_timespec_resolution" >&5
 
11134
echo "${ECHO_T}$sim_cv_lib_pthread_timespec_resolution" >&6
 
11135
    if test x"$sim_cv_lib_pthread_timespec_resolution" = x"nsecs"; then
 
11136
 
 
11137
cat >>confdefs.h <<\_ACEOF
 
11138
#define HAVE_PTHREAD_TIMESPEC_NSEC 1
 
11139
_ACEOF
 
11140
 
 
11141
    fi
 
11142
  fi
 
11143
 
 
11144
  if $sim_ac_pthread_avail; then
 
11145
 
 
11146
          sim_ac_ogl_cppflags="$sim_ac_ogl_cppflags $sim_ac_pthread_cppflags"
 
11147
          sim_ac_ogl_ldflags="$sim_ac_ogl_ldflags $sim_ac_pthread_ldflags"
 
11148
          sim_ac_oglchk_pthreadslib="$sim_ac_pthread_libs"
 
11149
 
 
11150
  else
 
11151
    CPPFLAGS=$sim_ac_save_cppflags
 
11152
    LDFLAGS=$sim_ac_save_ldflags
 
11153
    LIBS=$sim_ac_save_libs
 
11154
    { echo "$as_me:$LINENO: WARNING: couldn't compile or link with pthread library" >&5
 
11155
echo "$as_me: WARNING: couldn't compile or link with pthread library" >&2;}
 
11156
 
 
11157
  fi
 
11158
fi
 
11159
 
 
11160
      fi
 
11161
 
 
11162
      echo "$as_me:$LINENO: checking for OpenGL library dev-kit" >&5
 
11163
echo $ECHO_N "checking for OpenGL library dev-kit... $ECHO_C" >&6
 
11164
      # Mac OS X uses nada (only LDFLAGS), which is why "" was set first
 
11165
      for sim_ac_ogl_libcheck in "" $sim_ac_ogl_first $sim_ac_ogl_second; do
 
11166
        if ! $sim_ac_glchk_hit; then
 
11167
          LIBS="$sim_ac_ogl_libcheck $sim_ac_oglchk_pthreadslib $sim_ac_save_libs"
 
11168
          cat >conftest.$ac_ext <<_ACEOF
 
11169
#line $LINENO "configure"
 
11170
#include "confdefs.h"
 
11171
#ifdef HAVE_WINDOWS_H
 
11172
             #include <windows.h>
 
11173
             #endif
 
11174
             #ifdef HAVE_GL_GL_H
 
11175
             #include <GL/gl.h>
 
11176
             #endif
 
11177
             #ifdef HAVE_OPENGL_GL_H
 
11178
             /* Mac OS X */
 
11179
             #include <OpenGL/gl.h>
 
11180
             #endif
 
11181
 
 
11182
#ifdef F77_DUMMY_MAIN
 
11183
#  ifdef __cplusplus
 
11184
     extern "C"
 
11185
#  endif
 
11186
   int F77_DUMMY_MAIN() { return 1; }
 
11187
#endif
 
11188
int
 
11189
main ()
 
11190
{
 
11191
glPointSize(1.0f);
 
11192
  ;
 
11193
  return 0;
 
11194
}
 
11195
_ACEOF
 
11196
rm -f conftest.$ac_objext conftest$ac_exeext
 
11197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11198
  (eval $ac_link) 2>&5
 
11199
  ac_status=$?
 
11200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11201
  (exit $ac_status); } &&
 
11202
         { ac_try='test -s conftest$ac_exeext'
 
11203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11204
  (eval $ac_try) 2>&5
 
11205
  ac_status=$?
 
11206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11207
  (exit $ac_status); }; }; then
 
11208
 
 
11209
             sim_ac_glchk_hit=true
 
11210
             sim_ac_ogl_libs="$sim_ac_ogl_libcheck $sim_ac_oglchk_pthreadslib"
 
11211
 
 
11212
 
 
11213
else
 
11214
  echo "$as_me: failed program was:" >&5
 
11215
cat conftest.$ac_ext >&5
 
11216
fi
 
11217
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11218
        fi
 
11219
      done
 
11220
      if $sim_ac_glchk_hit; then
 
11221
        echo "$as_me:$LINENO: result: $sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&5
 
11222
echo "${ECHO_T}$sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&6
 
11223
      else
 
11224
        echo "$as_me:$LINENO: result: unresolved" >&5
 
11225
echo "${ECHO_T}unresolved" >&6
 
11226
      fi
 
11227
    fi
 
11228
  done
 
11229
 
 
11230
  if $sim_ac_glchk_hit; then
 
11231
    LIBS="$sim_ac_ogl_libs $sim_ac_save_libs"
 
11232
 
 
11233
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_ogl_cppflags"
 
11234
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_ogl_ldflags"
 
11235
    SOGUI_EXTRA_LIBS="$sim_ac_ogl_libs $SOGUI_EXTRA_LIBS"
 
11236
 
 
11237
  else
 
11238
    CPPFLAGS="$sim_ac_save_cppflags"
 
11239
    LDFLAGS="$sim_ac_save_ldflags"
 
11240
    LIBS="$sim_ac_save_libs"
 
11241
    { { echo "$as_me:$LINENO: error: needs an OpenGL-compatible development system installation" >&5
 
11242
echo "$as_me: error: needs an OpenGL-compatible development system installation" >&2;}
 
11243
   { (exit 1); exit 1; }; }
 
11244
  fi
 
11245
fi
 
11246
 
 
11247
 
 
11248
 
 
11249
sim_ac_glu_save_CPPFLAGS=$CPPFLAGS
 
11250
sim_ac_glu_header_avail=false
 
11251
echo "$as_me:$LINENO: checking how to include glu.h" >&5
 
11252
echo $ECHO_N "checking how to include glu.h... $ECHO_C" >&6
 
11253
if test x"$with_opengl" != x"no"; then
 
11254
  sim_ac_glu_save_CPPFLAGS=$CPPFLAGS
 
11255
  sim_ac_glu_cppflags=
 
11256
 
 
11257
  if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
 
11258
    sim_ac_glu_cppflags="-I${with_opengl}/include"
 
11259
  else
 
11260
    # On HP-UX platforms, OpenGL headers and libraries are usually installed
 
11261
    # at this location.
 
11262
    sim_ac_gl_hpux=/opt/graphics/OpenGL
 
11263
    if test -d $sim_ac_gl_hpux; then
 
11264
      sim_ac_glu_cppflags=-I$sim_ac_gl_hpux/include
 
11265
    fi
 
11266
  fi
 
11267
 
 
11268
  CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags"
 
11269
 
 
11270
 
 
11271
cat >conftest.$ac_ext <<_ACEOF
 
11272
#line $LINENO "configure"
 
11273
#include "confdefs.h"
 
11274
#include <GL/glu.h>
 
11275
_ACEOF
 
11276
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11277
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11278
  ac_status=$?
 
11279
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11280
  rm -f conftest.er1
 
11281
  cat conftest.err >&5
 
11282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11283
  (exit $ac_status); } >/dev/null; then
 
11284
  if test -s conftest.err; then
 
11285
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
11286
  else
 
11287
    ac_cpp_err=
 
11288
  fi
 
11289
else
 
11290
  ac_cpp_err=yes
 
11291
fi
 
11292
if test -z "$ac_cpp_err"; then
 
11293
  ac_cv_header_GL_glu_h=yes
 
11294
else
 
11295
  echo "$as_me: failed program was:" >&5
 
11296
  cat conftest.$ac_ext >&5
 
11297
  ac_cv_header_GL_glu_h=no
 
11298
fi
 
11299
rm -f conftest.err conftest.$ac_ext
 
11300
if test $ac_cv_header_GL_glu_h = yes; then
 
11301
 
 
11302
    sim_ac_glu_header_avail=true
 
11303
    sim_ac_glu_header=GL/glu.h
 
11304
 
 
11305
cat >>confdefs.h <<\_ACEOF
 
11306
#define HAVE_GL_GLU_H 1
 
11307
_ACEOF
 
11308
 
 
11309
 
 
11310
else
 
11311
 
 
11312
 
 
11313
cat >conftest.$ac_ext <<_ACEOF
 
11314
#line $LINENO "configure"
 
11315
#include "confdefs.h"
 
11316
#include <OpenGL/glu.h>
 
11317
_ACEOF
 
11318
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11319
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11320
  ac_status=$?
 
11321
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11322
  rm -f conftest.er1
 
11323
  cat conftest.err >&5
 
11324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11325
  (exit $ac_status); } >/dev/null; then
 
11326
  if test -s conftest.err; then
 
11327
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
11328
  else
 
11329
    ac_cpp_err=
 
11330
  fi
 
11331
else
 
11332
  ac_cpp_err=yes
 
11333
fi
 
11334
if test -z "$ac_cpp_err"; then
 
11335
  ac_cv_header_OpenGL_glu_h=yes
 
11336
else
 
11337
  echo "$as_me: failed program was:" >&5
 
11338
  cat conftest.$ac_ext >&5
 
11339
  ac_cv_header_OpenGL_glu_h=no
 
11340
fi
 
11341
rm -f conftest.err conftest.$ac_ext
 
11342
if test $ac_cv_header_OpenGL_glu_h = yes; then
 
11343
 
 
11344
      sim_ac_glu_header_avail=true
 
11345
      sim_ac_glu_header=OpenGL/glu.h
 
11346
 
 
11347
cat >>confdefs.h <<\_ACEOF
 
11348
#define HAVE_OPENGL_GLU_H 1
 
11349
_ACEOF
 
11350
 
 
11351
 
 
11352
fi
 
11353
 
 
11354
 
 
11355
 
 
11356
 
 
11357
fi
 
11358
 
 
11359
 
 
11360
 
 
11361
 
 
11362
  CPPFLAGS="$sim_ac_glu_save_CPPFLAGS"
 
11363
  if $sim_ac_glu_header_avail; then
 
11364
    if test x"$sim_ac_glu_cppflags" = x""; then
 
11365
      echo "$as_me:$LINENO: result: #include <$sim_ac_glu_header>" >&5
 
11366
echo "${ECHO_T}#include <$sim_ac_glu_header>" >&6
 
11367
    else
 
11368
      echo "$as_me:$LINENO: result: $sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&5
 
11369
echo "${ECHO_T}$sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&6
 
11370
    fi
 
11371
 
 
11372
  else
 
11373
    echo "$as_me:$LINENO: result: not found" >&5
 
11374
echo "${ECHO_T}not found" >&6
 
11375
    { echo "$as_me:$LINENO: WARNING: could not find glu.h" >&5
 
11376
echo "$as_me: WARNING: could not find glu.h" >&2;}
 
11377
  fi
 
11378
else
 
11379
  echo "$as_me:$LINENO: result: disabled" >&5
 
11380
echo "${ECHO_T}disabled" >&6
 
11381
  { echo "$as_me:$LINENO: WARNING: could not find glu.h" >&5
 
11382
echo "$as_me: WARNING: could not find glu.h" >&2;}
 
11383
fi
 
11384
 
 
11385
if test x"$sim_ac_gl_cppflags" != x"$sim_ac_glu_cppflags"; then
 
11386
  CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags $sim_ac_glu_cppflags"
 
11387
fi
 
11388
sim_ac_glu_avail=no
 
11389
 
 
11390
# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows.
 
11391
sim_ac_glu_names="-lGLU -lglu32"
 
11392
sim_ac_glu_mesanames=-lMesaGLU
 
11393
 
 
11394
# with_mesa is set from the SIM_AC_CHECK_OPENGL macro.
 
11395
if test "x$with_mesa" = "xyes"; then
 
11396
  sim_ac_glu_first=$sim_ac_glu_mesanames
 
11397
  sim_ac_glu_second=$sim_ac_glu_names
 
11398
else
 
11399
  sim_ac_glu_first=$sim_ac_glu_names
 
11400
  sim_ac_glu_second=$sim_ac_glu_mesanames
 
11401
fi
 
11402
 
 
11403
 
 
11404
# Check whether --with-glu or --without-glu was given.
 
11405
if test "${with_glu+set}" = set; then
 
11406
  withval="$with_glu"
 
11407
 
 
11408
else
 
11409
  with_glu=yes
 
11410
fi;
 
11411
 
 
11412
if test x"$with_glu" != xno; then
 
11413
  if test x"$with_glu" != xyes; then
 
11414
    # sim_ac_glu_cppflags="-I${with_glu}/include"
 
11415
    sim_ac_glu_ldflags="-L${with_glu}/lib"
 
11416
  fi
 
11417
 
 
11418
  sim_ac_save_cppflags=$CPPFLAGS
 
11419
  sim_ac_save_ldflags=$LDFLAGS
 
11420
  sim_ac_save_libs=$LIBS
 
11421
 
 
11422
  CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags"
 
11423
  LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags"
 
11424
 
 
11425
  echo "$as_me:$LINENO: checking whether GLU is available" >&5
 
11426
echo $ECHO_N "checking whether GLU is available... $ECHO_C" >&6
 
11427
if test "${sim_cv_lib_glu+set}" = set; then
 
11428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11429
else
 
11430
  sim_cv_lib_glu=UNRESOLVED
 
11431
 
 
11432
    # Some platforms (like BeOS) have the GLU functionality in the GL
 
11433
    # library (and no GLU library present).
 
11434
    for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do
 
11435
      if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then
 
11436
        LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs"
 
11437
        cat >conftest.$ac_ext <<_ACEOF
 
11438
#line $LINENO "configure"
 
11439
#include "confdefs.h"
 
11440
 
 
11441
#ifdef HAVE_WINDOWS_H
 
11442
#include <windows.h>
 
11443
#endif /* HAVE_WINDOWS_H */
 
11444
#ifdef HAVE_GL_GL_H
 
11445
#include <GL/gl.h>
 
11446
#else
 
11447
#ifdef HAVE_OPENGL_GL_H
 
11448
#include <OpenGL/gl.h>
 
11449
#endif
 
11450
#endif
 
11451
#ifdef HAVE_GL_GLU_H
 
11452
#include <GL/glu.h>
 
11453
#else
 
11454
#ifdef HAVE_OPENGL_GLU_H
 
11455
#include <OpenGL/glu.h>
 
11456
#endif
 
11457
#endif
 
11458
 
 
11459
#ifdef F77_DUMMY_MAIN
 
11460
#  ifdef __cplusplus
 
11461
     extern "C"
 
11462
#  endif
 
11463
   int F77_DUMMY_MAIN() { return 1; }
 
11464
#endif
 
11465
int
 
11466
main ()
 
11467
{
 
11468
 
 
11469
gluSphere(0L, 1.0, 1, 1);
 
11470
/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless
 
11471
   there is at least one "pure" OpenGL call along with GLU calls. */
 
11472
glEnd();
 
11473
 
 
11474
  ;
 
11475
  return 0;
 
11476
}
 
11477
_ACEOF
 
11478
rm -f conftest.$ac_objext conftest$ac_exeext
 
11479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11480
  (eval $ac_link) 2>&5
 
11481
  ac_status=$?
 
11482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11483
  (exit $ac_status); } &&
 
11484
         { ac_try='test -s conftest$ac_exeext'
 
11485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11486
  (eval $ac_try) 2>&5
 
11487
  ac_status=$?
 
11488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11489
  (exit $ac_status); }; }; then
 
11490
  sim_cv_lib_glu="$sim_ac_glu_libcheck"
 
11491
else
 
11492
  echo "$as_me: failed program was:" >&5
 
11493
cat conftest.$ac_ext >&5
 
11494
fi
 
11495
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11496
      fi
 
11497
    done
 
11498
    if test x"$sim_cv_lib_glu" = x"" &&
 
11499
       test x`echo $LDFLAGS | grep -c -- "-Wl,-framework,OpenGL"` = x1; then
 
11500
      # just for the visual representation on Mac OS X
 
11501
      sim_cv_lib_glu="-Wl,-framework,OpenGL"
 
11502
    fi
 
11503
 
 
11504
fi
 
11505
echo "$as_me:$LINENO: result: $sim_cv_lib_glu" >&5
 
11506
echo "${ECHO_T}$sim_cv_lib_glu" >&6
 
11507
 
 
11508
  LIBS="$sim_ac_save_libs"
 
11509
 
 
11510
  CPPFLAGS=$sim_ac_glu_save_CPPFLAGS
 
11511
  if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then
 
11512
    if test x"$sim_cv_lib_glu" = x"-Wl,-framework,OpenGL"; then
 
11513
      sim_ac_glu_libs=""
 
11514
    else
 
11515
      sim_ac_glu_libs="$sim_cv_lib_glu"
 
11516
    fi
 
11517
    LIBS="$sim_ac_glu_libs $sim_ac_save_libs"
 
11518
    sim_ac_glu_avail=yes
 
11519
 
 
11520
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_glu_cppflags"
 
11521
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_glu_ldflags"
 
11522
    SOGUI_EXTRA_LIBS="$sim_ac_glu_libs $SOGUI_EXTRA_LIBS"
 
11523
 
 
11524
  else
 
11525
    CPPFLAGS=$sim_ac_save_cppflags
 
11526
    LDFLAGS=$sim_ac_save_ldflags
 
11527
    LIBS=$sim_ac_save_libs
 
11528
    { { echo "$as_me:$LINENO: error: needs the OpenGL utility library" >&5
 
11529
echo "$as_me: error: needs the OpenGL utility library" >&2;}
 
11530
   { (exit 1); exit 1; }; }
 
11531
  fi
 
11532
fi
 
11533
 
 
11534
 
 
11535
 
 
11536
: ${sim_ac_want_inventor=false}
 
11537
 
 
11538
# Check whether --with-inventor or --without-inventor was given.
 
11539
if test "${with_inventor+set}" = set; then
 
11540
  withval="$with_inventor"
 
11541
  case "$withval" in
 
11542
  no)  sim_ac_want_inventor=false ;;
 
11543
  yes) sim_ac_want_inventor=true
 
11544
       test -n "$OIVHOME" &&
 
11545
 
 
11546
eval "sim_ac_inventor_path=\"`echo "$OIVHOME" | sed -e 's%\\\\%\\/%g'`\""
 
11547
 ;;
 
11548
  *)   sim_ac_want_inventor=true; sim_ac_inventor_path="$withval" ;;
 
11549
  esac
 
11550
fi;
 
11551
 
 
11552
 
 
11553
 
 
11554
 
 
11555
if $sim_ac_want_inventor; then
 
11556
  sim_ac_save_CPPFLAGS="$CPPFLAGS"
 
11557
  sim_ac_save_LDFLAGS="$LDFLAGS"
 
11558
  sim_ac_save_LIBS="$LIBS"
 
11559
 
 
11560
 
 
11561
 
 
11562
 
 
11563
if $sim_ac_want_inventor; then
 
11564
  sim_ac_inventor_image_save_CPPFLAGS="$CPPFLAGS"
 
11565
  sim_ac_inventor_image_save_LDFLAGS="$LDFLAGS"
 
11566
  sim_ac_inventor_image_save_LIBS="$LIBS"
 
11567
 
 
11568
  if test s${sim_ac_inventor_path+et} = set; then
 
11569
    sim_ac_inventor_image_cppflags="-I${sim_ac_inventor_path}/include"
 
11570
    sim_ac_inventor_image_ldflags="-L${sim_ac_inventor_path}/lib"
 
11571
  fi
 
11572
  sim_ac_inventor_image_libs="-limage"
 
11573
 
 
11574
  echo "$as_me:$LINENO: checking if linking with libimage is possible" >&5
 
11575
echo $ECHO_N "checking if linking with libimage is possible... $ECHO_C" >&6
 
11576
if test "${sim_cv_have_inventor_image+set}" = set; then
 
11577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11578
else
 
11579
 
 
11580
    CPPFLAGS="$sim_ac_inventor_image_cppflags $CPPFLAGS"
 
11581
    LDFLAGS="$sim_ac_inventor_image_ldflags $LDFLAGS"
 
11582
    LIBS="$sim_ac_inventor_image_libs $LIBS"
 
11583
    cat >conftest.$ac_ext <<_ACEOF
 
11584
#line $LINENO "configure"
 
11585
#include "confdefs.h"
 
11586
 
 
11587
#ifdef F77_DUMMY_MAIN
 
11588
#  ifdef __cplusplus
 
11589
     extern "C"
 
11590
#  endif
 
11591
   int F77_DUMMY_MAIN() { return 1; }
 
11592
#endif
 
11593
int
 
11594
main ()
 
11595
{
 
11596
 
 
11597
  ;
 
11598
  return 0;
 
11599
}
 
11600
_ACEOF
 
11601
rm -f conftest.$ac_objext conftest$ac_exeext
 
11602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11603
  (eval $ac_link) 2>&5
 
11604
  ac_status=$?
 
11605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11606
  (exit $ac_status); } &&
 
11607
         { ac_try='test -s conftest$ac_exeext'
 
11608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11609
  (eval $ac_try) 2>&5
 
11610
  ac_status=$?
 
11611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11612
  (exit $ac_status); }; }; then
 
11613
  sim_cv_have_inventor_image=true
 
11614
else
 
11615
  echo "$as_me: failed program was:" >&5
 
11616
cat conftest.$ac_ext >&5
 
11617
sim_cv_have_inventor_image=false
 
11618
fi
 
11619
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11620
    CPPFLAGS="$sim_ac_inventor_image_save_CPPFLAGS"
 
11621
    LDFLAGS="$sim_ac_inventor_image_save_LDFLAGS"
 
11622
    LIBS="$sim_ac_inventor_image_save_LIBS"
 
11623
 
 
11624
fi
 
11625
echo "$as_me:$LINENO: result: $sim_cv_have_inventor_image" >&5
 
11626
echo "${ECHO_T}$sim_cv_have_inventor_image" >&6
 
11627
 
 
11628
  if $sim_cv_have_inventor_image; then
 
11629
 
 
11630
    sim_ac_inventor_cppflags="$sim_ac_inventor_image_cppflags"
 
11631
    sim_ac_inventor_ldflags="$sim_ac_inventor_image_ldflags"
 
11632
 
 
11633
  else
 
11634
 
 
11635
    if test s${sim_ac_inventor_path+et} = set; then
 
11636
      sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include"
 
11637
      sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib"
 
11638
    fi
 
11639
    sim_ac_inventor_image_libs=
 
11640
 
 
11641
  fi
 
11642
else
 
11643
 
 
11644
    if test s${sim_ac_inventor_path+et} = set; then
 
11645
      sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include"
 
11646
      sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib"
 
11647
    fi
 
11648
    sim_ac_inventor_image_libs=
 
11649
 
 
11650
fi
 
11651
 
 
11652
 
 
11653
  # Let's at least test for "libInventor".
 
11654
  sim_ac_inventor_chk_libs="-lInventor"
 
11655
  sim_ac_inventor_libs=UNRESOLVED
 
11656
 
 
11657
  CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS"
 
11658
 
 
11659
  if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
 
11660
  echo "$as_me:$LINENO: checking for Inventor/SbBasic.h" >&5
 
11661
echo $ECHO_N "checking for Inventor/SbBasic.h... $ECHO_C" >&6
 
11662
if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
 
11663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11664
fi
 
11665
echo "$as_me:$LINENO: result: $ac_cv_header_Inventor_SbBasic_h" >&5
 
11666
echo "${ECHO_T}$ac_cv_header_Inventor_SbBasic_h" >&6
 
11667
else
 
11668
  # Is the header compilable?
 
11669
echo "$as_me:$LINENO: checking Inventor/SbBasic.h usability" >&5
 
11670
echo $ECHO_N "checking Inventor/SbBasic.h usability... $ECHO_C" >&6
 
11671
cat >conftest.$ac_ext <<_ACEOF
 
11672
#line $LINENO "configure"
 
11673
#include "confdefs.h"
 
11674
$ac_includes_default
 
11675
#include <Inventor/SbBasic.h>
 
11676
_ACEOF
 
11677
rm -f conftest.$ac_objext
 
11678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11679
  (eval $ac_compile) 2>&5
 
11680
  ac_status=$?
 
11681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11682
  (exit $ac_status); } &&
 
11683
         { ac_try='test -s conftest.$ac_objext'
 
11684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11685
  (eval $ac_try) 2>&5
 
11686
  ac_status=$?
 
11687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11688
  (exit $ac_status); }; }; then
 
11689
  ac_header_compiler=yes
 
11690
else
 
11691
  echo "$as_me: failed program was:" >&5
 
11692
cat conftest.$ac_ext >&5
 
11693
ac_header_compiler=no
 
11694
fi
 
11695
rm -f conftest.$ac_objext conftest.$ac_ext
 
11696
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11697
echo "${ECHO_T}$ac_header_compiler" >&6
 
11698
 
 
11699
# Is the header present?
 
11700
echo "$as_me:$LINENO: checking Inventor/SbBasic.h presence" >&5
 
11701
echo $ECHO_N "checking Inventor/SbBasic.h presence... $ECHO_C" >&6
 
11702
cat >conftest.$ac_ext <<_ACEOF
 
11703
#line $LINENO "configure"
 
11704
#include "confdefs.h"
 
11705
#include <Inventor/SbBasic.h>
 
11706
_ACEOF
 
11707
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11708
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11709
  ac_status=$?
 
11710
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11711
  rm -f conftest.er1
 
11712
  cat conftest.err >&5
 
11713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11714
  (exit $ac_status); } >/dev/null; then
 
11715
  if test -s conftest.err; then
 
11716
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
11717
  else
 
11718
    ac_cpp_err=
 
11719
  fi
 
11720
else
 
11721
  ac_cpp_err=yes
 
11722
fi
 
11723
if test -z "$ac_cpp_err"; then
 
11724
  ac_header_preproc=yes
 
11725
else
 
11726
  echo "$as_me: failed program was:" >&5
 
11727
  cat conftest.$ac_ext >&5
 
11728
  ac_header_preproc=no
 
11729
fi
 
11730
rm -f conftest.err conftest.$ac_ext
 
11731
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11732
echo "${ECHO_T}$ac_header_preproc" >&6
 
11733
 
 
11734
# So?  What about this header?
 
11735
case $ac_header_compiler:$ac_header_preproc in
 
11736
  yes:no )
 
11737
    { echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11738
echo "$as_me: WARNING: Inventor/SbBasic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11739
    { echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&5
 
11740
echo "$as_me: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&2;};;
 
11741
  no:yes )
 
11742
    { echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: present but cannot be compiled" >&5
 
11743
echo "$as_me: WARNING: Inventor/SbBasic.h: present but cannot be compiled" >&2;}
 
11744
    { echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: check for missing prerequisite headers?" >&5
 
11745
echo "$as_me: WARNING: Inventor/SbBasic.h: check for missing prerequisite headers?" >&2;}
 
11746
    { echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&5
 
11747
echo "$as_me: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&2;};;
 
11748
esac
 
11749
echo "$as_me:$LINENO: checking for Inventor/SbBasic.h" >&5
 
11750
echo $ECHO_N "checking for Inventor/SbBasic.h... $ECHO_C" >&6
 
11751
if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
 
11752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11753
else
 
11754
  ac_cv_header_Inventor_SbBasic_h=$ac_header_preproc
 
11755
fi
 
11756
echo "$as_me:$LINENO: result: $ac_cv_header_Inventor_SbBasic_h" >&5
 
11757
echo "${ECHO_T}$ac_cv_header_Inventor_SbBasic_h" >&6
 
11758
 
 
11759
fi
 
11760
if test $ac_cv_header_Inventor_SbBasic_h = yes; then
 
11761
  sim_ac_sbbasic=true
 
11762
else
 
11763
  { echo "$as_me:$LINENO: WARNING: header file Inventor/SbBasic.h not found" >&5
 
11764
echo "$as_me: WARNING: header file Inventor/SbBasic.h not found" >&2;}
 
11765
                   sim_ac_sbbasic=false
 
11766
fi
 
11767
 
 
11768
 
 
11769
 
 
11770
  if $sim_ac_sbbasic; then
 
11771
  echo "$as_me:$LINENO: checking the Open Inventor version" >&5
 
11772
echo $ECHO_N "checking the Open Inventor version... $ECHO_C" >&6
 
11773
  # See if we can get the TGS_VERSION number for including a
 
11774
  # check for inv{ver}.lib.
 
11775
  # TGS did not include TGS_VERSION before 2.6, so this may have to be
 
11776
  # back-ported to SO_VERSION+SO_REVISION usage.  larsa 2001-07-25
 
11777
    cat <<EOF > conftest.c
 
11778
#include <Inventor/SbBasic.h>
 
11779
#ifdef __COIN__
 
11780
#error Testing for original Open Inventor, but found Coin...
 
11781
#endif
 
11782
PeekInventorVersion: TGS_VERSION
 
11783
EOF
 
11784
  if test x"$CPP" = x; then
 
11785
    { { echo "$as_me:$LINENO: error: cpp not detected - aborting.  notify maintainer at coin-support@coin3d.org." >&5
 
11786
echo "$as_me: error: cpp not detected - aborting.  notify maintainer at coin-support@coin3d.org." >&2;}
 
11787
   { (exit 1); exit 1; }; }
 
11788
  fi
 
11789
  echo "$CPP $CPPFLAGS conftest.c" >&5
 
11790
  tgs_version_line=`$CPP $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"`
 
11791
  if test x"$tgs_version_line" = x; then
 
11792
    echo "second try..." >&5
 
11793
    echo "$CPP -DWIN32 $CPPFLAGS conftest.c" >&5
 
11794
    tgs_version_line=`$CPP -DWIN32 $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"`
 
11795
  fi
 
11796
  rm -f conftest.c
 
11797
  tgs_version=`echo $tgs_version_line | cut -c22-24`
 
11798
  tgs_suffix=
 
11799
  if test x"${enable_inventor_debug+set}" = xset &&
 
11800
     test x"${enable_inventor_debug}" = xyes; then
 
11801
    tgs_suffix=d
 
11802
  fi
 
11803
  if test x"$tgs_version" != xTGS; then
 
11804
    sim_ac_inventor_chk_libs="$sim_ac_inventor_chk_libs -linv$tgs_version$tgs_suffix"
 
11805
    tgs_version_string=`echo $tgs_version | sed 's/\(.\)\(.\)\(.\)/\1.\2.\3/g'`
 
11806
    echo "$as_me:$LINENO: result: TGS Open Inventor v$tgs_version_string" >&5
 
11807
echo "${ECHO_T}TGS Open Inventor v$tgs_version_string" >&6
 
11808
  else
 
11809
    echo "$as_me:$LINENO: result: probably SGI or older TGS Open Inventor" >&5
 
11810
echo "${ECHO_T}probably SGI or older TGS Open Inventor" >&6
 
11811
  fi
 
11812
 
 
11813
  echo "$as_me:$LINENO: checking for Open Inventor library" >&5
 
11814
echo $ECHO_N "checking for Open Inventor library... $ECHO_C" >&6
 
11815
 
 
11816
  for sim_ac_iv_cppflags_loop in "" "-DWIN32"; do
 
11817
    # Trying with no libraries first, as TGS Inventor uses pragmas in
 
11818
    # a header file to notify MSVC of what to link with.
 
11819
    for sim_ac_iv_libcheck in "" $sim_ac_inventor_chk_libs; do
 
11820
      if test "x$sim_ac_inventor_libs" = "xUNRESOLVED"; then
 
11821
        CPPFLAGS="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags $sim_ac_save_CPPFLAGS"
 
11822
        LDFLAGS="$sim_ac_inventor_ldflags $sim_ac_save_LDFLAGS"
 
11823
        LIBS="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs $sim_ac_save_LIBS"
 
11824
        cat >conftest.$ac_ext <<_ACEOF
 
11825
#line $LINENO "configure"
 
11826
#include "confdefs.h"
 
11827
#include <Inventor/SoDB.h>
 
11828
#ifdef F77_DUMMY_MAIN
 
11829
#  ifdef __cplusplus
 
11830
     extern "C"
 
11831
#  endif
 
11832
   int F77_DUMMY_MAIN() { return 1; }
 
11833
#endif
 
11834
int
 
11835
main ()
 
11836
{
 
11837
SoDB::init();
 
11838
  ;
 
11839
  return 0;
 
11840
}
 
11841
_ACEOF
 
11842
rm -f conftest.$ac_objext conftest$ac_exeext
 
11843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11844
  (eval $ac_link) 2>&5
 
11845
  ac_status=$?
 
11846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11847
  (exit $ac_status); } &&
 
11848
         { ac_try='test -s conftest$ac_exeext'
 
11849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11850
  (eval $ac_try) 2>&5
 
11851
  ac_status=$?
 
11852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11853
  (exit $ac_status); }; }; then
 
11854
  sim_ac_inventor_libs="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs"
 
11855
                     sim_ac_inventor_cppflags="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags"
 
11856
else
 
11857
  echo "$as_me: failed program was:" >&5
 
11858
cat conftest.$ac_ext >&5
 
11859
fi
 
11860
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11861
      fi
 
11862
    done
 
11863
  done
 
11864
 
 
11865
  if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then
 
11866
    echo "$as_me:$LINENO: result: $sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&5
 
11867
echo "${ECHO_T}$sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&6
 
11868
  else
 
11869
    echo "$as_me:$LINENO: result: unavailable" >&5
 
11870
echo "${ECHO_T}unavailable" >&6
 
11871
  fi
 
11872
 
 
11873
  fi # sim_ac_sbbasic = TRUE
 
11874
 
 
11875
  CPPFLAGS="$sim_ac_save_CPPFLAGS"
 
11876
  LDFLAGS="$sim_ac_save_LDFLAGS"
 
11877
  LIBS="$sim_ac_save_LIBS"
 
11878
 
 
11879
  if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then
 
11880
    :
 
11881
    CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS"
 
11882
     LDFLAGS="$sim_ac_inventor_ldflags $LDFLAGS"
 
11883
     LIBS="$sim_ac_inventor_libs $LIBS"
 
11884
     SOGUI_EXTRA_CPPFLAGS="$sim_ac_inventor_cppflags $SOGUI_EXTRA_CPPFLAGS"
 
11885
     SOGUI_EXTRA_LDFLAGS="$sim_ac_inventor_ldflags $SOGUI_EXTRA_LDFLAGS"
 
11886
     SOGUI_EXTRA_LIBS="$sim_ac_inventor_libs $SOGUI_EXTRA_LIBS"
 
11887
  else
 
11888
    :
 
11889
    { { echo "$as_me:$LINENO: error: couldn't compile and link against Open Inventor" >&5
 
11890
echo "$as_me: error: couldn't compile and link against Open Inventor" >&2;}
 
11891
   { (exit 1); exit 1; }; }
 
11892
  fi
 
11893
else
 
11894
  { { echo "$as_me:$LINENO: error: couldn't compile and link against Open Inventor" >&5
 
11895
echo "$as_me: error: couldn't compile and link against Open Inventor" >&2;}
 
11896
   { (exit 1); exit 1; }; }
 
11897
fi
 
11898
 
 
11899
 
 
11900
  if test x${sim_ac_configuration_settings+set} != xset; then
 
11901
  sim_ac_configuration_settings="Open Inventor brand:SGI/TGS Inventor"
 
11902
else
 
11903
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:SGI/TGS Inventor"
 
11904
fi
 
11905
 
 
11906
else
 
11907
 
 
11908
  sim_ac_gl_header_avail=false
 
11909
echo "$as_me:$LINENO: checking how to include gl.h" >&5
 
11910
echo $ECHO_N "checking how to include gl.h... $ECHO_C" >&6
 
11911
if test x"$with_opengl" != x"no"; then
 
11912
  sim_ac_gl_save_CPPFLAGS=$CPPFLAGS
 
11913
  sim_ac_gl_cppflags=
 
11914
 
 
11915
  if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
 
11916
    sim_ac_gl_cppflags="-I${with_opengl}/include"
 
11917
  else
 
11918
    # On HP-UX platforms, OpenGL headers and libraries are usually installed
 
11919
    # at this location.
 
11920
    sim_ac_gl_hpux=/opt/graphics/OpenGL
 
11921
    if test -d $sim_ac_gl_hpux; then
 
11922
      sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include
 
11923
    fi
 
11924
  fi
 
11925
 
 
11926
  CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 
11927
 
 
11928
 
 
11929
cat >conftest.$ac_ext <<_ACEOF
 
11930
#line $LINENO "configure"
 
11931
#include "confdefs.h"
 
11932
#include <GL/gl.h>
 
11933
_ACEOF
 
11934
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11935
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11936
  ac_status=$?
 
11937
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11938
  rm -f conftest.er1
 
11939
  cat conftest.err >&5
 
11940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11941
  (exit $ac_status); } >/dev/null; then
 
11942
  if test -s conftest.err; then
 
11943
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
11944
  else
 
11945
    ac_cpp_err=
 
11946
  fi
 
11947
else
 
11948
  ac_cpp_err=yes
 
11949
fi
 
11950
if test -z "$ac_cpp_err"; then
 
11951
  ac_cv_header_GL_gl_h=yes
 
11952
else
 
11953
  echo "$as_me: failed program was:" >&5
 
11954
  cat conftest.$ac_ext >&5
 
11955
  ac_cv_header_GL_gl_h=no
 
11956
fi
 
11957
rm -f conftest.err conftest.$ac_ext
 
11958
if test $ac_cv_header_GL_gl_h = yes; then
 
11959
 
 
11960
    sim_ac_gl_header_avail=true
 
11961
    sim_ac_gl_header=GL/gl.h
 
11962
 
 
11963
cat >>confdefs.h <<\_ACEOF
 
11964
#define HAVE_GL_GL_H 1
 
11965
_ACEOF
 
11966
 
 
11967
 
 
11968
else
 
11969
 
 
11970
 
 
11971
cat >conftest.$ac_ext <<_ACEOF
 
11972
#line $LINENO "configure"
 
11973
#include "confdefs.h"
 
11974
#include <OpenGL/gl.h>
 
11975
_ACEOF
 
11976
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11977
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11978
  ac_status=$?
 
11979
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11980
  rm -f conftest.er1
 
11981
  cat conftest.err >&5
 
11982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11983
  (exit $ac_status); } >/dev/null; then
 
11984
  if test -s conftest.err; then
 
11985
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
11986
  else
 
11987
    ac_cpp_err=
 
11988
  fi
 
11989
else
 
11990
  ac_cpp_err=yes
 
11991
fi
 
11992
if test -z "$ac_cpp_err"; then
 
11993
  ac_cv_header_OpenGL_gl_h=yes
 
11994
else
 
11995
  echo "$as_me: failed program was:" >&5
 
11996
  cat conftest.$ac_ext >&5
 
11997
  ac_cv_header_OpenGL_gl_h=no
 
11998
fi
 
11999
rm -f conftest.err conftest.$ac_ext
 
12000
if test $ac_cv_header_OpenGL_gl_h = yes; then
 
12001
 
 
12002
      sim_ac_gl_header_avail=true
 
12003
      sim_ac_gl_header=OpenGL/gl.h
 
12004
 
 
12005
cat >>confdefs.h <<\_ACEOF
 
12006
#define HAVE_OPENGL_GL_H 1
 
12007
_ACEOF
 
12008
 
 
12009
 
 
12010
fi
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
fi
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
  CPPFLAGS="$sim_ac_gl_save_CPPFLAGS"
 
12021
  if $sim_ac_gl_header_avail; then
 
12022
    if test x"$sim_ac_gl_cppflags" = x""; then
 
12023
      echo "$as_me:$LINENO: result: #include <$sim_ac_gl_header>" >&5
 
12024
echo "${ECHO_T}#include <$sim_ac_gl_header>" >&6
 
12025
    else
 
12026
      echo "$as_me:$LINENO: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5
 
12027
echo "${ECHO_T}$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6
 
12028
    fi
 
12029
 
 
12030
    CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 
12031
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_gl_cppflags"
 
12032
 
 
12033
  else
 
12034
    echo "$as_me:$LINENO: result: not found" >&5
 
12035
echo "${ECHO_T}not found" >&6
 
12036
    { { echo "$as_me:$LINENO: error: could not detect a gl.h header file" >&5
 
12037
echo "$as_me: error: could not detect a gl.h header file" >&2;}
 
12038
   { (exit 1); exit 1; }; }
 
12039
  fi
 
12040
else
 
12041
  echo "$as_me:$LINENO: result: disabled" >&5
 
12042
echo "${ECHO_T}disabled" >&6
 
12043
  { { echo "$as_me:$LINENO: error: could not detect a gl.h header file" >&5
 
12044
echo "$as_me: error: could not detect a gl.h header file" >&2;}
 
12045
   { (exit 1); exit 1; }; }
 
12046
fi
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
# official variables
 
12053
sim_ac_coin_avail=false
 
12054
sim_ac_coin_cppflags=
 
12055
sim_ac_coin_cflags=
 
12056
sim_ac_coin_cxxflags=
 
12057
sim_ac_coin_ldflags=
 
12058
sim_ac_coin_libs=
 
12059
sim_ac_coin_datadir=
 
12060
sim_ac_coin_includedir=
 
12061
sim_ac_coin_version=
 
12062
 
 
12063
# internal variables
 
12064
: ${sim_ac_coin_desired=true}
 
12065
sim_ac_coin_extrapath=
 
12066
 
 
12067
 
 
12068
# Check whether --with-coin or --without-coin was given.
 
12069
if test "${with_coin+set}" = set; then
 
12070
  withval="$with_coin"
 
12071
   case $withval in
 
12072
    no)  sim_ac_coin_desired=false ;;
 
12073
    yes) sim_ac_coin_desired=true ;;
 
12074
    *)   sim_ac_coin_desired=true
 
12075
         sim_ac_coin_extrapath=$withval ;;
 
12076
    esac
 
12077
fi;
 
12078
 
 
12079
if $sim_ac_coin_desired; then
 
12080
  sim_ac_path=$PATH
 
12081
  test -z "$sim_ac_coin_extrapath" || ## search in --with-coin path
 
12082
    sim_ac_path=$sim_ac_coin_extrapath/bin:$sim_ac_path
 
12083
  test x"$prefix" = xNONE ||          ## search in --prefix path
 
12084
    sim_ac_path=$sim_ac_path:$prefix/bin
 
12085
 
 
12086
  # Extract the first word of "coin-config", so it can be a program name with args.
 
12087
set dummy coin-config; ac_word=$2
 
12088
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12090
if test "${ac_cv_path_sim_ac_coin_configcmd+set}" = set; then
 
12091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12092
else
 
12093
  case $sim_ac_coin_configcmd in
 
12094
  [\\/]* | ?:[\\/]*)
 
12095
  ac_cv_path_sim_ac_coin_configcmd="$sim_ac_coin_configcmd" # Let the user override the test with a path.
 
12096
  ;;
 
12097
  *)
 
12098
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12099
for as_dir in $sim_ac_path
 
12100
do
 
12101
  IFS=$as_save_IFS
 
12102
  test -z "$as_dir" && as_dir=.
 
12103
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12105
    ac_cv_path_sim_ac_coin_configcmd="$as_dir/$ac_word$ac_exec_ext"
 
12106
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12107
    break 2
 
12108
  fi
 
12109
done
 
12110
done
 
12111
 
 
12112
  test -z "$ac_cv_path_sim_ac_coin_configcmd" && ac_cv_path_sim_ac_coin_configcmd="false"
 
12113
  ;;
 
12114
esac
 
12115
fi
 
12116
sim_ac_coin_configcmd=$ac_cv_path_sim_ac_coin_configcmd
 
12117
 
 
12118
if test -n "$sim_ac_coin_configcmd"; then
 
12119
  echo "$as_me:$LINENO: result: $sim_ac_coin_configcmd" >&5
 
12120
echo "${ECHO_T}$sim_ac_coin_configcmd" >&6
 
12121
else
 
12122
  echo "$as_me:$LINENO: result: no" >&5
 
12123
echo "${ECHO_T}no" >&6
 
12124
fi
 
12125
 
 
12126
  if $sim_ac_coin_configcmd; then
 
12127
    test -n "$CONFIG" &&
 
12128
      $sim_ac_coin_configcmd --alternate=$CONFIG >/dev/null 2>/dev/null &&
 
12129
      sim_ac_coin_configcmd="$sim_ac_coin_configcmd --alternate=$CONFIG"
 
12130
    sim_ac_coin_version=`$sim_ac_coin_configcmd --version`
 
12131
    sim_ac_coin_cppflags=`$sim_ac_coin_configcmd --cppflags`
 
12132
    sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null`
 
12133
    sim_ac_coin_cxxflags=`$sim_ac_coin_configcmd --cxxflags`
 
12134
    sim_ac_coin_ldflags=`$sim_ac_coin_configcmd --ldflags`
 
12135
    sim_ac_coin_libs=`$sim_ac_coin_configcmd --libs`
 
12136
    sim_ac_coin_datadir=`$sim_ac_coin_configcmd --datadir`
 
12137
    # Hide stderr on the following, as ``--includedir'', ``--msvcrt''
 
12138
    # and ``--cflags'' options were added late to coin-config.
 
12139
    sim_ac_coin_includedir=`$sim_ac_coin_configcmd --includedir 2>/dev/null`
 
12140
    sim_ac_coin_msvcrt=`$sim_ac_coin_configcmd --msvcrt 2>/dev/null`
 
12141
    sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null`
 
12142
    echo "$as_me:$LINENO: checking whether libCoin is available" >&5
 
12143
echo $ECHO_N "checking whether libCoin is available... $ECHO_C" >&6
 
12144
if test "${sim_cv_coin_avail+set}" = set; then
 
12145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12146
else
 
12147
  sim_ac_save_cppflags=$CPPFLAGS
 
12148
      sim_ac_save_ldflags=$LDFLAGS
 
12149
      sim_ac_save_libs=$LIBS
 
12150
      CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
 
12151
      LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
 
12152
      LIBS="$sim_ac_coin_libs $LIBS"
 
12153
      ac_ext=cc
 
12154
ac_cpp='$CXXCPP $CPPFLAGS'
 
12155
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12156
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12157
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12158
 
 
12159
      cat >conftest.$ac_ext <<_ACEOF
 
12160
#line $LINENO "configure"
 
12161
#include "confdefs.h"
 
12162
#include <Inventor/SoDB.h>
 
12163
#ifdef F77_DUMMY_MAIN
 
12164
#  ifdef __cplusplus
 
12165
     extern "C"
 
12166
#  endif
 
12167
   int F77_DUMMY_MAIN() { return 1; }
 
12168
#endif
 
12169
int
 
12170
main ()
 
12171
{
 
12172
SoDB::init();
 
12173
  ;
 
12174
  return 0;
 
12175
}
 
12176
_ACEOF
 
12177
rm -f conftest.$ac_objext conftest$ac_exeext
 
12178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12179
  (eval $ac_link) 2>&5
 
12180
  ac_status=$?
 
12181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12182
  (exit $ac_status); } &&
 
12183
         { ac_try='test -s conftest$ac_exeext'
 
12184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12185
  (eval $ac_try) 2>&5
 
12186
  ac_status=$?
 
12187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12188
  (exit $ac_status); }; }; then
 
12189
  sim_cv_coin_avail=true
 
12190
else
 
12191
  echo "$as_me: failed program was:" >&5
 
12192
cat conftest.$ac_ext >&5
 
12193
sim_cv_coin_avail=false
 
12194
fi
 
12195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12196
      ac_ext=cc
 
12197
ac_cpp='$CXXCPP $CPPFLAGS'
 
12198
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12199
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12200
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12201
 
 
12202
      CPPFLAGS=$sim_ac_save_cppflags
 
12203
      LDFLAGS=$sim_ac_save_ldflags
 
12204
      LIBS=$sim_ac_save_libs
 
12205
 
 
12206
fi
 
12207
echo "$as_me:$LINENO: result: $sim_cv_coin_avail" >&5
 
12208
echo "${ECHO_T}$sim_cv_coin_avail" >&6
 
12209
    sim_ac_coin_avail=$sim_cv_coin_avail
 
12210
  else
 
12211
    locations=`IFS=:; for p in $sim_ac_path; do echo " -> $p/coin-config"; done`
 
12212
    { echo "$as_me:$LINENO: WARNING: cannot find 'coin-config' at any of these locations:
 
12213
$locations" >&5
 
12214
echo "$as_me: WARNING: cannot find 'coin-config' at any of these locations:
 
12215
$locations" >&2;}
 
12216
  fi
 
12217
fi
 
12218
 
 
12219
if $sim_ac_coin_avail; then
 
12220
 
 
12221
    CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
 
12222
    LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
 
12223
    LIBS="$sim_ac_coin_libs $LIBS"
 
12224
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
 
12225
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
 
12226
    SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS"
 
12227
 
 
12228
else
 
12229
  { { echo "$as_me:$LINENO: error: couldn't compile and link against Coin" >&5
 
12230
echo "$as_me: error: couldn't compile and link against Coin" >&2;}
 
12231
   { (exit 1); exit 1; }; }
 
12232
fi
 
12233
 
 
12234
 
 
12235
  echo "$as_me:$LINENO: checking if X11 linkage is ready" >&5
 
12236
echo $ECHO_N "checking if X11 linkage is ready... $ECHO_C" >&6
 
12237
if test "${sim_cv_x11_ready+set}" = set; then
 
12238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12239
else
 
12240
  cat >conftest.$ac_ext <<_ACEOF
 
12241
#line $LINENO "configure"
 
12242
#include "confdefs.h"
 
12243
#include <X11/Xlib.h>
 
12244
#ifdef F77_DUMMY_MAIN
 
12245
#  ifdef __cplusplus
 
12246
     extern "C"
 
12247
#  endif
 
12248
   int F77_DUMMY_MAIN() { return 1; }
 
12249
#endif
 
12250
int
 
12251
main ()
 
12252
{
 
12253
(void)XOpenDisplay(0L);
 
12254
  ;
 
12255
  return 0;
 
12256
}
 
12257
_ACEOF
 
12258
rm -f conftest.$ac_objext conftest$ac_exeext
 
12259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12260
  (eval $ac_link) 2>&5
 
12261
  ac_status=$?
 
12262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12263
  (exit $ac_status); } &&
 
12264
         { ac_try='test -s conftest$ac_exeext'
 
12265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12266
  (eval $ac_try) 2>&5
 
12267
  ac_status=$?
 
12268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12269
  (exit $ac_status); }; }; then
 
12270
  sim_cv_x11_ready=true
 
12271
else
 
12272
  echo "$as_me: failed program was:" >&5
 
12273
cat conftest.$ac_ext >&5
 
12274
sim_cv_x11_ready=false
 
12275
fi
 
12276
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12277
fi
 
12278
echo "$as_me:$LINENO: result: $sim_cv_x11_ready" >&5
 
12279
echo "${ECHO_T}$sim_cv_x11_ready" >&6
 
12280
if ${sim_cv_x11_ready}; then
 
12281
  sim_ac_x11_ready=true
 
12282
else
 
12283
  sim_ac_x11_ready=false
 
12284
fi
 
12285
 
 
12286
 
 
12287
  if ! $sim_ac_x11_ready; then
 
12288
 
 
12289
 
 
12290
 
 
12291
sim_ac_x11_avail=no
 
12292
 
 
12293
if test x"$no_x" != xyes; then
 
12294
  #  *** DEBUG ***
 
12295
  #  Keep this around, as it can be handy when testing on new systems.
 
12296
  # echo "X_CFLAGS: $X_CFLAGS"
 
12297
  # echo "X_PRE_LIBS: $X_PRE_LIBS"
 
12298
  # echo "X_LIBS: $X_LIBS"
 
12299
  # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
 
12300
  # echo
 
12301
  # exit 0
 
12302
 
 
12303
  sim_ac_x11_cppflags="$X_CFLAGS"
 
12304
  sim_ac_x11_ldflags="$X_LIBS"
 
12305
  sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
 
12306
 
 
12307
  sim_ac_save_cppflags=$CPPFLAGS
 
12308
  sim_ac_save_ldflags=$LDFLAGS
 
12309
  sim_ac_save_libs=$LIBS
 
12310
 
 
12311
  CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
 
12312
  LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
 
12313
  LIBS="$sim_ac_x11_libs $LIBS"
 
12314
 
 
12315
  echo "$as_me:$LINENO: checking whether we can link against X11" >&5
 
12316
echo $ECHO_N "checking whether we can link against X11... $ECHO_C" >&6
 
12317
if test "${sim_cv_lib_x11_avail+set}" = set; then
 
12318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12319
else
 
12320
  cat >conftest.$ac_ext <<_ACEOF
 
12321
#line $LINENO "configure"
 
12322
#include "confdefs.h"
 
12323
#include <X11/Xlib.h>
 
12324
#ifdef F77_DUMMY_MAIN
 
12325
#  ifdef __cplusplus
 
12326
     extern "C"
 
12327
#  endif
 
12328
   int F77_DUMMY_MAIN() { return 1; }
 
12329
#endif
 
12330
int
 
12331
main ()
 
12332
{
 
12333
(void)XOpenDisplay(0L);
 
12334
  ;
 
12335
  return 0;
 
12336
}
 
12337
_ACEOF
 
12338
rm -f conftest.$ac_objext conftest$ac_exeext
 
12339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12340
  (eval $ac_link) 2>&5
 
12341
  ac_status=$?
 
12342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12343
  (exit $ac_status); } &&
 
12344
         { ac_try='test -s conftest$ac_exeext'
 
12345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12346
  (eval $ac_try) 2>&5
 
12347
  ac_status=$?
 
12348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12349
  (exit $ac_status); }; }; then
 
12350
  sim_cv_lib_x11_avail=yes
 
12351
else
 
12352
  echo "$as_me: failed program was:" >&5
 
12353
cat conftest.$ac_ext >&5
 
12354
sim_cv_lib_x11_avail=no
 
12355
fi
 
12356
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12357
fi
 
12358
echo "$as_me:$LINENO: result: $sim_cv_lib_x11_avail" >&5
 
12359
echo "${ECHO_T}$sim_cv_lib_x11_avail" >&6
 
12360
 
 
12361
  if test x"$sim_cv_lib_x11_avail" = x"yes"; then
 
12362
    sim_ac_x11_avail=yes
 
12363
 
 
12364
      CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
 
12365
      LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
 
12366
      LIBS="$sim_ac_x11_libs $LIBS"
 
12367
      SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
 
12368
      SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
 
12369
      SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS"
 
12370
 
 
12371
  else
 
12372
    CPPFLAGS=$sim_ac_save_cppflags
 
12373
    LDFLAGS=$sim_ac_save_ldflags
 
12374
    LIBS=$sim_ac_save_libs
 
12375
 
 
12376
  fi
 
12377
fi
 
12378
 
 
12379
    # FIXME: we just implicitly assume that -lXext and -lXmu is available
 
12380
    # if -lX11 is available from coin-config. Should really have macros
 
12381
    # SIM_AC_CHECK_[X11SHMEM|X11MU]_READY. 20001116 mortene.
 
12382
    if test x"$sim_ac_x11_avail" = xyes; then
 
12383
 
 
12384
 
 
12385
sim_ac_x11shmem_avail=no
 
12386
sim_ac_x11shmem_libs="-lXext"
 
12387
sim_ac_save_libs=$LIBS
 
12388
LIBS="$sim_ac_x11shmem_libs $LIBS"
 
12389
 
 
12390
echo "$as_me:$LINENO: checking whether the X11 shared memory extension is available" >&5
 
12391
echo $ECHO_N "checking whether the X11 shared memory extension is available... $ECHO_C" >&6
 
12392
if test "${sim_cv_lib_x11shmem_avail+set}" = set; then
 
12393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12394
else
 
12395
  cat >conftest.$ac_ext <<_ACEOF
 
12396
#line $LINENO "configure"
 
12397
#include "confdefs.h"
 
12398
#include <X11/Xlib.h>
 
12399
               #include <X11/extensions/XShm.h>
 
12400
#ifdef F77_DUMMY_MAIN
 
12401
#  ifdef __cplusplus
 
12402
     extern "C"
 
12403
#  endif
 
12404
   int F77_DUMMY_MAIN() { return 1; }
 
12405
#endif
 
12406
int
 
12407
main ()
 
12408
{
 
12409
(void)XShmQueryVersion(0L, 0L, 0L, 0L);
 
12410
  ;
 
12411
  return 0;
 
12412
}
 
12413
_ACEOF
 
12414
rm -f conftest.$ac_objext conftest$ac_exeext
 
12415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12416
  (eval $ac_link) 2>&5
 
12417
  ac_status=$?
 
12418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12419
  (exit $ac_status); } &&
 
12420
         { ac_try='test -s conftest$ac_exeext'
 
12421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12422
  (eval $ac_try) 2>&5
 
12423
  ac_status=$?
 
12424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12425
  (exit $ac_status); }; }; then
 
12426
  sim_cv_lib_x11shmem_avail=yes
 
12427
else
 
12428
  echo "$as_me: failed program was:" >&5
 
12429
cat conftest.$ac_ext >&5
 
12430
sim_cv_lib_x11shmem_avail=no
 
12431
fi
 
12432
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12433
fi
 
12434
echo "$as_me:$LINENO: result: $sim_cv_lib_x11shmem_avail" >&5
 
12435
echo "${ECHO_T}$sim_cv_lib_x11shmem_avail" >&6
 
12436
 
 
12437
if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
 
12438
  sim_ac_x11shmem_avail=yes
 
12439
 
 
12440
        # LIBS="$sim_ac_x11shmem_libs $LIBS"
 
12441
        SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS"
 
12442
 
 
12443
else
 
12444
  LIBS=$sim_ac_save_libs
 
12445
 
 
12446
fi
 
12447
 
 
12448
 
 
12449
 
 
12450
sim_ac_x11mu_avail=no
 
12451
sim_ac_x11mu_libs="-lXmu"
 
12452
sim_ac_save_libs=$LIBS
 
12453
LIBS="$sim_ac_x11mu_libs $LIBS"
 
12454
 
 
12455
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
 
12456
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
 
12457
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
 
12458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12459
else
 
12460
  cat >conftest.$ac_ext <<_ACEOF
 
12461
#line $LINENO "configure"
 
12462
#include "confdefs.h"
 
12463
#include <X11/Xlib.h>
 
12464
                #include <X11/Xmu/Xmu.h>
 
12465
                #include <X11/Xmu/StdCmap.h>
 
12466
#ifdef F77_DUMMY_MAIN
 
12467
#  ifdef __cplusplus
 
12468
     extern "C"
 
12469
#  endif
 
12470
   int F77_DUMMY_MAIN() { return 1; }
 
12471
#endif
 
12472
int
 
12473
main ()
 
12474
{
 
12475
(void)XmuAllStandardColormaps(0L);
 
12476
  ;
 
12477
  return 0;
 
12478
}
 
12479
_ACEOF
 
12480
rm -f conftest.$ac_objext conftest$ac_exeext
 
12481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12482
  (eval $ac_link) 2>&5
 
12483
  ac_status=$?
 
12484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12485
  (exit $ac_status); } &&
 
12486
         { ac_try='test -s conftest$ac_exeext'
 
12487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12488
  (eval $ac_try) 2>&5
 
12489
  ac_status=$?
 
12490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12491
  (exit $ac_status); }; }; then
 
12492
  sim_cv_lib_x11mu_avail=yes
 
12493
else
 
12494
  echo "$as_me: failed program was:" >&5
 
12495
cat conftest.$ac_ext >&5
 
12496
sim_cv_lib_x11mu_avail=no
 
12497
fi
 
12498
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12499
fi
 
12500
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
 
12501
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
 
12502
 
 
12503
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
 
12504
  sim_ac_x11mu_avail=yes
 
12505
 
 
12506
        # LIBS="$sim_ac_x11mu_libs $LIBS"
 
12507
        SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
 
12508
 
 
12509
else
 
12510
  LIBS=$sim_ac_save_libs
 
12511
 
 
12512
fi
 
12513
 
 
12514
    fi
 
12515
  fi
 
12516
 
 
12517
 
 
12518
sim_ac_x11xid_avail=no
 
12519
sim_ac_x11xid_libs="-lXi"
 
12520
sim_ac_save_libs=$LIBS
 
12521
LIBS="$sim_ac_x11xid_libs $LIBS"
 
12522
 
 
12523
echo "$as_me:$LINENO: checking whether the X11 extension device library is available" >&5
 
12524
echo $ECHO_N "checking whether the X11 extension device library is available... $ECHO_C" >&6
 
12525
if test "${sim_cv_lib_x11xid_avail+set}" = set; then
 
12526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12527
else
 
12528
  cat >conftest.$ac_ext <<_ACEOF
 
12529
#line $LINENO "configure"
 
12530
#include "confdefs.h"
 
12531
#include <X11/extensions/XInput.h>
 
12532
#ifdef F77_DUMMY_MAIN
 
12533
#  ifdef __cplusplus
 
12534
     extern "C"
 
12535
#  endif
 
12536
   int F77_DUMMY_MAIN() { return 1; }
 
12537
#endif
 
12538
int
 
12539
main ()
 
12540
{
 
12541
(void)XOpenDevice(0L, 0);
 
12542
  ;
 
12543
  return 0;
 
12544
}
 
12545
_ACEOF
 
12546
rm -f conftest.$ac_objext conftest$ac_exeext
 
12547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12548
  (eval $ac_link) 2>&5
 
12549
  ac_status=$?
 
12550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12551
  (exit $ac_status); } &&
 
12552
         { ac_try='test -s conftest$ac_exeext'
 
12553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12554
  (eval $ac_try) 2>&5
 
12555
  ac_status=$?
 
12556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12557
  (exit $ac_status); }; }; then
 
12558
  sim_cv_lib_x11xid_avail=yes
 
12559
else
 
12560
  echo "$as_me: failed program was:" >&5
 
12561
cat conftest.$ac_ext >&5
 
12562
sim_cv_lib_x11xid_avail=no
 
12563
fi
 
12564
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12565
fi
 
12566
echo "$as_me:$LINENO: result: $sim_cv_lib_x11xid_avail" >&5
 
12567
echo "${ECHO_T}$sim_cv_lib_x11xid_avail" >&6
 
12568
 
 
12569
if test x"$sim_cv_lib_x11xid_avail" = xyes; then
 
12570
  sim_ac_x11xid_avail=yes
 
12571
 
 
12572
        SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS"
 
12573
 
 
12574
else
 
12575
  LIBS=$sim_ac_save_libs
 
12576
 
 
12577
fi
 
12578
 
 
12579
  if test x${sim_ac_configuration_settings+set} != xset; then
 
12580
  sim_ac_configuration_settings="Open Inventor brand:Coin"
 
12581
else
 
12582
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:Coin"
 
12583
fi
 
12584
 
 
12585
fi
 
12586
 
 
12587
 
 
12588
echo "$as_me:$LINENO: checking whether GLX is on the system" >&5
 
12589
echo $ECHO_N "checking whether GLX is on the system... $ECHO_C" >&6
 
12590
if test "${sim_cv_have_glx+set}" = set; then
 
12591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12592
else
 
12593
  cat >conftest.$ac_ext <<_ACEOF
 
12594
#line $LINENO "configure"
 
12595
#include "confdefs.h"
 
12596
 
 
12597
#include <GL/glx.h>
 
12598
#include <GL/gl.h>
 
12599
 
 
12600
#ifdef F77_DUMMY_MAIN
 
12601
#  ifdef __cplusplus
 
12602
     extern "C"
 
12603
#  endif
 
12604
   int F77_DUMMY_MAIN() { return 1; }
 
12605
#endif
 
12606
int
 
12607
main ()
 
12608
{
 
12609
 
 
12610
(void)glXChooseVisual(0L, 0, 0L);
 
12611
/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless
 
12612
   there is at least one "pure" OpenGL call along with GLU calls. */
 
12613
glEnd();
 
12614
 
 
12615
  ;
 
12616
  return 0;
 
12617
}
 
12618
_ACEOF
 
12619
rm -f conftest.$ac_objext conftest$ac_exeext
 
12620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12621
  (eval $ac_link) 2>&5
 
12622
  ac_status=$?
 
12623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12624
  (exit $ac_status); } &&
 
12625
         { ac_try='test -s conftest$ac_exeext'
 
12626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12627
  (eval $ac_try) 2>&5
 
12628
  ac_status=$?
 
12629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12630
  (exit $ac_status); }; }; then
 
12631
  sim_cv_have_glx=true
 
12632
else
 
12633
  echo "$as_me: failed program was:" >&5
 
12634
cat conftest.$ac_ext >&5
 
12635
sim_cv_have_glx=false
 
12636
fi
 
12637
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12638
fi
 
12639
echo "$as_me:$LINENO: result: $sim_cv_have_glx" >&5
 
12640
echo "${ECHO_T}$sim_cv_have_glx" >&6
 
12641
 
 
12642
if ${sim_cv_have_glx=false}; then
 
12643
 
 
12644
 
 
12645
cat >>confdefs.h <<\_ACEOF
 
12646
#define HAVE_GLX 1
 
12647
_ACEOF
 
12648
 
 
12649
 
 
12650
else
 
12651
  :
 
12652
fi
 
12653
 
 
12654
 
 
12655
## We need this extra, final X11 check to set up the HAVE_X11_AVAILABLE
 
12656
## define -- the X_DISPLAY_MISSING define provided by the built-in
 
12657
## Autoconf X11 check is not strict enough.
 
12658
echo "$as_me:$LINENO: checking if X11 linkage is ready" >&5
 
12659
echo $ECHO_N "checking if X11 linkage is ready... $ECHO_C" >&6
 
12660
if test "${sim_cv_x11_ready+set}" = set; then
 
12661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12662
else
 
12663
  cat >conftest.$ac_ext <<_ACEOF
 
12664
#line $LINENO "configure"
 
12665
#include "confdefs.h"
 
12666
#include <X11/Xlib.h>
 
12667
#ifdef F77_DUMMY_MAIN
 
12668
#  ifdef __cplusplus
 
12669
     extern "C"
 
12670
#  endif
 
12671
   int F77_DUMMY_MAIN() { return 1; }
 
12672
#endif
 
12673
int
 
12674
main ()
 
12675
{
 
12676
(void)XOpenDisplay(0L);
 
12677
  ;
 
12678
  return 0;
 
12679
}
 
12680
_ACEOF
 
12681
rm -f conftest.$ac_objext conftest$ac_exeext
 
12682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12683
  (eval $ac_link) 2>&5
 
12684
  ac_status=$?
 
12685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12686
  (exit $ac_status); } &&
 
12687
         { ac_try='test -s conftest$ac_exeext'
 
12688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12689
  (eval $ac_try) 2>&5
 
12690
  ac_status=$?
 
12691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12692
  (exit $ac_status); }; }; then
 
12693
  sim_cv_x11_ready=true
 
12694
else
 
12695
  echo "$as_me: failed program was:" >&5
 
12696
cat conftest.$ac_ext >&5
 
12697
sim_cv_x11_ready=false
 
12698
fi
 
12699
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12700
fi
 
12701
echo "$as_me:$LINENO: result: $sim_cv_x11_ready" >&5
 
12702
echo "${ECHO_T}$sim_cv_x11_ready" >&6
 
12703
if ${sim_cv_x11_ready}; then
 
12704
 
 
12705
cat >>confdefs.h <<\_ACEOF
 
12706
#define HAVE_X11_AVAILABLE
 
12707
_ACEOF
 
12708
 
 
12709
else
 
12710
  :
 
12711
fi
 
12712
 
 
12713
 
 
12714
# Check for the availability of this node (it is used in the hidden
 
12715
# line rendering), which is not part of older Inventor implementations.
 
12716
 
 
12717
echo "$as_me:$LINENO: checking if the Open Inventor SoPolygonOffset node is available" >&5
 
12718
echo $ECHO_N "checking if the Open Inventor SoPolygonOffset node is available... $ECHO_C" >&6
 
12719
if test "${sim_cv_have_oiv_sopolygonoffset_node+set}" = set; then
 
12720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12721
else
 
12722
  cat >conftest.$ac_ext <<_ACEOF
 
12723
#line $LINENO "configure"
 
12724
#include "confdefs.h"
 
12725
#include <Inventor/nodes/SoPolygonOffset.h>
 
12726
#ifdef F77_DUMMY_MAIN
 
12727
#  ifdef __cplusplus
 
12728
     extern "C"
 
12729
#  endif
 
12730
   int F77_DUMMY_MAIN() { return 1; }
 
12731
#endif
 
12732
int
 
12733
main ()
 
12734
{
 
12735
SoPolygonOffset * p = new SoPolygonOffset;
 
12736
  ;
 
12737
  return 0;
 
12738
}
 
12739
_ACEOF
 
12740
rm -f conftest.$ac_objext conftest$ac_exeext
 
12741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12742
  (eval $ac_link) 2>&5
 
12743
  ac_status=$?
 
12744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12745
  (exit $ac_status); } &&
 
12746
         { ac_try='test -s conftest$ac_exeext'
 
12747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12748
  (eval $ac_try) 2>&5
 
12749
  ac_status=$?
 
12750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12751
  (exit $ac_status); }; }; then
 
12752
  sim_cv_have_oiv_sopolygonoffset_node=true
 
12753
else
 
12754
  echo "$as_me: failed program was:" >&5
 
12755
cat conftest.$ac_ext >&5
 
12756
sim_cv_have_oiv_sopolygonoffset_node=false
 
12757
fi
 
12758
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12759
fi
 
12760
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_sopolygonoffset_node" >&5
 
12761
echo "${ECHO_T}$sim_cv_have_oiv_sopolygonoffset_node" >&6
 
12762
 
 
12763
if $sim_cv_have_oiv_sopolygonoffset_node; then
 
12764
 
 
12765
cat >>confdefs.h <<\_ACEOF
 
12766
#define HAVE_SOPOLYGONOFFSET 1
 
12767
_ACEOF
 
12768
 
 
12769
 
 
12770
else
 
12771
  :
 
12772
fi
 
12773
 
 
12774
 
 
12775
 
 
12776
 
 
12777
echo "$as_me:$LINENO: checking for SoKeyboardEvent::DELETE enum" >&5
 
12778
echo $ECHO_N "checking for SoKeyboardEvent::DELETE enum... $ECHO_C" >&6
 
12779
if test "${sim_cv_have_oiv_have_sokeyboardevent_delete+set}" = set; then
 
12780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12781
else
 
12782
  cat >conftest.$ac_ext <<_ACEOF
 
12783
#line $LINENO "configure"
 
12784
#include "confdefs.h"
 
12785
#include <Inventor/events/SoKeyboardEvent.h>
 
12786
#ifdef F77_DUMMY_MAIN
 
12787
#  ifdef __cplusplus
 
12788
     extern "C"
 
12789
#  endif
 
12790
   int F77_DUMMY_MAIN() { return 1; }
 
12791
#endif
 
12792
int
 
12793
main ()
 
12794
{
 
12795
 
 
12796
   /* This is either DELETE or KEY_DELETE */
 
12797
   SoKeyboardEvent::Key key = SoKeyboardEvent::DELETE;
 
12798
  ;
 
12799
  return 0;
 
12800
}
 
12801
_ACEOF
 
12802
rm -f conftest.$ac_objext conftest$ac_exeext
 
12803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12804
  (eval $ac_link) 2>&5
 
12805
  ac_status=$?
 
12806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12807
  (exit $ac_status); } &&
 
12808
         { ac_try='test -s conftest$ac_exeext'
 
12809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12810
  (eval $ac_try) 2>&5
 
12811
  ac_status=$?
 
12812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12813
  (exit $ac_status); }; }; then
 
12814
  sim_cv_have_oiv_have_sokeyboardevent_delete=true
 
12815
else
 
12816
  echo "$as_me: failed program was:" >&5
 
12817
cat conftest.$ac_ext >&5
 
12818
sim_cv_have_oiv_have_sokeyboardevent_delete=false
 
12819
fi
 
12820
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12821
fi
 
12822
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_sokeyboardevent_delete" >&5
 
12823
echo "${ECHO_T}$sim_cv_have_oiv_have_sokeyboardevent_delete" >&6
 
12824
 
 
12825
if $sim_cv_have_oiv_have_sokeyboardevent_delete; then
 
12826
 
 
12827
cat >>confdefs.h <<\_ACEOF
 
12828
#define HAVE_SOKEYBOARDEVENT_DELETE 1
 
12829
_ACEOF
 
12830
 
 
12831
 
 
12832
else
 
12833
  :
 
12834
fi
 
12835
 
 
12836
 
 
12837
 
 
12838
 
 
12839
echo "$as_me:$LINENO: checking for SoMouseButtonEvent::BUTTON5 enum" >&5
 
12840
echo $ECHO_N "checking for SoMouseButtonEvent::BUTTON5 enum... $ECHO_C" >&6
 
12841
if test "${sim_cv_have_oiv_have_somousebuttonevent_button5+set}" = set; then
 
12842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12843
else
 
12844
  cat >conftest.$ac_ext <<_ACEOF
 
12845
#line $LINENO "configure"
 
12846
#include "confdefs.h"
 
12847
#include <Inventor/events/SoMouseButtonEvent.h>
 
12848
#ifdef F77_DUMMY_MAIN
 
12849
#  ifdef __cplusplus
 
12850
     extern "C"
 
12851
#  endif
 
12852
   int F77_DUMMY_MAIN() { return 1; }
 
12853
#endif
 
12854
int
 
12855
main ()
 
12856
{
 
12857
 
 
12858
   /* mouse wheel support needs BUTTON4 and BUTTON5 */
 
12859
   SoMouseButtonEvent::Button button = SoMouseButtonEvent::BUTTON5;
 
12860
  ;
 
12861
  return 0;
 
12862
}
 
12863
_ACEOF
 
12864
rm -f conftest.$ac_objext conftest$ac_exeext
 
12865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12866
  (eval $ac_link) 2>&5
 
12867
  ac_status=$?
 
12868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12869
  (exit $ac_status); } &&
 
12870
         { ac_try='test -s conftest$ac_exeext'
 
12871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12872
  (eval $ac_try) 2>&5
 
12873
  ac_status=$?
 
12874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12875
  (exit $ac_status); }; }; then
 
12876
  sim_cv_have_oiv_have_somousebuttonevent_button5=true
 
12877
else
 
12878
  echo "$as_me: failed program was:" >&5
 
12879
cat conftest.$ac_ext >&5
 
12880
sim_cv_have_oiv_have_somousebuttonevent_button5=false
 
12881
fi
 
12882
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12883
fi
 
12884
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_somousebuttonevent_button5" >&5
 
12885
echo "${ECHO_T}$sim_cv_have_oiv_have_somousebuttonevent_button5" >&6
 
12886
 
 
12887
if $sim_cv_have_oiv_have_somousebuttonevent_button5; then
 
12888
 
 
12889
cat >>confdefs.h <<\_ACEOF
 
12890
#define HAVE_SOMOUSEBUTTONEVENT_BUTTON5 1
 
12891
_ACEOF
 
12892
 
 
12893
 
 
12894
else
 
12895
  :
 
12896
fi
 
12897
 
 
12898
 
 
12899
 
 
12900
 
 
12901
echo "$as_me:$LINENO: checking for SoCamera::setStereoMode() method" >&5
 
12902
echo $ECHO_N "checking for SoCamera::setStereoMode() method... $ECHO_C" >&6
 
12903
if test "${sim_cv_have_oiv_have_socamera_setstereomode+set}" = set; then
 
12904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12905
else
 
12906
  cat >conftest.$ac_ext <<_ACEOF
 
12907
#line $LINENO "configure"
 
12908
#include "confdefs.h"
 
12909
#include <Inventor/nodes/SoPerspectiveCamera.h>
 
12910
#ifdef F77_DUMMY_MAIN
 
12911
#  ifdef __cplusplus
 
12912
     extern "C"
 
12913
#  endif
 
12914
   int F77_DUMMY_MAIN() { return 1; }
 
12915
#endif
 
12916
int
 
12917
main ()
 
12918
{
 
12919
/* SoCamera is abstract, so test with SoPerspectiveCamera */
 
12920
   SoPerspectiveCamera * c = new SoPerspectiveCamera;
 
12921
   c->setStereoMode(SoCamera::MONOSCOPIC);
 
12922
  ;
 
12923
  return 0;
 
12924
}
 
12925
_ACEOF
 
12926
rm -f conftest.$ac_objext conftest$ac_exeext
 
12927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12928
  (eval $ac_link) 2>&5
 
12929
  ac_status=$?
 
12930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12931
  (exit $ac_status); } &&
 
12932
         { ac_try='test -s conftest$ac_exeext'
 
12933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12934
  (eval $ac_try) 2>&5
 
12935
  ac_status=$?
 
12936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12937
  (exit $ac_status); }; }; then
 
12938
  sim_cv_have_oiv_have_socamera_setstereomode=true
 
12939
else
 
12940
  echo "$as_me: failed program was:" >&5
 
12941
cat conftest.$ac_ext >&5
 
12942
sim_cv_have_oiv_have_socamera_setstereomode=false
 
12943
fi
 
12944
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12945
fi
 
12946
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_socamera_setstereomode" >&5
 
12947
echo "${ECHO_T}$sim_cv_have_oiv_have_socamera_setstereomode" >&6
 
12948
 
 
12949
if $sim_cv_have_oiv_have_socamera_setstereomode; then
 
12950
 
 
12951
cat >>confdefs.h <<\_ACEOF
 
12952
#define HAVE_SOCAMERA_SETSTEREOMODE 1
 
12953
_ACEOF
 
12954
 
 
12955
 
 
12956
else
 
12957
  :
 
12958
fi
 
12959
 
 
12960
 
 
12961
 
 
12962
 
 
12963
 
 
12964
# Check whether --with-iv-extensions or --without-iv-extensions was given.
 
12965
if test "${with_iv_extensions+set}" = set; then
 
12966
  withval="$with_iv_extensions"
 
12967
  sim_ac_iv_try_extensions=$withval
 
12968
fi;
 
12969
 
 
12970
sim_ac_iv_extension_save_LIBS=$LIBS
 
12971
 
 
12972
sim_ac_iv_extension_LIBS=
 
12973
sim_ac_iv_extension_LDFLAGS=
 
12974
sim_ac_iv_extension_decarations=
 
12975
sim_ac_iv_extension_initializations=
 
12976
 
 
12977
sim_ac_iv_extensions=
 
12978
while test x"${sim_ac_iv_try_extensions}" != x""; do
 
12979
  sim_ac_iv_extension=`echo ,$sim_ac_iv_try_extensions | cut -d, -f2`
 
12980
  sim_ac_iv_try_extensions=`echo ,$sim_ac_iv_try_extensions | cut -d, -f3-`
 
12981
  case $sim_ac_iv_extension in
 
12982
  sim_ac_dummy ) # ignore
 
12983
    ;;
 
12984
  -L* ) # extension library path hint
 
12985
    sim_ac_iv_extension_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $sim_ac_iv_extension"
 
12986
    ;;
 
12987
  -l* ) # extension library hint
 
12988
    LIBS="$sim_ac_iv_extension_save_LIBS $sim_ac_iv_extension_LIBS $sim_ac_iv_extension"
 
12989
    echo "$as_me:$LINENO: checking for Open Inventor extension library $sim_ac_iv_extension" >&5
 
12990
echo $ECHO_N "checking for Open Inventor extension library $sim_ac_iv_extension... $ECHO_C" >&6
 
12991
    cat >conftest.$ac_ext <<_ACEOF
 
12992
#line $LINENO "configure"
 
12993
#include "confdefs.h"
 
12994
#include <Inventor/SoDB.h>
 
12995
#ifdef F77_DUMMY_MAIN
 
12996
#  ifdef __cplusplus
 
12997
     extern "C"
 
12998
#  endif
 
12999
   int F77_DUMMY_MAIN() { return 1; }
 
13000
#endif
 
13001
int
 
13002
main ()
 
13003
{
 
13004
SoDB::init();
 
13005
  ;
 
13006
  return 0;
 
13007
}
 
13008
_ACEOF
 
13009
rm -f conftest.$ac_objext conftest$ac_exeext
 
13010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13011
  (eval $ac_link) 2>&5
 
13012
  ac_status=$?
 
13013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13014
  (exit $ac_status); } &&
 
13015
         { ac_try='test -s conftest$ac_exeext'
 
13016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13017
  (eval $ac_try) 2>&5
 
13018
  ac_status=$?
 
13019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13020
  (exit $ac_status); }; }; then
 
13021
  sim_ac_iv_extension_LIBS="$sim_ac_iv_extension_LIBS $sim_ac_iv_extension"
 
13022
       echo "$as_me:$LINENO: result: linkable" >&5
 
13023
echo "${ECHO_T}linkable" >&6
 
13024
else
 
13025
  echo "$as_me: failed program was:" >&5
 
13026
cat conftest.$ac_ext >&5
 
13027
echo "$as_me:$LINENO: result: unlinkable - discarded" >&5
 
13028
echo "${ECHO_T}unlinkable - discarded" >&6
 
13029
fi
 
13030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13031
    ;;
 
13032
  * )
 
13033
    echo "$as_me:$LINENO: checking for Open Inventor extension $sim_ac_iv_extension" >&5
 
13034
echo $ECHO_N "checking for Open Inventor extension $sim_ac_iv_extension... $ECHO_C" >&6
 
13035
    cat >conftest.$ac_ext <<_ACEOF
 
13036
#line $LINENO "configure"
 
13037
#include "confdefs.h"
 
13038
#include <Inventor/SoDB.h>
 
13039
// hack up a declaration and see if the mangled name is found by the linker
 
13040
class $sim_ac_iv_extension {
 
13041
public:
 
13042
static void initClass(void);
 
13043
};
 
13044
#ifdef F77_DUMMY_MAIN
 
13045
#  ifdef __cplusplus
 
13046
     extern "C"
 
13047
#  endif
 
13048
   int F77_DUMMY_MAIN() { return 1; }
 
13049
#endif
 
13050
int
 
13051
main ()
 
13052
{
 
13053
 
 
13054
  SoDB::init();
 
13055
  $sim_ac_iv_extension::initClass();
 
13056
 
 
13057
  ;
 
13058
  return 0;
 
13059
}
 
13060
_ACEOF
 
13061
rm -f conftest.$ac_objext conftest$ac_exeext
 
13062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13063
  (eval $ac_link) 2>&5
 
13064
  ac_status=$?
 
13065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13066
  (exit $ac_status); } &&
 
13067
         { ac_try='test -s conftest$ac_exeext'
 
13068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13069
  (eval $ac_try) 2>&5
 
13070
  ac_status=$?
 
13071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13072
  (exit $ac_status); }; }; then
 
13073
 
 
13074
  echo "$as_me:$LINENO: result: found" >&5
 
13075
echo "${ECHO_T}found" >&6
 
13076
  sim_ac_iv_extensions="$sim_ac_iv_extensions COIN_IV_EXTENSION($sim_ac_iv_extension)"
 
13077
 
 
13078
else
 
13079
  echo "$as_me: failed program was:" >&5
 
13080
cat conftest.$ac_ext >&5
 
13081
 
 
13082
  echo "$as_me:$LINENO: result: not found" >&5
 
13083
echo "${ECHO_T}not found" >&6
 
13084
 
 
13085
fi
 
13086
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13087
    ;;
 
13088
  esac
 
13089
done
 
13090
 
 
13091
 
 
13092
cat >>confdefs.h <<_ACEOF
 
13093
#define COIN_IV_EXTENSIONS $sim_ac_iv_extensions
 
13094
_ACEOF
 
13095
 
 
13096
 
 
13097
LIBS=$sim_ac_iv_extension_save_LIBS
 
13098
 
 
13099
 
 
13100
  LDFLAGS="$sim_ac_iv_extension_LDFLAGS $LDFLAGS"
 
13101
  SOGUI_EXTRA_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $SOGUI_EXTRA_LDFLAGS"
 
13102
  LIBS="$sim_ac_iv_extension_LIBS $LIBS"
 
13103
  SOGUI_EXTRA_LIBS="$sim_ac_iv_extension_LIBS $SOGUI_EXTRA_LIBS"
 
13104
 
 
13105
 
 
13106
 
 
13107
 
 
13108
# **************************************************************************
 
13109
# Check that the Qt installation looks ok and include the
 
13110
# necessary paths and link libraries.
 
13111
 
 
13112
# FIXME: why is this here? - it's duplicate from below AC_PROG_CC  20020110 larsa
 
13113
# AC_PROG_CPP
 
13114
 
 
13115
if test x"$sim_ac_x11mu_avail" != xyes; then
 
13116
  ## It's really QGL that depends on Xmu, not Qt. But we need to do this
 
13117
  ## check before checking for the Qt library, not after, in case QGL is
 
13118
  ## embedded into Qt.
 
13119
 
 
13120
 
 
13121
sim_ac_x11mu_avail=no
 
13122
sim_ac_x11mu_libs="-lXmu"
 
13123
sim_ac_save_libs=$LIBS
 
13124
LIBS="$sim_ac_x11mu_libs $LIBS"
 
13125
 
 
13126
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
 
13127
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
 
13128
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
 
13129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13130
else
 
13131
  cat >conftest.$ac_ext <<_ACEOF
 
13132
#line $LINENO "configure"
 
13133
#include "confdefs.h"
 
13134
#include <X11/Xlib.h>
 
13135
                #include <X11/Xmu/Xmu.h>
 
13136
                #include <X11/Xmu/StdCmap.h>
 
13137
#ifdef F77_DUMMY_MAIN
 
13138
#  ifdef __cplusplus
 
13139
     extern "C"
 
13140
#  endif
 
13141
   int F77_DUMMY_MAIN() { return 1; }
 
13142
#endif
 
13143
int
 
13144
main ()
 
13145
{
 
13146
(void)XmuAllStandardColormaps(0L);
 
13147
  ;
 
13148
  return 0;
 
13149
}
 
13150
_ACEOF
 
13151
rm -f conftest.$ac_objext conftest$ac_exeext
 
13152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13153
  (eval $ac_link) 2>&5
 
13154
  ac_status=$?
 
13155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13156
  (exit $ac_status); } &&
 
13157
         { ac_try='test -s conftest$ac_exeext'
 
13158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13159
  (eval $ac_try) 2>&5
 
13160
  ac_status=$?
 
13161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13162
  (exit $ac_status); }; }; then
 
13163
  sim_cv_lib_x11mu_avail=yes
 
13164
else
 
13165
  echo "$as_me: failed program was:" >&5
 
13166
cat conftest.$ac_ext >&5
 
13167
sim_cv_lib_x11mu_avail=no
 
13168
fi
 
13169
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13170
fi
 
13171
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
 
13172
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
 
13173
 
 
13174
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
 
13175
  sim_ac_x11mu_avail=yes
 
13176
  SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
 
13177
else
 
13178
  LIBS=$sim_ac_save_libs
 
13179
 
 
13180
fi
 
13181
 
 
13182
fi
 
13183
 
 
13184
 
 
13185
 
 
13186
 
 
13187
# Check whether --with-qt or --without-qt was given.
 
13188
if test "${with_qt+set}" = set; then
 
13189
  withval="$with_qt"
 
13190
 
 
13191
else
 
13192
  with_qt=yes
 
13193
fi;
 
13194
 
 
13195
# Check whether --enable-qt-debug or --disable-qt-debug was given.
 
13196
if test "${enable_qt_debug+set}" = set; then
 
13197
  enableval="$enable_qt_debug"
 
13198
  case $enableval in
 
13199
  yes | true ) sim_ac_qt_debug=true ;;
 
13200
  *) sim_ac_qt_debug=false ;;
 
13201
  esac
 
13202
else
 
13203
  sim_ac_qt_debug=false
 
13204
fi;
 
13205
 
 
13206
sim_ac_qt_avail=no
 
13207
 
 
13208
if test x"$with_qt" != xno; then
 
13209
  sim_ac_path=$PATH
 
13210
 
 
13211
  # Remember over config.status re-runs of configure.
 
13212
  # FIXME: this doesn't work unless QTDIR is part of the configure
 
13213
  # argument line. We should be able to grab it from the
 
13214
  # environment settings. 20011018 mortene.
 
13215
  QTDIR=$QTDIR
 
13216
 
 
13217
 
 
13218
  # The Cygwin environment needs to invoke moc with a POSIX-style path.
 
13219
  # Extract the first word of "cygpath", so it can be a program name with args.
 
13220
set dummy cygpath; ac_word=$2
 
13221
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13223
if test "${ac_cv_path_sim_ac_qt_cygpath+set}" = set; then
 
13224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13225
else
 
13226
  case $sim_ac_qt_cygpath in
 
13227
  [\\/]* | ?:[\\/]*)
 
13228
  ac_cv_path_sim_ac_qt_cygpath="$sim_ac_qt_cygpath" # Let the user override the test with a path.
 
13229
  ;;
 
13230
  *)
 
13231
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13232
for as_dir in $PATH
 
13233
do
 
13234
  IFS=$as_save_IFS
 
13235
  test -z "$as_dir" && as_dir=.
 
13236
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13237
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13238
    ac_cv_path_sim_ac_qt_cygpath="$as_dir/$ac_word$ac_exec_ext"
 
13239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13240
    break 2
 
13241
  fi
 
13242
done
 
13243
done
 
13244
 
 
13245
  test -z "$ac_cv_path_sim_ac_qt_cygpath" && ac_cv_path_sim_ac_qt_cygpath="false"
 
13246
  ;;
 
13247
esac
 
13248
fi
 
13249
sim_ac_qt_cygpath=$ac_cv_path_sim_ac_qt_cygpath
 
13250
 
 
13251
if test -n "$sim_ac_qt_cygpath"; then
 
13252
  echo "$as_me:$LINENO: result: $sim_ac_qt_cygpath" >&5
 
13253
echo "${ECHO_T}$sim_ac_qt_cygpath" >&6
 
13254
else
 
13255
  echo "$as_me:$LINENO: result: no" >&5
 
13256
echo "${ECHO_T}no" >&6
 
13257
fi
 
13258
 
 
13259
  if test $sim_ac_qt_cygpath = "false"; then
 
13260
    sim_ac_qt_dir=$QTDIR
 
13261
  else
 
13262
    # Quote $QTDIR in case it's empty.
 
13263
    sim_ac_qt_dir=`$sim_ac_qt_cygpath -u "$QTDIR"`
 
13264
  fi
 
13265
 
 
13266
  if test x"$with_qt" != xyes; then
 
13267
    sim_ac_qt_incflags="-I${with_qt}/include"
 
13268
    sim_ac_qt_ldflags="-L${with_qt}/lib"
 
13269
    sim_ac_path=${with_qt}/bin:$PATH
 
13270
  else
 
13271
    echo "$as_me:$LINENO: checking value of the QTDIR environment variable" >&5
 
13272
echo $ECHO_N "checking value of the QTDIR environment variable... $ECHO_C" >&6
 
13273
    if test x"$sim_ac_qt_dir" = x""; then
 
13274
      echo "$as_me:$LINENO: result: empty" >&5
 
13275
echo "${ECHO_T}empty" >&6
 
13276
      { echo "$as_me:$LINENO: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&5
 
13277
echo "$as_me: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&2;}
 
13278
    else
 
13279
      echo "$as_me:$LINENO: result: $sim_ac_qt_dir" >&5
 
13280
echo "${ECHO_T}$sim_ac_qt_dir" >&6
 
13281
 
 
13282
      # list contents of what's in the qt dev environment into config.log...
 
13283
      for i in "" bin lib; do
 
13284
        echo "Listing contents of $sim_ac_qt_dir/$i:" >&5
 
13285
        ls -l $sim_ac_qt_dir/$i >&5 2>&1
 
13286
      done
 
13287
 
 
13288
      sim_ac_qt_incflags="-I$sim_ac_qt_dir/include"
 
13289
      sim_ac_qt_ldflags="-L$sim_ac_qt_dir/lib"
 
13290
      sim_ac_path=$sim_ac_qt_dir/bin:$PATH
 
13291
    fi
 
13292
  fi
 
13293
 
 
13294
  sim_ac_save_cppflags=$CPPFLAGS
 
13295
  sim_ac_save_ldflags=$LDFLAGS
 
13296
  sim_ac_save_libs=$LIBS
 
13297
 
 
13298
  CPPFLAGS="$sim_ac_qt_incflags $CPPFLAGS"
 
13299
  LDFLAGS="$LDFLAGS $sim_ac_qt_ldflags"
 
13300
 
 
13301
  sim_ac_qt_libs=UNRESOLVED
 
13302
 
 
13303
  # Extract the first word of "moc", so it can be a program name with args.
 
13304
set dummy moc; ac_word=$2
 
13305
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13307
if test "${ac_cv_path_MOC+set}" = set; then
 
13308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13309
else
 
13310
  case $MOC in
 
13311
  [\\/]* | ?:[\\/]*)
 
13312
  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
 
13313
  ;;
 
13314
  *)
 
13315
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13316
for as_dir in $sim_ac_path
 
13317
do
 
13318
  IFS=$as_save_IFS
 
13319
  test -z "$as_dir" && as_dir=.
 
13320
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13321
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13322
    ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
 
13323
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13324
    break 2
 
13325
  fi
 
13326
done
 
13327
done
 
13328
 
 
13329
  test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="false"
 
13330
  ;;
 
13331
esac
 
13332
fi
 
13333
MOC=$ac_cv_path_MOC
 
13334
 
 
13335
if test -n "$MOC"; then
 
13336
  echo "$as_me:$LINENO: result: $MOC" >&5
 
13337
echo "${ECHO_T}$MOC" >&6
 
13338
else
 
13339
  echo "$as_me:$LINENO: result: no" >&5
 
13340
echo "${ECHO_T}no" >&6
 
13341
fi
 
13342
 
 
13343
 
 
13344
  if test x"$MOC" = x"false"; then
 
13345
    { echo "$as_me:$LINENO: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&5
 
13346
echo "$as_me: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&2;}
 
13347
  else
 
13348
 
 
13349
  sim_ac_qglobal=false
 
13350
 
 
13351
cat >conftest.$ac_ext <<_ACEOF
 
13352
#line $LINENO "configure"
 
13353
#include "confdefs.h"
 
13354
#include <qglobal.h>
 
13355
_ACEOF
 
13356
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13357
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13358
  ac_status=$?
 
13359
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
13360
  rm -f conftest.er1
 
13361
  cat conftest.err >&5
 
13362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13363
  (exit $ac_status); } >/dev/null; then
 
13364
  if test -s conftest.err; then
 
13365
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
13366
  else
 
13367
    ac_cpp_err=
 
13368
  fi
 
13369
else
 
13370
  ac_cpp_err=yes
 
13371
fi
 
13372
if test -z "$ac_cpp_err"; then
 
13373
  ac_cv_header_qglobal_h=yes
 
13374
else
 
13375
  echo "$as_me: failed program was:" >&5
 
13376
  cat conftest.$ac_ext >&5
 
13377
  ac_cv_header_qglobal_h=no
 
13378
fi
 
13379
rm -f conftest.err conftest.$ac_ext
 
13380
if test $ac_cv_header_qglobal_h = yes; then
 
13381
  sim_ac_qglobal=true
 
13382
else
 
13383
  # Debian Linux has the Qt-dev installation headers in a separate subdir.
 
13384
    sim_ac_debian_qtheaders=/usr/include/qt
 
13385
     if test -d $sim_ac_debian_qtheaders; then
 
13386
       sim_ac_qt_incflags="-I$sim_ac_debian_qtheaders $sim_ac_qt_incflags"
 
13387
       CPPFLAGS="-I$sim_ac_debian_qtheaders $CPPFLAGS"
 
13388
 
 
13389
cat >conftest.$ac_ext <<_ACEOF
 
13390
#line $LINENO "configure"
 
13391
#include "confdefs.h"
 
13392
#include <qglobal.h>
 
13393
_ACEOF
 
13394
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13395
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13396
  ac_status=$?
 
13397
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
13398
  rm -f conftest.er1
 
13399
  cat conftest.err >&5
 
13400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13401
  (exit $ac_status); } >/dev/null; then
 
13402
  if test -s conftest.err; then
 
13403
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
13404
  else
 
13405
    ac_cpp_err=
 
13406
  fi
 
13407
else
 
13408
  ac_cpp_err=yes
 
13409
fi
 
13410
if test -z "$ac_cpp_err"; then
 
13411
  ac_cv_header_qglobal_h=yes
 
13412
else
 
13413
  echo "$as_me: failed program was:" >&5
 
13414
  cat conftest.$ac_ext >&5
 
13415
  ac_cv_header_qglobal_h=no
 
13416
fi
 
13417
rm -f conftest.err conftest.$ac_ext
 
13418
if test $ac_cv_header_qglobal_h = yes; then
 
13419
  sim_ac_qglobal=true
 
13420
fi
 
13421
 
 
13422
 
 
13423
 
 
13424
     fi
 
13425
fi
 
13426
 
 
13427
 
 
13428
 
 
13429
 
 
13430
  if $sim_ac_qglobal; then
 
13431
 
 
13432
  # Find version of the Qt library (MSWindows .dll is named with the
 
13433
  # version number.)
 
13434
  echo "$as_me:$LINENO: checking version of Qt library" >&5
 
13435
echo $ECHO_N "checking version of Qt library... $ECHO_C" >&6
 
13436
  cat > conftest.c << EOF
 
13437
#include <qglobal.h>
 
13438
int VerQt = QT_VERSION;
 
13439
EOF
 
13440
  # The " *"-parts of the last sed-expression on the next line are necessary
 
13441
  # because at least the Solaris/CC preprocessor adds extra spaces before and
 
13442
  # after the trailing semicolon.
 
13443
  sim_ac_qt_version=`$CXXCPP $CPPFLAGS conftest.c 2>/dev/null | grep '^int VerQt' | sed 's%^int VerQt = %%' | sed 's% *; *$%%'`
 
13444
 
 
13445
  case $sim_ac_qt_version in
 
13446
  0x* )
 
13447
    sim_ac_qt_version=`echo $sim_ac_qt_version | sed -e 's/^0x.\(.\).\(.\).\(.\)/\1\2\3/;'`
 
13448
    ;;
 
13449
  * )
 
13450
    # nada
 
13451
    ;;
 
13452
  esac
 
13453
 
 
13454
  rm -f conftest.c
 
13455
  echo "$as_me:$LINENO: result: $sim_ac_qt_version" >&5
 
13456
echo "${ECHO_T}$sim_ac_qt_version" >&6
 
13457
 
 
13458
  if test $sim_ac_qt_version -lt 200; then
 
13459
 
 
13460
echo >&2 ""
 
13461
 
 
13462
 
 
13463
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
13464
if test -f $sim_ac_message_file; then
 
13465
  sim_ac_message="`sed -n -e '/^!too-old-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
13466
  if test x"$sim_ac_message" = x""; then
 
13467
    { { echo "$as_me:$LINENO: error: no message named 'too-old-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13468
echo "$as_me: error: no message named 'too-old-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13469
   { (exit 1); exit 1; }; }
 
13470
  else
 
13471
    eval "echo >&2 \"$sim_ac_message\""
 
13472
  fi
 
13473
else
 
13474
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13475
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13476
   { (exit 1); exit 1; }; }
 
13477
fi
 
13478
 
 
13479
 
 
13480
 
 
13481
echo >&2 ""
 
13482
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
13483
echo "$as_me: error: aborting" >&2;}
 
13484
   { (exit 1); exit 1; }; }
 
13485
 
 
13486
  fi
 
13487
 
 
13488
  # Too hard to feature-check for the Qt-on-Mac problems, as they involve
 
13489
  # obscure behavior of the QGLWidget -- so we just resort to do platform
 
13490
  # and version checking instead.
 
13491
  case $host_os in
 
13492
  darwin*)
 
13493
    if test $sim_ac_qt_version -lt 302; then
 
13494
      if test x${sim_ac_configuration_warnings+set} != xset; then
 
13495
  sim_ac_configuration_warnings="The version of Qt you are using is
 
13496
known to contain some serious bugs on MacOS X. We strongly recommend you to
 
13497
upgrade. (See $srcdir/README.MAC for details.)"
 
13498
else
 
13499
  sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are using is
 
13500
known to contain some serious bugs on MacOS X. We strongly recommend you to
 
13501
upgrade. (See $srcdir/README.MAC for details.)"
 
13502
fi
 
13503
 
 
13504
    fi
 
13505
 
 
13506
  # Qt/X11 is currently not supported on Mac OS X.
 
13507
    cat >conftest.$ac_ext <<_ACEOF
 
13508
#line $LINENO "configure"
 
13509
#include "confdefs.h"
 
13510
#include <qapplication.h>
 
13511
#ifdef F77_DUMMY_MAIN
 
13512
#  ifdef __cplusplus
 
13513
     extern "C"
 
13514
#  endif
 
13515
   int F77_DUMMY_MAIN() { return 1; }
 
13516
#endif
 
13517
int
 
13518
main ()
 
13519
{
 
13520
#if defined(__APPLE__) && defined(Q_WS_X11)
 
13521
                 #error blah!
 
13522
                 #endif
 
13523
  ;
 
13524
  return 0;
 
13525
}
 
13526
_ACEOF
 
13527
rm -f conftest.$ac_objext conftest$ac_exeext
 
13528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13529
  (eval $ac_link) 2>&5
 
13530
  ac_status=$?
 
13531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13532
  (exit $ac_status); } &&
 
13533
         { ac_try='test -s conftest$ac_exeext'
 
13534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13535
  (eval $ac_try) 2>&5
 
13536
  ac_status=$?
 
13537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13538
  (exit $ac_status); }; }; then
 
13539
  :
 
13540
else
 
13541
  echo "$as_me: failed program was:" >&5
 
13542
cat conftest.$ac_ext >&5
 
13543
 
 
13544
echo >&2 ""
 
13545
 
 
13546
 
 
13547
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
13548
if test -f $sim_ac_message_file; then
 
13549
  sim_ac_message="`sed -n -e '/^!x11-qt-on-mac$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
13550
  if test x"$sim_ac_message" = x""; then
 
13551
    { { echo "$as_me:$LINENO: error: no message named 'x11-qt-on-mac' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13552
echo "$as_me: error: no message named 'x11-qt-on-mac' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13553
   { (exit 1); exit 1; }; }
 
13554
  else
 
13555
    eval "echo >&2 \"$sim_ac_message\""
 
13556
  fi
 
13557
else
 
13558
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13559
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13560
   { (exit 1); exit 1; }; }
 
13561
fi
 
13562
 
 
13563
 
 
13564
 
 
13565
echo >&2 ""
 
13566
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
13567
echo "$as_me: error: aborting" >&2;}
 
13568
   { (exit 1); exit 1; }; }
 
13569
 
 
13570
fi
 
13571
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13572
    ;;
 
13573
  esac
 
13574
 
 
13575
  # Known problems:
 
13576
  #
 
13577
  #   * Qt v3.0.1 has a bug where SHIFT-PRESS + CTRL-PRESS + CTRL-RELEASE
 
13578
  #     results in the last key-event coming out completely wrong under X11.
 
13579
  #     Known to be fixed in 3.0.3, unknown status in 3.0.2.  <mortene@sim.no>.
 
13580
  #
 
13581
  if test $sim_ac_qt_version -lt 303; then
 
13582
    if test x${sim_ac_configuration_warnings+set} != xset; then
 
13583
  sim_ac_configuration_warnings="The version of Qt you are compiling against
 
13584
is known to contain bugs which influences functionality in SoQt. We strongly
 
13585
recommend you to upgrade."
 
13586
else
 
13587
  sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are compiling against
 
13588
is known to contain bugs which influences functionality in SoQt. We strongly
 
13589
recommend you to upgrade."
 
13590
fi
 
13591
 
 
13592
  fi
 
13593
 
 
13594
  sim_ac_qt_cppflags=
 
13595
  if test x"$MOC" != xfalse; then
 
13596
    # Do not cache the result, as we might need to play tricks with
 
13597
    # CPPFLAGS under MSWin.
 
13598
 
 
13599
    # It should be helpful to be able to override the libs-checking with
 
13600
    # environment variables. Then people won't get completely stuck
 
13601
    # when the check fails -- we can just take a look at the
 
13602
    # config.log and give them advice on how to proceed with no updates
 
13603
    # necessary.
 
13604
    #
 
13605
    # (Note also that this makes it possible to select whether to use the
 
13606
    # mt-safe or the "standard" Qt library if both are installed on the
 
13607
    # user's system.)
 
13608
    #
 
13609
    # mortene.
 
13610
 
 
13611
    if test x"$CONFIG_QTLIBS" != x""; then
 
13612
      echo "$as_me:$LINENO: checking for Qt linking with $CONFIG_QTLIBS" >&5
 
13613
echo $ECHO_N "checking for Qt linking with $CONFIG_QTLIBS... $ECHO_C" >&6
 
13614
 
 
13615
      for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do
 
13616
        CPPFLAGS="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags"
 
13617
        LIBS="$CONFIG_QTLIBS $sim_ac_save_libs"
 
13618
        cat >conftest.$ac_ext <<_ACEOF
 
13619
#line $LINENO "configure"
 
13620
#include "confdefs.h"
 
13621
#include <qapplication.h>
 
13622
#ifdef F77_DUMMY_MAIN
 
13623
#  ifdef __cplusplus
 
13624
     extern "C"
 
13625
#  endif
 
13626
   int F77_DUMMY_MAIN() { return 1; }
 
13627
#endif
 
13628
int
 
13629
main ()
 
13630
{
 
13631
qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */
 
13632
                     qApp->exit(0);
 
13633
  ;
 
13634
  return 0;
 
13635
}
 
13636
_ACEOF
 
13637
rm -f conftest.$ac_objext conftest$ac_exeext
 
13638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13639
  (eval $ac_link) 2>&5
 
13640
  ac_status=$?
 
13641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13642
  (exit $ac_status); } &&
 
13643
         { ac_try='test -s conftest$ac_exeext'
 
13644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13645
  (eval $ac_try) 2>&5
 
13646
  ac_status=$?
 
13647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13648
  (exit $ac_status); }; }; then
 
13649
  sim_ac_qt_libs="$CONFIG_QTLIBS"
 
13650
                     sim_ac_qt_cppflags="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop"
 
13651
else
 
13652
  echo "$as_me: failed program was:" >&5
 
13653
cat conftest.$ac_ext >&5
 
13654
fi
 
13655
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13656
      done
 
13657
 
 
13658
      if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then
 
13659
        echo "$as_me:$LINENO: result: failed!" >&5
 
13660
echo "${ECHO_T}failed!" >&6
 
13661
      else
 
13662
        echo "$as_me:$LINENO: result: ok" >&5
 
13663
echo "${ECHO_T}ok" >&6
 
13664
      fi
 
13665
 
 
13666
    else
 
13667
      echo "$as_me:$LINENO: checking for Qt library devkit" >&5
 
13668
echo $ECHO_N "checking for Qt library devkit... $ECHO_C" >&6
 
13669
 
 
13670
      ## Test all known possible combinations of linking against the
 
13671
      ## Troll Tech Qt library:
 
13672
      ##
 
13673
      ## * "-lqt-gl": links against the standard Debian version of the
 
13674
      ##   Qt library with embedded QGL
 
13675
      ##
 
13676
      ## * "-lqt": should work for most UNIX(-derived) platforms on
 
13677
      ##   dynamic and static linking with the non-mtsafe library
 
13678
      ##
 
13679
      ## * "-lqt-mt": should work for most UNIX(-derived) platforms on
 
13680
      ##   dynamic and static linking with the mtsafe library
 
13681
      ##
 
13682
      ## * "-lqt{version} -lqtmain -lgdi32": w/QT_DLL defined should
 
13683
      ##   cover dynamic Enterprise Edition linking on Win32 platforms
 
13684
      ##
 
13685
      ## * "-lqt -lqtmain -lgdi32": ...unless the {version} suffix is missing,
 
13686
      ##   which we've had reports about
 
13687
      ##
 
13688
      ## * "-lqt-mt{version} -lqtmain -lgdi32": w/QT_DLL defined should
 
13689
      ##   cover dynamic multi-thread Enterprise Edition linking on Win32
 
13690
      ##   platforms
 
13691
      ##
 
13692
      ## * "-lqt-mt{version}nc -lqtmain -lgdi32": w/QT_DLL defined should
 
13693
      ##   cover dynamic Non-Commercial Edition linking on Win32 platforms
 
13694
      ##
 
13695
      ## * "-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32": should cover
 
13696
      ##   static linking on Win32 platforms
 
13697
      ##
 
13698
      ## * "-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32":
 
13699
      ##   added for the benefit of the Qt 3.0.0 Evaluation Version
 
13700
      ##   (update: "advapi32.lib" seems to be a new dependency for Qt 3.1.0)
 
13701
 
 
13702
      sim_ac_qt_suffix=
 
13703
      if $sim_ac_qt_debug; then
 
13704
        sim_ac_qt_suffix=d
 
13705
      fi
 
13706
 
 
13707
      # Note that we need to always check for -lqt-mt before -lqt, because
 
13708
      # at least the most recent Debian platforms (as of 2003-02-20) comes
 
13709
      # with a -lqt which is missing QGL support, while it also has a
 
13710
      # -lqt-mt *with* QGL support. The reason for this is because the
 
13711
      # default GL (Mesa) library on Debian is built in mt-safe mode,
 
13712
      # so a non-mt-safe Qt can't use it.
 
13713
 
 
13714
      for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do
 
13715
        for sim_ac_qt_libcheck in \
 
13716
            "-lqt-gl" \
 
13717
            "-lqt-mt" \
 
13718
            "-lqt" \
 
13719
            "-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32" \
 
13720
            "-lqt-mt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \
 
13721
            "-lqt-mt${sim_ac_qt_version}nc${sim_ac_qt_suffix} -lqtmain -lgdi32" \
 
13722
            "-lqt -lqtmain -lgdi32" \
 
13723
            "-lqt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \
 
13724
            "-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32"
 
13725
        do
 
13726
          if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then
 
13727
            CPPFLAGS="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags"
 
13728
            LIBS="$sim_ac_qt_libcheck $sim_ac_save_libs"
 
13729
            cat >conftest.$ac_ext <<_ACEOF
 
13730
#line $LINENO "configure"
 
13731
#include "confdefs.h"
 
13732
#include <qapplication.h>
 
13733
#ifdef F77_DUMMY_MAIN
 
13734
#  ifdef __cplusplus
 
13735
     extern "C"
 
13736
#  endif
 
13737
   int F77_DUMMY_MAIN() { return 1; }
 
13738
#endif
 
13739
int
 
13740
main ()
 
13741
{
 
13742
qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */
 
13743
                         qApp->exit(0);
 
13744
  ;
 
13745
  return 0;
 
13746
}
 
13747
_ACEOF
 
13748
rm -f conftest.$ac_objext conftest$ac_exeext
 
13749
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13750
  (eval $ac_link) 2>&5
 
13751
  ac_status=$?
 
13752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13753
  (exit $ac_status); } &&
 
13754
         { ac_try='test -s conftest$ac_exeext'
 
13755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13756
  (eval $ac_try) 2>&5
 
13757
  ac_status=$?
 
13758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13759
  (exit $ac_status); }; }; then
 
13760
  sim_ac_qt_libs="$sim_ac_qt_libcheck"
 
13761
                         sim_ac_qt_cppflags="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop"
 
13762
else
 
13763
  echo "$as_me: failed program was:" >&5
 
13764
cat conftest.$ac_ext >&5
 
13765
fi
 
13766
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13767
          fi
 
13768
        done
 
13769
      done
 
13770
 
 
13771
      echo "$as_me:$LINENO: result: $sim_ac_qt_cppflags $sim_ac_qt_libs" >&5
 
13772
echo "${ECHO_T}$sim_ac_qt_cppflags $sim_ac_qt_libs" >&6
 
13773
    fi
 
13774
  fi
 
13775
 
 
13776
  else # sim_ac_qglobal = false
 
13777
   { echo "$as_me:$LINENO: WARNING: header file qglobal.h not found, can not compile Qt code" >&5
 
13778
echo "$as_me: WARNING: header file qglobal.h not found, can not compile Qt code" >&2;}
 
13779
  fi
 
13780
  fi # MOC = false
 
13781
 
 
13782
  if test ! x"$sim_ac_qt_libs" = xUNRESOLVED; then
 
13783
    sim_ac_qt_avail=yes
 
13784
    CPPFLAGS="$sim_ac_qt_cppflags $sim_ac_save_cppflags"
 
13785
    LIBS="$sim_ac_qt_libs $sim_ac_save_libs"
 
13786
 
 
13787
  SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags"
 
13788
  SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags"
 
13789
  SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS"
 
13790
 
 
13791
  else
 
13792
    CPPFLAGS=$sim_ac_save_cppflags
 
13793
    LDFLAGS=$sim_ac_save_ldflags
 
13794
    LIBS=$sim_ac_save_libs
 
13795
 
 
13796
 
 
13797
echo >&2 ""
 
13798
 
 
13799
 
 
13800
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
13801
if test -f $sim_ac_message_file; then
 
13802
  sim_ac_message="`sed -n -e '/^!no-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
13803
  if test x"$sim_ac_message" = x""; then
 
13804
    { { echo "$as_me:$LINENO: error: no message named 'no-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13805
echo "$as_me: error: no message named 'no-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13806
   { (exit 1); exit 1; }; }
 
13807
  else
 
13808
    eval "echo >&2 \"$sim_ac_message\""
 
13809
  fi
 
13810
else
 
13811
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13812
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13813
   { (exit 1); exit 1; }; }
 
13814
fi
 
13815
 
 
13816
 
 
13817
 
 
13818
echo >&2 ""
 
13819
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
13820
echo "$as_me: error: aborting" >&2;}
 
13821
   { (exit 1); exit 1; }; }
 
13822
 
 
13823
 
 
13824
  fi
 
13825
fi
 
13826
 
 
13827
 
 
13828
 
 
13829
sim_ac_qgl_avail=no
 
13830
sim_ac_qgl_cppflags=
 
13831
sim_ac_qgl_ldflags=
 
13832
sim_ac_qgl_libs=
 
13833
 
 
13834
if test x"$with_qt" != xno; then
 
13835
  # first check if we can link with the QGL widget already
 
13836
  echo "$as_me:$LINENO: checking whether the QGL widget is part of main Qt library" >&5
 
13837
echo $ECHO_N "checking whether the QGL widget is part of main Qt library... $ECHO_C" >&6
 
13838
if test "${sim_cv_lib_qgl_integrated+set}" = set; then
 
13839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13840
else
 
13841
  cat >conftest.$ac_ext <<_ACEOF
 
13842
#line $LINENO "configure"
 
13843
#include "confdefs.h"
 
13844
#include <qgl.h>
 
13845
#ifdef F77_DUMMY_MAIN
 
13846
#  ifdef __cplusplus
 
13847
     extern "C"
 
13848
#  endif
 
13849
   int F77_DUMMY_MAIN() { return 1; }
 
13850
#endif
 
13851
int
 
13852
main ()
 
13853
{
 
13854
QGLFormat * f = new QGLFormat; f->setDepth(true);
 
13855
  ;
 
13856
  return 0;
 
13857
}
 
13858
_ACEOF
 
13859
rm -f conftest.$ac_objext conftest$ac_exeext
 
13860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13861
  (eval $ac_link) 2>&5
 
13862
  ac_status=$?
 
13863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13864
  (exit $ac_status); } &&
 
13865
         { ac_try='test -s conftest$ac_exeext'
 
13866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13867
  (eval $ac_try) 2>&5
 
13868
  ac_status=$?
 
13869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13870
  (exit $ac_status); }; }; then
 
13871
  sim_cv_lib_qgl_integrated=yes
 
13872
else
 
13873
  echo "$as_me: failed program was:" >&5
 
13874
cat conftest.$ac_ext >&5
 
13875
sim_cv_lib_qgl_integrated=no
 
13876
fi
 
13877
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13878
fi
 
13879
echo "$as_me:$LINENO: result: $sim_cv_lib_qgl_integrated" >&5
 
13880
echo "${ECHO_T}$sim_cv_lib_qgl_integrated" >&6
 
13881
 
 
13882
  if test x"$sim_cv_lib_qgl_integrated" = xyes; then
 
13883
    sim_ac_qgl_avail=yes
 
13884
 
 
13885
  SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
 
13886
  SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
 
13887
  SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
 
13888
 
 
13889
  else
 
13890
    sim_ac_save_LIBS=$LIBS
 
13891
    LIBS="$sim_ac_qgl_libs $LIBS"
 
13892
 
 
13893
    echo "$as_me:$LINENO: checking for the QGL extension library" >&5
 
13894
echo $ECHO_N "checking for the QGL extension library... $ECHO_C" >&6
 
13895
 
 
13896
    sim_ac_qgl_libs=UNRESOLVED
 
13897
    for sim_ac_qgl_libcheck in "-lqgl" "-lqgl -luser32"; do
 
13898
      if test "x$sim_ac_qgl_libs" = "xUNRESOLVED"; then
 
13899
        LIBS="$sim_ac_qgl_libcheck $sim_ac_save_LIBS"
 
13900
        cat >conftest.$ac_ext <<_ACEOF
 
13901
#line $LINENO "configure"
 
13902
#include "confdefs.h"
 
13903
#include <qgl.h>
 
13904
#ifdef F77_DUMMY_MAIN
 
13905
#  ifdef __cplusplus
 
13906
     extern "C"
 
13907
#  endif
 
13908
   int F77_DUMMY_MAIN() { return 1; }
 
13909
#endif
 
13910
int
 
13911
main ()
 
13912
{
 
13913
QGLFormat * f = new QGLFormat; f->setDepth(true);
 
13914
  ;
 
13915
  return 0;
 
13916
}
 
13917
_ACEOF
 
13918
rm -f conftest.$ac_objext conftest$ac_exeext
 
13919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13920
  (eval $ac_link) 2>&5
 
13921
  ac_status=$?
 
13922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13923
  (exit $ac_status); } &&
 
13924
         { ac_try='test -s conftest$ac_exeext'
 
13925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13926
  (eval $ac_try) 2>&5
 
13927
  ac_status=$?
 
13928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13929
  (exit $ac_status); }; }; then
 
13930
  sim_ac_qgl_libs="$sim_ac_qgl_libcheck"
 
13931
else
 
13932
  echo "$as_me: failed program was:" >&5
 
13933
cat conftest.$ac_ext >&5
 
13934
fi
 
13935
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13936
      fi
 
13937
    done
 
13938
 
 
13939
    if test x"$sim_ac_qgl_libs" != xUNRESOLVED; then
 
13940
      echo "$as_me:$LINENO: result: $sim_ac_qgl_libs" >&5
 
13941
echo "${ECHO_T}$sim_ac_qgl_libs" >&6
 
13942
      sim_ac_qgl_avail=yes
 
13943
 
 
13944
  SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
 
13945
  SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
 
13946
  SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
 
13947
 
 
13948
    else
 
13949
      echo "$as_me:$LINENO: result: unavailable" >&5
 
13950
echo "${ECHO_T}unavailable" >&6
 
13951
      LIBS=$sim_ac_save_LIBS
 
13952
 
 
13953
 
 
13954
echo >&2 ""
 
13955
 
 
13956
 
 
13957
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
 
13958
if test -f $sim_ac_message_file; then
 
13959
  sim_ac_message="`sed -n -e '/^!no-qgl$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
 
13960
  if test x"$sim_ac_message" = x""; then
 
13961
    { { echo "$as_me:$LINENO: error: no message named 'no-qgl' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13962
echo "$as_me: error: no message named 'no-qgl' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13963
   { (exit 1); exit 1; }; }
 
13964
  else
 
13965
    eval "echo >&2 \"$sim_ac_message\""
 
13966
  fi
 
13967
else
 
13968
  { { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
 
13969
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
 
13970
   { (exit 1); exit 1; }; }
 
13971
fi
 
13972
 
 
13973
 
 
13974
 
 
13975
echo >&2 ""
 
13976
{ { echo "$as_me:$LINENO: error: aborting" >&5
 
13977
echo "$as_me: error: aborting" >&2;}
 
13978
   { (exit 1); exit 1; }; }
 
13979
 
 
13980
 
 
13981
    fi
 
13982
  fi
 
13983
fi
 
13984
 
 
13985
 
 
13986
# Check misc capabilities of the Qt and QGL libraries which depends
 
13987
# on the exact version available to us.
 
13988
 
 
13989
echo "$as_me:$LINENO: checking whether Qt::Keypad is defined" >&5
 
13990
echo $ECHO_N "checking whether Qt::Keypad is defined... $ECHO_C" >&6
 
13991
if test "${sim_cv_def_qt_keypad+set}" = set; then
 
13992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13993
else
 
13994
  cat >conftest.$ac_ext <<_ACEOF
 
13995
#line $LINENO "configure"
 
13996
#include "confdefs.h"
 
13997
#include <qkeycode.h>
 
13998
#ifdef F77_DUMMY_MAIN
 
13999
#  ifdef __cplusplus
 
14000
     extern "C"
 
14001
#  endif
 
14002
   int F77_DUMMY_MAIN() { return 1; }
 
14003
#endif
 
14004
int
 
14005
main ()
 
14006
{
 
14007
Qt::ButtonState s = Qt::Keypad;
 
14008
  ;
 
14009
  return 0;
 
14010
}
 
14011
_ACEOF
 
14012
rm -f conftest.$ac_objext conftest$ac_exeext
 
14013
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14014
  (eval $ac_link) 2>&5
 
14015
  ac_status=$?
 
14016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14017
  (exit $ac_status); } &&
 
14018
         { ac_try='test -s conftest$ac_exeext'
 
14019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14020
  (eval $ac_try) 2>&5
 
14021
  ac_status=$?
 
14022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14023
  (exit $ac_status); }; }; then
 
14024
  sim_cv_def_qt_keypad=true
 
14025
else
 
14026
  echo "$as_me: failed program was:" >&5
 
14027
cat conftest.$ac_ext >&5
 
14028
sim_cv_def_qt_keypad=false
 
14029
fi
 
14030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14031
fi
 
14032
echo "$as_me:$LINENO: result: $sim_cv_def_qt_keypad" >&5
 
14033
echo "${ECHO_T}$sim_cv_def_qt_keypad" >&6
 
14034
 
 
14035
if $sim_cv_def_qt_keypad; then
 
14036
 
 
14037
cat >>confdefs.h <<\_ACEOF
 
14038
#define HAVE_QT_KEYPAD_DEFINE 1
 
14039
_ACEOF
 
14040
 
 
14041
fi
 
14042
 
 
14043
 
 
14044
echo "$as_me:$LINENO: checking whether QWidget::showFullScreen() is available" >&5
 
14045
echo $ECHO_N "checking whether QWidget::showFullScreen() is available... $ECHO_C" >&6
 
14046
if test "${sim_cv_def_qwidget_showfullscreen+set}" = set; then
 
14047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14048
else
 
14049
  cat >conftest.$ac_ext <<_ACEOF
 
14050
#line $LINENO "configure"
 
14051
#include "confdefs.h"
 
14052
#include <qwidget.h>
 
14053
#ifdef F77_DUMMY_MAIN
 
14054
#  ifdef __cplusplus
 
14055
     extern "C"
 
14056
#  endif
 
14057
   int F77_DUMMY_MAIN() { return 1; }
 
14058
#endif
 
14059
int
 
14060
main ()
 
14061
{
 
14062
QWidget * w = new QWidget(); w->showFullScreen();
 
14063
  ;
 
14064
  return 0;
 
14065
}
 
14066
_ACEOF
 
14067
rm -f conftest.$ac_objext conftest$ac_exeext
 
14068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14069
  (eval $ac_link) 2>&5
 
14070
  ac_status=$?
 
14071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14072
  (exit $ac_status); } &&
 
14073
         { ac_try='test -s conftest$ac_exeext'
 
14074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14075
  (eval $ac_try) 2>&5
 
14076
  ac_status=$?
 
14077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14078
  (exit $ac_status); }; }; then
 
14079
  sim_cv_def_qwidget_showfullscreen=true
 
14080
else
 
14081
  echo "$as_me: failed program was:" >&5
 
14082
cat conftest.$ac_ext >&5
 
14083
sim_cv_def_qwidget_showfullscreen=false
 
14084
fi
 
14085
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14086
fi
 
14087
echo "$as_me:$LINENO: result: $sim_cv_def_qwidget_showfullscreen" >&5
 
14088
echo "${ECHO_T}$sim_cv_def_qwidget_showfullscreen" >&6
 
14089
 
 
14090
if $sim_cv_def_qwidget_showfullscreen; then
 
14091
 
 
14092
cat >>confdefs.h <<\_ACEOF
 
14093
#define HAVE_QWIDGET_SHOWFULLSCREEN 1
 
14094
_ACEOF
 
14095
 
 
14096
fi
 
14097
 
 
14098
 
 
14099
echo "$as_me:$LINENO: checking whether operator==(QGLFormat&,QGLFormat&) is available" >&5
 
14100
echo $ECHO_N "checking whether operator==(QGLFormat&,QGLFormat&) is available... $ECHO_C" >&6
 
14101
if test "${sim_cv_func_qglformat_eq_op+set}" = set; then
 
14102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14103
else
 
14104
  cat >conftest.$ac_ext <<_ACEOF
 
14105
#line $LINENO "configure"
 
14106
#include "confdefs.h"
 
14107
#include <qgl.h>
 
14108
#ifdef F77_DUMMY_MAIN
 
14109
#  ifdef __cplusplus
 
14110
     extern "C"
 
14111
#  endif
 
14112
   int F77_DUMMY_MAIN() { return 1; }
 
14113
#endif
 
14114
int
 
14115
main ()
 
14116
{
 
14117
QGLFormat f; if (f == f) f.setDepth(true);
 
14118
  ;
 
14119
  return 0;
 
14120
}
 
14121
_ACEOF
 
14122
rm -f conftest.$ac_objext conftest$ac_exeext
 
14123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14124
  (eval $ac_link) 2>&5
 
14125
  ac_status=$?
 
14126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14127
  (exit $ac_status); } &&
 
14128
         { ac_try='test -s conftest$ac_exeext'
 
14129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14130
  (eval $ac_try) 2>&5
 
14131
  ac_status=$?
 
14132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14133
  (exit $ac_status); }; }; then
 
14134
  sim_cv_func_qglformat_eq_op=true
 
14135
else
 
14136
  echo "$as_me: failed program was:" >&5
 
14137
cat conftest.$ac_ext >&5
 
14138
sim_cv_func_qglformat_eq_op=false
 
14139
fi
 
14140
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14141
fi
 
14142
echo "$as_me:$LINENO: result: $sim_cv_func_qglformat_eq_op" >&5
 
14143
echo "${ECHO_T}$sim_cv_func_qglformat_eq_op" >&6
 
14144
 
 
14145
if $sim_cv_func_qglformat_eq_op; then
 
14146
 
 
14147
cat >>confdefs.h <<\_ACEOF
 
14148
#define HAVE_QGLFORMAT_EQ_OP 1
 
14149
_ACEOF
 
14150
 
 
14151
fi
 
14152
 
 
14153
 
 
14154
echo "$as_me:$LINENO: checking whether QGLFormat::setOverlay() is available" >&5
 
14155
echo $ECHO_N "checking whether QGLFormat::setOverlay() is available... $ECHO_C" >&6
 
14156
if test "${sim_cv_func_qglformat_setoverlay+set}" = set; then
 
14157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14158
else
 
14159
  cat >conftest.$ac_ext <<_ACEOF
 
14160
#line $LINENO "configure"
 
14161
#include "confdefs.h"
 
14162
#include <qgl.h>
 
14163
#ifdef F77_DUMMY_MAIN
 
14164
#  ifdef __cplusplus
 
14165
     extern "C"
 
14166
#  endif
 
14167
   int F77_DUMMY_MAIN() { return 1; }
 
14168
#endif
 
14169
int
 
14170
main ()
 
14171
{
 
14172
QGLFormat f; f.setOverlay(TRUE);
 
14173
  ;
 
14174
  return 0;
 
14175
}
 
14176
_ACEOF
 
14177
rm -f conftest.$ac_objext conftest$ac_exeext
 
14178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14179
  (eval $ac_link) 2>&5
 
14180
  ac_status=$?
 
14181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14182
  (exit $ac_status); } &&
 
14183
         { ac_try='test -s conftest$ac_exeext'
 
14184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14185
  (eval $ac_try) 2>&5
 
14186
  ac_status=$?
 
14187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14188
  (exit $ac_status); }; }; then
 
14189
  sim_cv_func_qglformat_setoverlay=yes
 
14190
else
 
14191
  echo "$as_me: failed program was:" >&5
 
14192
cat conftest.$ac_ext >&5
 
14193
sim_cv_func_qglformat_setoverlay=no
 
14194
fi
 
14195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14196
fi
 
14197
echo "$as_me:$LINENO: result: $sim_cv_func_qglformat_setoverlay" >&5
 
14198
echo "${ECHO_T}$sim_cv_func_qglformat_setoverlay" >&6
 
14199
 
 
14200
if test x"$sim_cv_func_qglformat_setoverlay" = xyes; then
 
14201
 
 
14202
cat >>confdefs.h <<\_ACEOF
 
14203
#define HAVE_QGLFORMAT_SETOVERLAY 1
 
14204
_ACEOF
 
14205
 
 
14206
fi
 
14207
 
 
14208
 
 
14209
echo "$as_me:$LINENO: checking whether the QGLWidget::setAutoBufferSwap() is available" >&5
 
14210
echo $ECHO_N "checking whether the QGLWidget::setAutoBufferSwap() is available... $ECHO_C" >&6
 
14211
if test "${sim_cv_func_qglwidget_setautobufferswap+set}" = set; then
 
14212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14213
else
 
14214
  cat >conftest.$ac_ext <<_ACEOF
 
14215
#line $LINENO "configure"
 
14216
#include "confdefs.h"
 
14217
#include <qgl.h>
 
14218
class MyGLWidget : public QGLWidget {
 
14219
public: MyGLWidget() {setAutoBufferSwap(FALSE);} };
 
14220
#ifdef F77_DUMMY_MAIN
 
14221
#  ifdef __cplusplus
 
14222
     extern "C"
 
14223
#  endif
 
14224
   int F77_DUMMY_MAIN() { return 1; }
 
14225
#endif
 
14226
int
 
14227
main ()
 
14228
{
 
14229
MyGLWidget * w = new MyGLWidget;
 
14230
  ;
 
14231
  return 0;
 
14232
}
 
14233
_ACEOF
 
14234
rm -f conftest.$ac_objext conftest$ac_exeext
 
14235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14236
  (eval $ac_link) 2>&5
 
14237
  ac_status=$?
 
14238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14239
  (exit $ac_status); } &&
 
14240
         { ac_try='test -s conftest$ac_exeext'
 
14241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14242
  (eval $ac_try) 2>&5
 
14243
  ac_status=$?
 
14244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14245
  (exit $ac_status); }; }; then
 
14246
  sim_cv_func_qglwidget_setautobufferswap=yes
 
14247
else
 
14248
  echo "$as_me: failed program was:" >&5
 
14249
cat conftest.$ac_ext >&5
 
14250
sim_cv_func_qglwidget_setautobufferswap=no
 
14251
fi
 
14252
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14253
fi
 
14254
echo "$as_me:$LINENO: result: $sim_cv_func_qglwidget_setautobufferswap" >&5
 
14255
echo "${ECHO_T}$sim_cv_func_qglwidget_setautobufferswap" >&6
 
14256
 
 
14257
if test x"$sim_cv_func_qglwidget_setautobufferswap" = xyes; then
 
14258
 
 
14259
cat >>confdefs.h <<\_ACEOF
 
14260
#define HAVE_QGLWIDGET_SETAUTOBUFFERSWAP 1
 
14261
_ACEOF
 
14262
 
 
14263
fi
 
14264
 
 
14265
 
 
14266
# QStyleFactory was added in Qt 3.0.
 
14267
 
 
14268
for ac_header in qstylefactory.h
 
14269
do
 
14270
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14271
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14272
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14273
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14274
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14276
fi
 
14277
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14279
else
 
14280
  # Is the header compilable?
 
14281
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14282
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14283
cat >conftest.$ac_ext <<_ACEOF
 
14284
#line $LINENO "configure"
 
14285
#include "confdefs.h"
 
14286
$ac_includes_default
 
14287
#include <$ac_header>
 
14288
_ACEOF
 
14289
rm -f conftest.$ac_objext
 
14290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14291
  (eval $ac_compile) 2>&5
 
14292
  ac_status=$?
 
14293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14294
  (exit $ac_status); } &&
 
14295
         { ac_try='test -s conftest.$ac_objext'
 
14296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14297
  (eval $ac_try) 2>&5
 
14298
  ac_status=$?
 
14299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14300
  (exit $ac_status); }; }; then
 
14301
  ac_header_compiler=yes
 
14302
else
 
14303
  echo "$as_me: failed program was:" >&5
 
14304
cat conftest.$ac_ext >&5
 
14305
ac_header_compiler=no
 
14306
fi
 
14307
rm -f conftest.$ac_objext conftest.$ac_ext
 
14308
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14309
echo "${ECHO_T}$ac_header_compiler" >&6
 
14310
 
 
14311
# Is the header present?
 
14312
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14313
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
14314
cat >conftest.$ac_ext <<_ACEOF
 
14315
#line $LINENO "configure"
 
14316
#include "confdefs.h"
 
14317
#include <$ac_header>
 
14318
_ACEOF
 
14319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14320
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14321
  ac_status=$?
 
14322
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
14323
  rm -f conftest.er1
 
14324
  cat conftest.err >&5
 
14325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14326
  (exit $ac_status); } >/dev/null; then
 
14327
  if test -s conftest.err; then
 
14328
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
14329
  else
 
14330
    ac_cpp_err=
 
14331
  fi
 
14332
else
 
14333
  ac_cpp_err=yes
 
14334
fi
 
14335
if test -z "$ac_cpp_err"; then
 
14336
  ac_header_preproc=yes
 
14337
else
 
14338
  echo "$as_me: failed program was:" >&5
 
14339
  cat conftest.$ac_ext >&5
 
14340
  ac_header_preproc=no
 
14341
fi
 
14342
rm -f conftest.err conftest.$ac_ext
 
14343
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14344
echo "${ECHO_T}$ac_header_preproc" >&6
 
14345
 
 
14346
# So?  What about this header?
 
14347
case $ac_header_compiler:$ac_header_preproc in
 
14348
  yes:no )
 
14349
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14350
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14351
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14352
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
14353
  no:yes )
 
14354
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14355
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14356
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
14357
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
14358
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
14360
esac
 
14361
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14362
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14363
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14365
else
 
14366
  eval "$as_ac_Header=$ac_header_preproc"
 
14367
fi
 
14368
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14369
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14370
 
 
14371
fi
 
14372
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14373
  cat >>confdefs.h <<_ACEOF
 
14374
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14375
_ACEOF
 
14376
 
 
14377
fi
 
14378
 
 
14379
done
 
14380
 
 
14381
 
 
14382
# **************************************************************************
 
14383
# Spaceball support through Linux Joystick driver
 
14384
 
 
14385
# Tmp disabled.
 
14386
 
 
14387
 
 
14388
 
 
14389
if false; then
 
14390
  HAVE_JOYSTICK_LINUX_TRUE=
 
14391
  HAVE_JOYSTICK_LINUX_FALSE='#'
 
14392
else
 
14393
  HAVE_JOYSTICK_LINUX_TRUE='#'
 
14394
  HAVE_JOYSTICK_LINUX_FALSE=
 
14395
fi
 
14396
 
 
14397
#SIM_AC_CHECK_JOYSTICK_LINUX([
 
14398
#  AC_DEFINE(HAVE_JOYSTICK_LINUX, ,
 
14399
#    [Define to enable Linux Joystick driver support])
 
14400
#  AC_DEFINE_UNQUOTED(SOXT_LINUX_JOYSTICK_DEVICE,
 
14401
#    "$sim_ac_joystick_linux_device",
 
14402
#    [Define this to device handle to fallback on])
 
14403
#])
 
14404
#AM_CONDITIONAL(HAVE_JOYSTICK_LINUX, $sim_ac_joystick_linux_avail)
 
14405
#SIM_AC_CONFIGURATION_SETTING([Joystick Device], [$sim_ac_joystick_linux_device])
 
14406
 
 
14407
 
 
14408
# **************************************************************************
 
14409
# Compiler control.
 
14410
 
 
14411
 
 
14412
# Check whether --enable-debug or --disable-debug was given.
 
14413
if test "${enable_debug+set}" = set; then
 
14414
  enableval="$enable_debug"
 
14415
  case "${enableval}" in
 
14416
    yes) enable_debug=true ;;
 
14417
    no)  enable_debug=false ;;
 
14418
    true | false) enable_debug=${enableval} ;;
 
14419
    *) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-debug" >&5
 
14420
echo "$as_me: error: bad value \"${enableval}\" for --enable-debug" >&2;}
 
14421
   { (exit 1); exit 1; }; } ;;
 
14422
  esac
 
14423
else
 
14424
  enable_debug=true
 
14425
fi;
 
14426
 
 
14427
if $enable_debug; then
 
14428
  DSUFFIX=d
 
14429
 
 
14430
  CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=1"
 
14431
 
 
14432
else
 
14433
  DSUFFIX=
 
14434
  CPPFLAGS="$CPPFLAGS -DNDEBUG"
 
14435
 
 
14436
  CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=0"
 
14437
 
 
14438
fi
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
echo "$as_me:$LINENO: checking for function name variable" >&5
 
14444
echo $ECHO_N "checking for function name variable... $ECHO_C" >&6
 
14445
if test "${sim_cv_var_functionname+set}" = set; then
 
14446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14447
else
 
14448
 
 
14449
  # __func__ is the identifier used by compilers which are
 
14450
  # compliant with the C99 ISO/IEC 9899:1999 standard.
 
14451
  cat >conftest.$ac_ext <<_ACEOF
 
14452
#line $LINENO "configure"
 
14453
#include "confdefs.h"
 
14454
#include <stdio.h>
 
14455
#ifdef F77_DUMMY_MAIN
 
14456
#  ifdef __cplusplus
 
14457
     extern "C"
 
14458
#  endif
 
14459
   int F77_DUMMY_MAIN() { return 1; }
 
14460
#endif
 
14461
int
 
14462
main ()
 
14463
{
 
14464
(void)printf("%s\n",__func__)
 
14465
  ;
 
14466
  return 0;
 
14467
}
 
14468
_ACEOF
 
14469
rm -f conftest.$ac_objext
 
14470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14471
  (eval $ac_compile) 2>&5
 
14472
  ac_status=$?
 
14473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14474
  (exit $ac_status); } &&
 
14475
         { ac_try='test -s conftest.$ac_objext'
 
14476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14477
  (eval $ac_try) 2>&5
 
14478
  ac_status=$?
 
14479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14480
  (exit $ac_status); }; }; then
 
14481
  sim_cv_var_functionname=__func__
 
14482
else
 
14483
  echo "$as_me: failed program was:" >&5
 
14484
cat conftest.$ac_ext >&5
 
14485
sim_cv_var_functionname=none
 
14486
fi
 
14487
rm -f conftest.$ac_objext conftest.$ac_ext
 
14488
  if test x"$sim_cv_var_functionname" = x"none"; then
 
14489
    # GCC uses __PRETTY_FUNCTION__
 
14490
    cat >conftest.$ac_ext <<_ACEOF
 
14491
#line $LINENO "configure"
 
14492
#include "confdefs.h"
 
14493
#include <stdio.h>
 
14494
#ifdef F77_DUMMY_MAIN
 
14495
#  ifdef __cplusplus
 
14496
     extern "C"
 
14497
#  endif
 
14498
   int F77_DUMMY_MAIN() { return 1; }
 
14499
#endif
 
14500
int
 
14501
main ()
 
14502
{
 
14503
(void)printf("%s\n",__PRETTY_FUNCTION__)
 
14504
  ;
 
14505
  return 0;
 
14506
}
 
14507
_ACEOF
 
14508
rm -f conftest.$ac_objext
 
14509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14510
  (eval $ac_compile) 2>&5
 
14511
  ac_status=$?
 
14512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14513
  (exit $ac_status); } &&
 
14514
         { ac_try='test -s conftest.$ac_objext'
 
14515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14516
  (eval $ac_try) 2>&5
 
14517
  ac_status=$?
 
14518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14519
  (exit $ac_status); }; }; then
 
14520
  sim_cv_var_functionname=__PRETTY_FUNCTION__
 
14521
else
 
14522
  echo "$as_me: failed program was:" >&5
 
14523
cat conftest.$ac_ext >&5
 
14524
sim_cv_var_functionname=none
 
14525
fi
 
14526
rm -f conftest.$ac_objext conftest.$ac_ext
 
14527
  fi
 
14528
  if test x"$sim_cv_var_functionname" = x"none"; then
 
14529
    cat >conftest.$ac_ext <<_ACEOF
 
14530
#line $LINENO "configure"
 
14531
#include "confdefs.h"
 
14532
#include <stdio.h>
 
14533
#ifdef F77_DUMMY_MAIN
 
14534
#  ifdef __cplusplus
 
14535
     extern "C"
 
14536
#  endif
 
14537
   int F77_DUMMY_MAIN() { return 1; }
 
14538
#endif
 
14539
int
 
14540
main ()
 
14541
{
 
14542
(void)printf("%s\n",__FUNCTION__)
 
14543
  ;
 
14544
  return 0;
 
14545
}
 
14546
_ACEOF
 
14547
rm -f conftest.$ac_objext
 
14548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14549
  (eval $ac_compile) 2>&5
 
14550
  ac_status=$?
 
14551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14552
  (exit $ac_status); } &&
 
14553
         { ac_try='test -s conftest.$ac_objext'
 
14554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14555
  (eval $ac_try) 2>&5
 
14556
  ac_status=$?
 
14557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14558
  (exit $ac_status); }; }; then
 
14559
  sim_cv_var_functionname=__FUNCTION__
 
14560
else
 
14561
  echo "$as_me: failed program was:" >&5
 
14562
cat conftest.$ac_ext >&5
 
14563
sim_cv_var_functionname=none
 
14564
fi
 
14565
rm -f conftest.$ac_objext conftest.$ac_ext
 
14566
  fi
 
14567
fi
 
14568
echo "$as_me:$LINENO: result: $sim_cv_var_functionname" >&5
 
14569
echo "${ECHO_T}$sim_cv_var_functionname" >&6
 
14570
 
 
14571
# FIXME: these can probably be contracted to a single test inside a loop.
 
14572
# 20010330 mortene.
 
14573
 
 
14574
if test x"$sim_cv_var_functionname" = x"__func__"; then
 
14575
 
 
14576
cat >>confdefs.h <<\_ACEOF
 
14577
#define HAVE_VAR___func__ 1
 
14578
_ACEOF
 
14579
 
 
14580
fi
 
14581
 
 
14582
if test x"$sim_cv_var_functionname" = x"__PRETTY_FUNCTION__"; then
 
14583
 
 
14584
cat >>confdefs.h <<\_ACEOF
 
14585
#define HAVE_VAR___PRETTY_FUNCTION__ 1
 
14586
_ACEOF
 
14587
 
 
14588
fi
 
14589
 
 
14590
if test x"$sim_cv_var_functionname" = x"__FUNCTION__"; then
 
14591
 
 
14592
cat >>confdefs.h <<\_ACEOF
 
14593
#define HAVE_VAR___FUNCTION__ 1
 
14594
_ACEOF
 
14595
 
 
14596
fi
 
14597
 
 
14598
 
 
14599
 
 
14600
# Check whether --enable-symbols or --disable-symbols was given.
 
14601
if test "${enable_symbols+set}" = set; then
 
14602
  enableval="$enable_symbols"
 
14603
  case "${enableval}" in
 
14604
    yes) enable_symbols=yes ;;
 
14605
    no)  enable_symbols=no ;;
 
14606
    *) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-symbols" >&5
 
14607
echo "$as_me: error: bad value \"${enableval}\" for --enable-symbols" >&2;}
 
14608
   { (exit 1); exit 1; }; } ;;
 
14609
  esac
 
14610
else
 
14611
  enable_symbols=yes
 
14612
fi;
 
14613
 
 
14614
# FIXME: don't mangle options like -fno-gnu-linker and -fvolatile-global
 
14615
# 20020104 larsa
 
14616
if test x"$enable_symbols" = x"no"; then
 
14617
  # CPPFLAGS="`echo $CPPFLAGS | sed 's/-g\>//'`"
 
14618
  CFLAGS="`echo $CFLAGS | sed 's/-g\>//'`"
 
14619
  CXXFLAGS="`echo $CXXFLAGS | sed 's/-g\>//'`"
 
14620
fi
 
14621
 
 
14622
 
 
14623
 
 
14624
# Check whether --enable-rtti or --disable-rtti was given.
 
14625
if test "${enable_rtti+set}" = set; then
 
14626
  enableval="$enable_rtti"
 
14627
  case "${enableval}" in
 
14628
    yes) enable_rtti=yes ;;
 
14629
    no)  enable_rtti=no ;;
 
14630
    *) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-rtti" >&5
 
14631
echo "$as_me: error: bad value \"${enableval}\" for --enable-rtti" >&2;}
 
14632
   { (exit 1); exit 1; }; } ;;
 
14633
  esac
 
14634
else
 
14635
  enable_rtti=yes
 
14636
fi;
 
14637
 
 
14638
if test x"$enable_rtti" = x"no"; then
 
14639
  if test x"$GXX" = x"yes"; then
 
14640
    CXXFLAGS="$CXXFLAGS -fno-rtti"
 
14641
  else
 
14642
    { echo "$as_me:$LINENO: WARNING: --enable-rtti only has effect when using GNU g++" >&5
 
14643
echo "$as_me: WARNING: --enable-rtti only has effect when using GNU g++" >&2;}
 
14644
  fi
 
14645
fi
 
14646
 
 
14647
 
 
14648
 
 
14649
# Check whether --enable-exceptions or --disable-exceptions was given.
 
14650
if test "${enable_exceptions+set}" = set; then
 
14651
  enableval="$enable_exceptions"
 
14652
  case "${enableval}" in
 
14653
    yes) enable_exceptions=yes ;;
 
14654
    no)  enable_exceptions=no ;;
 
14655
    *) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-exceptions" >&5
 
14656
echo "$as_me: error: bad value \"${enableval}\" for --enable-exceptions" >&2;}
 
14657
   { (exit 1); exit 1; }; } ;;
 
14658
  esac
 
14659
else
 
14660
  enable_exceptions=no
 
14661
fi;
 
14662
 
 
14663
if test x"$enable_exceptions" = x"no"; then
 
14664
  if test "x$GXX" = "xyes"; then
 
14665
    unset _exception_flag
 
14666
 
 
14667
 
 
14668
 
 
14669
ac_ext=cc
 
14670
ac_cpp='$CXXCPP $CPPFLAGS'
 
14671
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14672
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14673
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14674
 
 
14675
echo "$as_me:$LINENO: checking whether $CXX accepts -fno-exceptions" >&5
 
14676
echo $ECHO_N "checking whether $CXX accepts -fno-exceptions... $ECHO_C" >&6
 
14677
 
 
14678
sim_ac_save_cppflags=$CPPFLAGS
 
14679
CPPFLAGS="$CPPFLAGS -fno-exceptions"
 
14680
cat >conftest.$ac_ext <<_ACEOF
 
14681
#line $LINENO "configure"
 
14682
#include "confdefs.h"
 
14683
 
 
14684
#ifdef F77_DUMMY_MAIN
 
14685
#  ifdef __cplusplus
 
14686
     extern "C"
 
14687
#  endif
 
14688
   int F77_DUMMY_MAIN() { return 1; }
 
14689
#endif
 
14690
int
 
14691
main ()
 
14692
{
 
14693
 
 
14694
  ;
 
14695
  return 0;
 
14696
}
 
14697
_ACEOF
 
14698
rm -f conftest.$ac_objext
 
14699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14700
  (eval $ac_compile) 2>&5
 
14701
  ac_status=$?
 
14702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14703
  (exit $ac_status); } &&
 
14704
         { ac_try='test -s conftest.$ac_objext'
 
14705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14706
  (eval $ac_try) 2>&5
 
14707
  ac_status=$?
 
14708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14709
  (exit $ac_status); }; }; then
 
14710
  sim_ac_accept_result=yes
 
14711
else
 
14712
  echo "$as_me: failed program was:" >&5
 
14713
cat conftest.$ac_ext >&5
 
14714
sim_ac_accept_result=no
 
14715
fi
 
14716
rm -f conftest.$ac_objext conftest.$ac_ext
 
14717
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
14718
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
14719
CPPFLAGS=$sim_ac_save_cppflags
 
14720
# This need to go last, in case CPPFLAGS is modified in _exception_flag=-fno-exceptions or .
 
14721
if test $sim_ac_accept_result = yes; then
 
14722
  _exception_flag=-fno-exceptions
 
14723
else
 
14724
  :
 
14725
fi
 
14726
 
 
14727
ac_ext=cc
 
14728
ac_cpp='$CXXCPP $CPPFLAGS'
 
14729
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14730
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14731
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14732
 
 
14733
 
 
14734
    if test x"${_exception_flag+set}" != x"set"; then
 
14735
 
 
14736
 
 
14737
 
 
14738
ac_ext=cc
 
14739
ac_cpp='$CXXCPP $CPPFLAGS'
 
14740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14743
 
 
14744
echo "$as_me:$LINENO: checking whether $CXX accepts -fno-handle-exceptions" >&5
 
14745
echo $ECHO_N "checking whether $CXX accepts -fno-handle-exceptions... $ECHO_C" >&6
 
14746
 
 
14747
sim_ac_save_cppflags=$CPPFLAGS
 
14748
CPPFLAGS="$CPPFLAGS -fno-handle-exceptions"
 
14749
cat >conftest.$ac_ext <<_ACEOF
 
14750
#line $LINENO "configure"
 
14751
#include "confdefs.h"
 
14752
 
 
14753
#ifdef F77_DUMMY_MAIN
 
14754
#  ifdef __cplusplus
 
14755
     extern "C"
 
14756
#  endif
 
14757
   int F77_DUMMY_MAIN() { return 1; }
 
14758
#endif
 
14759
int
 
14760
main ()
 
14761
{
 
14762
 
 
14763
  ;
 
14764
  return 0;
 
14765
}
 
14766
_ACEOF
 
14767
rm -f conftest.$ac_objext
 
14768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14769
  (eval $ac_compile) 2>&5
 
14770
  ac_status=$?
 
14771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14772
  (exit $ac_status); } &&
 
14773
         { ac_try='test -s conftest.$ac_objext'
 
14774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14775
  (eval $ac_try) 2>&5
 
14776
  ac_status=$?
 
14777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14778
  (exit $ac_status); }; }; then
 
14779
  sim_ac_accept_result=yes
 
14780
else
 
14781
  echo "$as_me: failed program was:" >&5
 
14782
cat conftest.$ac_ext >&5
 
14783
sim_ac_accept_result=no
 
14784
fi
 
14785
rm -f conftest.$ac_objext conftest.$ac_ext
 
14786
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
14787
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
14788
CPPFLAGS=$sim_ac_save_cppflags
 
14789
# This need to go last, in case CPPFLAGS is modified in _exception_flag=-fno-handle-exceptions or .
 
14790
if test $sim_ac_accept_result = yes; then
 
14791
  _exception_flag=-fno-handle-exceptions
 
14792
else
 
14793
  :
 
14794
fi
 
14795
 
 
14796
ac_ext=cc
 
14797
ac_cpp='$CXXCPP $CPPFLAGS'
 
14798
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14799
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14800
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14801
 
 
14802
 
 
14803
    fi
 
14804
    if test x"${_exception_flag+set}" != x"set"; then
 
14805
      { echo "$as_me:$LINENO: WARNING: couldn't find a valid option for avoiding exception handling" >&5
 
14806
echo "$as_me: WARNING: couldn't find a valid option for avoiding exception handling" >&2;}
 
14807
    else
 
14808
      CXXFLAGS="$CXXFLAGS $_exception_flag"
 
14809
    fi
 
14810
  fi
 
14811
else
 
14812
  if test x"$GXX" != x"yes"; then
 
14813
    { echo "$as_me:$LINENO: WARNING: --enable-exceptions only has effect when using GNU g++" >&5
 
14814
echo "$as_me: WARNING: --enable-exceptions only has effect when using GNU g++" >&2;}
 
14815
  fi
 
14816
fi
 
14817
 
 
14818
 
 
14819
 
 
14820
# Check whether --enable-profile or --disable-profile was given.
 
14821
if test "${enable_profile+set}" = set; then
 
14822
  enableval="$enable_profile"
 
14823
  case "${enableval}" in
 
14824
    yes) enable_profile=yes ;;
 
14825
    no)  enable_profile=no ;;
 
14826
    *) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-profile" >&5
 
14827
echo "$as_me: error: bad value \"${enableval}\" for --enable-profile" >&2;}
 
14828
   { (exit 1); exit 1; }; } ;;
 
14829
  esac
 
14830
else
 
14831
  enable_profile=no
 
14832
fi;
 
14833
 
 
14834
if test x"$enable_profile" = x"yes"; then
 
14835
  if test x"$GXX" = x"yes" || test x"$GCC" = x"yes"; then
 
14836
    CFLAGS="$CFLAGS -pg"
 
14837
    CXXFLAGS="$CXXFLAGS -pg"
 
14838
    LDFLAGS="$LDFLAGS -pg"
 
14839
  else
 
14840
    { echo "$as_me:$LINENO: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&5
 
14841
echo "$as_me: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&2;}
 
14842
  fi
 
14843
fi
 
14844
 
 
14845
 
 
14846
# Check whether --enable-warnings or --disable-warnings was given.
 
14847
if test "${enable_warnings+set}" = set; then
 
14848
  enableval="$enable_warnings"
 
14849
  case "${enableval}" in
 
14850
    yes) enable_warnings=yes ;;
 
14851
    no)  enable_warnings=no ;;
 
14852
    *) { { echo "$as_me:$LINENO: error: bad value \"$enableval\" for --enable-warnings" >&5
 
14853
echo "$as_me: error: bad value \"$enableval\" for --enable-warnings" >&2;}
 
14854
   { (exit 1); exit 1; }; } ;;
 
14855
  esac
 
14856
else
 
14857
  enable_warnings=yes
 
14858
fi;
 
14859
 
 
14860
if test x"$enable_warnings" = x"yes"; then
 
14861
  if test x"$GCC" = x"yes"; then
 
14862
 
 
14863
 
 
14864
 
 
14865
ac_ext=c
 
14866
ac_cpp='$CPP $CPPFLAGS'
 
14867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14870
 
 
14871
echo "$as_me:$LINENO: checking whether $CC accepts -W -Wall -Wno-unused" >&5
 
14872
echo $ECHO_N "checking whether $CC accepts -W -Wall -Wno-unused... $ECHO_C" >&6
 
14873
 
 
14874
sim_ac_save_cppflags=$CPPFLAGS
 
14875
CPPFLAGS="$CPPFLAGS -W -Wall -Wno-unused"
 
14876
cat >conftest.$ac_ext <<_ACEOF
 
14877
#line $LINENO "configure"
 
14878
#include "confdefs.h"
 
14879
 
 
14880
#ifdef F77_DUMMY_MAIN
 
14881
#  ifdef __cplusplus
 
14882
     extern "C"
 
14883
#  endif
 
14884
   int F77_DUMMY_MAIN() { return 1; }
 
14885
#endif
 
14886
int
 
14887
main ()
 
14888
{
 
14889
 
 
14890
  ;
 
14891
  return 0;
 
14892
}
 
14893
_ACEOF
 
14894
rm -f conftest.$ac_objext
 
14895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14896
  (eval $ac_compile) 2>&5
 
14897
  ac_status=$?
 
14898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14899
  (exit $ac_status); } &&
 
14900
         { ac_try='test -s conftest.$ac_objext'
 
14901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14902
  (eval $ac_try) 2>&5
 
14903
  ac_status=$?
 
14904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14905
  (exit $ac_status); }; }; then
 
14906
  sim_ac_accept_result=yes
 
14907
else
 
14908
  echo "$as_me: failed program was:" >&5
 
14909
cat conftest.$ac_ext >&5
 
14910
sim_ac_accept_result=no
 
14911
fi
 
14912
rm -f conftest.$ac_objext conftest.$ac_ext
 
14913
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
14914
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
14915
CPPFLAGS=$sim_ac_save_cppflags
 
14916
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -W -Wall -Wno-unused" or .
 
14917
if test $sim_ac_accept_result = yes; then
 
14918
  CFLAGS="$CFLAGS -W -Wall -Wno-unused"
 
14919
else
 
14920
  :
 
14921
fi
 
14922
 
 
14923
ac_ext=cc
 
14924
ac_cpp='$CXXCPP $CPPFLAGS'
 
14925
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14926
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14927
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14928
 
 
14929
 
 
14930
 
 
14931
 
 
14932
 
 
14933
ac_ext=c
 
14934
ac_cpp='$CPP $CPPFLAGS'
 
14935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14938
 
 
14939
echo "$as_me:$LINENO: checking whether $CC accepts -Wno-multichar" >&5
 
14940
echo $ECHO_N "checking whether $CC accepts -Wno-multichar... $ECHO_C" >&6
 
14941
 
 
14942
sim_ac_save_cppflags=$CPPFLAGS
 
14943
CPPFLAGS="$CPPFLAGS -Wno-multichar"
 
14944
cat >conftest.$ac_ext <<_ACEOF
 
14945
#line $LINENO "configure"
 
14946
#include "confdefs.h"
 
14947
 
 
14948
#ifdef F77_DUMMY_MAIN
 
14949
#  ifdef __cplusplus
 
14950
     extern "C"
 
14951
#  endif
 
14952
   int F77_DUMMY_MAIN() { return 1; }
 
14953
#endif
 
14954
int
 
14955
main ()
 
14956
{
 
14957
 
 
14958
  ;
 
14959
  return 0;
 
14960
}
 
14961
_ACEOF
 
14962
rm -f conftest.$ac_objext
 
14963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14964
  (eval $ac_compile) 2>&5
 
14965
  ac_status=$?
 
14966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14967
  (exit $ac_status); } &&
 
14968
         { ac_try='test -s conftest.$ac_objext'
 
14969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14970
  (eval $ac_try) 2>&5
 
14971
  ac_status=$?
 
14972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14973
  (exit $ac_status); }; }; then
 
14974
  sim_ac_accept_result=yes
 
14975
else
 
14976
  echo "$as_me: failed program was:" >&5
 
14977
cat conftest.$ac_ext >&5
 
14978
sim_ac_accept_result=no
 
14979
fi
 
14980
rm -f conftest.$ac_objext conftest.$ac_ext
 
14981
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
14982
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
14983
CPPFLAGS=$sim_ac_save_cppflags
 
14984
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -Wno-multichar" or .
 
14985
if test $sim_ac_accept_result = yes; then
 
14986
  CFLAGS="$CFLAGS -Wno-multichar"
 
14987
else
 
14988
  :
 
14989
fi
 
14990
 
 
14991
ac_ext=cc
 
14992
ac_cpp='$CXXCPP $CPPFLAGS'
 
14993
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14994
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14995
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14996
 
 
14997
 
 
14998
  fi
 
14999
 
 
15000
  if test x"$GXX" = x"yes"; then
 
15001
 
 
15002
 
 
15003
 
 
15004
ac_ext=cc
 
15005
ac_cpp='$CXXCPP $CPPFLAGS'
 
15006
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15007
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15008
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15009
 
 
15010
echo "$as_me:$LINENO: checking whether $CXX accepts -W -Wall -Wno-unused" >&5
 
15011
echo $ECHO_N "checking whether $CXX accepts -W -Wall -Wno-unused... $ECHO_C" >&6
 
15012
 
 
15013
sim_ac_save_cppflags=$CPPFLAGS
 
15014
CPPFLAGS="$CPPFLAGS -W -Wall -Wno-unused"
 
15015
cat >conftest.$ac_ext <<_ACEOF
 
15016
#line $LINENO "configure"
 
15017
#include "confdefs.h"
 
15018
 
 
15019
#ifdef F77_DUMMY_MAIN
 
15020
#  ifdef __cplusplus
 
15021
     extern "C"
 
15022
#  endif
 
15023
   int F77_DUMMY_MAIN() { return 1; }
 
15024
#endif
 
15025
int
 
15026
main ()
 
15027
{
 
15028
 
 
15029
  ;
 
15030
  return 0;
 
15031
}
 
15032
_ACEOF
 
15033
rm -f conftest.$ac_objext
 
15034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15035
  (eval $ac_compile) 2>&5
 
15036
  ac_status=$?
 
15037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15038
  (exit $ac_status); } &&
 
15039
         { ac_try='test -s conftest.$ac_objext'
 
15040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15041
  (eval $ac_try) 2>&5
 
15042
  ac_status=$?
 
15043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15044
  (exit $ac_status); }; }; then
 
15045
  sim_ac_accept_result=yes
 
15046
else
 
15047
  echo "$as_me: failed program was:" >&5
 
15048
cat conftest.$ac_ext >&5
 
15049
sim_ac_accept_result=no
 
15050
fi
 
15051
rm -f conftest.$ac_objext conftest.$ac_ext
 
15052
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15053
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15054
CPPFLAGS=$sim_ac_save_cppflags
 
15055
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -W -Wall -Wno-unused" or .
 
15056
if test $sim_ac_accept_result = yes; then
 
15057
  CXXFLAGS="$CXXFLAGS -W -Wall -Wno-unused"
 
15058
else
 
15059
  :
 
15060
fi
 
15061
 
 
15062
ac_ext=cc
 
15063
ac_cpp='$CXXCPP $CPPFLAGS'
 
15064
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15065
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15066
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15067
 
 
15068
 
 
15069
 
 
15070
 
 
15071
 
 
15072
ac_ext=cc
 
15073
ac_cpp='$CXXCPP $CPPFLAGS'
 
15074
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15075
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15076
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15077
 
 
15078
echo "$as_me:$LINENO: checking whether $CXX accepts -Wno-multichar" >&5
 
15079
echo $ECHO_N "checking whether $CXX accepts -Wno-multichar... $ECHO_C" >&6
 
15080
 
 
15081
sim_ac_save_cppflags=$CPPFLAGS
 
15082
CPPFLAGS="$CPPFLAGS -Wno-multichar"
 
15083
cat >conftest.$ac_ext <<_ACEOF
 
15084
#line $LINENO "configure"
 
15085
#include "confdefs.h"
 
15086
 
 
15087
#ifdef F77_DUMMY_MAIN
 
15088
#  ifdef __cplusplus
 
15089
     extern "C"
 
15090
#  endif
 
15091
   int F77_DUMMY_MAIN() { return 1; }
 
15092
#endif
 
15093
int
 
15094
main ()
 
15095
{
 
15096
 
 
15097
  ;
 
15098
  return 0;
 
15099
}
 
15100
_ACEOF
 
15101
rm -f conftest.$ac_objext
 
15102
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15103
  (eval $ac_compile) 2>&5
 
15104
  ac_status=$?
 
15105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15106
  (exit $ac_status); } &&
 
15107
         { ac_try='test -s conftest.$ac_objext'
 
15108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15109
  (eval $ac_try) 2>&5
 
15110
  ac_status=$?
 
15111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15112
  (exit $ac_status); }; }; then
 
15113
  sim_ac_accept_result=yes
 
15114
else
 
15115
  echo "$as_me: failed program was:" >&5
 
15116
cat conftest.$ac_ext >&5
 
15117
sim_ac_accept_result=no
 
15118
fi
 
15119
rm -f conftest.$ac_objext conftest.$ac_ext
 
15120
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15121
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15122
CPPFLAGS=$sim_ac_save_cppflags
 
15123
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -Wno-multichar" or .
 
15124
if test $sim_ac_accept_result = yes; then
 
15125
  CXXFLAGS="$CXXFLAGS -Wno-multichar"
 
15126
else
 
15127
  :
 
15128
fi
 
15129
 
 
15130
ac_ext=cc
 
15131
ac_cpp='$CXXCPP $CPPFLAGS'
 
15132
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15133
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15134
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15135
 
 
15136
 
 
15137
  fi
 
15138
 
 
15139
  case $host in
 
15140
  *-*-irix*)
 
15141
    ### Turn on all warnings ######################################
 
15142
    if test x"$CC" = xcc || test x"$CC" = xCC; then
 
15143
 
 
15144
 
 
15145
 
 
15146
ac_ext=c
 
15147
ac_cpp='$CPP $CPPFLAGS'
 
15148
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15149
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15150
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15151
 
 
15152
echo "$as_me:$LINENO: checking whether $CC accepts -fullwarn" >&5
 
15153
echo $ECHO_N "checking whether $CC accepts -fullwarn... $ECHO_C" >&6
 
15154
 
 
15155
sim_ac_save_cppflags=$CPPFLAGS
 
15156
CPPFLAGS="$CPPFLAGS -fullwarn"
 
15157
cat >conftest.$ac_ext <<_ACEOF
 
15158
#line $LINENO "configure"
 
15159
#include "confdefs.h"
 
15160
 
 
15161
#ifdef F77_DUMMY_MAIN
 
15162
#  ifdef __cplusplus
 
15163
     extern "C"
 
15164
#  endif
 
15165
   int F77_DUMMY_MAIN() { return 1; }
 
15166
#endif
 
15167
int
 
15168
main ()
 
15169
{
 
15170
 
 
15171
  ;
 
15172
  return 0;
 
15173
}
 
15174
_ACEOF
 
15175
rm -f conftest.$ac_objext
 
15176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15177
  (eval $ac_compile) 2>&5
 
15178
  ac_status=$?
 
15179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15180
  (exit $ac_status); } &&
 
15181
         { ac_try='test -s conftest.$ac_objext'
 
15182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15183
  (eval $ac_try) 2>&5
 
15184
  ac_status=$?
 
15185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15186
  (exit $ac_status); }; }; then
 
15187
  sim_ac_accept_result=yes
 
15188
else
 
15189
  echo "$as_me: failed program was:" >&5
 
15190
cat conftest.$ac_ext >&5
 
15191
sim_ac_accept_result=no
 
15192
fi
 
15193
rm -f conftest.$ac_objext conftest.$ac_ext
 
15194
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15195
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15196
CPPFLAGS=$sim_ac_save_cppflags
 
15197
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -fullwarn" or .
 
15198
if test $sim_ac_accept_result = yes; then
 
15199
  CFLAGS="$CFLAGS -fullwarn"
 
15200
else
 
15201
  :
 
15202
fi
 
15203
 
 
15204
ac_ext=cc
 
15205
ac_cpp='$CXXCPP $CPPFLAGS'
 
15206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15209
 
 
15210
 
 
15211
    fi
 
15212
    if test x"$CXX" = xCC; then
 
15213
 
 
15214
 
 
15215
 
 
15216
ac_ext=cc
 
15217
ac_cpp='$CXXCPP $CPPFLAGS'
 
15218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15219
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15220
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15221
 
 
15222
echo "$as_me:$LINENO: checking whether $CXX accepts -fullwarn" >&5
 
15223
echo $ECHO_N "checking whether $CXX accepts -fullwarn... $ECHO_C" >&6
 
15224
 
 
15225
sim_ac_save_cppflags=$CPPFLAGS
 
15226
CPPFLAGS="$CPPFLAGS -fullwarn"
 
15227
cat >conftest.$ac_ext <<_ACEOF
 
15228
#line $LINENO "configure"
 
15229
#include "confdefs.h"
 
15230
 
 
15231
#ifdef F77_DUMMY_MAIN
 
15232
#  ifdef __cplusplus
 
15233
     extern "C"
 
15234
#  endif
 
15235
   int F77_DUMMY_MAIN() { return 1; }
 
15236
#endif
 
15237
int
 
15238
main ()
 
15239
{
 
15240
 
 
15241
  ;
 
15242
  return 0;
 
15243
}
 
15244
_ACEOF
 
15245
rm -f conftest.$ac_objext
 
15246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15247
  (eval $ac_compile) 2>&5
 
15248
  ac_status=$?
 
15249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15250
  (exit $ac_status); } &&
 
15251
         { ac_try='test -s conftest.$ac_objext'
 
15252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15253
  (eval $ac_try) 2>&5
 
15254
  ac_status=$?
 
15255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15256
  (exit $ac_status); }; }; then
 
15257
  sim_ac_accept_result=yes
 
15258
else
 
15259
  echo "$as_me: failed program was:" >&5
 
15260
cat conftest.$ac_ext >&5
 
15261
sim_ac_accept_result=no
 
15262
fi
 
15263
rm -f conftest.$ac_objext conftest.$ac_ext
 
15264
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15265
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15266
CPPFLAGS=$sim_ac_save_cppflags
 
15267
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -fullwarn" or .
 
15268
if test $sim_ac_accept_result = yes; then
 
15269
  CXXFLAGS="$CXXFLAGS -fullwarn"
 
15270
else
 
15271
  :
 
15272
fi
 
15273
 
 
15274
ac_ext=cc
 
15275
ac_cpp='$CXXCPP $CPPFLAGS'
 
15276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15279
 
 
15280
 
 
15281
    fi
 
15282
 
 
15283
    ### Turn off specific (bogus) warnings ########################
 
15284
 
 
15285
    ### SGI MipsPro v?.?? (our compiler on IRIX 6.2) ##############
 
15286
    ##
 
15287
    ## 3115: ``type qualifiers are meaningless in this declaration''.
 
15288
    ## 3262: unused variables.
 
15289
    ##
 
15290
    ### SGI MipsPro v7.30 #########################################
 
15291
    ##
 
15292
    ## 1174: "The function was declared but never referenced."
 
15293
    ## 1209: "The controlling expression is constant." (kill warning on
 
15294
    ##       if (0), assert(FALSE), etc).
 
15295
    ## 1355: Kill warnings on extra semicolons (which happens with some
 
15296
    ##       of the Coin macros).
 
15297
    ## 1375: Non-virtual destructors in base classes.
 
15298
    ## 3201: Unused argument to a function.
 
15299
    ## 1110: "Statement is not reachable" (the Lex/Flex generated code in
 
15300
    ##       Coin/src/engines has lots of shitty code which needs this).
 
15301
    ## 1506: Implicit conversion from "unsigned long" to "long".
 
15302
    ##       SbTime.h in SGI/TGS Inventor does this, so we need to kill
 
15303
    ##       this warning to avoid all the output clutter when compiling
 
15304
    ##       the SoQt, SoGtk or SoXt libraries on IRIX with SGI MIPSPro CC.
 
15305
    ## 1169: External/internal linkage conflicts with a previous declaration.
 
15306
    ##       We get this for the "friend operators" in SbString.h
 
15307
 
 
15308
    sim_ac_bogus_warnings="-woff 3115,3262,1174,1209,1355,1375,3201,1110,1506,1169"
 
15309
 
 
15310
    if test x"$CC" = xcc || test x"$CC" = xCC; then
 
15311
 
 
15312
 
 
15313
 
 
15314
ac_ext=c
 
15315
ac_cpp='$CPP $CPPFLAGS'
 
15316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15319
 
 
15320
echo "$as_me:$LINENO: checking whether $CC accepts $sim_ac_bogus_warnings" >&5
 
15321
echo $ECHO_N "checking whether $CC accepts $sim_ac_bogus_warnings... $ECHO_C" >&6
 
15322
 
 
15323
sim_ac_save_cppflags=$CPPFLAGS
 
15324
CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings"
 
15325
cat >conftest.$ac_ext <<_ACEOF
 
15326
#line $LINENO "configure"
 
15327
#include "confdefs.h"
 
15328
 
 
15329
#ifdef F77_DUMMY_MAIN
 
15330
#  ifdef __cplusplus
 
15331
     extern "C"
 
15332
#  endif
 
15333
   int F77_DUMMY_MAIN() { return 1; }
 
15334
#endif
 
15335
int
 
15336
main ()
 
15337
{
 
15338
 
 
15339
  ;
 
15340
  return 0;
 
15341
}
 
15342
_ACEOF
 
15343
rm -f conftest.$ac_objext
 
15344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15345
  (eval $ac_compile) 2>&5
 
15346
  ac_status=$?
 
15347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15348
  (exit $ac_status); } &&
 
15349
         { ac_try='test -s conftest.$ac_objext'
 
15350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15351
  (eval $ac_try) 2>&5
 
15352
  ac_status=$?
 
15353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15354
  (exit $ac_status); }; }; then
 
15355
  sim_ac_accept_result=yes
 
15356
else
 
15357
  echo "$as_me: failed program was:" >&5
 
15358
cat conftest.$ac_ext >&5
 
15359
sim_ac_accept_result=no
 
15360
fi
 
15361
rm -f conftest.$ac_objext conftest.$ac_ext
 
15362
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15363
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15364
CPPFLAGS=$sim_ac_save_cppflags
 
15365
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS $sim_ac_bogus_warnings" or .
 
15366
if test $sim_ac_accept_result = yes; then
 
15367
  CFLAGS="$CFLAGS $sim_ac_bogus_warnings"
 
15368
else
 
15369
  :
 
15370
fi
 
15371
 
 
15372
ac_ext=cc
 
15373
ac_cpp='$CXXCPP $CPPFLAGS'
 
15374
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15375
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15376
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15377
 
 
15378
 
 
15379
    fi
 
15380
    if test x"$CXX" = xCC; then
 
15381
 
 
15382
 
 
15383
 
 
15384
ac_ext=cc
 
15385
ac_cpp='$CXXCPP $CPPFLAGS'
 
15386
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15387
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15388
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15389
 
 
15390
echo "$as_me:$LINENO: checking whether $CXX accepts $sim_ac_bogus_warnings" >&5
 
15391
echo $ECHO_N "checking whether $CXX accepts $sim_ac_bogus_warnings... $ECHO_C" >&6
 
15392
 
 
15393
sim_ac_save_cppflags=$CPPFLAGS
 
15394
CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings"
 
15395
cat >conftest.$ac_ext <<_ACEOF
 
15396
#line $LINENO "configure"
 
15397
#include "confdefs.h"
 
15398
 
 
15399
#ifdef F77_DUMMY_MAIN
 
15400
#  ifdef __cplusplus
 
15401
     extern "C"
 
15402
#  endif
 
15403
   int F77_DUMMY_MAIN() { return 1; }
 
15404
#endif
 
15405
int
 
15406
main ()
 
15407
{
 
15408
 
 
15409
  ;
 
15410
  return 0;
 
15411
}
 
15412
_ACEOF
 
15413
rm -f conftest.$ac_objext
 
15414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15415
  (eval $ac_compile) 2>&5
 
15416
  ac_status=$?
 
15417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15418
  (exit $ac_status); } &&
 
15419
         { ac_try='test -s conftest.$ac_objext'
 
15420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15421
  (eval $ac_try) 2>&5
 
15422
  ac_status=$?
 
15423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15424
  (exit $ac_status); }; }; then
 
15425
  sim_ac_accept_result=yes
 
15426
else
 
15427
  echo "$as_me: failed program was:" >&5
 
15428
cat conftest.$ac_ext >&5
 
15429
sim_ac_accept_result=no
 
15430
fi
 
15431
rm -f conftest.$ac_objext conftest.$ac_ext
 
15432
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
 
15433
echo "${ECHO_T}$sim_ac_accept_result" >&6
 
15434
CPPFLAGS=$sim_ac_save_cppflags
 
15435
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings" or .
 
15436
if test $sim_ac_accept_result = yes; then
 
15437
  CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings"
 
15438
else
 
15439
  :
 
15440
fi
 
15441
 
 
15442
ac_ext=cc
 
15443
ac_cpp='$CXXCPP $CPPFLAGS'
 
15444
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15445
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15446
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15447
 
 
15448
 
 
15449
    fi
 
15450
  ;;
 
15451
  esac
 
15452
fi
 
15453
 
 
15454
 
 
15455
# This is at least used to allow static compilation on Cygwin + MSWindows
 
15456
# without hitting the SOQT_DLL / SOQT_NOT_DLL safety check.
 
15457
CPPFLAGS="$CPPFLAGS -DSOQT_INTERNAL"
 
15458
 
 
15459
 
 
15460
 
 
15461
sim_ac_static_defaults=true;
 
15462
# Check whether --enable-static-defaults or --disable-static-defaults was given.
 
15463
if test "${enable_static_defaults+set}" = set; then
 
15464
  enableval="$enable_static_defaults"
 
15465
  case ${enable_static_defaults} in
 
15466
   no)  sim_ac_static_defaults=false ;;
 
15467
   yes) ;;
 
15468
   *)   echo "Option '--enable-static-defaults=${enable_static_defaults}' ignored" ;;
 
15469
  esac
 
15470
fi;
 
15471
 
 
15472
if $sim_ac_static_defaults; then
 
15473
 
 
15474
cat >>confdefs.h <<\_ACEOF
 
15475
#define WITH_STATIC_DEFAULTS
 
15476
_ACEOF
 
15477
 
 
15478
fi
 
15479
 
 
15480
 
 
15481
if $sim_ac_static_defaults; then
 
15482
  if test x${sim_ac_configuration_settings+set} != xset; then
 
15483
  sim_ac_configuration_settings="Static Materials:Yes"
 
15484
else
 
15485
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:Yes"
 
15486
fi
 
15487
 
 
15488
else
 
15489
  if test x${sim_ac_configuration_settings+set} != xset; then
 
15490
  sim_ac_configuration_settings="Static Materials:No"
 
15491
else
 
15492
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:No"
 
15493
fi
 
15494
 
 
15495
fi
 
15496
 
 
15497
if test -n "$SUFFIX"; then
 
15498
  if test x${sim_ac_configuration_settings+set} != xset; then
 
15499
  sim_ac_configuration_settings="SoQt library name suffix:$SUFFIX"
 
15500
else
 
15501
  sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt library name suffix:$SUFFIX"
 
15502
fi
 
15503
 
 
15504
fi
 
15505
 
 
15506
# **************************************************************************
 
15507
 
 
15508
COIN_COMPILER="$CXX"
 
15509
 
 
15510
 
 
15511
if $BUILD_WITH_MSVC; then
 
15512
  # don't use wrapmsvc from source hierarchy when later using soqt-config.
 
15513
  COIN_COMPILER="wrapmsvc"
 
15514
fi
 
15515
 
 
15516
else # $sim_ac_build_library == false
 
15517
  MOC=moc
 
15518
 
 
15519
fi
 
15520
 
 
15521
 
 
15522
# **************************************************************************
 
15523
# To test the Mac OS X framework setup on non-Mac systems, run configure
 
15524
# with the --with-framework option.  20011029 larsa
 
15525
 
 
15526
 
 
15527
# Check whether --with-framework or --without-framework was given.
 
15528
if test "${with_framework+set}" = set; then
 
15529
  withval="$with_framework"
 
15530
  sim_ac_framework_name="SoQt"
 
15531
  case $withval in
 
15532
  yes ) sim_ac_framework=true ;;
 
15533
  no ) sim_ac_framework=false ;;
 
15534
  * ) sim_ac_framework=true; sim_ac_framework_name="$withval" ;;
 
15535
  esac
 
15536
else
 
15537
  sim_ac_framework_name="SoQt"
 
15538
  case $host_os in
 
15539
  darwin* ) sim_ac_framework=true ;;
 
15540
  * ) sim_ac_framework=false ;;
 
15541
  esac
 
15542
fi;
 
15543
 
 
15544
# don't allow name to be overrided - just toggled on/off
 
15545
sim_ac_framework_name="SoQt"
 
15546
 
 
15547
 
 
15548
# Check whether --with-framework-prefix or --without-framework-prefix was given.
 
15549
if test "${with_framework_prefix+set}" = set; then
 
15550
  withval="$with_framework_prefix"
 
15551
  sim_ac_framework_prefix="$withval"
 
15552
else
 
15553
  sim_ac_framework_prefix="/Library/Frameworks"
 
15554
fi;
 
15555
 
 
15556
# don't allow version to be overrided
 
15557
# AC_ARG_WITH([framework-version],
 
15558
#   [  --with-framework-version=<version>  (default: "MAC_FRAMEWORK_VERSION_DEFAULT")],
 
15559
#   [sim_ac_framework_version="$withval"],
 
15560
#   [sim_ac_framework_version="MAC_FRAMEWORK_VERSION_DEFAULT"])
 
15561
sim_ac_framework_version="A"
 
15562
 
 
15563
frameworkdir=
 
15564
ivframeworkdir=
 
15565
# we don't allow SoQt as framework if Coin isn't instralled as a framework
 
15566
if $sim_ac_framework && $sim_ac_coin_desired && $sim_ac_coin_avail; then
 
15567
  if test x"$CONFIG" != x"set"; then
 
15568
    sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --alternate=$CONFIG --frameworkdir 2>/dev/null`
 
15569
  fi
 
15570
  # FIXME: if the Coin detection/setup macro triggers on --alternate=$CONFIG,
 
15571
  # we shouldn't fallback here :(  20020110 larsa
 
15572
  if test x"$sim_ac_coin_frameworkdir" = x""; then
 
15573
    sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --frameworkdir 2>/dev/null`
 
15574
  fi
 
15575
  if test x"$sim_ac_coin_frameworkdir" = x""; then
 
15576
    if test x${sim_ac_configuration_warnings+set} != xset; then
 
15577
  sim_ac_configuration_warnings="Coin was not installed as a framework, so SoQt can't be either (option was disabled)."
 
15578
else
 
15579
  sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Coin was not installed as a framework, so SoQt can't be either (option was disabled)."
 
15580
fi
 
15581
 
 
15582
    sim_ac_framework=false
 
15583
    soqtincludedir=${includedir}/Inventor/Qt
 
15584
    ivincludedir=
 
15585
  else
 
15586
    ivframeworkdir=$sim_ac_coin_frameworkdir
 
15587
    ivincludedir=
 
15588
    if test x"$ivframeworkdir" != x""; then
 
15589
      ivincludedir=$ivframeworkdir/Headers
 
15590
    fi
 
15591
    frameworkdir=${sim_ac_framework_prefix}/${sim_ac_framework_name}.framework
 
15592
    soqtincludedir=${sim_ac_framework_prefix}/${sim_ac_framework_name}.framework/Headers
 
15593
  fi
 
15594
else
 
15595
  sim_ac_framework=false
 
15596
  soqtincludedir=${includedir}/Inventor/Qt
 
15597
  ivincludedir=
 
15598
fi
 
15599
 
 
15600
 
 
15601
 
 
15602
 
 
15603
 
 
15604
 
 
15605
MAC_FRAMEWORK=$sim_ac_framework
 
15606
 
 
15607
MAC_FRAMEWORK_NAME=$sim_ac_framework_name
 
15608
 
 
15609
MAC_FRAMEWORK_PREFIX=$sim_ac_framework_prefix
 
15610
 
 
15611
MAC_FRAMEWORK_VERSION=$sim_ac_framework_version
 
15612
 
 
15613
 
 
15614
 
 
15615
 
 
15616
 
 
15617
 
 
15618
if $sim_ac_framework; then
 
15619
  MAC_FRAMEWORK_TRUE=
 
15620
  MAC_FRAMEWORK_FALSE='#'
 
15621
else
 
15622
  MAC_FRAMEWORK_TRUE='#'
 
15623
  MAC_FRAMEWORK_FALSE=
 
15624
fi
 
15625
 
 
15626
# for sub-configure in data/
 
15627
export sim_ac_framework
 
15628
export MAC_FRAMEWORK_NAME MAC_FRAMEWORK_PREFIX MAC_FRAMEWORK_VERSION
 
15629
 
 
15630
# **************************************************************************
 
15631
 
 
15632
# Qt's moc wants Windows-style paths, so if the inputfile is an
 
15633
# absolute Cygwin-style path it needs conversion.
 
15634
# Extract the first word of "cygpath", so it can be a program name with args.
 
15635
set dummy cygpath; ac_word=$2
 
15636
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15638
if test "${ac_cv_path_UNIX2WINPATH+set}" = set; then
 
15639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15640
else
 
15641
  case $UNIX2WINPATH in
 
15642
  [\\/]* | ?:[\\/]*)
 
15643
  ac_cv_path_UNIX2WINPATH="$UNIX2WINPATH" # Let the user override the test with a path.
 
15644
  ;;
 
15645
  *)
 
15646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15647
for as_dir in $PATH
 
15648
do
 
15649
  IFS=$as_save_IFS
 
15650
  test -z "$as_dir" && as_dir=.
 
15651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15653
    ac_cv_path_UNIX2WINPATH="$as_dir/$ac_word$ac_exec_ext"
 
15654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15655
    break 2
 
15656
  fi
 
15657
done
 
15658
done
 
15659
 
 
15660
  test -z "$ac_cv_path_UNIX2WINPATH" && ac_cv_path_UNIX2WINPATH="false"
 
15661
  ;;
 
15662
esac
 
15663
fi
 
15664
UNIX2WINPATH=$ac_cv_path_UNIX2WINPATH
 
15665
 
 
15666
if test -n "$UNIX2WINPATH"; then
 
15667
  echo "$as_me:$LINENO: result: $UNIX2WINPATH" >&5
 
15668
echo "${ECHO_T}$UNIX2WINPATH" >&6
 
15669
else
 
15670
  echo "$as_me:$LINENO: result: no" >&5
 
15671
echo "${ECHO_T}no" >&6
 
15672
fi
 
15673
 
 
15674
if test x"$UNIX2WINPATH" = x"false"; then
 
15675
  UNIX2WINPATH="echo"
 
15676
else
 
15677
  UNIX2WINPATH="CYGWIN= $UNIX2WINPATH -w"
 
15678
fi
 
15679
 
 
15680
 
 
15681
# **************************************************************************
 
15682
# Variable substitutions for using libSoQt in the generic code.
 
15683
 
 
15684
Gui=Qt
 
15685
 
 
15686
gui=qt
 
15687
 
 
15688
GUI=QT
 
15689
 
 
15690
WIDGET="QWidget *"
 
15691
 
 
15692
EVENT="QEvent *"
 
15693
 
 
15694
COMPONENTHEADER=Q_OBJECT
 
15695
 
 
15696
 
 
15697
case $host_os in
 
15698
darwin*)
 
15699
  SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS -Wl,-multiply_defined,suppress"
 
15700
  ;;
 
15701
esac
 
15702
 
 
15703
# **************************************************************************
 
15704
 
 
15705
 
 
15706
 
 
15707
 
 
15708
 
 
15709
 
 
15710
# **************************************************************************
 
15711
# Remove redundant options from certain option lists.
 
15712
 
 
15713
 
 
15714
sim_ac_save_prefix=$prefix
 
15715
sim_ac_save_exec_prefix=$exec_prefix
 
15716
test x"$prefix" = xNONE && prefix=/usr/local
 
15717
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15718
sim_ac_uniqued_list=
 
15719
for sim_ac_item in -I$includedir $SOGUI_EXTRA_CPPFLAGS; do
 
15720
  eval sim_ac_eval_item="$sim_ac_item"
 
15721
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15722
  if test x"$sim_ac_uniqued_list" = x; then
 
15723
    sim_ac_uniqued_list="$sim_ac_item"
 
15724
  else
 
15725
    sim_ac_unique=true
 
15726
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15727
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15728
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15729
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15730
    done
 
15731
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15732
  fi
 
15733
done
 
15734
SOGUI_EXTRA_CPPFLAGS=$sim_ac_uniqued_list
 
15735
prefix=$sim_ac_save_prefix
 
15736
exec_prefix=$sim_ac_save_exec_prefix
 
15737
# unset sim_ac_save_prefix
 
15738
# unset sim_ac_save_exec_prefix
 
15739
# unset sim_ac_eval_item
 
15740
# unset sim_ac_eval_uniq
 
15741
 
 
15742
 
 
15743
sim_ac_save_prefix=$prefix
 
15744
sim_ac_save_exec_prefix=$exec_prefix
 
15745
test x"$prefix" = xNONE && prefix=/usr/local
 
15746
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15747
sim_ac_uniqued_list=
 
15748
for sim_ac_item in -L$libdir $SOGUI_EXTRA_LDFLAGS; do
 
15749
  eval sim_ac_eval_item="$sim_ac_item"
 
15750
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15751
  if test x"$sim_ac_uniqued_list" = x; then
 
15752
    sim_ac_uniqued_list="$sim_ac_item"
 
15753
  else
 
15754
    sim_ac_unique=true
 
15755
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15756
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15757
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15758
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15759
    done
 
15760
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15761
  fi
 
15762
done
 
15763
SOGUI_EXTRA_LDFLAGS=$sim_ac_uniqued_list
 
15764
prefix=$sim_ac_save_prefix
 
15765
exec_prefix=$sim_ac_save_exec_prefix
 
15766
# unset sim_ac_save_prefix
 
15767
# unset sim_ac_save_exec_prefix
 
15768
# unset sim_ac_eval_item
 
15769
# unset sim_ac_eval_uniq
 
15770
 
 
15771
 
 
15772
sim_ac_save_prefix=$prefix
 
15773
sim_ac_save_exec_prefix=$exec_prefix
 
15774
test x"$prefix" = xNONE && prefix=/usr/local
 
15775
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15776
sim_ac_uniqued_list=
 
15777
for sim_ac_item in $SOGUI_EXTRA_LIBS; do
 
15778
  eval sim_ac_eval_item="$sim_ac_item"
 
15779
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15780
  if test x"$sim_ac_uniqued_list" = x; then
 
15781
    sim_ac_uniqued_list="$sim_ac_item"
 
15782
  else
 
15783
    sim_ac_unique=true
 
15784
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15785
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15786
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15787
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15788
    done
 
15789
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15790
  fi
 
15791
done
 
15792
SOGUI_EXTRA_LIBS=$sim_ac_uniqued_list
 
15793
prefix=$sim_ac_save_prefix
 
15794
exec_prefix=$sim_ac_save_exec_prefix
 
15795
# unset sim_ac_save_prefix
 
15796
# unset sim_ac_save_exec_prefix
 
15797
# unset sim_ac_eval_item
 
15798
# unset sim_ac_eval_uniq
 
15799
 
 
15800
 
 
15801
 
 
15802
sim_ac_save_prefix=$prefix
 
15803
sim_ac_save_exec_prefix=$exec_prefix
 
15804
test x"$prefix" = xNONE && prefix=/usr/local
 
15805
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15806
sim_ac_uniqued_list=
 
15807
for sim_ac_item in $CPPFLAGS; do
 
15808
  eval sim_ac_eval_item="$sim_ac_item"
 
15809
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15810
  if test x"$sim_ac_uniqued_list" = x; then
 
15811
    sim_ac_uniqued_list="$sim_ac_item"
 
15812
  else
 
15813
    sim_ac_unique=true
 
15814
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15815
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15816
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15817
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15818
    done
 
15819
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15820
  fi
 
15821
done
 
15822
CPPFLAGS=$sim_ac_uniqued_list
 
15823
prefix=$sim_ac_save_prefix
 
15824
exec_prefix=$sim_ac_save_exec_prefix
 
15825
# unset sim_ac_save_prefix
 
15826
# unset sim_ac_save_exec_prefix
 
15827
# unset sim_ac_eval_item
 
15828
# unset sim_ac_eval_uniq
 
15829
 
 
15830
 
 
15831
sim_ac_save_prefix=$prefix
 
15832
sim_ac_save_exec_prefix=$exec_prefix
 
15833
test x"$prefix" = xNONE && prefix=/usr/local
 
15834
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15835
sim_ac_uniqued_list=
 
15836
for sim_ac_item in $LDFLAGS; do
 
15837
  eval sim_ac_eval_item="$sim_ac_item"
 
15838
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15839
  if test x"$sim_ac_uniqued_list" = x; then
 
15840
    sim_ac_uniqued_list="$sim_ac_item"
 
15841
  else
 
15842
    sim_ac_unique=true
 
15843
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15844
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15845
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15846
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15847
    done
 
15848
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15849
  fi
 
15850
done
 
15851
LDFLAGS=$sim_ac_uniqued_list
 
15852
prefix=$sim_ac_save_prefix
 
15853
exec_prefix=$sim_ac_save_exec_prefix
 
15854
# unset sim_ac_save_prefix
 
15855
# unset sim_ac_save_exec_prefix
 
15856
# unset sim_ac_eval_item
 
15857
# unset sim_ac_eval_uniq
 
15858
 
 
15859
 
 
15860
sim_ac_save_prefix=$prefix
 
15861
sim_ac_save_exec_prefix=$exec_prefix
 
15862
test x"$prefix" = xNONE && prefix=/usr/local
 
15863
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15864
sim_ac_uniqued_list=
 
15865
for sim_ac_item in $LIBS; do
 
15866
  eval sim_ac_eval_item="$sim_ac_item"
 
15867
  eval sim_ac_eval_item="$sim_ac_eval_item"
 
15868
  if test x"$sim_ac_uniqued_list" = x; then
 
15869
    sim_ac_uniqued_list="$sim_ac_item"
 
15870
  else
 
15871
    sim_ac_unique=true
 
15872
    for sim_ac_uniq in $sim_ac_uniqued_list; do
 
15873
      eval sim_ac_eval_uniq="$sim_ac_uniq"
 
15874
      eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
 
15875
      test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
 
15876
    done
 
15877
    $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
 
15878
  fi
 
15879
done
 
15880
LIBS=$sim_ac_uniqued_list
 
15881
prefix=$sim_ac_save_prefix
 
15882
exec_prefix=$sim_ac_save_exec_prefix
 
15883
# unset sim_ac_save_prefix
 
15884
# unset sim_ac_save_exec_prefix
 
15885
# unset sim_ac_eval_item
 
15886
# unset sim_ac_eval_uniq
 
15887
 
 
15888
 
 
15889
 
 
15890
# **************************************************************************
 
15891
# Remove gcc system directories includes from the CPPFLAGS.
 
15892
 
 
15893
 
 
15894
if test x"$GCC" = x"yes"; then
 
15895
 sim_ac_save_cpp=$CPP
 
15896
 CPP="cpp"
 
15897
 case $host_os in
 
15898
  darwin*) CPP="cpp3"
 
15899
    ;;
 
15900
  esac
 
15901
  cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \
 
15902
  '/#include <...> search starts here:/,/End of search list./{
 
15903
    /#include <...> search starts here:/b
 
15904
    /End of search list./b
 
15905
    s/ /-I/
 
15906
    p
 
15907
  }'
 
15908
  EOF`
 
15909
  result=
 
15910
  for inc_path in $CPPFLAGS; do
 
15911
    additem=true
 
15912
    for sys_dir in $cpp_sys_dirs; do
 
15913
      if test x$inc_path = x$sys_dir; then
 
15914
        additem=false
 
15915
        break
 
15916
      fi
 
15917
    done
 
15918
    $additem && result="$result $inc_path"
 
15919
  done
 
15920
  CPPFLAGS=$result
 
15921
  CPP=$sim_ac_save_cpp
 
15922
fi
 
15923
 
 
15924
 
 
15925
if test x"$GCC" = x"yes"; then
 
15926
 sim_ac_save_cpp=$CPP
 
15927
 CPP="cpp"
 
15928
 case $host_os in
 
15929
  darwin*) CPP="cpp3"
 
15930
    ;;
 
15931
  esac
 
15932
  cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \
 
15933
  '/#include <...> search starts here:/,/End of search list./{
 
15934
    /#include <...> search starts here:/b
 
15935
    /End of search list./b
 
15936
    s/ /-I/
 
15937
    p
 
15938
  }'
 
15939
  EOF`
 
15940
  result=
 
15941
  for inc_path in $SOGUI_EXTRA_CPPFLAGS; do
 
15942
    additem=true
 
15943
    for sys_dir in $cpp_sys_dirs; do
 
15944
      if test x$inc_path = x$sys_dir; then
 
15945
        additem=false
 
15946
        break
 
15947
      fi
 
15948
    done
 
15949
    $additem && result="$result $inc_path"
 
15950
  done
 
15951
  SOGUI_EXTRA_CPPFLAGS=$result
 
15952
  CPP=$sim_ac_save_cpp
 
15953
fi
 
15954
 
 
15955
 
 
15956
 
 
15957
# default value
 
15958
SOQT_STATIC=false
 
15959
 
 
15960
if test x${enable_shared+set} = xset; then
 
15961
  case $enable_shared in
 
15962
  yes | true)  SOQT_STATIC=false ;;
 
15963
  *)           SOQT_STATIC=true ;;
 
15964
  esac
 
15965
fi
 
15966
 
 
15967
if test x${enable_static+set} = xset; then
 
15968
  case $enable_static in
 
15969
  yes | true)  SOQT_STATIC=true ;;
 
15970
  *)           SOQT_STATIC=false ;;
 
15971
  esac
 
15972
fi
 
15973
 
 
15974
 
 
15975
 
 
15976
# **************************************************************************
 
15977
# Remaining setup based on platform.
 
15978
 
 
15979
 
 
15980
 
 
15981
if $BUILD_WITH_MSVC; then
 
15982
  BUILD_WITH_MSVC_TRUE=
 
15983
  BUILD_WITH_MSVC_FALSE='#'
 
15984
else
 
15985
  BUILD_WITH_MSVC_TRUE='#'
 
15986
  BUILD_WITH_MSVC_FALSE=
 
15987
fi
 
15988
 
 
15989
if $BUILD_WITH_MSVC; then
 
15990
  rm -f vc60.pdb
 
15991
  ## Ensure that if we link with Coin, we use the same C library as Coin
 
15992
  if test x"$sim_ac_coin_msvcrt" != x"" &&
 
15993
     test x"$sim_ac_msvcrt" != x"$sim_ac_coin_msvcrt"; then
 
15994
      if test x${sim_ac_configuration_warnings+set} != xset; then
 
15995
  sim_ac_configuration_warnings="You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library.  This can cause mysterious crashes for you.  We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option."
 
15996
else
 
15997
  sim_ac_configuration_warnings="$sim_ac_configuration_warnings|You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library.  This can cause mysterious crashes for you.  We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option."
 
15998
fi
 
15999
 
 
16000
  fi
 
16001
  LIBFLAGS="$LIBFLAGS $sim_ac_msvcrt_LIBLDFLAGS"
 
16002
  LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS"
 
16003
  if $SOQT_STATIC; then
 
16004
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_NOT_DLL"
 
16005
  else
 
16006
    CPPFLAGS="-DSOQT_MAKE_DLL $CPPFLAGS"
 
16007
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_DLL"
 
16008
  fi
 
16009
 
 
16010
  debugfile="`pwd`/src/Inventor/Qt/soqt${SOQT_MAJOR_VERSION}${SUFFIX}.pdb"
 
16011
  debugfile=`cygpath -w "$debugfile" | sed 's,\\\\,\\\\\\\\,g'`
 
16012
  if $SOQT_STATIC; then
 
16013
    if test x${sim_ac_configuration_settings+set} != xset; then
 
16014
  sim_ac_configuration_settings="SoQt build type:static .lib"
 
16015
else
 
16016
  sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:static .lib"
 
16017
fi
 
16018
 
 
16019
    LIBFLAGS="-LIB $LIBFLAGS"
 
16020
    LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.lib"
 
16021
  else
 
16022
    LIBFLAGS="-DLL /INCREMENTAL:NO $LIBFLAGS"
 
16023
    case $enable_symbols in
 
16024
    no | false)
 
16025
      LIBFLAGS="$LIBFLAGS /RELEASE"
 
16026
      if test x${sim_ac_configuration_settings+set} != xset; then
 
16027
  sim_ac_configuration_settings="SoQt build type:dynamic .dll, no symbols"
 
16028
else
 
16029
  sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll, no symbols"
 
16030
fi
 
16031
 
 
16032
      ;;
 
16033
    *)
 
16034
      if test x${sim_ac_configuration_settings+set} != xset; then
 
16035
  sim_ac_configuration_settings="SoQt build type:dynamic .dll + .pdb"
 
16036
else
 
16037
  sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll + .pdb"
 
16038
fi
 
16039
 
 
16040
      CPPFLAGS="/Fd$debugfile $CPPFLAGS"
 
16041
      LIBFLAGS="$LIBFLAGS /DEBUG /PDB:soqt$SOQT_MAJOR_VERSION$SUFFIX.pdb"
 
16042
      ;;
 
16043
    esac
 
16044
    LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.dll"
 
16045
  fi
 
16046
 
 
16047
  # We use a version suffix on the .dll-file, so several incompatible
 
16048
  # (major) versions can be installed on a system.
 
16049
  #
 
16050
  # BTW, when linking DLLs, the 3rd-party .lib files will be
 
16051
  # linked into the .dll file. I believe it is still advisable to
 
16052
  # list all libs used upon `soqt-config --libs`, as we can then
 
16053
  # also use them from "parent" code (remember that their interfaces
 
16054
  # is not exposed from the DLL) without any fuss.
 
16055
  SOGUI_EXTRA_LIBS="-lsoqt$SOQT_MAJOR_VERSION$SUFFIX $SOGUI_EXTRA_LIBS"
 
16056
else
 
16057
  SOGUI_EXTRA_LIBS="-lSoQt$SUFFIX $SOGUI_EXTRA_LIBS"
 
16058
 
 
16059
  if $sim_ac_framework; then
 
16060
    # setup for SoQt usage
 
16061
    SOGUI_EXTRA_CPPFLAGS=
 
16062
    SOGUI_EXTRA_CFLAGS=
 
16063
    SOGUI_EXTRA_CXXFLAGS=
 
16064
    SOGUI_EXTRA_LDFLAGS="-Wl,-multiply_defined,suppress -framework SoQt"
 
16065
    SOGUI_EXTRA_LIBS=
 
16066
    # adjust for Qt usage
 
16067
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags"
 
16068
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags"
 
16069
    SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS"
 
16070
    # adjust for QGL usage
 
16071
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
 
16072
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
 
16073
    SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
 
16074
    # adjust for Coin usage
 
16075
    SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
 
16076
    SOGUI_EXTRA_CFLAGS="$SOGUI_EXTRA_CFLAGS $sim_ac_coin_cflags"
 
16077
    SOGUI_EXTRA_CXXFLAGS="$SOGUI_EXTRA_CXXFLAGS $sim_ac_coin_cxxflags"
 
16078
    SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
 
16079
    SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS"
 
16080
  fi
 
16081
fi
 
16082
 
 
16083
 
 
16084
 
 
16085
SOQT_DSP_LIBDIRS=
 
16086
SOQT_DSP_LIBS=
 
16087
SOQT_DSP_INCS=
 
16088
SOQT_DSP_DEFS=
 
16089
 
 
16090
if $sim_ac_make_dsp; then
 
16091
  if test x${sim_ac_configuration_settings+set} != xset; then
 
16092
  sim_ac_configuration_settings="SoQt build type:msvc .dsp"
 
16093
else
 
16094
  sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:msvc .dsp"
 
16095
fi
 
16096
 
 
16097
 
 
16098
  # -DHAVE_CONFIG_H is set up in $DEFS too late for use to use, and some
 
16099
  # include directives are usually set up in the Makefile.am files
 
16100
  for arg in -DHAVE_CONFIG_H -I$soqt_build_dir/src -I$soqt_src_dir/src -I$soqt_src_dir/data $CPPFLAGS $LDFLAGS $LIBS; do
 
16101
    case $arg in
 
16102
    -L* )
 
16103
      libdir=`echo $arg | cut -c3-`
 
16104
      SOQT_DSP_LIBDIRS="$SOQT_DSP_LIBDIRS $libdir"
 
16105
      ;;
 
16106
    -l* )
 
16107
      libname=`echo $arg | cut -c3-`
 
16108
      for libdir in $SOQT_DSP_LIBDIRS; do
 
16109
        if test -f $libdir/$libname.lib; then
 
16110
          # lib is not in any standard location - use full path
 
16111
          libname=`cygpath -w "$libdir/$libname" 2>/dev/null || echo "$libdir/$libname"`
 
16112
          break
 
16113
        fi
 
16114
      done
 
16115
      if test x"$SOQT_DSP_LIBS" = x""; then
 
16116
        SOQT_DSP_LIBS="$libname.lib"
 
16117
      else
 
16118
        SOQT_DSP_LIBS="$SOQT_DSP_LIBS $libname.lib"
 
16119
      fi
 
16120
      ;;
 
16121
    -I* )
 
16122
      incdir=`echo $arg | cut -c3-`
 
16123
      incdir=`cygpath -w "$incdir" 2>/dev/null || echo "$incdir"`
 
16124
      if test x"$SOQT_DSP_INCS" = x""; then
 
16125
        SOQT_DSP_INCS="/I \"$incdir\""
 
16126
      else
 
16127
        SOQT_DSP_INCS="$SOQT_DSP_INCS /I \"$incdir\""
 
16128
      fi
 
16129
      ;;
 
16130
    -DSOQT_DEBUG* | -DNDEBUG )
 
16131
      # Defines that vary between release/debug configurations can't be
 
16132
      # set up dynamically in <lib>_DSP_DEFS - they must be static in the
 
16133
      # gendsp.sh script.  We therefore catche them here so we can ignore
 
16134
      # checking for them below.
 
16135
      ;;
 
16136
    -D*=* | -D* )
 
16137
      define=`echo $arg | cut -c3-`
 
16138
      if test x"$SOQT_DSP_DEFS" = x""; then
 
16139
        SOQT_DSP_DEFS="/D \"$define\""
 
16140
      else
 
16141
        SOQT_DSP_DEFS="$SOQT_DSP_DEFS /D \"$define\""
 
16142
      fi
 
16143
      ;;
 
16144
    esac
 
16145
  done
 
16146
 
 
16147
  CC=$soqt_src_dir/cfg/m4/gendsp.sh
 
16148
  CXX=$soqt_src_dir/cfg/m4/gendsp.sh
 
16149
  CXXLD=$soqt_src_dir/cfg/m4/gendsp.sh
 
16150
  # Yes, this is totally bogus stuff, but don't worry about it.  As long
 
16151
  # as gendsp.sh recognizes it...  20030219 larsa
 
16152
  CPPFLAGS="$CPPFLAGS -Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp"
 
16153
  LDFLAGS="$LDFLAGS -Wl,-Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp"
 
16154
  LIBFLAGS="$LIBFLAGS -o soqt$SOQT_MAJOR_VERSION.so.0"
 
16155
 
 
16156
  # this can't be set up at the point the libtool script is generated
 
16157
  mv libtool libtool.bak
 
16158
  sed -e "s%^CC=\"gcc\"%CC=\"$soqt_src_dir/cfg/m4/gendsp.sh\"%" \
 
16159
      -e "s%^CC=\".*/wrapmsvc.exe\"%CC=\"$soqt_src_dir/cfg/m4/gendsp.sh\"%" \
 
16160
      <libtool.bak >libtool
 
16161
  rm -f libtool.bak
 
16162
  chmod 755 libtool
 
16163
fi
 
16164
 
 
16165
 
 
16166
 
 
16167
 
 
16168
 
 
16169
 
 
16170
# **************************************************************************
 
16171
# Submodules that needs to be configured...
 
16172
 
 
16173
# Material editor(s) not part of the public API yet, so there's
 
16174
# no point yet in installing the material data.
 
16175
# AC_CONFIG_SUBDIRS(data)
 
16176
 
 
16177
# **************************************************************************
 
16178
# List all files configure shall automatically generate.
 
16179
#
 
16180
# Note that soqt-$CONFIG.cfg needs to be generated from the configure
 
16181
# script -- not just from the Makefile -- as the data/configure script
 
16182
# depends on it. (data/configure is temporarily disabled, BTW, but anyway..)
 
16183
 
 
16184
ac_config_files="$ac_config_files soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in Makefile src/Makefile src/Inventor/Makefile src/Inventor/Qt/Makefile src/Inventor/Qt/devices/Makefile src/Inventor/Qt/viewers/Makefile src/Inventor/Qt/widgets/Makefile man/Makefile man/man1/Makefile man/man3/Makefile html/Makefile"
 
16185
cat >confcache <<\_ACEOF
 
16186
# This file is a shell script that caches the results of configure
 
16187
# tests run on this system so they can be shared between configure
 
16188
# scripts and configure runs, see configure's option --config-cache.
 
16189
# It is not useful on other systems.  If it contains results you don't
 
16190
# want to keep, you may remove or edit it.
 
16191
#
 
16192
# config.status only pays attention to the cache file if you give it
 
16193
# the --recheck option to rerun configure.
 
16194
#
 
16195
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
16196
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
16197
# following values.
 
16198
 
 
16199
_ACEOF
 
16200
 
 
16201
# The following way of writing the cache mishandles newlines in values,
 
16202
# but we know of no workaround that is simple, portable, and efficient.
 
16203
# So, don't put newlines in cache variables' values.
 
16204
# Ultrix sh set writes to stderr and can't be redirected directly,
 
16205
# and sets the high bit in the cache file unless we assign to the vars.
 
16206
{
 
16207
  (set) 2>&1 |
 
16208
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
16209
    *ac_space=\ *)
 
16210
      # `set' does not quote correctly, so add quotes (double-quote
 
16211
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
16212
      sed -n \
 
16213
        "s/'/'\\\\''/g;
 
16214
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
16215
      ;;
 
16216
    *)
 
16217
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
16218
      sed -n \
 
16219
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
16220
      ;;
 
16221
    esac;
 
16222
} |
 
16223
  sed '
 
16224
     t clear
 
16225
     : clear
 
16226
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
16227
     t end
 
16228
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16229
     : end' >>confcache
 
16230
if cmp -s $cache_file confcache; then :; else
 
16231
  if test -w $cache_file; then
 
16232
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
16233
    cat confcache >$cache_file
 
16234
  else
 
16235
    echo "not updating unwritable cache $cache_file"
 
16236
  fi
 
16237
fi
 
16238
rm -f confcache
 
16239
 
 
16240
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
16241
# Let make expand exec_prefix.
 
16242
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
16243
 
 
16244
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
16245
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
16246
# trailing colons and then remove the whole line if VPATH becomes empty
 
16247
# (actually we leave an empty line to preserve line numbers).
 
16248
if test "x$srcdir" = x.; then
 
16249
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
16250
s/:*\$(srcdir):*/:/;
 
16251
s/:*\${srcdir}:*/:/;
 
16252
s/:*@srcdir@:*/:/;
 
16253
s/^\([^=]*=[    ]*\):*/\1/;
 
16254
s/:*$//;
 
16255
s/^[^=]*=[      ]*$//;
 
16256
}'
 
16257
fi
 
16258
 
 
16259
DEFS=-DHAVE_CONFIG_H
 
16260
 
 
16261
 
 
16262
: ${CONFIG_STATUS=./config.status}
 
16263
ac_clean_files_save=$ac_clean_files
 
16264
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
16265
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
16266
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16267
cat >$CONFIG_STATUS <<_ACEOF
 
16268
#! $SHELL
 
16269
# Generated by $as_me.
 
16270
# Run this file to recreate the current configuration.
 
16271
# Compiler output produced by configure, useful for debugging
 
16272
# configure, is in config.log if it exists.
 
16273
 
 
16274
debug=false
 
16275
SHELL=\${CONFIG_SHELL-$SHELL}
 
16276
_ACEOF
 
16277
 
 
16278
cat >>$CONFIG_STATUS <<\_ACEOF
 
16279
 
 
16280
## --------------------- ##
 
16281
## M4sh Initialization.  ##
 
16282
## --------------------- ##
 
16283
 
 
16284
# Be Bourne compatible
 
16285
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16286
  emulate sh
 
16287
  NULLCMD=:
 
16288
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
16289
  set -o posix
 
16290
fi
 
16291
 
 
16292
# NLS nuisances.
 
16293
# Support unset when possible.
 
16294
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
16295
  as_unset=unset
 
16296
else
 
16297
  as_unset=false
 
16298
fi
 
16299
 
 
16300
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
 
16301
    { $as_unset LANG || test "${LANG+set}" != set; } ||
 
16302
      { LANG=C; export LANG; }
 
16303
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
 
16304
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
 
16305
      { LC_ALL=C; export LC_ALL; }
 
16306
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
 
16307
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
 
16308
      { LC_TIME=C; export LC_TIME; }
 
16309
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
 
16310
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
 
16311
      { LC_CTYPE=C; export LC_CTYPE; }
 
16312
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
 
16313
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
 
16314
      { LANGUAGE=C; export LANGUAGE; }
 
16315
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
 
16316
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
 
16317
      { LC_COLLATE=C; export LC_COLLATE; }
 
16318
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
 
16319
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
 
16320
      { LC_NUMERIC=C; export LC_NUMERIC; }
 
16321
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
 
16322
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
 
16323
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
16324
 
 
16325
 
 
16326
# Name of the executable.
 
16327
as_me=`(basename "$0") 2>/dev/null ||
 
16328
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
16329
         X"$0" : 'X\(//\)$' \| \
 
16330
         X"$0" : 'X\(/\)$' \| \
 
16331
         .     : '\(.\)' 2>/dev/null ||
 
16332
echo X/"$0" |
 
16333
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
16334
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
16335
          /^X\/\(\/\).*/{ s//\1/; q; }
 
16336
          s/.*/./; q'`
 
16337
 
 
16338
# PATH needs CR, and LINENO needs CR and PATH.
 
16339
# Avoid depending upon Character Ranges.
 
16340
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
16341
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
16342
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
16343
as_cr_digits='0123456789'
 
16344
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16345
 
 
16346
# The user is always right.
 
16347
if test "${PATH_SEPARATOR+set}" != set; then
 
16348
  echo "#! /bin/sh" >conftest.sh
 
16349
  echo  "exit 0"   >>conftest.sh
 
16350
  chmod +x conftest.sh
 
16351
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
16352
    PATH_SEPARATOR=';'
 
16353
  else
 
16354
    PATH_SEPARATOR=:
 
16355
  fi
 
16356
  rm -f conftest.sh
 
16357
fi
 
16358
 
 
16359
 
 
16360
  as_lineno_1=$LINENO
 
16361
  as_lineno_2=$LINENO
 
16362
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
16363
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
16364
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
16365
  # Find who we are.  Look in the path if we contain no path at all
 
16366
  # relative or not.
 
16367
  case $0 in
 
16368
    *[\\/]* ) as_myself=$0 ;;
 
16369
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16370
for as_dir in $PATH
 
16371
do
 
16372
  IFS=$as_save_IFS
 
16373
  test -z "$as_dir" && as_dir=.
 
16374
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16375
done
 
16376
 
 
16377
       ;;
 
16378
  esac
 
16379
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
16380
  # in which case we are not to be found in the path.
 
16381
  if test "x$as_myself" = x; then
 
16382
    as_myself=$0
 
16383
  fi
 
16384
  if test ! -f "$as_myself"; then
 
16385
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
16386
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
16387
   { (exit 1); exit 1; }; }
 
16388
  fi
 
16389
  case $CONFIG_SHELL in
 
16390
  '')
 
16391
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16392
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
16393
do
 
16394
  IFS=$as_save_IFS
 
16395
  test -z "$as_dir" && as_dir=.
 
16396
  for as_base in sh bash ksh sh5; do
 
16397
         case $as_dir in
 
16398
         /*)
 
16399
           if ("$as_dir/$as_base" -c '
 
16400
  as_lineno_1=$LINENO
 
16401
  as_lineno_2=$LINENO
 
16402
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
16403
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
16404
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
16405
             CONFIG_SHELL=$as_dir/$as_base
 
16406
             export CONFIG_SHELL
 
16407
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
16408
           fi;;
 
16409
         esac
 
16410
       done
 
16411
done
 
16412
;;
 
16413
  esac
 
16414
 
 
16415
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
16416
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
16417
  # line-number line before each line; the second 'sed' does the real
 
16418
  # work.  The second script uses 'N' to pair each line-number line
 
16419
  # with the numbered line, and appends trailing '-' during
 
16420
  # substitution so that $LINENO is not a special case at line end.
 
16421
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
16422
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
16423
  sed '=' <$as_myself |
 
16424
    sed '
 
16425
      N
 
16426
      s,$,-,
 
16427
      : loop
 
16428
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
16429
      t loop
 
16430
      s,-$,,
 
16431
      s,^['$as_cr_digits']*\n,,
 
16432
    ' >$as_me.lineno &&
 
16433
  chmod +x $as_me.lineno ||
 
16434
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
16435
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
16436
   { (exit 1); exit 1; }; }
 
16437
 
 
16438
  # Don't try to exec as it changes $[0], causing all sort of problems
 
16439
  # (the dirname of $[0] is not the place where we might find the
 
16440
  # original and so on.  Autoconf is especially sensible to this).
 
16441
  . ./$as_me.lineno
 
16442
  # Exit status is that of the last command.
 
16443
  exit
 
16444
}
 
16445
 
 
16446
 
 
16447
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
16448
  *c*,-n*) ECHO_N= ECHO_C='
 
16449
' ECHO_T='      ' ;;
 
16450
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
16451
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
16452
esac
 
16453
 
 
16454
if expr a : '\(a\)' >/dev/null 2>&1; then
 
16455
  as_expr=expr
 
16456
else
 
16457
  as_expr=false
 
16458
fi
 
16459
 
 
16460
rm -f conf$$ conf$$.exe conf$$.file
 
16461
echo >conf$$.file
 
16462
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16463
  # We could just check for DJGPP; but this test a) works b) is more generic
 
16464
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
16465
  if test -f conf$$.exe; then
 
16466
    # Don't use ln at all; we don't have any links
 
16467
    as_ln_s='cp -p'
 
16468
  else
 
16469
    as_ln_s='ln -s'
 
16470
  fi
 
16471
elif ln conf$$.file conf$$ 2>/dev/null; then
 
16472
  as_ln_s=ln
 
16473
else
 
16474
  as_ln_s='cp -p'
 
16475
fi
 
16476
rm -f conf$$ conf$$.exe conf$$.file
 
16477
 
 
16478
as_executable_p="test -f"
 
16479
 
 
16480
# Sed expression to map a string onto a valid CPP name.
 
16481
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
16482
 
 
16483
# Sed expression to map a string onto a valid variable name.
 
16484
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
16485
 
 
16486
 
 
16487
# IFS
 
16488
# We need space, tab and new line, in precisely that order.
 
16489
as_nl='
 
16490
'
 
16491
IFS="   $as_nl"
 
16492
 
 
16493
# CDPATH.
 
16494
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
16495
 
 
16496
exec 6>&1
 
16497
 
 
16498
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
16499
# report actual input values of CONFIG_FILES etc. instead of their
 
16500
# values after options handling.  Logging --version etc. is OK.
 
16501
exec 5>>config.log
 
16502
{
 
16503
  echo
 
16504
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
16505
## Running $as_me. ##
 
16506
_ASBOX
 
16507
} >&5
 
16508
cat >&5 <<_CSEOF
 
16509
 
 
16510
This file was extended by SoQt $as_me 1.0.2, which was
 
16511
generated by GNU Autoconf 2.53.  Invocation command line was
 
16512
 
 
16513
  CONFIG_FILES    = $CONFIG_FILES
 
16514
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
16515
  CONFIG_LINKS    = $CONFIG_LINKS
 
16516
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
16517
  $ $0 $@
 
16518
 
 
16519
_CSEOF
 
16520
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
16521
echo >&5
 
16522
_ACEOF
 
16523
 
 
16524
# Files that config.status was made for.
 
16525
if test -n "$ac_config_files"; then
 
16526
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
16527
fi
 
16528
 
 
16529
if test -n "$ac_config_headers"; then
 
16530
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
16531
fi
 
16532
 
 
16533
if test -n "$ac_config_links"; then
 
16534
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
16535
fi
 
16536
 
 
16537
if test -n "$ac_config_commands"; then
 
16538
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
16539
fi
 
16540
 
 
16541
cat >>$CONFIG_STATUS <<\_ACEOF
 
16542
 
 
16543
ac_cs_usage="\
 
16544
\`$as_me' instantiates files from templates according to the
 
16545
current configuration.
 
16546
 
 
16547
Usage: $0 [OPTIONS] [FILE]...
 
16548
 
 
16549
  -h, --help       print this help, then exit
 
16550
  -V, --version    print version number, then exit
 
16551
  -d, --debug      don't remove temporary files
 
16552
      --recheck    update $as_me by reconfiguring in the same conditions
 
16553
  --file=FILE[:TEMPLATE]
 
16554
                   instantiate the configuration file FILE
 
16555
  --header=FILE[:TEMPLATE]
 
16556
                   instantiate the configuration header FILE
 
16557
 
 
16558
Configuration files:
 
16559
$config_files
 
16560
 
 
16561
Configuration headers:
 
16562
$config_headers
 
16563
 
 
16564
Configuration commands:
 
16565
$config_commands
 
16566
 
 
16567
Report bugs to <bug-autoconf@gnu.org>."
 
16568
_ACEOF
 
16569
 
 
16570
cat >>$CONFIG_STATUS <<_ACEOF
 
16571
ac_cs_version="\\
 
16572
SoQt config.status 1.0.2
 
16573
configured by $0, generated by GNU Autoconf 2.53,
 
16574
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
16575
 
 
16576
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
16577
Free Software Foundation, Inc.
 
16578
This config.status script is free software; the Free Software Foundation
 
16579
gives unlimited permission to copy, distribute and modify it."
 
16580
srcdir=$srcdir
 
16581
INSTALL="$INSTALL"
 
16582
_ACEOF
 
16583
 
 
16584
cat >>$CONFIG_STATUS <<\_ACEOF
 
16585
# If no file are specified by the user, then we need to provide default
 
16586
# value.  By we need to know if files were specified by the user.
 
16587
ac_need_defaults=:
 
16588
while test $# != 0
 
16589
do
 
16590
  case $1 in
 
16591
  --*=*)
 
16592
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
16593
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
16594
    shift
 
16595
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
16596
    shift
 
16597
    ;;
 
16598
  -*);;
 
16599
  *) # This is not an option, so the user has probably given explicit
 
16600
     # arguments.
 
16601
     ac_need_defaults=false;;
 
16602
  esac
 
16603
 
 
16604
  case $1 in
 
16605
  # Handling of the options.
 
16606
_ACEOF
 
16607
cat >>$CONFIG_STATUS <<_ACEOF
 
16608
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
16609
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
16610
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
16611
_ACEOF
 
16612
cat >>$CONFIG_STATUS <<\_ACEOF
 
16613
  --version | --vers* | -V )
 
16614
    echo "$ac_cs_version"; exit 0 ;;
 
16615
  --he | --h)
 
16616
    # Conflict between --help and --header
 
16617
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
16618
Try \`$0 --help' for more information." >&5
 
16619
echo "$as_me: error: ambiguous option: $1
 
16620
Try \`$0 --help' for more information." >&2;}
 
16621
   { (exit 1); exit 1; }; };;
 
16622
  --help | --hel | -h )
 
16623
    echo "$ac_cs_usage"; exit 0 ;;
 
16624
  --debug | --d* | -d )
 
16625
    debug=: ;;
 
16626
  --file | --fil | --fi | --f )
 
16627
    shift
 
16628
    CONFIG_FILES="$CONFIG_FILES $1"
 
16629
    ac_need_defaults=false;;
 
16630
  --header | --heade | --head | --hea )
 
16631
    shift
 
16632
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
16633
    ac_need_defaults=false;;
 
16634
 
 
16635
  # This is an error.
 
16636
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
16637
Try \`$0 --help' for more information." >&5
 
16638
echo "$as_me: error: unrecognized option: $1
 
16639
Try \`$0 --help' for more information." >&2;}
 
16640
   { (exit 1); exit 1; }; } ;;
 
16641
 
 
16642
  *) ac_config_targets="$ac_config_targets $1" ;;
 
16643
 
 
16644
  esac
 
16645
  shift
 
16646
done
 
16647
 
 
16648
_ACEOF
 
16649
 
 
16650
cat >>$CONFIG_STATUS <<_ACEOF
 
16651
#
 
16652
# INIT-COMMANDS section.
 
16653
#
 
16654
 
 
16655
AMDEP_TRUE="$AMDEP_TRUE"
 
16656
ac_aux_dir="$ac_aux_dir"
 
16657
 
 
16658
_ACEOF
 
16659
 
 
16660
 
 
16661
 
 
16662
cat >>$CONFIG_STATUS <<\_ACEOF
 
16663
for ac_config_target in $ac_config_targets
 
16664
do
 
16665
  case "$ac_config_target" in
 
16666
  # Handling of arguments.
 
16667
  "soqt-$CONFIG.cfg" ) CONFIG_FILES="$CONFIG_FILES soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in" ;;
 
16668
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
16669
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
16670
  "src/Inventor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Makefile" ;;
 
16671
  "src/Inventor/Qt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/Makefile" ;;
 
16672
  "src/Inventor/Qt/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/devices/Makefile" ;;
 
16673
  "src/Inventor/Qt/viewers/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/viewers/Makefile" ;;
 
16674
  "src/Inventor/Qt/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/widgets/Makefile" ;;
 
16675
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
16676
  "man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
 
16677
  "man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
 
16678
  "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
 
16679
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
16680
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
16681
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
16682
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
16683
   { (exit 1); exit 1; }; };;
 
16684
  esac
 
16685
done
 
16686
 
 
16687
# If the user did not use the arguments to specify the items to instantiate,
 
16688
# then the envvar interface is used.  Set only those that are not.
 
16689
# We use the long form for the default assignment because of an extremely
 
16690
# bizarre bug on SunOS 4.1.3.
 
16691
if $ac_need_defaults; then
 
16692
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
16693
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
16694
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
16695
fi
 
16696
 
 
16697
# Create a temporary directory, and hook for its removal unless debugging.
 
16698
$debug ||
 
16699
{
 
16700
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
16701
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
16702
}
 
16703
 
 
16704
# Create a (secure) tmp directory for tmp files.
 
16705
: ${TMPDIR=/tmp}
 
16706
{
 
16707
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
16708
  test -n "$tmp" && test -d "$tmp"
 
16709
}  ||
 
16710
{
 
16711
  tmp=$TMPDIR/cs$$-$RANDOM
 
16712
  (umask 077 && mkdir $tmp)
 
16713
} ||
 
16714
{
 
16715
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
16716
   { (exit 1); exit 1; }
 
16717
}
 
16718
 
 
16719
_ACEOF
 
16720
 
 
16721
cat >>$CONFIG_STATUS <<_ACEOF
 
16722
 
 
16723
#
 
16724
# CONFIG_FILES section.
 
16725
#
 
16726
 
 
16727
# No need to generate the scripts if there are no CONFIG_FILES.
 
16728
# This happens for instance when ./config.status config.h
 
16729
if test -n "\$CONFIG_FILES"; then
 
16730
  # Protect against being on the right side of a sed subst in config.status.
 
16731
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
16732
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
16733
s,@SHELL@,$SHELL,;t t
 
16734
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
16735
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
16736
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
16737
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
16738
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
16739
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
16740
s,@exec_prefix@,$exec_prefix,;t t
 
16741
s,@prefix@,$prefix,;t t
 
16742
s,@program_transform_name@,$program_transform_name,;t t
 
16743
s,@bindir@,$bindir,;t t
 
16744
s,@sbindir@,$sbindir,;t t
 
16745
s,@libexecdir@,$libexecdir,;t t
 
16746
s,@datadir@,$datadir,;t t
 
16747
s,@sysconfdir@,$sysconfdir,;t t
 
16748
s,@sharedstatedir@,$sharedstatedir,;t t
 
16749
s,@localstatedir@,$localstatedir,;t t
 
16750
s,@libdir@,$libdir,;t t
 
16751
s,@includedir@,$includedir,;t t
 
16752
s,@oldincludedir@,$oldincludedir,;t t
 
16753
s,@infodir@,$infodir,;t t
 
16754
s,@mandir@,$mandir,;t t
 
16755
s,@build_alias@,$build_alias,;t t
 
16756
s,@host_alias@,$host_alias,;t t
 
16757
s,@target_alias@,$target_alias,;t t
 
16758
s,@DEFS@,$DEFS,;t t
 
16759
s,@ECHO_C@,$ECHO_C,;t t
 
16760
s,@ECHO_N@,$ECHO_N,;t t
 
16761
s,@ECHO_T@,$ECHO_T,;t t
 
16762
s,@LIBS@,$LIBS,;t t
 
16763
s,@build@,$build,;t t
 
16764
s,@build_cpu@,$build_cpu,;t t
 
16765
s,@build_vendor@,$build_vendor,;t t
 
16766
s,@build_os@,$build_os,;t t
 
16767
s,@host@,$host,;t t
 
16768
s,@host_cpu@,$host_cpu,;t t
 
16769
s,@host_vendor@,$host_vendor,;t t
 
16770
s,@host_os@,$host_os,;t t
 
16771
s,@target@,$target,;t t
 
16772
s,@target_cpu@,$target_cpu,;t t
 
16773
s,@target_vendor@,$target_vendor,;t t
 
16774
s,@target_os@,$target_os,;t t
 
16775
s,@BUILD_WITH_MSVC@,$BUILD_WITH_MSVC,;t t
 
16776
s,@SOQT_MAJOR_VERSION@,$SOQT_MAJOR_VERSION,;t t
 
16777
s,@SOQT_MINOR_VERSION@,$SOQT_MINOR_VERSION,;t t
 
16778
s,@SOQT_MICRO_VERSION@,$SOQT_MICRO_VERSION,;t t
 
16779
s,@SOQT_BETA_VERSION@,$SOQT_BETA_VERSION,;t t
 
16780
s,@SOQT_VERSION@,$SOQT_VERSION,;t t
 
16781
s,@LT_CURRENT@,$LT_CURRENT,;t t
 
16782
s,@LT_REVISION@,$LT_REVISION,;t t
 
16783
s,@LT_AGE@,$LT_AGE,;t t
 
16784
s,@SOQT_SO_VERSION@,$SOQT_SO_VERSION,;t t
 
16785
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
16786
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
16787
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
16788
s,@PACKAGE@,$PACKAGE,;t t
 
16789
s,@VERSION@,$VERSION,;t t
 
16790
s,@EXEEXT@,$EXEEXT,;t t
 
16791
s,@OBJEXT@,$OBJEXT,;t t
 
16792
s,@ACLOCAL@,$ACLOCAL,;t t
 
16793
s,@AUTOCONF@,$AUTOCONF,;t t
 
16794
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
16795
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
16796
s,@MAKEINFO@,$MAKEINFO,;t t
 
16797
s,@AMTAR@,$AMTAR,;t t
 
16798
s,@install_sh@,$install_sh,;t t
 
16799
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
16800
s,@AWK@,$AWK,;t t
 
16801
s,@SET_MAKE@,$SET_MAKE,;t t
 
16802
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
16803
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
16804
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
16805
s,@DEPDIR@,$DEPDIR,;t t
 
16806
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
16807
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
16808
s,@MAINT@,$MAINT,;t t
 
16809
s,@CC@,$CC,;t t
 
16810
s,@CFLAGS@,$CFLAGS,;t t
 
16811
s,@LDFLAGS@,$LDFLAGS,;t t
 
16812
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
16813
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
16814
s,@am__include@,$am__include,;t t
 
16815
s,@am__quote@,$am__quote,;t t
 
16816
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
16817
s,@CPP@,$CPP,;t t
 
16818
s,@CXX@,$CXX,;t t
 
16819
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
16820
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
16821
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
16822
s,@CXXCPP@,$CXXCPP,;t t
 
16823
s,@SOGUI_MSVC_LIBC@,$SOGUI_MSVC_LIBC,;t t
 
16824
s,@LN_S@,$LN_S,;t t
 
16825
s,@ECHO@,$ECHO,;t t
 
16826
s,@RANLIB@,$RANLIB,;t t
 
16827
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
16828
s,@STRIP@,$STRIP,;t t
 
16829
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
16830
s,@LIBTOOL@,$LIBTOOL,;t t
 
16831
s,@SOGUI_EXTRA_CPPFLAGS@,$SOGUI_EXTRA_CPPFLAGS,;t t
 
16832
s,@SOGUI_EXTRA_CFLAGS@,$SOGUI_EXTRA_CFLAGS,;t t
 
16833
s,@SOGUI_EXTRA_CXXFLAGS@,$SOGUI_EXTRA_CXXFLAGS,;t t
 
16834
s,@SOGUI_EXTRA_LDFLAGS@,$SOGUI_EXTRA_LDFLAGS,;t t
 
16835
s,@SOGUI_EXTRA_LIBS@,$SOGUI_EXTRA_LIBS,;t t
 
16836
s,@CONFIG@,$CONFIG,;t t
 
16837
s,@SUFFIX@,$SUFFIX,;t t
 
16838
s,@BUILD_LIBRARY_TRUE@,$BUILD_LIBRARY_TRUE,;t t
 
16839
s,@BUILD_LIBRARY_FALSE@,$BUILD_LIBRARY_FALSE,;t t
 
16840
s,@htmldir@,$htmldir,;t t
 
16841
s,@SOGUI_DOC_HTML@,$SOGUI_DOC_HTML,;t t
 
16842
s,@SOGUI_DOC_MAN@,$SOGUI_DOC_MAN,;t t
 
16843
s,@sogui_build_dir@,$sogui_build_dir,;t t
 
16844
s,@sogui_src_dir@,$sogui_src_dir,;t t
 
16845
s,@sogui_html_dir@,$sogui_html_dir,;t t
 
16846
s,@sogui_man_dir@,$sogui_man_dir,;t t
 
16847
s,@BUILD_MANPAGES_TRUE@,$BUILD_MANPAGES_TRUE,;t t
 
16848
s,@BUILD_MANPAGES_FALSE@,$BUILD_MANPAGES_FALSE,;t t
 
16849
s,@BUILD_HTMLPAGES_TRUE@,$BUILD_HTMLPAGES_TRUE,;t t
 
16850
s,@BUILD_HTMLPAGES_FALSE@,$BUILD_HTMLPAGES_FALSE,;t t
 
16851
s,@sim_ac_doxygen_exe@,$sim_ac_doxygen_exe,;t t
 
16852
s,@sim_ac_perl_exe@,$sim_ac_perl_exe,;t t
 
16853
s,@path_tag@,$path_tag,;t t
 
16854
s,@BUILD_METAFILES_TRUE@,$BUILD_METAFILES_TRUE,;t t
 
16855
s,@BUILD_METAFILES_FALSE@,$BUILD_METAFILES_FALSE,;t t
 
16856
s,@meta_prefix@,$meta_prefix,;t t
 
16857
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
16858
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
16859
s,@X_LIBS@,$X_LIBS,;t t
 
16860
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
16861
s,@sim_ac_coin_configcmd@,$sim_ac_coin_configcmd,;t t
 
16862
s,@QTDIR@,$QTDIR,;t t
 
16863
s,@sim_ac_qt_cygpath@,$sim_ac_qt_cygpath,;t t
 
16864
s,@MOC@,$MOC,;t t
 
16865
s,@HAVE_JOYSTICK_LINUX_TRUE@,$HAVE_JOYSTICK_LINUX_TRUE,;t t
 
16866
s,@HAVE_JOYSTICK_LINUX_FALSE@,$HAVE_JOYSTICK_LINUX_FALSE,;t t
 
16867
s,@DSUFFIX@,$DSUFFIX,;t t
 
16868
s,@COIN_COMPILER@,$COIN_COMPILER,;t t
 
16869
s,@ivframeworkdir@,$ivframeworkdir,;t t
 
16870
s,@frameworkdir@,$frameworkdir,;t t
 
16871
s,@ivincludedir@,$ivincludedir,;t t
 
16872
s,@soqtincludedir@,$soqtincludedir,;t t
 
16873
s,@MAC_FRAMEWORK@,$MAC_FRAMEWORK,;t t
 
16874
s,@MAC_FRAMEWORK_NAME@,$MAC_FRAMEWORK_NAME,;t t
 
16875
s,@MAC_FRAMEWORK_PREFIX@,$MAC_FRAMEWORK_PREFIX,;t t
 
16876
s,@MAC_FRAMEWORK_VERSION@,$MAC_FRAMEWORK_VERSION,;t t
 
16877
s,@nop@,$nop,;t t
 
16878
s,@MAC_FRAMEWORK_TRUE@,$MAC_FRAMEWORK_TRUE,;t t
 
16879
s,@MAC_FRAMEWORK_FALSE@,$MAC_FRAMEWORK_FALSE,;t t
 
16880
s,@UNIX2WINPATH@,$UNIX2WINPATH,;t t
 
16881
s,@Gui@,$Gui,;t t
 
16882
s,@gui@,$gui,;t t
 
16883
s,@GUI@,$GUI,;t t
 
16884
s,@WIDGET@,$WIDGET,;t t
 
16885
s,@EVENT@,$EVENT,;t t
 
16886
s,@COMPONENTHEADER@,$COMPONENTHEADER,;t t
 
16887
s,@soqt_build_dir@,$soqt_build_dir,;t t
 
16888
s,@soqt_w32_build_dir@,$soqt_w32_build_dir,;t t
 
16889
s,@soqt_src_dir@,$soqt_src_dir,;t t
 
16890
s,@soqt_w32_src_dir@,$soqt_w32_src_dir,;t t
 
16891
s,@LIBFLAGS@,$LIBFLAGS,;t t
 
16892
s,@BUILD_WITH_MSVC_TRUE@,$BUILD_WITH_MSVC_TRUE,;t t
 
16893
s,@BUILD_WITH_MSVC_FALSE@,$BUILD_WITH_MSVC_FALSE,;t t
 
16894
s,@SOQT_DSP_LIBS@,$SOQT_DSP_LIBS,;t t
 
16895
s,@SOQT_DSP_INCS@,$SOQT_DSP_INCS,;t t
 
16896
s,@SOQT_DSP_DEFS@,$SOQT_DSP_DEFS,;t t
 
16897
CEOF
 
16898
 
 
16899
_ACEOF
 
16900
 
 
16901
  cat >>$CONFIG_STATUS <<\_ACEOF
 
16902
  # Split the substitutions into bite-sized pieces for seds with
 
16903
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
16904
  ac_max_sed_lines=48
 
16905
  ac_sed_frag=1 # Number of current file.
 
16906
  ac_beg=1 # First line for current file.
 
16907
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
16908
  ac_more_lines=:
 
16909
  ac_sed_cmds=
 
16910
  while $ac_more_lines; do
 
16911
    if test $ac_beg -gt 1; then
 
16912
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
16913
    else
 
16914
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
16915
    fi
 
16916
    if test ! -s $tmp/subs.frag; then
 
16917
      ac_more_lines=false
 
16918
    else
 
16919
      # The purpose of the label and of the branching condition is to
 
16920
      # speed up the sed processing (if there are no `@' at all, there
 
16921
      # is no need to browse any of the substitutions).
 
16922
      # These are the two extra sed commands mentioned above.
 
16923
      (echo ':t
 
16924
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
16925
      if test -z "$ac_sed_cmds"; then
 
16926
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
16927
      else
 
16928
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
16929
      fi
 
16930
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
16931
      ac_beg=$ac_end
 
16932
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
16933
    fi
 
16934
  done
 
16935
  if test -z "$ac_sed_cmds"; then
 
16936
    ac_sed_cmds=cat
 
16937
  fi
 
16938
fi # test -n "$CONFIG_FILES"
 
16939
 
 
16940
_ACEOF
 
16941
cat >>$CONFIG_STATUS <<\_ACEOF
 
16942
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
16943
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
16944
  case $ac_file in
 
16945
  - | *:- | *:-:* ) # input from stdin
 
16946
        cat >$tmp/stdin
 
16947
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16948
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16949
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16950
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16951
  * )   ac_file_in=$ac_file.in ;;
 
16952
  esac
 
16953
 
 
16954
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
16955
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
16956
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16957
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16958
         X"$ac_file" : 'X\(//\)$' \| \
 
16959
         X"$ac_file" : 'X\(/\)' \| \
 
16960
         .     : '\(.\)' 2>/dev/null ||
 
16961
echo X"$ac_file" |
 
16962
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16963
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16964
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16965
          /^X\(\/\).*/{ s//\1/; q; }
 
16966
          s/.*/./; q'`
 
16967
  { case "$ac_dir" in
 
16968
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
16969
  *)                      as_incr_dir=.;;
 
16970
esac
 
16971
as_dummy="$ac_dir"
 
16972
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
16973
  case $as_mkdir_dir in
 
16974
    # Skip DOS drivespec
 
16975
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
16976
    *)
 
16977
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
16978
      test -d "$as_incr_dir" ||
 
16979
        mkdir "$as_incr_dir" ||
 
16980
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
 
16981
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
 
16982
   { (exit 1); exit 1; }; }
 
16983
    ;;
 
16984
  esac
 
16985
done; }
 
16986
 
 
16987
  ac_builddir=.
 
16988
 
 
16989
if test "$ac_dir" != .; then
 
16990
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
16991
  # A "../" for each directory in $ac_dir_suffix.
 
16992
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
16993
else
 
16994
  ac_dir_suffix= ac_top_builddir=
 
16995
fi
 
16996
 
 
16997
case $srcdir in
 
16998
  .)  # No --srcdir option.  We are building in place.
 
16999
    ac_srcdir=.
 
17000
    if test -z "$ac_top_builddir"; then
 
17001
       ac_top_srcdir=.
 
17002
    else
 
17003
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
17004
    fi ;;
 
17005
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
17006
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17007
    ac_top_srcdir=$srcdir ;;
 
17008
  *) # Relative path.
 
17009
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
17010
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
17011
esac
 
17012
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
17013
# absolute.
 
17014
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
17015
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
17016
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
17017
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
17018
 
 
17019
 
 
17020
  case $INSTALL in
 
17021
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
17022
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
17023
  esac
 
17024
 
 
17025
  if test x"$ac_file" != x-; then
 
17026
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
17027
echo "$as_me: creating $ac_file" >&6;}
 
17028
    rm -f "$ac_file"
 
17029
  fi
 
17030
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17031
  # use $as_me), people would be surprised to read:
 
17032
  #    /* config.h.  Generated by config.status.  */
 
17033
  if test x"$ac_file" = x-; then
 
17034
    configure_input=
 
17035
  else
 
17036
    configure_input="$ac_file.  "
 
17037
  fi
 
17038
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
17039
                                     sed 's,.*/,,'` by configure."
 
17040
 
 
17041
  # First look for the input files in the build tree, otherwise in the
 
17042
  # src tree.
 
17043
  ac_file_inputs=`IFS=:
 
17044
    for f in $ac_file_in; do
 
17045
      case $f in
 
17046
      -) echo $tmp/stdin ;;
 
17047
      [\\/$]*)
 
17048
         # Absolute (can't be DOS-style, as IFS=:)
 
17049
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17050
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17051
   { (exit 1); exit 1; }; }
 
17052
         echo $f;;
 
17053
      *) # Relative
 
17054
         if test -f "$f"; then
 
17055
           # Build tree
 
17056
           echo $f
 
17057
         elif test -f "$srcdir/$f"; then
 
17058
           # Source tree
 
17059
           echo $srcdir/$f
 
17060
         else
 
17061
           # /dev/null tree
 
17062
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17063
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17064
   { (exit 1); exit 1; }; }
 
17065
         fi;;
 
17066
      esac
 
17067
    done` || { (exit 1); exit 1; }
 
17068
_ACEOF
 
17069
cat >>$CONFIG_STATUS <<_ACEOF
 
17070
  sed "$ac_vpsub
 
17071
$extrasub
 
17072
_ACEOF
 
17073
cat >>$CONFIG_STATUS <<\_ACEOF
 
17074
:t
 
17075
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
17076
s,@configure_input@,$configure_input,;t t
 
17077
s,@srcdir@,$ac_srcdir,;t t
 
17078
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
17079
s,@top_srcdir@,$ac_top_srcdir,;t t
 
17080
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
17081
s,@builddir@,$ac_builddir,;t t
 
17082
s,@abs_builddir@,$ac_abs_builddir,;t t
 
17083
s,@top_builddir@,$ac_top_builddir,;t t
 
17084
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
17085
s,@INSTALL@,$ac_INSTALL,;t t
 
17086
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
17087
  rm -f $tmp/stdin
 
17088
  if test x"$ac_file" != x-; then
 
17089
    mv $tmp/out $ac_file
 
17090
  else
 
17091
    cat $tmp/out
 
17092
    rm -f $tmp/out
 
17093
  fi
 
17094
 
 
17095
done
 
17096
_ACEOF
 
17097
cat >>$CONFIG_STATUS <<\_ACEOF
 
17098
 
 
17099
#
 
17100
# CONFIG_HEADER section.
 
17101
#
 
17102
 
 
17103
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
17104
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
17105
#
 
17106
# ac_d sets the value in "#define NAME VALUE" lines.
 
17107
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
17108
ac_dB='[        ].*$,\1#\2'
 
17109
ac_dC=' '
 
17110
ac_dD=',;t'
 
17111
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
17112
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
17113
ac_uB='$,\1#\2define\3'
 
17114
ac_uC=' '
 
17115
ac_uD=',;t'
 
17116
 
 
17117
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
17118
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
17119
  case $ac_file in
 
17120
  - | *:- | *:-:* ) # input from stdin
 
17121
        cat >$tmp/stdin
 
17122
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17123
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17124
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17125
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17126
  * )   ac_file_in=$ac_file.in ;;
 
17127
  esac
 
17128
 
 
17129
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
17130
echo "$as_me: creating $ac_file" >&6;}
 
17131
 
 
17132
  # First look for the input files in the build tree, otherwise in the
 
17133
  # src tree.
 
17134
  ac_file_inputs=`IFS=:
 
17135
    for f in $ac_file_in; do
 
17136
      case $f in
 
17137
      -) echo $tmp/stdin ;;
 
17138
      [\\/$]*)
 
17139
         # Absolute (can't be DOS-style, as IFS=:)
 
17140
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17141
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17142
   { (exit 1); exit 1; }; }
 
17143
         echo $f;;
 
17144
      *) # Relative
 
17145
         if test -f "$f"; then
 
17146
           # Build tree
 
17147
           echo $f
 
17148
         elif test -f "$srcdir/$f"; then
 
17149
           # Source tree
 
17150
           echo $srcdir/$f
 
17151
         else
 
17152
           # /dev/null tree
 
17153
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17154
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17155
   { (exit 1); exit 1; }; }
 
17156
         fi;;
 
17157
      esac
 
17158
    done` || { (exit 1); exit 1; }
 
17159
  # Remove the trailing spaces.
 
17160
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
17161
 
 
17162
_ACEOF
 
17163
 
 
17164
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
17165
# `conftest.undefs', that substitutes the proper values into
 
17166
# config.h.in to produce config.h.  The first handles `#define'
 
17167
# templates, and the second `#undef' templates.
 
17168
# And first: Protect against being on the right side of a sed subst in
 
17169
# config.status.  Protect against being in an unquoted here document
 
17170
# in config.status.
 
17171
rm -f conftest.defines conftest.undefs
 
17172
# Using a here document instead of a string reduces the quoting nightmare.
 
17173
# Putting comments in sed scripts is not portable.
 
17174
#
 
17175
# `end' is used to avoid that the second main sed command (meant for
 
17176
# 0-ary CPP macros) applies to n-ary macro definitions.
 
17177
# See the Autoconf documentation for `clear'.
 
17178
cat >confdef2sed.sed <<\_ACEOF
 
17179
s/[\\&,]/\\&/g
 
17180
s,[\\$`],\\&,g
 
17181
t clear
 
17182
: clear
 
17183
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
17184
t end
 
17185
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
17186
: end
 
17187
_ACEOF
 
17188
# If some macros were called several times there might be several times
 
17189
# the same #defines, which is useless.  Nevertheless, we may not want to
 
17190
# sort them, since we want the *last* AC-DEFINE to be honored.
 
17191
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
17192
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
17193
rm -f confdef2sed.sed
 
17194
 
 
17195
# This sed command replaces #undef with comments.  This is necessary, for
 
17196
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
17197
# on some systems where configure will not decide to define it.
 
17198
cat >>conftest.undefs <<\_ACEOF
 
17199
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
17200
_ACEOF
 
17201
 
 
17202
# Break up conftest.defines because some shells have a limit on the size
 
17203
# of here documents, and old seds have small limits too (100 cmds).
 
17204
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
17205
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
17206
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
17207
echo '  :' >>$CONFIG_STATUS
 
17208
rm -f conftest.tail
 
17209
while grep . conftest.defines >/dev/null
 
17210
do
 
17211
  # Write a limited-size here document to $tmp/defines.sed.
 
17212
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
17213
  # Speed up: don't consider the non `#define' lines.
 
17214
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
17215
  # Work around the forget-to-reset-the-flag bug.
 
17216
  echo 't clr' >>$CONFIG_STATUS
 
17217
  echo ': clr' >>$CONFIG_STATUS
 
17218
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
17219
  echo 'CEOF
 
17220
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
17221
  rm -f $tmp/in
 
17222
  mv $tmp/out $tmp/in
 
17223
' >>$CONFIG_STATUS
 
17224
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
17225
  rm -f conftest.defines
 
17226
  mv conftest.tail conftest.defines
 
17227
done
 
17228
rm -f conftest.defines
 
17229
echo '  fi # egrep' >>$CONFIG_STATUS
 
17230
echo >>$CONFIG_STATUS
 
17231
 
 
17232
# Break up conftest.undefs because some shells have a limit on the size
 
17233
# of here documents, and old seds have small limits too (100 cmds).
 
17234
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
17235
rm -f conftest.tail
 
17236
while grep . conftest.undefs >/dev/null
 
17237
do
 
17238
  # Write a limited-size here document to $tmp/undefs.sed.
 
17239
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
17240
  # Speed up: don't consider the non `#undef'
 
17241
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
17242
  # Work around the forget-to-reset-the-flag bug.
 
17243
  echo 't clr' >>$CONFIG_STATUS
 
17244
  echo ': clr' >>$CONFIG_STATUS
 
17245
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
17246
  echo 'CEOF
 
17247
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
17248
  rm -f $tmp/in
 
17249
  mv $tmp/out $tmp/in
 
17250
' >>$CONFIG_STATUS
 
17251
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
17252
  rm -f conftest.undefs
 
17253
  mv conftest.tail conftest.undefs
 
17254
done
 
17255
rm -f conftest.undefs
 
17256
 
 
17257
cat >>$CONFIG_STATUS <<\_ACEOF
 
17258
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17259
  # use $as_me), people would be surprised to read:
 
17260
  #    /* config.h.  Generated by config.status.  */
 
17261
  if test x"$ac_file" = x-; then
 
17262
    echo "/* Generated by configure.  */" >$tmp/config.h
 
17263
  else
 
17264
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
17265
  fi
 
17266
  cat $tmp/in >>$tmp/config.h
 
17267
  rm -f $tmp/in
 
17268
  if test x"$ac_file" != x-; then
 
17269
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
17270
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
17271
echo "$as_me: $ac_file is unchanged" >&6;}
 
17272
    else
 
17273
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
17274
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17275
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17276
         X"$ac_file" : 'X\(//\)$' \| \
 
17277
         X"$ac_file" : 'X\(/\)' \| \
 
17278
         .     : '\(.\)' 2>/dev/null ||
 
17279
echo X"$ac_file" |
 
17280
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17281
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17282
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17283
          /^X\(\/\).*/{ s//\1/; q; }
 
17284
          s/.*/./; q'`
 
17285
      { case "$ac_dir" in
 
17286
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
17287
  *)                      as_incr_dir=.;;
 
17288
esac
 
17289
as_dummy="$ac_dir"
 
17290
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
17291
  case $as_mkdir_dir in
 
17292
    # Skip DOS drivespec
 
17293
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
17294
    *)
 
17295
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
17296
      test -d "$as_incr_dir" ||
 
17297
        mkdir "$as_incr_dir" ||
 
17298
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
 
17299
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
 
17300
   { (exit 1); exit 1; }; }
 
17301
    ;;
 
17302
  esac
 
17303
done; }
 
17304
 
 
17305
      rm -f $ac_file
 
17306
      mv $tmp/config.h $ac_file
 
17307
    fi
 
17308
  else
 
17309
    cat $tmp/config.h
 
17310
    rm -f $tmp/config.h
 
17311
  fi
 
17312
  # Run the commands associated with the file.
 
17313
  case $ac_file in
 
17314
    src/config.h ) # update the timestamp
 
17315
echo timestamp >"src/stamp-h1"
 
17316
 ;;
 
17317
  esac
 
17318
done
 
17319
_ACEOF
 
17320
cat >>$CONFIG_STATUS <<\_ACEOF
 
17321
 
 
17322
#
 
17323
# CONFIG_COMMANDS section.
 
17324
#
 
17325
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
17326
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
17327
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17328
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
17329
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17330
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
17331
         X"$ac_dest" : 'X\(//\)$' \| \
 
17332
         X"$ac_dest" : 'X\(/\)' \| \
 
17333
         .     : '\(.\)' 2>/dev/null ||
 
17334
echo X"$ac_dest" |
 
17335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17336
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17337
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17338
          /^X\(\/\).*/{ s//\1/; q; }
 
17339
          s/.*/./; q'`
 
17340
  ac_builddir=.
 
17341
 
 
17342
if test "$ac_dir" != .; then
 
17343
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
17344
  # A "../" for each directory in $ac_dir_suffix.
 
17345
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
17346
else
 
17347
  ac_dir_suffix= ac_top_builddir=
 
17348
fi
 
17349
 
 
17350
case $srcdir in
 
17351
  .)  # No --srcdir option.  We are building in place.
 
17352
    ac_srcdir=.
 
17353
    if test -z "$ac_top_builddir"; then
 
17354
       ac_top_srcdir=.
 
17355
    else
 
17356
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
17357
    fi ;;
 
17358
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
17359
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17360
    ac_top_srcdir=$srcdir ;;
 
17361
  *) # Relative path.
 
17362
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
17363
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
17364
esac
 
17365
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
17366
# absolute.
 
17367
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
17368
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
17369
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
17370
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
17371
 
 
17372
 
 
17373
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
17374
echo "$as_me: executing $ac_dest commands" >&6;}
 
17375
  case $ac_dest in
 
17376
    default-1 )
 
17377
test x"$AMDEP_TRUE" != x"" ||
 
17378
for mf in $CONFIG_FILES; do
 
17379
  case "$mf" in
 
17380
  Makefile) dirpart=.;;
 
17381
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
 
17382
  *) continue;;
 
17383
  esac
 
17384
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
17385
  # Extract the definition of DEP_FILES from the Makefile without
 
17386
  # running `make'.
 
17387
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
17388
  test -z "$DEPDIR" && continue
 
17389
  # When using ansi2knr, U may be empty or an underscore; expand it
 
17390
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
17391
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
17392
  # We invoke sed twice because it is the simplest approach to
 
17393
  # changing $(DEPDIR) to its actual value in the expansion.
 
17394
  for file in `sed -n -e '
 
17395
    /^DEP_FILES = .*\\\\$/ {
 
17396
      s/^DEP_FILES = //
 
17397
      :loop
 
17398
        s/\\\\$//
 
17399
        p
 
17400
        n
 
17401
        /\\\\$/ b loop
 
17402
      p
 
17403
    }
 
17404
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
17405
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17406
    # Make sure the directory exists.
 
17407
    test -f "$dirpart/$file" && continue
 
17408
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
 
17409
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
17410
    # echo "creating $dirpart/$file"
 
17411
    echo '# dummy' > "$dirpart/$file"
 
17412
  done
 
17413
done
 
17414
 ;;
 
17415
  esac
 
17416
done
 
17417
_ACEOF
 
17418
 
 
17419
cat >>$CONFIG_STATUS <<\_ACEOF
 
17420
 
 
17421
{ (exit 0); exit 0; }
 
17422
_ACEOF
 
17423
chmod +x $CONFIG_STATUS
 
17424
ac_clean_files=$ac_clean_files_save
 
17425
 
 
17426
 
 
17427
# configure is writing to config.log, and then calls config.status.
 
17428
# config.status does its own redirection, appending to config.log.
 
17429
# Unfortunately, on DOS this fails, as config.log is still kept open
 
17430
# by configure, so config.status won't be able to write to it; its
 
17431
# output is simply discarded.  So we exec the FD to /dev/null,
 
17432
# effectively closing config.log, so it can be properly (re)opened and
 
17433
# appended to by config.status.  When coming back to configure, we
 
17434
# need to make the FD available again.
 
17435
if test "$no_create" != yes; then
 
17436
  ac_cs_success=:
 
17437
  exec 5>/dev/null
 
17438
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
17439
  exec 5>>config.log
 
17440
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17441
  # would make configure fail if this is the last instruction.
 
17442
  $ac_cs_success || { (exit 1); exit 1; }
 
17443
fi
 
17444
 
 
17445
 
 
17446
if test x${sim_ac_configuration_settings+set} != xset; then
 
17447
  sim_ac_configuration_settings="Installation Prefix:$prefix"
 
17448
else
 
17449
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Installation Prefix:$prefix"
 
17450
fi
 
17451
 
 
17452
if $sim_ac_framework; then
 
17453
  if test x${sim_ac_configuration_settings+set} != xset; then
 
17454
  sim_ac_configuration_settings="Framework Installation Prefix:$sim_ac_framework_prefix"
 
17455
else
 
17456
  sim_ac_configuration_settings="$sim_ac_configuration_settings|Framework Installation Prefix:$sim_ac_framework_prefix"
 
17457
fi
 
17458
 
 
17459
fi
 
17460
 
 
17461
sim_ac_settings=$sim_ac_configuration_settings
 
17462
sim_ac_num_settings=`echo "$sim_ac_settings" | tr -d -c "|" | wc -c`
 
17463
sim_ac_maxlength=0
 
17464
while test $sim_ac_num_settings -ge 0; do
 
17465
  sim_ac_description=`echo "$sim_ac_settings" | cut -d: -f1`
 
17466
  sim_ac_length=`echo "$sim_ac_description" | wc -c`
 
17467
  if test $sim_ac_length -gt $sim_ac_maxlength; then
 
17468
    sim_ac_maxlength=`expr $sim_ac_length + 0`
 
17469
  fi
 
17470
  sim_ac_settings=`echo $sim_ac_settings | cut -d"|" -f2-`
 
17471
  sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
 
17472
done
 
17473
 
 
17474
sim_ac_maxlength=`expr $sim_ac_maxlength + 3`
 
17475
sim_ac_padding=`echo "                                             " |
 
17476
  cut -c1-$sim_ac_maxlength`
 
17477
 
 
17478
sim_ac_num_settings=`echo "$sim_ac_configuration_settings" | tr -d -c "|" | wc -c`
 
17479
echo ""
 
17480
echo "$PACKAGE configuration settings:"
 
17481
while test $sim_ac_num_settings -ge 0; do
 
17482
  sim_ac_setting=`echo $sim_ac_configuration_settings | cut -d"|" -f1`
 
17483
  sim_ac_description=`echo "$sim_ac_setting" | cut -d: -f1`
 
17484
  sim_ac_status=`echo "$sim_ac_setting" | cut -d: -f2-`
 
17485
  # hopefully not too many terminals are too dumb for this
 
17486
  echo -e "$sim_ac_padding $sim_ac_status\r  $sim_ac_description:"
 
17487
  sim_ac_configuration_settings=`echo $sim_ac_configuration_settings | cut -d"|" -f2-`
 
17488
  sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
 
17489
done
 
17490
 
 
17491
if test x${sim_ac_configuration_warnings+set} = xset; then
 
17492
sim_ac_num_warnings=`echo "$sim_ac_configuration_warnings" | tr -d -c "|" | wc -c`
 
17493
echo ""
 
17494
echo "$PACKAGE configuration warnings:"
 
17495
while test $sim_ac_num_warnings -ge 0; do
 
17496
  sim_ac_warning=`echo "$sim_ac_configuration_warnings" | cut -d"|" -f1`
 
17497
  echo "  * $sim_ac_warning"
 
17498
  sim_ac_configuration_warnings=`echo $sim_ac_configuration_warnings | cut -d"|" -f2-`
 
17499
  sim_ac_num_warnings=`expr $sim_ac_num_warnings - 1`
 
17500
done
 
17501
fi
 
17502
 
 
17503
 
 
17504
echo ""
 
17505
echo "Now, run 'make install' to build and install $PACKAGE."
 
17506
echo ""
 
17507
 
 
17508
# **************************************************************************