~ubuntu-branches/ubuntu/karmic/libgail-gnome/karmic

1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3
# Generated by GNU Autoconf 2.62 for Gail GNOME 1.20.1.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4
#
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=atk&component=gail>.
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15
# Be more Bourne compatible
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16
DUALCASE=1; export DUALCASE # for MKS sh
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
  emulate sh
19
  NULLCMD=:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in
26
  *posix*) set -o posix ;;
27
esac
28
29
fi
30
31
32
33
34
# PATH needs CR
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
42
as_nl='
43
'
44
export as_nl
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
81
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
82
83
# Support unset when possible.
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85
  as_unset=unset
86
else
87
  as_unset=false
88
fi
89
90
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
91
# IFS
92
# We need space, tab and new line, in precisely that order.  Quoting is
93
# there to prevent editors from complaining about space-tab.
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
# splitting by setting IFS to empty value.)
96
IFS=" ""	$as_nl"
97
98
# Find who we are.  Look in the path if we contain no directory separator.
99
case $0 in
100
  *[\\/]* ) as_myself=$0 ;;
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102
for as_dir in $PATH
103
do
104
  IFS=$as_save_IFS
105
  test -z "$as_dir" && as_dir=.
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
done
108
IFS=$as_save_IFS
109
110
     ;;
111
esac
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
# in which case we are not to be found in the path.
114
if test "x$as_myself" = x; then
115
  as_myself=$0
116
fi
117
if test ! -f "$as_myself"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
119
  { (exit 1); exit 1; }
120
fi
121
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
122
# Work around bugs in pre-3.0 UWIN ksh.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
123
for as_var in ENV MAIL MAILPATH
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125
done
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
126
PS1='$ '
127
PS2='> '
128
PS4='+ '
129
130
# NLS nuisances.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
131
LC_ALL=C
132
export LC_ALL
133
LANGUAGE=C
134
export LANGUAGE
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
135
136
# Required to use basename.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
139
  as_expr=expr
140
else
141
  as_expr=false
142
fi
143
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
145
  as_basename=basename
146
else
147
  as_basename=false
148
fi
149
150
151
# Name of the executable.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
152
as_me=`$as_basename -- "$0" ||
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
	 X"$0" : 'X\(//\)$' \| \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
155
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
156
$as_echo X/"$0" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
158
	    s//\1/
159
	    q
160
	  }
161
	  /^X\/\(\/\/\)$/{
162
	    s//\1/
163
	    q
164
	  }
165
	  /^X\/\(\/\).*/{
166
	    s//\1/
167
	    q
168
	  }
169
	  s/.*/./; q'`
170
171
# CDPATH.
172
$as_unset CDPATH
173
174
175
if test "x$CONFIG_SHELL" = x; then
176
  if (eval ":") 2>/dev/null; then
177
  as_have_required=yes
178
else
179
  as_have_required=no
180
fi
181
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
182
  if test $as_have_required = yes &&	 (eval ":
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
183
(as_func_return () {
184
  (exit \$1)
185
}
186
as_func_success () {
187
  as_func_return 0
188
}
189
as_func_failure () {
190
  as_func_return 1
191
}
192
as_func_ret_success () {
193
  return 0
194
}
195
as_func_ret_failure () {
196
  return 1
197
}
198
199
exitcode=0
200
if as_func_success; then
201
  :
202
else
203
  exitcode=1
204
  echo as_func_success failed.
205
fi
206
207
if as_func_failure; then
208
  exitcode=1
209
  echo as_func_failure succeeded.
210
fi
211
212
if as_func_ret_success; then
213
  :
214
else
215
  exitcode=1
216
  echo as_func_ret_success failed.
217
fi
218
219
if as_func_ret_failure; then
220
  exitcode=1
221
  echo as_func_ret_failure succeeded.
222
fi
223
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225
  :
226
else
227
  exitcode=1
228
  echo positional parameters were not saved.
229
fi
230
231
test \$exitcode = 0) || { (exit 1); exit 1; }
232
233
(
234
  as_lineno_1=\$LINENO
235
  as_lineno_2=\$LINENO
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
239
  :
240
else
241
  as_candidate_shells=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
do
245
  IFS=$as_save_IFS
246
  test -z "$as_dir" && as_dir=.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
247
  case $as_dir in
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
248
	 /*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
249
	   for as_base in sh bash ksh sh5; do
250
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251
	   done;;
252
       esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
253
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
254
IFS=$as_save_IFS
255
256
257
      for as_shell in $as_candidate_shells $SHELL; do
258
	 # Try only shells that exist, to save several forks.
259
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
  emulate sh
263
  NULLCMD=:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
265
  # is contrary to our usage.  Disable this feature.
266
  alias -g '${1+"$@"}'='"$@"'
267
  setopt NO_GLOB_SUBST
268
else
269
  case `(set -o) 2>/dev/null` in
270
  *posix*) set -o posix ;;
271
esac
272
273
fi
274
275
276
:
277
_ASEOF
278
}; then
279
  CONFIG_SHELL=$as_shell
280
	       as_have_required=yes
281
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
286
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
294
fi
295
296
297
:
298
(as_func_return () {
299
  (exit $1)
300
}
301
as_func_success () {
302
  as_func_return 0
303
}
304
as_func_failure () {
305
  as_func_return 1
306
}
307
as_func_ret_success () {
308
  return 0
309
}
310
as_func_ret_failure () {
311
  return 1
312
}
313
314
exitcode=0
315
if as_func_success; then
316
  :
317
else
318
  exitcode=1
319
  echo as_func_success failed.
320
fi
321
322
if as_func_failure; then
323
  exitcode=1
324
  echo as_func_failure succeeded.
325
fi
326
327
if as_func_ret_success; then
328
  :
329
else
330
  exitcode=1
331
  echo as_func_ret_success failed.
332
fi
333
334
if as_func_ret_failure; then
335
  exitcode=1
336
  echo as_func_ret_failure succeeded.
337
fi
338
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
340
  :
341
else
342
  exitcode=1
343
  echo positional parameters were not saved.
344
fi
345
346
test $exitcode = 0) || { (exit 1); exit 1; }
347
348
(
349
  as_lineno_1=$LINENO
350
  as_lineno_2=$LINENO
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354
_ASEOF
355
}; then
356
  break
357
fi
358
359
fi
360
361
      done
362
363
      if test "x$CONFIG_SHELL" != x; then
364
  for as_var in BASH_ENV ENV
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
365
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
	done
367
	export CONFIG_SHELL
368
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
369
fi
370
371
372
    if test $as_have_required = no; then
373
  echo This script requires a shell more modern than all the
374
      echo shells that I found on your system.  Please install a
375
      echo modern shell, or manually run the script under such a
376
      echo shell if you do have one.
377
      { (exit 1); exit 1; }
378
fi
379
380
381
fi
382
383
fi
384
385
386
387
(eval "as_func_return () {
388
  (exit \$1)
389
}
390
as_func_success () {
391
  as_func_return 0
392
}
393
as_func_failure () {
394
  as_func_return 1
395
}
396
as_func_ret_success () {
397
  return 0
398
}
399
as_func_ret_failure () {
400
  return 1
401
}
402
403
exitcode=0
404
if as_func_success; then
405
  :
406
else
407
  exitcode=1
408
  echo as_func_success failed.
409
fi
410
411
if as_func_failure; then
412
  exitcode=1
413
  echo as_func_failure succeeded.
414
fi
415
416
if as_func_ret_success; then
417
  :
418
else
419
  exitcode=1
420
  echo as_func_ret_success failed.
421
fi
422
423
if as_func_ret_failure; then
424
  exitcode=1
425
  echo as_func_ret_failure succeeded.
426
fi
427
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429
  :
430
else
431
  exitcode=1
432
  echo positional parameters were not saved.
433
fi
434
435
test \$exitcode = 0") || {
436
  echo No shell found that supports shell functions.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
437
  echo Please tell bug-autoconf@gnu.org about your system,
438
  echo including any error possibly output before this message.
439
  echo This can help us improve future autoconf versions.
440
  echo Configuration will now proceed without shell functions.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
441
}
442
443
444
445
  as_lineno_1=$LINENO
446
  as_lineno_2=$LINENO
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
449
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
452
  # line-number line after each line using $LINENO; the second 'sed'
453
  # does the real work.  The second script uses 'N' to pair each
454
  # line-number line with the line containing $LINENO, and appends
455
  # trailing '-' during substitution so that $LINENO is not a special
456
  # case at line end.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
460
  sed -n '
461
    p
462
    /[$]LINENO/=
463
  ' <$as_myself |
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
464
    sed '
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
465
      s/[$]LINENO.*/&-/
466
      t lineno
467
      b
468
      :lineno
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
469
      N
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
470
      :loop
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
472
      t loop
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
473
      s/-\n.*//
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
474
    ' >$as_me.lineno &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
475
  chmod +x "$as_me.lineno" ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
477
   { (exit 1); exit 1; }; }
478
479
  # Don't try to exec as it changes $[0], causing all sort of problems
480
  # (the dirname of $[0] is not the place where we might find the
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
481
  # original and so on.  Autoconf is especially sensitive to this).
482
  . "./$as_me.lineno"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
483
  # Exit status is that of the last command.
484
  exit
485
}
486
487
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489
  as_dirname=dirname
490
else
491
  as_dirname=false
492
fi
493
494
ECHO_C= ECHO_N= ECHO_T=
495
case `echo -n x` in
496
-n*)
497
  case `echo 'x\c'` in
498
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499
  *)   ECHO_C='\c';;
500
  esac;;
501
*)
502
  ECHO_N='-n';;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
503
esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
506
  as_expr=expr
507
else
508
  as_expr=false
509
fi
510
511
rm -f conf$$ conf$$.exe conf$$.file
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
512
if test -d conf$$.dir; then
513
  rm -f conf$$.dir/conf$$.file
514
else
515
  rm -f conf$$.dir
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
516
  mkdir conf$$.dir 2>/dev/null
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
517
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
518
if (echo >conf$$.file) 2>/dev/null; then
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
520
    as_ln_s='ln -s'
521
    # ... but there are two gotchas:
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524
    # In both cases, we have to default to `cp -p'.
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526
      as_ln_s='cp -p'
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
528
    as_ln_s=ln
529
  else
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
530
    as_ln_s='cp -p'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
531
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
532
else
533
  as_ln_s='cp -p'
534
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536
rmdir conf$$.dir 2>/dev/null
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
537
538
if mkdir -p . 2>/dev/null; then
539
  as_mkdir_p=:
540
else
541
  test -d ./-p && rmdir ./-p
542
  as_mkdir_p=false
543
fi
544
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
545
if test -x / >/dev/null 2>&1; then
546
  as_test_x='test -x'
547
else
548
  if ls -dL / >/dev/null 2>&1; then
549
    as_ls_L_option=L
550
  else
551
    as_ls_L_option=
552
  fi
553
  as_test_x='
554
    eval sh -c '\''
555
      if test -d "$1"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
556
	test -d "$1/.";
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
557
      else
558
	case $1 in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
559
	-*)set "./$1";;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
560
	esac;
561
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562
	???[sx]*):;;*)false;;esac;fi
563
    '\'' sh
564
  '
565
fi
566
as_executable_p=$as_test_x
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
567
568
# Sed expression to map a string onto a valid CPP name.
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571
# Sed expression to map a string onto a valid variable name.
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577
# Check that we are running under the correct shell.
578
SHELL=${CONFIG_SHELL-/bin/sh}
579
580
case X$ECHO in
581
X*--fallback-echo)
582
  # Remove one level of quotation (which was required for Make).
583
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
  ;;
585
esac
586
587
echo=${ECHO-echo}
588
if test "X$1" = X--no-reexec; then
589
  # Discard the --no-reexec flag, and continue.
590
  shift
591
elif test "X$1" = X--fallback-echo; then
592
  # Avoid inline document here, it may be left over
593
  :
594
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595
  # Yippee, $echo works!
596
  :
597
else
598
  # Restart under the correct shell.
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
600
fi
601
602
if test "X$1" = X--fallback-echo; then
603
  # used as fallback echo
604
  shift
605
  cat <<EOF
606
$*
607
EOF
608
  exit 0
609
fi
610
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
612
# if CDPATH is set.
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615
if test -z "$ECHO"; then
616
if test "X${echo_test_string+set}" != Xset; then
617
# find a string as large as possible, as long as the shell can cope with it
618
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621
       echo_test_string=`eval $cmd` &&
622
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623
    then
624
      break
625
    fi
626
  done
627
fi
628
629
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631
   test "X$echo_testing_string" = "X$echo_test_string"; then
632
  :
633
else
634
  # The Solaris, AIX, and Digital Unix default echo programs unquote
635
  # backslashes.  This makes it impossible to quote backslashes using
636
  #   echo "$something" | sed 's/\\/\\\\/g'
637
  #
638
  # So, first we look for a working echo in the user's PATH.
639
640
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641
  for dir in $PATH /usr/ucb; do
642
    IFS="$lt_save_ifs"
643
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646
       test "X$echo_testing_string" = "X$echo_test_string"; then
647
      echo="$dir/echo"
648
      break
649
    fi
650
  done
651
  IFS="$lt_save_ifs"
652
653
  if test "X$echo" = Xecho; then
654
    # We didn't find a better echo, so look for alternatives.
655
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657
       test "X$echo_testing_string" = "X$echo_test_string"; then
658
      # This shell has a builtin print -r that does the trick.
659
      echo='print -r'
660
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662
      # If we have ksh, try running configure again with it.
663
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664
      export ORIGINAL_CONFIG_SHELL
665
      CONFIG_SHELL=/bin/ksh
666
      export CONFIG_SHELL
667
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668
    else
669
      # Try using printf.
670
      echo='printf %s\n'
671
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673
	 test "X$echo_testing_string" = "X$echo_test_string"; then
674
	# Cool, printf works
675
	:
676
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677
	   test "X$echo_testing_string" = 'X\t' &&
678
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679
	   test "X$echo_testing_string" = "X$echo_test_string"; then
680
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681
	export CONFIG_SHELL
682
	SHELL="$CONFIG_SHELL"
683
	export SHELL
684
	echo="$CONFIG_SHELL $0 --fallback-echo"
685
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686
	   test "X$echo_testing_string" = 'X\t' &&
687
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688
	   test "X$echo_testing_string" = "X$echo_test_string"; then
689
	echo="$CONFIG_SHELL $0 --fallback-echo"
690
      else
691
	# maybe with a smaller string...
692
	prev=:
693
694
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696
	  then
697
	    break
698
	  fi
699
	  prev="$cmd"
700
	done
701
702
	if test "$prev" != 'sed 50q "$0"'; then
703
	  echo_test_string=`eval $prev`
704
	  export echo_test_string
705
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706
	else
707
	  # Oops.  We lost completely, so just stick with echo.
708
	  echo=echo
709
	fi
710
      fi
711
    fi
712
  fi
713
fi
714
fi
715
716
# Copy echo and quote the copy suitably for passing to libtool from
717
# the Makefile, instead of quoting the original, which is used later.
718
ECHO=$echo
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721
fi
722
723
724
725
726
tagnames=${tagnames+${tagnames},}CXX
727
728
tagnames=${tagnames+${tagnames},}F77
729
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
730
exec 7<&0 </dev/null 6>&1
731
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
732
# Name of the host.
733
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734
# so uname gets run too.
735
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737
#
738
# Initializations.
739
#
740
ac_default_prefix=/usr/local
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
741
ac_clean_files=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
742
ac_config_libobj_dir=.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
743
LIBOBJS=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
744
cross_compiling=no
745
subdirs=
746
MFLAGS=
747
MAKEFLAGS=
748
SHELL=${CONFIG_SHELL-/bin/sh}
749
750
# Identity of this package.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
751
PACKAGE_NAME='Gail GNOME'
752
PACKAGE_TARNAME='libgail-gnome'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
753
PACKAGE_VERSION='1.20.1'
754
PACKAGE_STRING='Gail GNOME 1.20.1'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
755
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=atk&component=gail'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
756
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
757
ac_unique_file="gail-gnome"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
758
# Factoring default headers for most tests.
759
ac_includes_default="\
760
#include <stdio.h>
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
761
#ifdef HAVE_SYS_TYPES_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
762
# include <sys/types.h>
763
#endif
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
764
#ifdef HAVE_SYS_STAT_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
765
# include <sys/stat.h>
766
#endif
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
767
#ifdef STDC_HEADERS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
768
# include <stdlib.h>
769
# include <stddef.h>
770
#else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
771
# ifdef HAVE_STDLIB_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
772
#  include <stdlib.h>
773
# endif
774
#endif
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
775
#ifdef HAVE_STRING_H
776
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
777
#  include <memory.h>
778
# endif
779
# include <string.h>
780
#endif
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
781
#ifdef HAVE_STRINGS_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
782
# include <strings.h>
783
#endif
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
784
#ifdef HAVE_INTTYPES_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
785
# include <inttypes.h>
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
786
#endif
787
#ifdef HAVE_STDINT_H
788
# include <stdint.h>
789
#endif
790
#ifdef HAVE_UNISTD_H
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
791
# include <unistd.h>
792
#endif"
793
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
794
ac_subst_vars='SHELL
795
PATH_SEPARATOR
796
PACKAGE_NAME
797
PACKAGE_TARNAME
798
PACKAGE_VERSION
799
PACKAGE_STRING
800
PACKAGE_BUGREPORT
801
exec_prefix
802
prefix
803
program_transform_name
804
bindir
805
sbindir
806
libexecdir
807
datarootdir
808
datadir
809
sysconfdir
810
sharedstatedir
811
localstatedir
812
includedir
813
oldincludedir
814
docdir
815
infodir
816
htmldir
817
dvidir
818
pdfdir
819
psdir
820
libdir
821
localedir
822
mandir
823
DEFS
824
ECHO_C
825
ECHO_N
826
ECHO_T
827
LIBS
828
build_alias
829
host_alias
830
target_alias
831
INSTALL_PROGRAM
832
INSTALL_SCRIPT
833
INSTALL_DATA
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
834
am__isrc
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
835
CYGPATH_W
836
PACKAGE
837
VERSION
838
ACLOCAL
839
AUTOCONF
840
AUTOMAKE
841
AUTOHEADER
842
MAKEINFO
843
install_sh
844
STRIP
845
INSTALL_STRIP_PROGRAM
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
846
MKDIR_P
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
847
mkdir_p
848
AWK
849
SET_MAKE
850
am__leading_dot
851
AMTAR
852
am__tar
853
am__untar
854
MAINTAINER_MODE_TRUE
855
MAINTAINER_MODE_FALSE
856
MAINT
857
GAIL_GNOME_MAJOR_VERSION
858
GAIL_GNOME_MINOR_VERSION
859
GAIL_GNOME_MICRO_VERSION
860
GAIL_GNOME_VERSION
861
LT_RELEASE
862
LT_CURRENT
863
LT_REVISION
864
LT_AGE
865
LT_CURRENT_MINUS_AGE
866
CC
867
CFLAGS
868
LDFLAGS
869
CPPFLAGS
870
ac_ct_CC
871
EXEEXT
872
OBJEXT
873
DEPDIR
874
am__include
875
am__quote
876
AMDEP_TRUE
877
AMDEP_FALSE
878
AMDEPBACKSLASH
879
CCDEPMODE
880
am__fastdepCC_TRUE
881
am__fastdepCC_FALSE
882
build
883
build_cpu
884
build_vendor
885
build_os
886
host
887
host_cpu
888
host_vendor
889
host_os
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
890
SED
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
891
GREP
892
EGREP
893
LN_S
894
ECHO
895
AR
896
RANLIB
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
897
DSYMUTIL
898
NMEDIT
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
899
DLLTOOL
900
AS
901
OBJDUMP
902
CPP
903
CXX
904
CXXFLAGS
905
ac_ct_CXX
906
CXXDEPMODE
907
am__fastdepCXX_TRUE
908
am__fastdepCXX_FALSE
909
CXXCPP
910
F77
911
FFLAGS
912
ac_ct_F77
913
LIBTOOL
914
OS_WIN32_TRUE
915
OS_WIN32_FALSE
916
ms_librarian
917
MS_LIB_AVAILABLE_TRUE
918
MS_LIB_AVAILABLE_FALSE
919
ACLOCAL_AMFLAGS
920
WARN_CFLAGS
921
GAIL_GNOME_DEBUG_CFLAGS
922
PKG_CONFIG
923
DEPS_CFLAGS
924
DEPS_LIBS
925
TEST_CFLAGS
926
TEST_LIBS
927
AM_CPPFLAGS
928
AM_CFLAGS
929
AM_LDFLAGS
930
LIBOBJS
931
LTLIBOBJS'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
932
ac_subst_files=''
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
933
ac_user_opts='
934
enable_option_checking
935
enable_maintainer_mode
936
enable_dependency_tracking
937
enable_static
938
enable_shared
939
enable_fast_install
940
with_gnu_ld
941
enable_libtool_lock
942
with_pic
943
with_tags
944
enable_debug
945
enable_compile_warnings
946
enable_iso_c
947
'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
948
      ac_precious_vars='build_alias
949
host_alias
950
target_alias
951
CC
952
CFLAGS
953
LDFLAGS
954
LIBS
955
CPPFLAGS
956
CPP
957
CXX
958
CXXFLAGS
959
CCC
960
CXXCPP
961
F77
962
FFLAGS
963
PKG_CONFIG
964
DEPS_CFLAGS
965
DEPS_LIBS
966
TEST_CFLAGS
967
TEST_LIBS'
968
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
969
970
# Initialize some variables set by options.
971
ac_init_help=
972
ac_init_version=false
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
973
ac_unrecognized_opts=
974
ac_unrecognized_sep=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
975
# The variables have the same names as the options, with
976
# dashes changed to underlines.
977
cache_file=/dev/null
978
exec_prefix=NONE
979
no_create=
980
no_recursion=
981
prefix=NONE
982
program_prefix=NONE
983
program_suffix=NONE
984
program_transform_name=s,x,x,
985
silent=
986
site=
987
srcdir=
988
verbose=
989
x_includes=NONE
990
x_libraries=NONE
991
992
# Installation directory options.
993
# These are left unexpanded so users can "make install exec_prefix=/foo"
994
# and all the variables that are supposed to be based on exec_prefix
995
# by default will actually change.
996
# Use braces instead of parens because sh, perl, etc. also accept them.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
997
# (The list follows the same order as the GNU Coding Standards.)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
998
bindir='${exec_prefix}/bin'
999
sbindir='${exec_prefix}/sbin'
1000
libexecdir='${exec_prefix}/libexec'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1001
datarootdir='${prefix}/share'
1002
datadir='${datarootdir}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1003
sysconfdir='${prefix}/etc'
1004
sharedstatedir='${prefix}/com'
1005
localstatedir='${prefix}/var'
1006
includedir='${prefix}/include'
1007
oldincludedir='/usr/include'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1008
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009
infodir='${datarootdir}/info'
1010
htmldir='${docdir}'
1011
dvidir='${docdir}'
1012
pdfdir='${docdir}'
1013
psdir='${docdir}'
1014
libdir='${exec_prefix}/lib'
1015
localedir='${datarootdir}/locale'
1016
mandir='${datarootdir}/man'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1017
1018
ac_prev=
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1019
ac_dashdash=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1020
for ac_option
1021
do
1022
  # If the previous option needs an argument, assign it.
1023
  if test -n "$ac_prev"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1024
    eval $ac_prev=\$ac_option
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1025
    ac_prev=
1026
    continue
1027
  fi
1028
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1029
  case $ac_option in
1030
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031
  *)	ac_optarg=yes ;;
1032
  esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1033
1034
  # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1036
  case $ac_dashdash$ac_option in
1037
  --)
1038
    ac_dashdash=yes ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1039
1040
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041
    ac_prev=bindir ;;
1042
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043
    bindir=$ac_optarg ;;
1044
1045
  -build | --build | --buil | --bui | --bu)
1046
    ac_prev=build_alias ;;
1047
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048
    build_alias=$ac_optarg ;;
1049
1050
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1051
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052
    ac_prev=cache_file ;;
1053
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055
    cache_file=$ac_optarg ;;
1056
1057
  --config-cache | -C)
1058
    cache_file=config.cache ;;
1059
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1060
  -datadir | --datadir | --datadi | --datad)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1061
    ac_prev=datadir ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1062
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1063
    datadir=$ac_optarg ;;
1064
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1065
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066
  | --dataroo | --dataro | --datar)
1067
    ac_prev=datarootdir ;;
1068
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070
    datarootdir=$ac_optarg ;;
1071
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1072
  -disable-* | --disable-*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1073
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1074
    # Reject names that are not valid shell variable names.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1075
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1077
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1078
    ac_useropt_orig=$ac_useropt
1079
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080
    case $ac_user_opts in
1081
      *"
1082
"enable_$ac_useropt"
1083
"*) ;;
1084
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085
	 ac_unrecognized_sep=', ';;
1086
    esac
1087
    eval enable_$ac_useropt=no ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1088
1089
  -docdir | --docdir | --docdi | --doc | --do)
1090
    ac_prev=docdir ;;
1091
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092
    docdir=$ac_optarg ;;
1093
1094
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095
    ac_prev=dvidir ;;
1096
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097
    dvidir=$ac_optarg ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1098
1099
  -enable-* | --enable-*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1100
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1101
    # Reject names that are not valid shell variable names.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1102
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1104
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1105
    ac_useropt_orig=$ac_useropt
1106
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107
    case $ac_user_opts in
1108
      *"
1109
"enable_$ac_useropt"
1110
"*) ;;
1111
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112
	 ac_unrecognized_sep=', ';;
1113
    esac
1114
    eval enable_$ac_useropt=\$ac_optarg ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1115
1116
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118
  | --exec | --exe | --ex)
1119
    ac_prev=exec_prefix ;;
1120
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122
  | --exec=* | --exe=* | --ex=*)
1123
    exec_prefix=$ac_optarg ;;
1124
1125
  -gas | --gas | --ga | --g)
1126
    # Obsolete; use --with-gas.
1127
    with_gas=yes ;;
1128
1129
  -help | --help | --hel | --he | -h)
1130
    ac_init_help=long ;;
1131
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132
    ac_init_help=recursive ;;
1133
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134
    ac_init_help=short ;;
1135
1136
  -host | --host | --hos | --ho)
1137
    ac_prev=host_alias ;;
1138
  -host=* | --host=* | --hos=* | --ho=*)
1139
    host_alias=$ac_optarg ;;
1140
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1141
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142
    ac_prev=htmldir ;;
1143
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144
  | --ht=*)
1145
    htmldir=$ac_optarg ;;
1146
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1147
  -includedir | --includedir | --includedi | --included | --include \
1148
  | --includ | --inclu | --incl | --inc)
1149
    ac_prev=includedir ;;
1150
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1152
    includedir=$ac_optarg ;;
1153
1154
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1155
    ac_prev=infodir ;;
1156
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157
    infodir=$ac_optarg ;;
1158
1159
  -libdir | --libdir | --libdi | --libd)
1160
    ac_prev=libdir ;;
1161
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162
    libdir=$ac_optarg ;;
1163
1164
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165
  | --libexe | --libex | --libe)
1166
    ac_prev=libexecdir ;;
1167
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168
  | --libexe=* | --libex=* | --libe=*)
1169
    libexecdir=$ac_optarg ;;
1170
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1171
  -localedir | --localedir | --localedi | --localed | --locale)
1172
    ac_prev=localedir ;;
1173
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174
    localedir=$ac_optarg ;;
1175
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1176
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1177
  | --localstate | --localstat | --localsta | --localst | --locals)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1178
    ac_prev=localstatedir ;;
1179
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1180
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1181
    localstatedir=$ac_optarg ;;
1182
1183
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184
    ac_prev=mandir ;;
1185
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186
    mandir=$ac_optarg ;;
1187
1188
  -nfp | --nfp | --nf)
1189
    # Obsolete; use --without-fp.
1190
    with_fp=no ;;
1191
1192
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193
  | --no-cr | --no-c | -n)
1194
    no_create=yes ;;
1195
1196
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198
    no_recursion=yes ;;
1199
1200
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202
  | --oldin | --oldi | --old | --ol | --o)
1203
    ac_prev=oldincludedir ;;
1204
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207
    oldincludedir=$ac_optarg ;;
1208
1209
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210
    ac_prev=prefix ;;
1211
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212
    prefix=$ac_optarg ;;
1213
1214
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215
  | --program-pre | --program-pr | --program-p)
1216
    ac_prev=program_prefix ;;
1217
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219
    program_prefix=$ac_optarg ;;
1220
1221
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222
  | --program-suf | --program-su | --program-s)
1223
    ac_prev=program_suffix ;;
1224
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226
    program_suffix=$ac_optarg ;;
1227
1228
  -program-transform-name | --program-transform-name \
1229
  | --program-transform-nam | --program-transform-na \
1230
  | --program-transform-n | --program-transform- \
1231
  | --program-transform | --program-transfor \
1232
  | --program-transfo | --program-transf \
1233
  | --program-trans | --program-tran \
1234
  | --progr-tra | --program-tr | --program-t)
1235
    ac_prev=program_transform_name ;;
1236
  -program-transform-name=* | --program-transform-name=* \
1237
  | --program-transform-nam=* | --program-transform-na=* \
1238
  | --program-transform-n=* | --program-transform-=* \
1239
  | --program-transform=* | --program-transfor=* \
1240
  | --program-transfo=* | --program-transf=* \
1241
  | --program-trans=* | --program-tran=* \
1242
  | --progr-tra=* | --program-tr=* | --program-t=*)
1243
    program_transform_name=$ac_optarg ;;
1244
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1245
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246
    ac_prev=pdfdir ;;
1247
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248
    pdfdir=$ac_optarg ;;
1249
1250
  -psdir | --psdir | --psdi | --psd | --ps)
1251
    ac_prev=psdir ;;
1252
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253
    psdir=$ac_optarg ;;
1254
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1255
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256
  | -silent | --silent | --silen | --sile | --sil)
1257
    silent=yes ;;
1258
1259
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260
    ac_prev=sbindir ;;
1261
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262
  | --sbi=* | --sb=*)
1263
    sbindir=$ac_optarg ;;
1264
1265
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267
  | --sharedst | --shareds | --shared | --share | --shar \
1268
  | --sha | --sh)
1269
    ac_prev=sharedstatedir ;;
1270
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273
  | --sha=* | --sh=*)
1274
    sharedstatedir=$ac_optarg ;;
1275
1276
  -site | --site | --sit)
1277
    ac_prev=site ;;
1278
  -site=* | --site=* | --sit=*)
1279
    site=$ac_optarg ;;
1280
1281
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282
    ac_prev=srcdir ;;
1283
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284
    srcdir=$ac_optarg ;;
1285
1286
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287
  | --syscon | --sysco | --sysc | --sys | --sy)
1288
    ac_prev=sysconfdir ;;
1289
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291
    sysconfdir=$ac_optarg ;;
1292
1293
  -target | --target | --targe | --targ | --tar | --ta | --t)
1294
    ac_prev=target_alias ;;
1295
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296
    target_alias=$ac_optarg ;;
1297
1298
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299
    verbose=yes ;;
1300
1301
  -version | --version | --versio | --versi | --vers | -V)
1302
    ac_init_version=: ;;
1303
1304
  -with-* | --with-*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1305
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1306
    # Reject names that are not valid shell variable names.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1307
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1309
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1310
    ac_useropt_orig=$ac_useropt
1311
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312
    case $ac_user_opts in
1313
      *"
1314
"with_$ac_useropt"
1315
"*) ;;
1316
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317
	 ac_unrecognized_sep=', ';;
1318
    esac
1319
    eval with_$ac_useropt=\$ac_optarg ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1320
1321
  -without-* | --without-*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1322
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1323
    # Reject names that are not valid shell variable names.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1324
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1326
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1327
    ac_useropt_orig=$ac_useropt
1328
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329
    case $ac_user_opts in
1330
      *"
1331
"with_$ac_useropt"
1332
"*) ;;
1333
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334
	 ac_unrecognized_sep=', ';;
1335
    esac
1336
    eval with_$ac_useropt=no ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1337
1338
  --x)
1339
    # Obsolete; use --with-x.
1340
    with_x=yes ;;
1341
1342
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343
  | --x-incl | --x-inc | --x-in | --x-i)
1344
    ac_prev=x_includes ;;
1345
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347
    x_includes=$ac_optarg ;;
1348
1349
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351
    ac_prev=x_libraries ;;
1352
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354
    x_libraries=$ac_optarg ;;
1355
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1356
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1357
Try \`$0 --help' for more information." >&2
1358
   { (exit 1); exit 1; }; }
1359
    ;;
1360
1361
  *=*)
1362
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363
    # Reject names that are not valid shell variable names.
1364
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1365
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1366
   { (exit 1); exit 1; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1367
    eval $ac_envvar=\$ac_optarg
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1368
    export $ac_envvar ;;
1369
1370
  *)
1371
    # FIXME: should be removed in autoconf 3.0.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1372
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1373
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1374
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1375
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376
    ;;
1377
1378
  esac
1379
done
1380
1381
if test -n "$ac_prev"; then
1382
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1383
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1384
   { (exit 1); exit 1; }; }
1385
fi
1386
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1387
if test -n "$ac_unrecognized_opts"; then
1388
  case $enable_option_checking in
1389
    no) ;;
1390
    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1391
   { (exit 1); exit 1; }; } ;;
1392
    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393
  esac
1394
fi
1395
1396
# Check all directory arguments for consistency.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1397
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398
		datadir sysconfdir sharedstatedir localstatedir includedir \
1399
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400
		libdir localedir mandir
1401
do
1402
  eval ac_val=\$$ac_var
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1403
  # Remove trailing slashes.
1404
  case $ac_val in
1405
    */ )
1406
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407
      eval $ac_var=\$ac_val;;
1408
  esac
1409
  # Be sure to have absolute directory names.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1410
  case $ac_val in
1411
    [\\/$]* | ?:[\\/]* )  continue;;
1412
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413
  esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1414
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1415
   { (exit 1); exit 1; }; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1416
done
1417
1418
# There might be people who depend on the old broken behavior: `$host'
1419
# used to hold the argument of --host etc.
1420
# FIXME: To remove some day.
1421
build=$build_alias
1422
host=$host_alias
1423
target=$target_alias
1424
1425
# FIXME: To remove some day.
1426
if test "x$host_alias" != x; then
1427
  if test "x$build_alias" = x; then
1428
    cross_compiling=maybe
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1429
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1430
    If a cross compiler is detected then cross compile mode will be used." >&2
1431
  elif test "x$build_alias" != "x$host_alias"; then
1432
    cross_compiling=yes
1433
  fi
1434
fi
1435
1436
ac_tool_prefix=
1437
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438
1439
test "$silent" = yes && exec 6>/dev/null
1440
1441
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1442
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443
ac_ls_di=`ls -di .` &&
1444
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1445
  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1446
   { (exit 1); exit 1; }; }
1447
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1448
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1449
   { (exit 1); exit 1; }; }
1450
1451
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1452
# Find the source files, if location was not specified.
1453
if test -z "$srcdir"; then
1454
  ac_srcdir_defaulted=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1455
  # Try the directory containing this script, then the parent directory.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1456
  ac_confdir=`$as_dirname -- "$as_myself" ||
1457
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1459
	 X"$as_myself" : 'X\(//\)$' \| \
1460
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461
$as_echo X"$as_myself" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1462
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463
	    s//\1/
1464
	    q
1465
	  }
1466
	  /^X\(\/\/\)[^/].*/{
1467
	    s//\1/
1468
	    q
1469
	  }
1470
	  /^X\(\/\/\)$/{
1471
	    s//\1/
1472
	    q
1473
	  }
1474
	  /^X\(\/\).*/{
1475
	    s//\1/
1476
	    q
1477
	  }
1478
	  s/.*/./; q'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1479
  srcdir=$ac_confdir
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1480
  if test ! -r "$srcdir/$ac_unique_file"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1481
    srcdir=..
1482
  fi
1483
else
1484
  ac_srcdir_defaulted=no
1485
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1486
if test ! -r "$srcdir/$ac_unique_file"; then
1487
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1488
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1489
   { (exit 1); exit 1; }; }
1490
fi
1491
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492
ac_abs_confdir=`(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1493
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1494
   { (exit 1); exit 1; }; }
1495
	pwd)`
1496
# When building in place, set srcdir=.
1497
if test "$ac_abs_confdir" = "$ac_pwd"; then
1498
  srcdir=.
1499
fi
1500
# Remove unnecessary trailing slashes from srcdir.
1501
# Double slashes in file names in object file debugging info
1502
# mess up M-x gdb in Emacs.
1503
case $srcdir in
1504
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505
esac
1506
for ac_var in $ac_precious_vars; do
1507
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508
  eval ac_env_${ac_var}_value=\$${ac_var}
1509
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511
done
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1512
1513
#
1514
# Report the --help message.
1515
#
1516
if test "$ac_init_help" = "long"; then
1517
  # Omit some internal or obsolete options to make the list less imposing.
1518
  # This message is too long to be a string in the A/UX 3.1 sh.
1519
  cat <<_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1520
\`configure' configures Gail GNOME 1.20.1 to adapt to many kinds of systems.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1521
1522
Usage: $0 [OPTION]... [VAR=VALUE]...
1523
1524
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525
VAR=VALUE.  See below for descriptions of some of the useful variables.
1526
1527
Defaults for the options are specified in brackets.
1528
1529
Configuration:
1530
  -h, --help              display this help and exit
1531
      --help=short        display options specific to this package
1532
      --help=recursive    display the short help of all the included packages
1533
  -V, --version           display version information and exit
1534
  -q, --quiet, --silent   do not print \`checking...' messages
1535
      --cache-file=FILE   cache test results in FILE [disabled]
1536
  -C, --config-cache      alias for \`--cache-file=config.cache'
1537
  -n, --no-create         do not create output files
1538
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1539
1540
Installation directories:
1541
  --prefix=PREFIX         install architecture-independent files in PREFIX
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1542
                          [$ac_default_prefix]
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1543
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1544
                          [PREFIX]
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1545
1546
By default, \`make install' will install all the files in
1547
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1548
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549
for instance \`--prefix=\$HOME'.
1550
1551
For better control, use the options below.
1552
1553
Fine tuning of the installation directories:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1554
  --bindir=DIR            user executables [EPREFIX/bin]
1555
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1556
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1557
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1558
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1559
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1560
  --libdir=DIR            object code libraries [EPREFIX/lib]
1561
  --includedir=DIR        C header files [PREFIX/include]
1562
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1563
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1564
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1565
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1566
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1567
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1568
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgail-gnome]
1569
  --htmldir=DIR           html documentation [DOCDIR]
1570
  --dvidir=DIR            dvi documentation [DOCDIR]
1571
  --pdfdir=DIR            pdf documentation [DOCDIR]
1572
  --psdir=DIR             ps documentation [DOCDIR]
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1573
_ACEOF
1574
1575
  cat <<\_ACEOF
1576
1577
Program names:
1578
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1579
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1580
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582
System types:
1583
  --build=BUILD     configure for building on BUILD [guessed]
1584
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1585
_ACEOF
1586
fi
1587
1588
if test -n "$ac_init_help"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1589
  case $ac_init_help in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1590
     short | recursive ) echo "Configuration of Gail GNOME 1.20.1:";;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1591
   esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1592
  cat <<\_ACEOF
1593
1594
Optional Features:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1595
  --disable-option-checking  ignore unrecognized --enable/--with options
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1596
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1598
  --enable-maintainer-mode  enable make rules and dependencies not useful
1599
			  (and sometimes confusing) to the casual installer
1600
  --disable-dependency-tracking  speeds up one-time build
1601
  --enable-dependency-tracking   do not reject slow dependency extractors
1602
  --enable-static[=PKGS]  build static libraries [default=no]
1603
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1604
  --enable-fast-install[=PKGS]
1605
                          optimize for fast installation [default=yes]
1606
  --disable-libtool-lock  avoid locking (might break parallel builds)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1607
  --enable-debug          turn on debugging
1608
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
1609
                          Turn on compiler warnings
1610
  --enable-iso-c          Try to warn if code is not ISO C
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1611
1612
Optional Packages:
1613
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616
  --with-pic              try to use only PIC/non-PIC objects [default=use
1617
                          both]
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1618
  --with-tags[=TAGS]      include additional configurations [automatic]
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1619
1620
Some influential environment variables:
1621
  CC          C compiler command
1622
  CFLAGS      C compiler flags
1623
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1624
              nonstandard directory <lib dir>
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1625
  LIBS        libraries to pass to the linker, e.g. -l<library>
1626
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627
              you have headers in a nonstandard directory <include dir>
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1628
  CPP         C preprocessor
1629
  CXX         C++ compiler command
1630
  CXXFLAGS    C++ compiler flags
1631
  CXXCPP      C++ preprocessor
1632
  F77         Fortran 77 compiler command
1633
  FFLAGS      Fortran 77 compiler flags
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1634
  PKG_CONFIG  path to pkg-config utility
1635
  DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1636
  DEPS_LIBS   linker flags for DEPS, overriding pkg-config
1637
  TEST_CFLAGS C compiler flags for TEST, overriding pkg-config
1638
  TEST_LIBS   linker flags for TEST, overriding pkg-config
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1639
1640
Use these variables to override the choices made by `configure' or to help
1641
it to find libraries and programs with nonstandard names/locations.
1642
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1643
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=atk&component=gail>.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1644
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1645
ac_status=$?
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1646
fi
1647
1648
if test "$ac_init_help" = "recursive"; then
1649
  # If there are subdirs, report their specific --help.
1650
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1651
    test -d "$ac_dir" ||
1652
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653
      continue
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1654
    ac_builddir=.
1655
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1656
case "$ac_dir" in
1657
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658
*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1659
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1660
  # A ".." for each directory in $ac_dir_suffix.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1661
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1662
  case $ac_top_builddir_sub in
1663
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665
  esac ;;
1666
esac
1667
ac_abs_top_builddir=$ac_pwd
1668
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669
# for backward compatibility:
1670
ac_top_builddir=$ac_top_build_prefix
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1671
1672
case $srcdir in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1673
  .)  # We are building in place.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1674
    ac_srcdir=.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1675
    ac_top_srcdir=$ac_top_builddir_sub
1676
    ac_abs_top_srcdir=$ac_pwd ;;
1677
  [\\/]* | ?:[\\/]* )  # Absolute name.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1678
    ac_srcdir=$srcdir$ac_dir_suffix;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1679
    ac_top_srcdir=$srcdir
1680
    ac_abs_top_srcdir=$srcdir ;;
1681
  *) # Relative name.
1682
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1684
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685
esac
1686
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688
    cd "$ac_dir" || { ac_status=$?; continue; }
1689
    # Check for guested configure.
1690
    if test -f "$ac_srcdir/configure.gnu"; then
1691
      echo &&
1692
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693
    elif test -f "$ac_srcdir/configure"; then
1694
      echo &&
1695
      $SHELL "$ac_srcdir/configure" --help=recursive
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1696
    else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1697
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1698
    fi || ac_status=$?
1699
    cd "$ac_pwd" || { ac_status=$?; break; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1700
  done
1701
fi
1702
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1703
test -n "$ac_init_help" && exit $ac_status
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1704
if $ac_init_version; then
1705
  cat <<\_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1706
Gail GNOME configure 1.20.1
1707
generated by GNU Autoconf 2.62
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1708
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1709
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1710
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1711
This configure script is free software; the Free Software Foundation
1712
gives unlimited permission to copy, distribute and modify it.
1713
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1714
  exit
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1715
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1716
cat >config.log <<_ACEOF
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1717
This file contains any messages produced by compilers while
1718
running configure, to aid debugging if configure makes a mistake.
1719
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1720
It was created by Gail GNOME $as_me 1.20.1, which was
1721
generated by GNU Autoconf 2.62.  Invocation command line was
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1722
1723
  $ $0 $@
1724
1725
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1726
exec 5>>config.log
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1727
{
1728
cat <<_ASUNAME
1729
## --------- ##
1730
## Platform. ##
1731
## --------- ##
1732
1733
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1741
1742
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1743
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1744
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1745
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1746
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1747
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1748
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1749
1750
_ASUNAME
1751
1752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753
for as_dir in $PATH
1754
do
1755
  IFS=$as_save_IFS
1756
  test -z "$as_dir" && as_dir=.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1757
  $as_echo "PATH: $as_dir"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1758
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1759
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1760
1761
} >&5
1762
1763
cat >&5 <<_ACEOF
1764
1765
1766
## ----------- ##
1767
## Core tests. ##
1768
## ----------- ##
1769
1770
_ACEOF
1771
1772
1773
# Keep a trace of the command line.
1774
# Strip out --no-create and --no-recursion so they do not pile up.
1775
# Strip out --silent because we don't want to record it for future runs.
1776
# Also quote any args containing shell meta-characters.
1777
# Make two passes to allow for proper duplicate-argument suppression.
1778
ac_configure_args=
1779
ac_configure_args0=
1780
ac_configure_args1=
1781
ac_must_keep_next=false
1782
for ac_pass in 1 2
1783
do
1784
  for ac_arg
1785
  do
1786
    case $ac_arg in
1787
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789
    | -silent | --silent | --silen | --sile | --sil)
1790
      continue ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1791
    *\'*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1792
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1793
    esac
1794
    case $ac_pass in
1795
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796
    2)
1797
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798
      if test $ac_must_keep_next = true; then
1799
	ac_must_keep_next=false # Got value, back to normal.
1800
      else
1801
	case $ac_arg in
1802
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1803
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805
	  | -with-* | --with-* | -without-* | --without-* | --x)
1806
	    case "$ac_configure_args0 " in
1807
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808
	    esac
1809
	    ;;
1810
	  -* ) ac_must_keep_next=true ;;
1811
	esac
1812
      fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1813
      ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1814
      ;;
1815
    esac
1816
  done
1817
done
1818
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820
1821
# When interrupted or exit'd, cleanup temporary files, and complete
1822
# config.log.  We remove comments because anyway the quotes in there
1823
# would cause problems or look ugly.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1824
# WARNING: Use '\'' to represent an apostrophe within the trap.
1825
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1826
trap 'exit_status=$?
1827
  # Save into config.log some information that might help in debugging.
1828
  {
1829
    echo
1830
1831
    cat <<\_ASBOX
1832
## ---------------- ##
1833
## Cache variables. ##
1834
## ---------------- ##
1835
_ASBOX
1836
    echo
1837
    # The following way of writing the cache mishandles newlines in values,
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1838
(
1839
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840
    eval ac_val=\$$ac_var
1841
    case $ac_val in #(
1842
    *${as_nl}*)
1843
      case $ac_var in #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1844
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1845
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1846
      esac
1847
      case $ac_var in #(
1848
      _ | IFS | as_nl) ;; #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1849
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1850
      *) $as_unset $ac_var ;;
1851
      esac ;;
1852
    esac
1853
  done
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1854
  (set) 2>&1 |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1855
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856
    *${as_nl}ac_space=\ *)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1857
      sed -n \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1858
	"s/'\''/'\''\\\\'\'''\''/g;
1859
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860
      ;; #(
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1861
    *)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1862
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1863
      ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1864
    esac |
1865
    sort
1866
)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1867
    echo
1868
1869
    cat <<\_ASBOX
1870
## ----------------- ##
1871
## Output variables. ##
1872
## ----------------- ##
1873
_ASBOX
1874
    echo
1875
    for ac_var in $ac_subst_vars
1876
    do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1877
      eval ac_val=\$$ac_var
1878
      case $ac_val in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1879
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1880
      esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1881
      $as_echo "$ac_var='\''$ac_val'\''"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1882
    done | sort
1883
    echo
1884
1885
    if test -n "$ac_subst_files"; then
1886
      cat <<\_ASBOX
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1887
## ------------------- ##
1888
## File substitutions. ##
1889
## ------------------- ##
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1890
_ASBOX
1891
      echo
1892
      for ac_var in $ac_subst_files
1893
      do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1894
	eval ac_val=\$$ac_var
1895
	case $ac_val in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1896
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1897
	esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1898
	$as_echo "$ac_var='\''$ac_val'\''"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1899
      done | sort
1900
      echo
1901
    fi
1902
1903
    if test -s confdefs.h; then
1904
      cat <<\_ASBOX
1905
## ----------- ##
1906
## confdefs.h. ##
1907
## ----------- ##
1908
_ASBOX
1909
      echo
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1910
      cat confdefs.h
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1911
      echo
1912
    fi
1913
    test "$ac_signal" != 0 &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1914
      $as_echo "$as_me: caught signal $ac_signal"
1915
    $as_echo "$as_me: exit $exit_status"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1916
  } >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1917
  rm -f core *.core core.conftest.* &&
1918
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1919
    exit $exit_status
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1920
' 0
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1921
for ac_signal in 1 2 13 15; do
1922
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923
done
1924
ac_signal=0
1925
1926
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1927
rm -f -r conftest* confdefs.h
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1928
1929
# Predefined preprocessor variables.
1930
1931
cat >>confdefs.h <<_ACEOF
1932
#define PACKAGE_NAME "$PACKAGE_NAME"
1933
_ACEOF
1934
1935
1936
cat >>confdefs.h <<_ACEOF
1937
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938
_ACEOF
1939
1940
1941
cat >>confdefs.h <<_ACEOF
1942
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1943
_ACEOF
1944
1945
1946
cat >>confdefs.h <<_ACEOF
1947
#define PACKAGE_STRING "$PACKAGE_STRING"
1948
_ACEOF
1949
1950
1951
cat >>confdefs.h <<_ACEOF
1952
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953
_ACEOF
1954
1955
1956
# Let the site file select an alternate cache file if it wants to.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1957
# Prefer an explicitly selected file to automatically selected ones.
1958
ac_site_file1=NONE
1959
ac_site_file2=NONE
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1960
if test -n "$CONFIG_SITE"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1961
  ac_site_file1=$CONFIG_SITE
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1962
elif test "x$prefix" != xNONE; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1963
  ac_site_file1=$prefix/share/config.site
1964
  ac_site_file2=$prefix/etc/config.site
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1965
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1966
  ac_site_file1=$ac_default_prefix/share/config.site
1967
  ac_site_file2=$ac_default_prefix/etc/config.site
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1968
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1969
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1970
do
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1971
  test "x$ac_site_file" = xNONE && continue
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1972
  if test -r "$ac_site_file"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1973
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1974
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1975
    sed 's/^/| /' "$ac_site_file" >&5
1976
    . "$ac_site_file"
1977
  fi
1978
done
1979
1980
if test -r "$cache_file"; then
1981
  # Some versions of bash will fail to source /dev/null (special
1982
  # files actually), so we avoid doing that.
1983
  if test -f "$cache_file"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1984
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1985
$as_echo "$as_me: loading cache $cache_file" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1986
    case $cache_file in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
1987
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988
      *)                      . "./$cache_file";;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1989
    esac
1990
  fi
1991
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
1992
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1993
$as_echo "$as_me: creating cache $cache_file" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
1994
  >$cache_file
1995
fi
1996
1997
# Check that the precious variables saved in the cache have kept the same
1998
# value.
1999
ac_cache_corrupted=false
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2000
for ac_var in $ac_precious_vars; do
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2001
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002
  eval ac_new_set=\$ac_env_${ac_var}_set
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2003
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004
  eval ac_new_val=\$ac_env_${ac_var}_value
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2005
  case $ac_old_set,$ac_new_set in
2006
    set,)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2007
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2008
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2009
      ac_cache_corrupted=: ;;
2010
    ,set)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2011
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2012
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2013
      ac_cache_corrupted=: ;;
2014
    ,);;
2015
    *)
2016
      if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2017
	# differences in whitespace do not lead to failure.
2018
	ac_old_val_w=`echo x $ac_old_val`
2019
	ac_new_val_w=`echo x $ac_new_val`
2020
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2022
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2023
	  ac_cache_corrupted=:
2024
	else
2025
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2026
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027
	  eval $ac_var=\$ac_old_val
2028
	fi
2029
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2030
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2031
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2032
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2033
      fi;;
2034
  esac
2035
  # Pass precious variables to config.status.
2036
  if test "$ac_new_set" = set; then
2037
    case $ac_new_val in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2038
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2039
    *) ac_arg=$ac_var=$ac_new_val ;;
2040
    esac
2041
    case " $ac_configure_args " in
2042
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2043
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044
    esac
2045
  fi
2046
done
2047
if $ac_cache_corrupted; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2048
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2052
   { (exit 1); exit 1; }; }
2053
fi
2054
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2079
ac_ext=c
2080
ac_cpp='$CPP $CPPFLAGS'
2081
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2087
am__api_version='1.10'
2088
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2089
ac_aux_dir=
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2090
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2091
  if test -f "$ac_dir/install-sh"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2092
    ac_aux_dir=$ac_dir
2093
    ac_install_sh="$ac_aux_dir/install-sh -c"
2094
    break
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2095
  elif test -f "$ac_dir/install.sh"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2096
    ac_aux_dir=$ac_dir
2097
    ac_install_sh="$ac_aux_dir/install.sh -c"
2098
    break
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2099
  elif test -f "$ac_dir/shtool"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2100
    ac_aux_dir=$ac_dir
2101
    ac_install_sh="$ac_aux_dir/shtool install -c"
2102
    break
2103
  fi
2104
done
2105
if test -z "$ac_aux_dir"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2106
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2107
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2108
   { (exit 1); exit 1; }; }
2109
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2110
2111
# These three variables are undocumented and unsupported,
2112
# and are intended to be withdrawn in a future Autoconf release.
2113
# They can cause serious problems if a builder's source tree is in a directory
2114
# whose full name contains unusual characters.
2115
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2116
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2117
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2118
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2119
2120
# Find a good install program.  We prefer a C program (faster),
2121
# so one script is as good as another.  But avoid the broken or
2122
# incompatible versions:
2123
# SysV /etc/install, /usr/sbin/install
2124
# SunOS /usr/etc/install
2125
# IRIX /sbin/install
2126
# AIX /bin/install
2127
# AmigaOS /C/install, which installs bootblocks on floppy discs
2128
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131
# OS/2's system install, which has a completely different semantic
2132
# ./install, which can be erroneously created by make from ./install.sh.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2133
# Reject install programs that cannot install multiple files.
2134
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2135
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2136
if test -z "$INSTALL"; then
2137
if test "${ac_cv_path_install+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2138
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2139
else
2140
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
for as_dir in $PATH
2142
do
2143
  IFS=$as_save_IFS
2144
  test -z "$as_dir" && as_dir=.
2145
  # Account for people who put trailing slashes in PATH elements.
2146
case $as_dir/ in
2147
  ./ | .// | /cC/* | \
2148
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2149
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2150
  /usr/ucb/* ) ;;
2151
  *)
2152
    # OSF1 and SCO ODT 3.0 have their own names for install.
2153
    # Don't use installbsd from OSF since it installs stuff as root
2154
    # by default.
2155
    for ac_prog in ginstall scoinst install; do
2156
      for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2157
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2158
	  if test $ac_prog = install &&
2159
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160
	    # AIX install.  It has an incompatible calling convention.
2161
	    :
2162
	  elif test $ac_prog = install &&
2163
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164
	    # program-specific install script used by HP pwplus--don't use.
2165
	    :
2166
	  else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2167
	    rm -rf conftest.one conftest.two conftest.dir
2168
	    echo one > conftest.one
2169
	    echo two > conftest.two
2170
	    mkdir conftest.dir
2171
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2172
	      test -s conftest.one && test -s conftest.two &&
2173
	      test -s conftest.dir/conftest.one &&
2174
	      test -s conftest.dir/conftest.two
2175
	    then
2176
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2177
	      break 3
2178
	    fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2179
	  fi
2180
	fi
2181
      done
2182
    done
2183
    ;;
2184
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2185
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2186
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2187
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2188
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2189
rm -rf conftest.one conftest.two conftest.dir
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2190
2191
fi
2192
  if test "${ac_cv_path_install+set}" = set; then
2193
    INSTALL=$ac_cv_path_install
2194
  else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2195
    # As a last resort, use the slow shell script.  Don't cache a
2196
    # value for INSTALL within a source directory, because that will
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2197
    # break other packages using the cache if that directory is
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2198
    # removed, or if the value is a relative name.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2199
    INSTALL=$ac_install_sh
2200
  fi
2201
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2202
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2203
$as_echo "$INSTALL" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2204
2205
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2206
# It thinks the first close brace ends the variable substitution.
2207
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2208
2209
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2210
2211
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2212
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2213
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2214
$as_echo_n "checking whether build environment is sane... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2215
# Just in case
2216
sleep 1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2217
echo timestamp > conftest.file
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2218
# Do `set' in a subshell so we don't clobber the current shell's
2219
# arguments.  Must try -L first in case configure is actually a
2220
# symlink; some systems play weird games with the mod time of symlinks
2221
# (eg FreeBSD returns the mod time of the symlink's containing
2222
# directory).
2223
if (
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2224
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2225
   if test "$*" = "X"; then
2226
      # -L didn't work.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2227
      set X `ls -t $srcdir/configure conftest.file`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2228
   fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2229
   rm -f conftest.file
2230
   if test "$*" != "X $srcdir/configure conftest.file" \
2231
      && test "$*" != "X conftest.file $srcdir/configure"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2232
2233
      # If neither matched, then we have a broken ls.  This can happen
2234
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2235
      # broken ls alias from the environment.  This has actually
2236
      # happened.  Such a system could not be considered "sane".
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2237
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2238
alias in your environment" >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2239
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2240
alias in your environment" >&2;}
2241
   { (exit 1); exit 1; }; }
2242
   fi
2243
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2244
   test "$2" = conftest.file
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2245
   )
2246
then
2247
   # Ok.
2248
   :
2249
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2250
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2251
Check your system clock" >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2252
$as_echo "$as_me: error: newly created file is older than distributed files!
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2253
Check your system clock" >&2;}
2254
   { (exit 1); exit 1; }; }
2255
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2256
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2257
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2258
test "$program_prefix" != NONE &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2259
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2260
# Use a double $ so make ignores it.
2261
test "$program_suffix" != NONE &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2262
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2263
# Double any \ or $.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2264
# By default was `s,x,x', remove it if useless.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2265
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2266
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2267
2268
# expand $ac_aux_dir to an absolute path
2269
am_aux_dir=`cd $ac_aux_dir && pwd`
2270
2271
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2272
# Use eval to expand $SHELL
2273
if eval "$MISSING --run true"; then
2274
  am_missing_run="$MISSING --run "
2275
else
2276
  am_missing_run=
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2277
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2278
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2279
fi
2280
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2281
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2282
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2283
if test -z "$MKDIR_P"; then
2284
  if test "${ac_cv_path_mkdir+set}" = set; then
2285
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2286
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2289
do
2290
  IFS=$as_save_IFS
2291
  test -z "$as_dir" && as_dir=.
2292
  for ac_prog in mkdir gmkdir; do
2293
	 for ac_exec_ext in '' $ac_executable_extensions; do
2294
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2295
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2296
	     'mkdir (GNU coreutils) '* | \
2297
	     'mkdir (coreutils) '* | \
2298
	     'mkdir (fileutils) '4.1*)
2299
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2300
	       break 3;;
2301
	   esac
2302
	 done
2303
       done
2304
done
2305
IFS=$as_save_IFS
2306
2307
fi
2308
2309
  if test "${ac_cv_path_mkdir+set}" = set; then
2310
    MKDIR_P="$ac_cv_path_mkdir -p"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2311
  else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2312
    # As a last resort, use the slow shell script.  Don't cache a
2313
    # value for MKDIR_P within a source directory, because that will
2314
    # break other packages using the cache if that directory is
2315
    # removed, or if the value is a relative name.
2316
    test -d ./--version && rmdir ./--version
2317
    MKDIR_P="$ac_install_sh -d"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2318
  fi
2319
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2320
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2321
$as_echo "$MKDIR_P" >&6; }
2322
2323
mkdir_p="$MKDIR_P"
2324
case $mkdir_p in
2325
  [\\/$]* | ?:[\\/]*) ;;
2326
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2327
esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2328
2329
for ac_prog in gawk mawk nawk awk
2330
do
2331
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2332
set dummy $ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2333
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2334
$as_echo_n "checking for $ac_word... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2335
if test "${ac_cv_prog_AWK+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2336
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2337
else
2338
  if test -n "$AWK"; then
2339
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2340
else
2341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342
for as_dir in $PATH
2343
do
2344
  IFS=$as_save_IFS
2345
  test -z "$as_dir" && as_dir=.
2346
  for ac_exec_ext in '' $ac_executable_extensions; do
2347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348
    ac_cv_prog_AWK="$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2349
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2350
    break 2
2351
  fi
2352
done
2353
done
2354
IFS=$as_save_IFS
2355
2356
fi
2357
fi
2358
AWK=$ac_cv_prog_AWK
2359
if test -n "$AWK"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2360
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2361
$as_echo "$AWK" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2362
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2363
  { $as_echo "$as_me:$LINENO: result: no" >&5
2364
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2365
fi
2366
2367
2368
  test -n "$AWK" && break
2369
done
2370
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2371
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2372
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2373
set x ${MAKE-make}
2374
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2375
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2376
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2377
else
2378
  cat >conftest.make <<\_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2379
SHELL = /bin/sh
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2380
all:
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2381
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2382
_ACEOF
2383
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2384
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2385
  *@@@%%%=?*=@@@%%%*)
2386
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2387
  *)
2388
    eval ac_cv_prog_make_${ac_make}_set=no;;
2389
esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2390
rm -f conftest.make
2391
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2392
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2393
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2394
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2395
  SET_MAKE=
2396
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2397
  { $as_echo "$as_me:$LINENO: result: no" >&5
2398
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2399
  SET_MAKE="MAKE=${MAKE-make}"
2400
fi
2401
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2402
rm -rf .tst 2>/dev/null
2403
mkdir .tst 2>/dev/null
2404
if test -d .tst; then
2405
  am__leading_dot=.
2406
else
2407
  am__leading_dot=_
2408
fi
2409
rmdir .tst 2>/dev/null
2410
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2411
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413
  # is not polluted with repeated "-I."
2414
  am__isrc=' -I$(srcdir)'
2415
  # test to see if srcdir already configured
2416
  if test -f $srcdir/config.status; then
2417
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2419
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2420
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2421
fi
2422
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2423
# test whether we have cygpath
2424
if test -z "$CYGPATH_W"; then
2425
  if (cygpath --version) >/dev/null 2>/dev/null; then
2426
    CYGPATH_W='cygpath -w'
2427
  else
2428
    CYGPATH_W=echo
2429
  fi
2430
fi
2431
2432
2433
# Define the identity of the package.
2434
 PACKAGE='libgail-gnome'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2435
 VERSION='1.20.1'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2436
2437
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2438
cat >>confdefs.h <<_ACEOF
2439
#define PACKAGE "$PACKAGE"
2440
_ACEOF
2441
2442
2443
cat >>confdefs.h <<_ACEOF
2444
#define VERSION "$VERSION"
2445
_ACEOF
2446
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2447
# Some tools Automake needs.
2448
2449
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2450
2451
2452
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2453
2454
2455
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2456
2457
2458
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2459
2460
2461
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2462
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2463
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2464
2465
# Installed binaries are usually stripped using `strip' when the user
2466
# run `make install-strip'.  However `strip' might not be the right
2467
# tool to use in cross-compilation environments, therefore Automake
2468
# will honor the `STRIP' environment variable to overrule this program.
2469
if test "$cross_compiling" != no; then
2470
  if test -n "$ac_tool_prefix"; then
2471
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472
set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2473
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474
$as_echo_n "checking for $ac_word... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2475
if test "${ac_cv_prog_STRIP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2476
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2477
else
2478
  if test -n "$STRIP"; then
2479
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480
else
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
for as_dir in $PATH
2483
do
2484
  IFS=$as_save_IFS
2485
  test -z "$as_dir" && as_dir=.
2486
  for ac_exec_ext in '' $ac_executable_extensions; do
2487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2489
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2490
    break 2
2491
  fi
2492
done
2493
done
2494
IFS=$as_save_IFS
2495
2496
fi
2497
fi
2498
STRIP=$ac_cv_prog_STRIP
2499
if test -n "$STRIP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2500
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501
$as_echo "$STRIP" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2502
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2503
  { $as_echo "$as_me:$LINENO: result: no" >&5
2504
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2505
fi
2506
2507
2508
fi
2509
if test -z "$ac_cv_prog_STRIP"; then
2510
  ac_ct_STRIP=$STRIP
2511
  # Extract the first word of "strip", so it can be a program name with args.
2512
set dummy strip; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2513
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514
$as_echo_n "checking for $ac_word... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2515
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2516
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2517
else
2518
  if test -n "$ac_ct_STRIP"; then
2519
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520
else
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
for as_dir in $PATH
2523
do
2524
  IFS=$as_save_IFS
2525
  test -z "$as_dir" && as_dir=.
2526
  for ac_exec_ext in '' $ac_executable_extensions; do
2527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528
    ac_cv_prog_ac_ct_STRIP="strip"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2529
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2530
    break 2
2531
  fi
2532
done
2533
done
2534
IFS=$as_save_IFS
2535
2536
fi
2537
fi
2538
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539
if test -n "$ac_ct_STRIP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2540
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541
$as_echo "$ac_ct_STRIP" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2542
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2543
  { $as_echo "$as_me:$LINENO: result: no" >&5
2544
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2545
fi
2546
2547
  if test "x$ac_ct_STRIP" = x; then
2548
    STRIP=":"
2549
  else
2550
    case $cross_compiling:$ac_tool_warned in
2551
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2552
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2553
whose name does not start with the host triplet.  If you think this
2554
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2555
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2556
whose name does not start with the host triplet.  If you think this
2557
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558
ac_tool_warned=yes ;;
2559
esac
2560
    STRIP=$ac_ct_STRIP
2561
  fi
2562
else
2563
  STRIP="$ac_cv_prog_STRIP"
2564
fi
2565
2566
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2567
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2568
2569
# We need awk for the "check" target.  The system "awk" is bad on
2570
# some platforms.
2571
# Always define AMTAR for backward compatibility.
2572
2573
AMTAR=${AMTAR-"${am_missing_run}tar"}
2574
2575
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576
2577
2578
2579
2580
2581
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2582
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2583
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2584
    # Check whether --enable-maintainer-mode was given.
2585
if test "${enable_maintainer_mode+set}" = set; then
2586
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2587
else
2588
  USE_MAINTAINER_MODE=no
2589
fi
2590
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2591
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2592
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2593
   if test $USE_MAINTAINER_MODE = yes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2594
  MAINTAINER_MODE_TRUE=
2595
  MAINTAINER_MODE_FALSE='#'
2596
else
2597
  MAINTAINER_MODE_TRUE='#'
2598
  MAINTAINER_MODE_FALSE=
2599
fi
2600
2601
  MAINT=$MAINTAINER_MODE_TRUE
2602
2603
2604
2605
2606
ac_config_headers="$ac_config_headers config.h"
2607
2608
2609
GAIL_GNOME_MAJOR_VERSION=1
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
2610
GAIL_GNOME_MINOR_VERSION=20
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2611
GAIL_GNOME_MICRO_VERSION=1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2612
GAIL_GNOME_INTERFACE_AGE=3
2613
GAIL_GNOME_BINARY_AGE=3
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2614
GAIL_GNOME_VERSION=1.20.1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2615
2616
2617
2618
2619
2620
# libtool versioning
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
2621
LT_RELEASE=1.20
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2622
LT_CURRENT=-2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2623
LT_REVISION=3
2624
LT_AGE=0
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2625
LT_CURRENT_MINUS_AGE=-2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2626
2627
2628
2629
2630
2631
2632
ac_ext=c
2633
ac_cpp='$CPP $CPPFLAGS'
2634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
if test -n "$ac_tool_prefix"; then
2638
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2640
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2642
if test "${ac_cv_prog_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2643
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2644
else
2645
  if test -n "$CC"; then
2646
  ac_cv_prog_CC="$CC" # Let the user override the test.
2647
else
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649
for as_dir in $PATH
2650
do
2651
  IFS=$as_save_IFS
2652
  test -z "$as_dir" && as_dir=.
2653
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2654
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2655
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2656
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2657
    break 2
2658
  fi
2659
done
2660
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2661
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2662
2663
fi
2664
fi
2665
CC=$ac_cv_prog_CC
2666
if test -n "$CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2667
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2668
$as_echo "$CC" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2669
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2670
  { $as_echo "$as_me:$LINENO: result: no" >&5
2671
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2672
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2673
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2674
2675
fi
2676
if test -z "$ac_cv_prog_CC"; then
2677
  ac_ct_CC=$CC
2678
  # Extract the first word of "gcc", so it can be a program name with args.
2679
set dummy gcc; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2680
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2682
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2683
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2684
else
2685
  if test -n "$ac_ct_CC"; then
2686
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687
else
2688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689
for as_dir in $PATH
2690
do
2691
  IFS=$as_save_IFS
2692
  test -z "$as_dir" && as_dir=.
2693
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2694
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2695
    ac_cv_prog_ac_ct_CC="gcc"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2696
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2697
    break 2
2698
  fi
2699
done
2700
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2701
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2702
2703
fi
2704
fi
2705
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706
if test -n "$ac_ct_CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2707
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708
$as_echo "$ac_ct_CC" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2709
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2710
  { $as_echo "$as_me:$LINENO: result: no" >&5
2711
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2712
fi
2713
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2714
  if test "x$ac_ct_CC" = x; then
2715
    CC=""
2716
  else
2717
    case $cross_compiling:$ac_tool_warned in
2718
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2719
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2720
whose name does not start with the host triplet.  If you think this
2721
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2722
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2723
whose name does not start with the host triplet.  If you think this
2724
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725
ac_tool_warned=yes ;;
2726
esac
2727
    CC=$ac_ct_CC
2728
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2729
else
2730
  CC="$ac_cv_prog_CC"
2731
fi
2732
2733
if test -z "$CC"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2734
          if test -n "$ac_tool_prefix"; then
2735
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2736
set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2737
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2739
if test "${ac_cv_prog_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2740
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2741
else
2742
  if test -n "$CC"; then
2743
  ac_cv_prog_CC="$CC" # Let the user override the test.
2744
else
2745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746
for as_dir in $PATH
2747
do
2748
  IFS=$as_save_IFS
2749
  test -z "$as_dir" && as_dir=.
2750
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2751
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2752
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2753
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2754
    break 2
2755
  fi
2756
done
2757
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2758
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2759
2760
fi
2761
fi
2762
CC=$ac_cv_prog_CC
2763
if test -n "$CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2764
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765
$as_echo "$CC" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2766
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2767
  { $as_echo "$as_me:$LINENO: result: no" >&5
2768
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2769
fi
2770
2771
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2772
  fi
2773
fi
2774
if test -z "$CC"; then
2775
  # Extract the first word of "cc", so it can be a program name with args.
2776
set dummy cc; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2777
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2779
if test "${ac_cv_prog_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2780
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2781
else
2782
  if test -n "$CC"; then
2783
  ac_cv_prog_CC="$CC" # Let the user override the test.
2784
else
2785
  ac_prog_rejected=no
2786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787
for as_dir in $PATH
2788
do
2789
  IFS=$as_save_IFS
2790
  test -z "$as_dir" && as_dir=.
2791
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2793
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794
       ac_prog_rejected=yes
2795
       continue
2796
     fi
2797
    ac_cv_prog_CC="cc"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2798
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2799
    break 2
2800
  fi
2801
done
2802
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2803
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2804
2805
if test $ac_prog_rejected = yes; then
2806
  # We found a bogon in the path, so make sure we never use it.
2807
  set dummy $ac_cv_prog_CC
2808
  shift
2809
  if test $# != 0; then
2810
    # We chose a different compiler from the bogus one.
2811
    # However, it has the same basename, so the bogon will be chosen
2812
    # first if we set CC to just the basename; use the full file name.
2813
    shift
2814
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815
  fi
2816
fi
2817
fi
2818
fi
2819
CC=$ac_cv_prog_CC
2820
if test -n "$CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2821
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822
$as_echo "$CC" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2823
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2824
  { $as_echo "$as_me:$LINENO: result: no" >&5
2825
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2826
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2827
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2828
2829
fi
2830
if test -z "$CC"; then
2831
  if test -n "$ac_tool_prefix"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2832
  for ac_prog in cl.exe
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2833
  do
2834
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2836
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2838
if test "${ac_cv_prog_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2839
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2840
else
2841
  if test -n "$CC"; then
2842
  ac_cv_prog_CC="$CC" # Let the user override the test.
2843
else
2844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845
for as_dir in $PATH
2846
do
2847
  IFS=$as_save_IFS
2848
  test -z "$as_dir" && as_dir=.
2849
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2850
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2851
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2852
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2853
    break 2
2854
  fi
2855
done
2856
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2857
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2858
2859
fi
2860
fi
2861
CC=$ac_cv_prog_CC
2862
if test -n "$CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2863
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864
$as_echo "$CC" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2865
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2866
  { $as_echo "$as_me:$LINENO: result: no" >&5
2867
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2868
fi
2869
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2870
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2871
    test -n "$CC" && break
2872
  done
2873
fi
2874
if test -z "$CC"; then
2875
  ac_ct_CC=$CC
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2876
  for ac_prog in cl.exe
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2877
do
2878
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2879
set dummy $ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2880
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2882
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2883
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2884
else
2885
  if test -n "$ac_ct_CC"; then
2886
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887
else
2888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889
for as_dir in $PATH
2890
do
2891
  IFS=$as_save_IFS
2892
  test -z "$as_dir" && as_dir=.
2893
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2895
    ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2896
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2897
    break 2
2898
  fi
2899
done
2900
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2901
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2902
2903
fi
2904
fi
2905
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906
if test -n "$ac_ct_CC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2907
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908
$as_echo "$ac_ct_CC" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2909
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2910
  { $as_echo "$as_me:$LINENO: result: no" >&5
2911
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2912
fi
2913
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2914
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2915
  test -n "$ac_ct_CC" && break
2916
done
2917
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2918
  if test "x$ac_ct_CC" = x; then
2919
    CC=""
2920
  else
2921
    case $cross_compiling:$ac_tool_warned in
2922
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2923
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2924
whose name does not start with the host triplet.  If you think this
2925
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2926
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2927
whose name does not start with the host triplet.  If you think this
2928
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2929
ac_tool_warned=yes ;;
2930
esac
2931
    CC=$ac_ct_CC
2932
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2933
fi
2934
2935
fi
2936
2937
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2938
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2939
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2940
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2941
See \`config.log' for more details." >&2;}
2942
   { (exit 1); exit 1; }; }
2943
2944
# Provide some information about the compiler.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2945
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2946
set X $ac_compile
2947
ac_compiler=$2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2948
{ (ac_try="$ac_compiler --version >&5"
2949
case "(($ac_try" in
2950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951
  *) ac_try_echo=$ac_try;;
2952
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2955
  (eval "$ac_compiler --version >&5") 2>&5
2956
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2957
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2958
  (exit $ac_status); }
2959
{ (ac_try="$ac_compiler -v >&5"
2960
case "(($ac_try" in
2961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962
  *) ac_try_echo=$ac_try;;
2963
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2964
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2966
  (eval "$ac_compiler -v >&5") 2>&5
2967
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2969
  (exit $ac_status); }
2970
{ (ac_try="$ac_compiler -V >&5"
2971
case "(($ac_try" in
2972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973
  *) ac_try_echo=$ac_try;;
2974
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
2977
  (eval "$ac_compiler -V >&5") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2978
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2979
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2980
  (exit $ac_status); }
2981
2982
cat >conftest.$ac_ext <<_ACEOF
2983
/* confdefs.h.  */
2984
_ACEOF
2985
cat confdefs.h >>conftest.$ac_ext
2986
cat >>conftest.$ac_ext <<_ACEOF
2987
/* end confdefs.h.  */
2988
2989
int
2990
main ()
2991
{
2992
2993
  ;
2994
  return 0;
2995
}
2996
_ACEOF
2997
ac_clean_files_save=$ac_clean_files
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
2998
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
2999
# Try to create an executable without -o first, disregard a.out.
3000
# It will help us diagnose broken compilers, and finding out an intuition
3001
# of exeext.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3002
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3003
$as_echo_n "checking for C compiler default output file name... " >&6; }
3004
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005
3006
# The possible output files:
3007
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3008
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3009
ac_rmfiles=
3010
for ac_file in $ac_files
3011
do
3012
  case $ac_file in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3013
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3014
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3015
  esac
3016
done
3017
rm -f $ac_rmfiles
3018
3019
if { (ac_try="$ac_link_default"
3020
case "(($ac_try" in
3021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
  *) ac_try_echo=$ac_try;;
3023
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3026
  (eval "$ac_link_default") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3027
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3029
  (exit $ac_status); }; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3030
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3033
# so that the user can short-circuit this test for compilers unknown to
3034
# Autoconf.
3035
for ac_file in $ac_files ''
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3036
do
3037
  test -f "$ac_file" || continue
3038
  case $ac_file in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3039
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3040
	;;
3041
    [ab].out )
3042
	# We found the default executable, but exeext='' is most
3043
	# certainly right.
3044
	break;;
3045
    *.* )
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3046
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047
	then :; else
3048
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049
	fi
3050
	# We set ac_cv_exeext here because the later test for it is not
3051
	# safe: cross compilers may not add the suffix if given an `-o'
3052
	# argument, so we may need to know it at that point already.
3053
	# Even if this section looks crufty: it has the advantage of
3054
	# actually working.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3055
	break;;
3056
    * )
3057
	break;;
3058
  esac
3059
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3060
test "$ac_cv_exeext" = no && ac_cv_exeext=
3061
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3062
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3063
  ac_file=''
3064
fi
3065
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3066
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3067
$as_echo "$ac_file" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3068
if test -z "$ac_file"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3069
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3070
sed 's/^/| /' conftest.$ac_ext >&5
3071
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3072
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3073
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3074
$as_echo "$as_me: error: C compiler cannot create executables
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3075
See \`config.log' for more details." >&2;}
3076
   { (exit 77); exit 77; }; }
3077
fi
3078
3079
ac_exeext=$ac_cv_exeext
3080
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3081
# Check that the compiler produces executables we can run.  If not, either
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3082
# the compiler is broken, or we cross compile.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3083
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084
$as_echo_n "checking whether the C compiler works... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3085
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086
# If not cross compiling, check that we can run a simple program.
3087
if test "$cross_compiling" != yes; then
3088
  if { ac_try='./$ac_file'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3089
  { (case "(($ac_try" in
3090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091
  *) ac_try_echo=$ac_try;;
3092
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3093
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3095
  (eval "$ac_try") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3096
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3097
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3098
  (exit $ac_status); }; }; then
3099
    cross_compiling=no
3100
  else
3101
    if test "$cross_compiling" = maybe; then
3102
	cross_compiling=yes
3103
    else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3104
	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3105
If you meant to cross compile, use \`--host'.
3106
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3107
$as_echo "$as_me: error: cannot run C compiled programs.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3108
If you meant to cross compile, use \`--host'.
3109
See \`config.log' for more details." >&2;}
3110
   { (exit 1); exit 1; }; }
3111
    fi
3112
  fi
3113
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3114
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3115
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3116
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3117
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3118
ac_clean_files=$ac_clean_files_save
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3119
# Check that the compiler produces executables we can run.  If not, either
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3120
# the compiler is broken, or we cross compile.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3121
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3122
$as_echo_n "checking whether we are cross compiling... " >&6; }
3123
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3124
$as_echo "$cross_compiling" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3125
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3126
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3127
$as_echo_n "checking for suffix of executables... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3128
if { (ac_try="$ac_link"
3129
case "(($ac_try" in
3130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
  *) ac_try_echo=$ac_try;;
3132
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3135
  (eval "$ac_link") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3136
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3138
  (exit $ac_status); }; then
3139
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3140
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3141
# work properly (i.e., refer to `conftest.exe'), while it won't with
3142
# `rm'.
3143
for ac_file in conftest.exe conftest conftest.*; do
3144
  test -f "$ac_file" || continue
3145
  case $ac_file in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3146
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3147
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148
	  break;;
3149
    * ) break;;
3150
  esac
3151
done
3152
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3153
  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3154
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3155
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3156
See \`config.log' for more details." >&2;}
3157
   { (exit 1); exit 1; }; }
3158
fi
3159
3160
rm -f conftest$ac_cv_exeext
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3161
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3162
$as_echo "$ac_cv_exeext" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3163
3164
rm -f conftest.$ac_ext
3165
EXEEXT=$ac_cv_exeext
3166
ac_exeext=$EXEEXT
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3167
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3168
$as_echo_n "checking for suffix of object files... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3169
if test "${ac_cv_objext+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3170
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3171
else
3172
  cat >conftest.$ac_ext <<_ACEOF
3173
/* confdefs.h.  */
3174
_ACEOF
3175
cat confdefs.h >>conftest.$ac_ext
3176
cat >>conftest.$ac_ext <<_ACEOF
3177
/* end confdefs.h.  */
3178
3179
int
3180
main ()
3181
{
3182
3183
  ;
3184
  return 0;
3185
}
3186
_ACEOF
3187
rm -f conftest.o conftest.obj
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3188
if { (ac_try="$ac_compile"
3189
case "(($ac_try" in
3190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191
  *) ac_try_echo=$ac_try;;
3192
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3193
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3195
  (eval "$ac_compile") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3196
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3197
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3198
  (exit $ac_status); }; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3199
  for ac_file in conftest.o conftest.obj conftest.*; do
3200
  test -f "$ac_file" || continue;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3201
  case $ac_file in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3202
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3203
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204
       break;;
3205
  esac
3206
done
3207
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3208
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3209
sed 's/^/| /' conftest.$ac_ext >&5
3210
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3211
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3212
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3213
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3214
See \`config.log' for more details." >&2;}
3215
   { (exit 1); exit 1; }; }
3216
fi
3217
3218
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3220
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221
$as_echo "$ac_cv_objext" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3222
OBJEXT=$ac_cv_objext
3223
ac_objext=$OBJEXT
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3224
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3226
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3227
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3228
else
3229
  cat >conftest.$ac_ext <<_ACEOF
3230
/* confdefs.h.  */
3231
_ACEOF
3232
cat confdefs.h >>conftest.$ac_ext
3233
cat >>conftest.$ac_ext <<_ACEOF
3234
/* end confdefs.h.  */
3235
3236
int
3237
main ()
3238
{
3239
#ifndef __GNUC__
3240
       choke me
3241
#endif
3242
3243
  ;
3244
  return 0;
3245
}
3246
_ACEOF
3247
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3248
if { (ac_try="$ac_compile"
3249
case "(($ac_try" in
3250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251
  *) ac_try_echo=$ac_try;;
3252
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3255
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3256
  ac_status=$?
3257
  grep -v '^ *+' conftest.er1 >conftest.err
3258
  rm -f conftest.er1
3259
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3260
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3261
  (exit $ac_status); } && {
3262
	 test -z "$ac_c_werror_flag" ||
3263
	 test ! -s conftest.err
3264
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3265
  ac_compiler_gnu=yes
3266
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3267
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3268
sed 's/^/| /' conftest.$ac_ext >&5
3269
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3270
	ac_compiler_gnu=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3271
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3272
3273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3274
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3277
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279
if test $ac_compiler_gnu = yes; then
3280
  GCC=yes
3281
else
3282
  GCC=
3283
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3284
ac_test_CFLAGS=${CFLAGS+set}
3285
ac_save_CFLAGS=$CFLAGS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3286
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287
$as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3288
if test "${ac_cv_prog_cc_g+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3289
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3290
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3291
  ac_save_c_werror_flag=$ac_c_werror_flag
3292
   ac_c_werror_flag=yes
3293
   ac_cv_prog_cc_g=no
3294
   CFLAGS="-g"
3295
   cat >conftest.$ac_ext <<_ACEOF
3296
/* confdefs.h.  */
3297
_ACEOF
3298
cat confdefs.h >>conftest.$ac_ext
3299
cat >>conftest.$ac_ext <<_ACEOF
3300
/* end confdefs.h.  */
3301
3302
int
3303
main ()
3304
{
3305
3306
  ;
3307
  return 0;
3308
}
3309
_ACEOF
3310
rm -f conftest.$ac_objext
3311
if { (ac_try="$ac_compile"
3312
case "(($ac_try" in
3313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314
  *) ac_try_echo=$ac_try;;
3315
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3316
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3318
  (eval "$ac_compile") 2>conftest.er1
3319
  ac_status=$?
3320
  grep -v '^ *+' conftest.er1 >conftest.err
3321
  rm -f conftest.er1
3322
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3323
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3324
  (exit $ac_status); } && {
3325
	 test -z "$ac_c_werror_flag" ||
3326
	 test ! -s conftest.err
3327
       } && test -s conftest.$ac_objext; then
3328
  ac_cv_prog_cc_g=yes
3329
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3330
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3331
sed 's/^/| /' conftest.$ac_ext >&5
3332
3333
	CFLAGS=""
3334
      cat >conftest.$ac_ext <<_ACEOF
3335
/* confdefs.h.  */
3336
_ACEOF
3337
cat confdefs.h >>conftest.$ac_ext
3338
cat >>conftest.$ac_ext <<_ACEOF
3339
/* end confdefs.h.  */
3340
3341
int
3342
main ()
3343
{
3344
3345
  ;
3346
  return 0;
3347
}
3348
_ACEOF
3349
rm -f conftest.$ac_objext
3350
if { (ac_try="$ac_compile"
3351
case "(($ac_try" in
3352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353
  *) ac_try_echo=$ac_try;;
3354
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3357
  (eval "$ac_compile") 2>conftest.er1
3358
  ac_status=$?
3359
  grep -v '^ *+' conftest.er1 >conftest.err
3360
  rm -f conftest.er1
3361
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3362
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3363
  (exit $ac_status); } && {
3364
	 test -z "$ac_c_werror_flag" ||
3365
	 test ! -s conftest.err
3366
       } && test -s conftest.$ac_objext; then
3367
  :
3368
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3369
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3370
sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
	ac_c_werror_flag=$ac_save_c_werror_flag
3373
	 CFLAGS="-g"
3374
	 cat >conftest.$ac_ext <<_ACEOF
3375
/* confdefs.h.  */
3376
_ACEOF
3377
cat confdefs.h >>conftest.$ac_ext
3378
cat >>conftest.$ac_ext <<_ACEOF
3379
/* end confdefs.h.  */
3380
3381
int
3382
main ()
3383
{
3384
3385
  ;
3386
  return 0;
3387
}
3388
_ACEOF
3389
rm -f conftest.$ac_objext
3390
if { (ac_try="$ac_compile"
3391
case "(($ac_try" in
3392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393
  *) ac_try_echo=$ac_try;;
3394
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3397
  (eval "$ac_compile") 2>conftest.er1
3398
  ac_status=$?
3399
  grep -v '^ *+' conftest.er1 >conftest.err
3400
  rm -f conftest.er1
3401
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3402
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3403
  (exit $ac_status); } && {
3404
	 test -z "$ac_c_werror_flag" ||
3405
	 test ! -s conftest.err
3406
       } && test -s conftest.$ac_objext; then
3407
  ac_cv_prog_cc_g=yes
3408
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3409
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3410
sed 's/^/| /' conftest.$ac_ext >&5
3411
3412
3413
fi
3414
3415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416
fi
3417
3418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419
fi
3420
3421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422
   ac_c_werror_flag=$ac_save_c_werror_flag
3423
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3424
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3425
$as_echo "$ac_cv_prog_cc_g" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3426
if test "$ac_test_CFLAGS" = set; then
3427
  CFLAGS=$ac_save_CFLAGS
3428
elif test $ac_cv_prog_cc_g = yes; then
3429
  if test "$GCC" = yes; then
3430
    CFLAGS="-g -O2"
3431
  else
3432
    CFLAGS="-g"
3433
  fi
3434
else
3435
  if test "$GCC" = yes; then
3436
    CFLAGS="-O2"
3437
  else
3438
    CFLAGS=
3439
  fi
3440
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3441
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3442
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3443
if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3444
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3445
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3446
  ac_cv_prog_cc_c89=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3447
ac_save_CC=$CC
3448
cat >conftest.$ac_ext <<_ACEOF
3449
/* confdefs.h.  */
3450
_ACEOF
3451
cat confdefs.h >>conftest.$ac_ext
3452
cat >>conftest.$ac_ext <<_ACEOF
3453
/* end confdefs.h.  */
3454
#include <stdarg.h>
3455
#include <stdio.h>
3456
#include <sys/types.h>
3457
#include <sys/stat.h>
3458
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3459
struct buf { int x; };
3460
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461
static char *e (p, i)
3462
     char **p;
3463
     int i;
3464
{
3465
  return p[i];
3466
}
3467
static char *f (char * (*g) (char **, int), char **p, ...)
3468
{
3469
  char *s;
3470
  va_list v;
3471
  va_start (v,p);
3472
  s = g (p, va_arg (v,int));
3473
  va_end (v);
3474
  return s;
3475
}
3476
3477
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3478
   function prototypes and stuff, but not '\xHH' hex character constants.
3479
   These don't provoke an error unfortunately, instead are silently treated
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3480
   as 'x'.  The following induces an error, until -std is added to get
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3481
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3482
   array size at least.  It's necessary to write '\x00'==0 to get something
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3483
   that's true only with -std.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3484
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3486
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487
   inside strings and character constants.  */
3488
#define FOO(x) 'x'
3489
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3491
int test (int i, double x);
3492
struct s1 {int (*f) (int a);};
3493
struct s2 {int (*f) (double a);};
3494
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495
int argc;
3496
char **argv;
3497
int
3498
main ()
3499
{
3500
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3501
  ;
3502
  return 0;
3503
}
3504
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3505
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3507
do
3508
  CC="$ac_save_CC $ac_arg"
3509
  rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3510
if { (ac_try="$ac_compile"
3511
case "(($ac_try" in
3512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513
  *) ac_try_echo=$ac_try;;
3514
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3517
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3518
  ac_status=$?
3519
  grep -v '^ *+' conftest.er1 >conftest.err
3520
  rm -f conftest.er1
3521
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3522
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3523
  (exit $ac_status); } && {
3524
	 test -z "$ac_c_werror_flag" ||
3525
	 test ! -s conftest.err
3526
       } && test -s conftest.$ac_objext; then
3527
  ac_cv_prog_cc_c89=$ac_arg
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3528
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3529
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3530
sed 's/^/| /' conftest.$ac_ext >&5
3531
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3532
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3533
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3534
3535
rm -f core conftest.err conftest.$ac_objext
3536
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3537
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3538
rm -f conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3539
CC=$ac_save_CC
3540
3541
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3542
# AC_CACHE_VAL
3543
case "x$ac_cv_prog_cc_c89" in
3544
  x)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3545
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3546
$as_echo "none needed" >&6; } ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3547
  xno)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3548
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3549
$as_echo "unsupported" >&6; } ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3550
  *)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3551
    CC="$CC $ac_cv_prog_cc_c89"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3552
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3553
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3554
esac
3555
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3556
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3557
ac_ext=c
3558
ac_cpp='$CPP $CPPFLAGS'
3559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3562
DEPDIR="${am__leading_dot}deps"
3563
3564
ac_config_commands="$ac_config_commands depfiles"
3565
3566
3567
am_make=${MAKE-make}
3568
cat > confinc << 'END'
3569
am__doit:
3570
	@echo done
3571
.PHONY: am__doit
3572
END
3573
# If we don't find an include directive, just comment out the code.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3574
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3575
$as_echo_n "checking for style of include used by $am_make... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3576
am__include="#"
3577
am__quote=
3578
_am_result=none
3579
# First try GNU make style include.
3580
echo "include confinc" > confmf
3581
# We grep out `Entering directory' and `Leaving directory'
3582
# messages which can occur if `w' ends up in MAKEFLAGS.
3583
# In particular we don't look at `^make:' because GNU make might
3584
# be invoked under some other name (usually "gmake"), in which
3585
# case it prints its new name instead of `make'.
3586
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3587
   am__include=include
3588
   am__quote=
3589
   _am_result=GNU
3590
fi
3591
# Now try BSD make style include.
3592
if test "$am__include" = "#"; then
3593
   echo '.include "confinc"' > confmf
3594
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3595
      am__include=.include
3596
      am__quote="\""
3597
      _am_result=BSD
3598
   fi
3599
fi
3600
3601
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3602
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3603
$as_echo "$_am_result" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3604
rm -f confinc confmf
3605
3606
# Check whether --enable-dependency-tracking was given.
3607
if test "${enable_dependency_tracking+set}" = set; then
3608
  enableval=$enable_dependency_tracking;
3609
fi
3610
3611
if test "x$enable_dependency_tracking" != xno; then
3612
  am_depcomp="$ac_aux_dir/depcomp"
3613
  AMDEPBACKSLASH='\'
3614
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3615
 if test "x$enable_dependency_tracking" != xno; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3616
  AMDEP_TRUE=
3617
  AMDEP_FALSE='#'
3618
else
3619
  AMDEP_TRUE='#'
3620
  AMDEP_FALSE=
3621
fi
3622
3623
3624
3625
depcc="$CC"   am_compiler_list=
3626
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3627
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3628
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3629
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3630
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3631
else
3632
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3633
  # We make a subdir and do the tests there.  Otherwise we can end up
3634
  # making bogus files that we don't know about and never remove.  For
3635
  # instance it was reported that on HP-UX the gcc test will end up
3636
  # making a dummy file named `D' -- because `-MD' means `put the output
3637
  # in D'.
3638
  mkdir conftest.dir
3639
  # Copy depcomp to subdir because otherwise we won't find it if we're
3640
  # using a relative directory.
3641
  cp "$am_depcomp" conftest.dir
3642
  cd conftest.dir
3643
  # We will build objects and dependencies in a subdirectory because
3644
  # it helps to detect inapplicable dependency modes.  For instance
3645
  # both Tru64's cc and ICC support -MD to output dependencies as a
3646
  # side effect of compilation, but ICC will put the dependencies in
3647
  # the current directory while Tru64 will put them in the object
3648
  # directory.
3649
  mkdir sub
3650
3651
  am_cv_CC_dependencies_compiler_type=none
3652
  if test "$am_compiler_list" = ""; then
3653
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3654
  fi
3655
  for depmode in $am_compiler_list; do
3656
    # Setup a source with many dependencies, because some compilers
3657
    # like to wrap large dependency lists on column 80 (with \), and
3658
    # we should not choose a depcomp mode which is confused by this.
3659
    #
3660
    # We need to recreate these files for each test, as the compiler may
3661
    # overwrite some of them when testing with obscure command lines.
3662
    # This happens at least with the AIX C compiler.
3663
    : > sub/conftest.c
3664
    for i in 1 2 3 4 5 6; do
3665
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3666
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3667
      # Solaris 8's {/usr,}/bin/sh.
3668
      touch sub/conftst$i.h
3669
    done
3670
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3671
3672
    case $depmode in
3673
    nosideeffect)
3674
      # after this tag, mechanisms are not by side-effect, so they'll
3675
      # only be used when explicitly requested
3676
      if test "x$enable_dependency_tracking" = xyes; then
3677
	continue
3678
      else
3679
	break
3680
      fi
3681
      ;;
3682
    none) break ;;
3683
    esac
3684
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3685
    # mode.  It turns out that the SunPro C++ compiler does not properly
3686
    # handle `-M -o', and we need to detect this.
3687
    if depmode=$depmode \
3688
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3689
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3690
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3691
         >/dev/null 2>conftest.err &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3692
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3693
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3694
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3695
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3696
      # icc doesn't choke on unknown options, it will just issue warnings
3697
      # or remarks (even with -Werror).  So we grep stderr for any message
3698
      # that says an option was ignored or not supported.
3699
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3700
      #   icc: Command line warning: ignoring option '-M'; no argument required
3701
      # The diagnosis changed in icc 8.0:
3702
      #   icc: Command line remark: option '-MP' not supported
3703
      if (grep 'ignoring option' conftest.err ||
3704
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3705
        am_cv_CC_dependencies_compiler_type=$depmode
3706
        break
3707
      fi
3708
    fi
3709
  done
3710
3711
  cd ..
3712
  rm -rf conftest.dir
3713
else
3714
  am_cv_CC_dependencies_compiler_type=none
3715
fi
3716
3717
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3718
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3719
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3720
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3721
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3722
 if
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3723
  test "x$enable_dependency_tracking" != xno \
3724
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3725
  am__fastdepCC_TRUE=
3726
  am__fastdepCC_FALSE='#'
3727
else
3728
  am__fastdepCC_TRUE='#'
3729
  am__fastdepCC_FALSE=
3730
fi
3731
3732
3733
# Check whether --enable-static was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3734
if test "${enable_static+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3735
  enableval=$enable_static; p=${PACKAGE-default}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3736
    case $enableval in
3737
    yes) enable_static=yes ;;
3738
    no) enable_static=no ;;
3739
    *)
3740
     enable_static=no
3741
      # Look at the argument we got.  We use all the common list separators.
3742
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3743
      for pkg in $enableval; do
3744
	IFS="$lt_save_ifs"
3745
	if test "X$pkg" = "X$p"; then
3746
	  enable_static=yes
3747
	fi
3748
      done
3749
      IFS="$lt_save_ifs"
3750
      ;;
3751
    esac
3752
else
3753
  enable_static=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3754
fi
3755
3756
3757
3758
3759
3760
3761
# Check whether --enable-shared was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3762
if test "${enable_shared+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3763
  enableval=$enable_shared; p=${PACKAGE-default}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3764
    case $enableval in
3765
    yes) enable_shared=yes ;;
3766
    no) enable_shared=no ;;
3767
    *)
3768
      enable_shared=no
3769
      # Look at the argument we got.  We use all the common list separators.
3770
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3771
      for pkg in $enableval; do
3772
	IFS="$lt_save_ifs"
3773
	if test "X$pkg" = "X$p"; then
3774
	  enable_shared=yes
3775
	fi
3776
      done
3777
      IFS="$lt_save_ifs"
3778
      ;;
3779
    esac
3780
else
3781
  enable_shared=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3782
fi
3783
3784
3785
# Check whether --enable-fast-install was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3786
if test "${enable_fast_install+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3787
  enableval=$enable_fast_install; p=${PACKAGE-default}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3788
    case $enableval in
3789
    yes) enable_fast_install=yes ;;
3790
    no) enable_fast_install=no ;;
3791
    *)
3792
      enable_fast_install=no
3793
      # Look at the argument we got.  We use all the common list separators.
3794
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3795
      for pkg in $enableval; do
3796
	IFS="$lt_save_ifs"
3797
	if test "X$pkg" = "X$p"; then
3798
	  enable_fast_install=yes
3799
	fi
3800
      done
3801
      IFS="$lt_save_ifs"
3802
      ;;
3803
    esac
3804
else
3805
  enable_fast_install=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3806
fi
3807
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3808
3809
# Make sure we can run config.sub.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3810
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3811
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3812
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3813
   { (exit 1); exit 1; }; }
3814
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3815
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3816
$as_echo_n "checking build system type... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3817
if test "${ac_cv_build+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3818
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3819
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3820
  ac_build_alias=$build_alias
3821
test "x$ac_build_alias" = x &&
3822
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3823
test "x$ac_build_alias" = x &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3824
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3825
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3826
   { (exit 1); exit 1; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3827
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3828
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3829
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3830
   { (exit 1); exit 1; }; }
3831
3832
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3833
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3834
$as_echo "$ac_cv_build" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3835
case $ac_cv_build in
3836
*-*-*) ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3837
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3838
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3839
   { (exit 1); exit 1; }; };;
3840
esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3841
build=$ac_cv_build
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3842
ac_save_IFS=$IFS; IFS='-'
3843
set x $ac_cv_build
3844
shift
3845
build_cpu=$1
3846
build_vendor=$2
3847
shift; shift
3848
# Remember, the first character of IFS is used to create $*,
3849
# except with old shells:
3850
build_os=$*
3851
IFS=$ac_save_IFS
3852
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3853
3854
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3855
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3856
$as_echo_n "checking host system type... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3857
if test "${ac_cv_host+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3858
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3859
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3860
  if test "x$host_alias" = x; then
3861
  ac_cv_host=$ac_cv_build
3862
else
3863
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3864
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3865
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3866
   { (exit 1); exit 1; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3867
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3868
3869
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3870
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3871
$as_echo "$ac_cv_host" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3872
case $ac_cv_host in
3873
*-*-*) ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3874
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3875
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3876
   { (exit 1); exit 1; }; };;
3877
esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3878
host=$ac_cv_host
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3879
ac_save_IFS=$IFS; IFS='-'
3880
set x $ac_cv_host
3881
shift
3882
host_cpu=$1
3883
host_vendor=$2
3884
shift; shift
3885
# Remember, the first character of IFS is used to create $*,
3886
# except with old shells:
3887
host_os=$*
3888
IFS=$ac_save_IFS
3889
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3890
3891
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3892
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3893
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3894
if test "${lt_cv_path_SED+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3895
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3896
else
3897
  # Loop through the user's path and test for sed and gsed.
3898
# Then use that list of sed's as ones to test for truncation.
3899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900
for as_dir in $PATH
3901
do
3902
  IFS=$as_save_IFS
3903
  test -z "$as_dir" && as_dir=.
3904
  for lt_ac_prog in sed gsed; do
3905
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
3906
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3907
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3908
      fi
3909
    done
3910
  done
3911
done
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
3912
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
3913
lt_ac_max=0
3914
lt_ac_count=0
3915
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3916
# along with /bin/sed that truncates output.
3917
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3918
  test ! -f $lt_ac_sed && continue
3919
  cat /dev/null > conftest.in
3920
  lt_ac_count=0
3921
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3922
  # Check for GNU sed and select it if it is found.
3923
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3924
    lt_cv_path_SED=$lt_ac_sed
3925
    break
3926
  fi
3927
  while true; do
3928
    cat conftest.in conftest.in >conftest.tmp
3929
    mv conftest.tmp conftest.in
3930
    cp conftest.in conftest.nl
3931
    echo >>conftest.nl
3932
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3933
    cmp -s conftest.out conftest.nl || break
3934
    # 10000 chars as input seems more than enough
3935
    test $lt_ac_count -gt 10 && break
3936
    lt_ac_count=`expr $lt_ac_count + 1`
3937
    if test $lt_ac_count -gt $lt_ac_max; then
3938
      lt_ac_max=$lt_ac_count
3939
      lt_cv_path_SED=$lt_ac_sed
3940
    fi
3941
  done
3942
done
3943
3944
fi
3945
3946
SED=$lt_cv_path_SED
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
3947
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3948
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3949
$as_echo "$SED" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3950
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3951
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3952
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953
if test "${ac_cv_path_GREP+set}" = set; then
3954
  $as_echo_n "(cached) " >&6
3955
else
3956
  if test -z "$GREP"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3957
  ac_path_GREP_found=false
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3958
  # Loop through the user's path and test for each of PROGNAME-LIST
3959
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3960
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961
do
3962
  IFS=$as_save_IFS
3963
  test -z "$as_dir" && as_dir=.
3964
  for ac_prog in grep ggrep; do
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3965
    for ac_exec_ext in '' $ac_executable_extensions; do
3966
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968
# Check for GNU ac_path_GREP and select it if it is found.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3969
  # Check for GNU $ac_path_GREP
3970
case `"$ac_path_GREP" --version 2>&1` in
3971
*GNU*)
3972
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973
*)
3974
  ac_count=0
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3975
  $as_echo_n 0123456789 >"conftest.in"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3976
  while :
3977
  do
3978
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979
    mv "conftest.tmp" "conftest.in"
3980
    cp "conftest.in" "conftest.nl"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3981
    $as_echo 'GREP' >> "conftest.nl"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3982
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984
    ac_count=`expr $ac_count + 1`
3985
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986
      # Best one so far, save it but keep looking for a better one
3987
      ac_cv_path_GREP="$ac_path_GREP"
3988
      ac_path_GREP_max=$ac_count
3989
    fi
3990
    # 10*(2^10) chars as input seems more than enough
3991
    test $ac_count -gt 10 && break
3992
  done
3993
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994
esac
3995
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
3996
      $ac_path_GREP_found && break 3
3997
    done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
3998
  done
3999
done
4000
IFS=$as_save_IFS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4001
  if test -z "$ac_cv_path_GREP"; then
4002
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4003
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4004
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4005
  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4006
else
4007
  ac_cv_path_GREP=$GREP
4008
fi
4009
4010
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4012
$as_echo "$ac_cv_path_GREP" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4013
 GREP="$ac_cv_path_GREP"
4014
4015
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4016
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4017
$as_echo_n "checking for egrep... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4018
if test "${ac_cv_path_EGREP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4019
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4020
else
4021
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4022
   then ac_cv_path_EGREP="$GREP -E"
4023
   else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4024
     if test -z "$EGREP"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4025
  ac_path_EGREP_found=false
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4026
  # Loop through the user's path and test for each of PROGNAME-LIST
4027
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4028
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029
do
4030
  IFS=$as_save_IFS
4031
  test -z "$as_dir" && as_dir=.
4032
  for ac_prog in egrep; do
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4033
    for ac_exec_ext in '' $ac_executable_extensions; do
4034
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4035
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4036
# Check for GNU ac_path_EGREP and select it if it is found.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4037
  # Check for GNU $ac_path_EGREP
4038
case `"$ac_path_EGREP" --version 2>&1` in
4039
*GNU*)
4040
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4041
*)
4042
  ac_count=0
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4043
  $as_echo_n 0123456789 >"conftest.in"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4044
  while :
4045
  do
4046
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4047
    mv "conftest.tmp" "conftest.in"
4048
    cp "conftest.in" "conftest.nl"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4049
    $as_echo 'EGREP' >> "conftest.nl"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4050
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052
    ac_count=`expr $ac_count + 1`
4053
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4054
      # Best one so far, save it but keep looking for a better one
4055
      ac_cv_path_EGREP="$ac_path_EGREP"
4056
      ac_path_EGREP_max=$ac_count
4057
    fi
4058
    # 10*(2^10) chars as input seems more than enough
4059
    test $ac_count -gt 10 && break
4060
  done
4061
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062
esac
4063
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4064
      $ac_path_EGREP_found && break 3
4065
    done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4066
  done
4067
done
4068
IFS=$as_save_IFS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4069
  if test -z "$ac_cv_path_EGREP"; then
4070
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4072
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4073
  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4074
else
4075
  ac_cv_path_EGREP=$EGREP
4076
fi
4077
4078
   fi
4079
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4080
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081
$as_echo "$ac_cv_path_EGREP" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4082
 EGREP="$ac_cv_path_EGREP"
4083
4084
4085
4086
# Check whether --with-gnu-ld was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4087
if test "${with_gnu_ld+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4088
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4089
else
4090
  with_gnu_ld=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4091
fi
4092
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4093
ac_prog=ld
4094
if test "$GCC" = yes; then
4095
  # Check if gcc -print-prog-name=ld gives a path.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4096
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4097
$as_echo_n "checking for ld used by $CC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4098
  case $host in
4099
  *-*-mingw*)
4100
    # gcc leaves a trailing carriage return which upsets mingw
4101
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4102
  *)
4103
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4104
  esac
4105
  case $ac_prog in
4106
    # Accept absolute paths.
4107
    [\\/]* | ?:[\\/]*)
4108
      re_direlt='/[^/][^/]*/\.\./'
4109
      # Canonicalize the pathname of ld
4110
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4111
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4113
      done
4114
      test -z "$LD" && LD="$ac_prog"
4115
      ;;
4116
  "")
4117
    # If it fails, then pretend we aren't using GCC.
4118
    ac_prog=ld
4119
    ;;
4120
  *)
4121
    # If it is relative, then search for the first ld in PATH.
4122
    with_gnu_ld=unknown
4123
    ;;
4124
  esac
4125
elif test "$with_gnu_ld" = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4126
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4127
$as_echo_n "checking for GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4128
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4129
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130
$as_echo_n "checking for non-GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4131
fi
4132
if test "${lt_cv_path_LD+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4133
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4134
else
4135
  if test -z "$LD"; then
4136
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4137
  for ac_dir in $PATH; do
4138
    IFS="$lt_save_ifs"
4139
    test -z "$ac_dir" && ac_dir=.
4140
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4141
      lt_cv_path_LD="$ac_dir/$ac_prog"
4142
      # Check to see if the program is GNU ld.  I'd rather use --version,
4143
      # but apparently some variants of GNU ld only accept -v.
4144
      # Break only if it was the GNU/non-GNU ld that we prefer.
4145
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4146
      *GNU* | *'with BFD'*)
4147
	test "$with_gnu_ld" != no && break
4148
	;;
4149
      *)
4150
	test "$with_gnu_ld" != yes && break
4151
	;;
4152
      esac
4153
    fi
4154
  done
4155
  IFS="$lt_save_ifs"
4156
else
4157
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4158
fi
4159
fi
4160
4161
LD="$lt_cv_path_LD"
4162
if test -n "$LD"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4163
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4164
$as_echo "$LD" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4165
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4166
  { $as_echo "$as_me:$LINENO: result: no" >&5
4167
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4168
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4169
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4171
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4172
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4174
if test "${lt_cv_prog_gnu_ld+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4175
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4176
else
4177
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4178
case `$LD -v 2>&1 </dev/null` in
4179
*GNU* | *'with BFD'*)
4180
  lt_cv_prog_gnu_ld=yes
4181
  ;;
4182
*)
4183
  lt_cv_prog_gnu_ld=no
4184
  ;;
4185
esac
4186
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4187
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4188
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4189
with_gnu_ld=$lt_cv_prog_gnu_ld
4190
4191
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4192
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4193
$as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4194
if test "${lt_cv_ld_reload_flag+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4195
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4196
else
4197
  lt_cv_ld_reload_flag='-r'
4198
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4199
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4200
$as_echo "$lt_cv_ld_reload_flag" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4201
reload_flag=$lt_cv_ld_reload_flag
4202
case $reload_flag in
4203
"" | " "*) ;;
4204
*) reload_flag=" $reload_flag" ;;
4205
esac
4206
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4207
case $host_os in
4208
  darwin*)
4209
    if test "$GCC" = yes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4210
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4211
    else
4212
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4213
    fi
4214
    ;;
4215
esac
4216
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4217
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4218
$as_echo_n "checking for BSD-compatible nm... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4219
if test "${lt_cv_path_NM+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4220
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4221
else
4222
  if test -n "$NM"; then
4223
  # Let the user override the test.
4224
  lt_cv_path_NM="$NM"
4225
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4226
  lt_nm_to_check="${ac_tool_prefix}nm"
4227
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4228
    lt_nm_to_check="$lt_nm_to_check nm"
4229
  fi
4230
  for lt_tmp_nm in $lt_nm_to_check; do
4231
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4232
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4233
      IFS="$lt_save_ifs"
4234
      test -z "$ac_dir" && ac_dir=.
4235
      tmp_nm="$ac_dir/$lt_tmp_nm"
4236
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4237
	# Check to see if the nm accepts a BSD-compat flag.
4238
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239
	#   nm: unknown option "B" ignored
4240
	# Tru64's nm complains that /dev/null is an invalid object file
4241
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4242
	*/dev/null* | *'Invalid file or object type'*)
4243
	  lt_cv_path_NM="$tmp_nm -B"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4244
	  break
4245
	  ;;
4246
	*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4247
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4248
	  */dev/null*)
4249
	    lt_cv_path_NM="$tmp_nm -p"
4250
	    break
4251
	    ;;
4252
	  *)
4253
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4254
	    continue # so that we can try to find one that supports BSD flags
4255
	    ;;
4256
	  esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4257
	  ;;
4258
	esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4259
      fi
4260
    done
4261
    IFS="$lt_save_ifs"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4262
  done
4263
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4264
fi
4265
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4266
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4267
$as_echo "$lt_cv_path_NM" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4268
NM="$lt_cv_path_NM"
4269
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4270
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4271
$as_echo_n "checking whether ln -s works... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4272
LN_S=$as_ln_s
4273
if test "$LN_S" = "ln -s"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4274
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4275
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4276
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4277
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4278
$as_echo "no, using $LN_S" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4279
fi
4280
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4281
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4282
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4283
if test "${lt_cv_deplibs_check_method+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4284
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4285
else
4286
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4287
lt_cv_file_magic_test_file=
4288
lt_cv_deplibs_check_method='unknown'
4289
# Need to set the preceding variable on all platforms that support
4290
# interlibrary dependencies.
4291
# 'none' -- dependencies not supported.
4292
# `unknown' -- same as none, but documents that we really don't know.
4293
# 'pass_all' -- all dependencies passed with no checks.
4294
# 'test_compile' -- check by making test program.
4295
# 'file_magic [[regex]]' -- check by looking for files in library path
4296
# which responds to the $file_magic_cmd with a given extended regex.
4297
# If you have `file' or equivalent on your system and you're not sure
4298
# whether `pass_all' will *always* work, you probably want this one.
4299
4300
case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4301
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4302
  lt_cv_deplibs_check_method=pass_all
4303
  ;;
4304
4305
beos*)
4306
  lt_cv_deplibs_check_method=pass_all
4307
  ;;
4308
4309
bsdi[45]*)
4310
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4311
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4312
  lt_cv_file_magic_test_file=/shlib/libc.so
4313
  ;;
4314
4315
cygwin*)
4316
  # func_win32_libid is a shell function defined in ltmain.sh
4317
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318
  lt_cv_file_magic_cmd='func_win32_libid'
4319
  ;;
4320
4321
mingw* | pw32*)
4322
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4323
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4324
  # unless we find 'file', for example because we are cross-compiling.
4325
  if ( file / ) >/dev/null 2>&1; then
4326
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327
    lt_cv_file_magic_cmd='func_win32_libid'
4328
  else
4329
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4330
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4331
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4332
  ;;
4333
4334
darwin* | rhapsody*)
4335
  lt_cv_deplibs_check_method=pass_all
4336
  ;;
4337
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4338
freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4339
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4340
    case $host_cpu in
4341
    i*86 )
4342
      # Not sure whether the presence of OpenBSD here was a mistake.
4343
      # Let's accept both of them until this is cleared up.
4344
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4345
      lt_cv_file_magic_cmd=/usr/bin/file
4346
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4347
      ;;
4348
    esac
4349
  else
4350
    lt_cv_deplibs_check_method=pass_all
4351
  fi
4352
  ;;
4353
4354
gnu*)
4355
  lt_cv_deplibs_check_method=pass_all
4356
  ;;
4357
4358
hpux10.20* | hpux11*)
4359
  lt_cv_file_magic_cmd=/usr/bin/file
4360
  case $host_cpu in
4361
  ia64*)
4362
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4363
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4364
    ;;
4365
  hppa*64*)
4366
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4367
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4368
    ;;
4369
  *)
4370
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4371
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4372
    ;;
4373
  esac
4374
  ;;
4375
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4376
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4377
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4378
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4379
  ;;
4380
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4381
irix5* | irix6* | nonstopux*)
4382
  case $LD in
4383
  *-32|*"-32 ") libmagic=32-bit;;
4384
  *-n32|*"-n32 ") libmagic=N32;;
4385
  *-64|*"-64 ") libmagic=64-bit;;
4386
  *) libmagic=never-match;;
4387
  esac
4388
  lt_cv_deplibs_check_method=pass_all
4389
  ;;
4390
4391
# This must be Linux ELF.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4392
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4393
  lt_cv_deplibs_check_method=pass_all
4394
  ;;
4395
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4396
netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4397
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4398
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4399
  else
4400
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4401
  fi
4402
  ;;
4403
4404
newos6*)
4405
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4406
  lt_cv_file_magic_cmd=/usr/bin/file
4407
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4408
  ;;
4409
4410
nto-qnx*)
4411
  lt_cv_deplibs_check_method=unknown
4412
  ;;
4413
4414
openbsd*)
4415
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4416
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4417
  else
4418
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4419
  fi
4420
  ;;
4421
4422
osf3* | osf4* | osf5*)
4423
  lt_cv_deplibs_check_method=pass_all
4424
  ;;
4425
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4426
rdos*)
4427
  lt_cv_deplibs_check_method=pass_all
4428
  ;;
4429
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4430
solaris*)
4431
  lt_cv_deplibs_check_method=pass_all
4432
  ;;
4433
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4434
sysv4 | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4435
  case $host_vendor in
4436
  motorola)
4437
    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]'
4438
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4439
    ;;
4440
  ncr)
4441
    lt_cv_deplibs_check_method=pass_all
4442
    ;;
4443
  sequent)
4444
    lt_cv_file_magic_cmd='/bin/file'
4445
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4446
    ;;
4447
  sni)
4448
    lt_cv_file_magic_cmd='/bin/file'
4449
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4450
    lt_cv_file_magic_test_file=/lib/libc.so
4451
    ;;
4452
  siemens)
4453
    lt_cv_deplibs_check_method=pass_all
4454
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4455
  pc)
4456
    lt_cv_deplibs_check_method=pass_all
4457
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4458
  esac
4459
  ;;
4460
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4461
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4462
  lt_cv_deplibs_check_method=pass_all
4463
  ;;
4464
esac
4465
4466
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4467
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4468
$as_echo "$lt_cv_deplibs_check_method" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4469
file_magic_cmd=$lt_cv_file_magic_cmd
4470
deplibs_check_method=$lt_cv_deplibs_check_method
4471
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4472
4473
4474
4475
4476
# If no C compiler was specified, use CC.
4477
LTCC=${LTCC-"$CC"}
4478
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4479
# If no C compiler flags were specified, use CFLAGS.
4480
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4481
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4482
# Allow CC to be a program name with arguments.
4483
compiler=$CC
4484
4485
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4486
# Check whether --enable-libtool-lock was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4487
if test "${enable_libtool_lock+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4488
  enableval=$enable_libtool_lock;
4489
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4490
4491
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4492
4493
# Some flags need to be propagated to the compiler or linker for good
4494
# libtool support.
4495
case $host in
4496
ia64-*-hpux*)
4497
  # Find out which ABI we are using.
4498
  echo 'int i;' > conftest.$ac_ext
4499
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500
  (eval $ac_compile) 2>&5
4501
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4503
  (exit $ac_status); }; then
4504
    case `/usr/bin/file conftest.$ac_objext` in
4505
    *ELF-32*)
4506
      HPUX_IA64_MODE="32"
4507
      ;;
4508
    *ELF-64*)
4509
      HPUX_IA64_MODE="64"
4510
      ;;
4511
    esac
4512
  fi
4513
  rm -rf conftest*
4514
  ;;
4515
*-*-irix6*)
4516
  # Find out which ABI we are using.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4517
  echo '#line 4517 "configure"' > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4518
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519
  (eval $ac_compile) 2>&5
4520
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4521
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4522
  (exit $ac_status); }; then
4523
   if test "$lt_cv_prog_gnu_ld" = yes; then
4524
    case `/usr/bin/file conftest.$ac_objext` in
4525
    *32-bit*)
4526
      LD="${LD-ld} -melf32bsmip"
4527
      ;;
4528
    *N32*)
4529
      LD="${LD-ld} -melf32bmipn32"
4530
      ;;
4531
    *64-bit*)
4532
      LD="${LD-ld} -melf64bmip"
4533
      ;;
4534
    esac
4535
   else
4536
    case `/usr/bin/file conftest.$ac_objext` in
4537
    *32-bit*)
4538
      LD="${LD-ld} -32"
4539
      ;;
4540
    *N32*)
4541
      LD="${LD-ld} -n32"
4542
      ;;
4543
    *64-bit*)
4544
      LD="${LD-ld} -64"
4545
      ;;
4546
    esac
4547
   fi
4548
  fi
4549
  rm -rf conftest*
4550
  ;;
4551
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4552
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4553
s390*-*linux*|sparc*-*linux*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4554
  # Find out which ABI we are using.
4555
  echo 'int i;' > conftest.$ac_ext
4556
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557
  (eval $ac_compile) 2>&5
4558
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4559
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4560
  (exit $ac_status); }; then
4561
    case `/usr/bin/file conftest.o` in
4562
    *32-bit*)
4563
      case $host in
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4564
        x86_64-*kfreebsd*-gnu)
4565
          LD="${LD-ld} -m elf_i386_fbsd"
4566
          ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4567
        x86_64-*linux*)
4568
          LD="${LD-ld} -m elf_i386"
4569
          ;;
4570
        ppc64-*linux*|powerpc64-*linux*)
4571
          LD="${LD-ld} -m elf32ppclinux"
4572
          ;;
4573
        s390x-*linux*)
4574
          LD="${LD-ld} -m elf_s390"
4575
          ;;
4576
        sparc64-*linux*)
4577
          LD="${LD-ld} -m elf32_sparc"
4578
          ;;
4579
      esac
4580
      ;;
4581
    *64-bit*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4582
      libsuff=64
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4583
      case $host in
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
4584
        x86_64-*kfreebsd*-gnu)
4585
          LD="${LD-ld} -m elf_x86_64_fbsd"
4586
          ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4587
        x86_64-*linux*)
4588
          LD="${LD-ld} -m elf_x86_64"
4589
          ;;
4590
        ppc*-*linux*|powerpc*-*linux*)
4591
          LD="${LD-ld} -m elf64ppc"
4592
          ;;
4593
        s390*-*linux*)
4594
          LD="${LD-ld} -m elf64_s390"
4595
          ;;
4596
        sparc*-*linux*)
4597
          LD="${LD-ld} -m elf64_sparc"
4598
          ;;
4599
      esac
4600
      ;;
4601
    esac
4602
  fi
4603
  rm -rf conftest*
4604
  ;;
4605
4606
*-*-sco3.2v5*)
4607
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4608
  SAVE_CFLAGS="$CFLAGS"
4609
  CFLAGS="$CFLAGS -belf"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4610
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4611
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4612
if test "${lt_cv_cc_needs_belf+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4613
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4614
else
4615
  ac_ext=c
4616
ac_cpp='$CPP $CPPFLAGS'
4617
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620
4621
     cat >conftest.$ac_ext <<_ACEOF
4622
/* confdefs.h.  */
4623
_ACEOF
4624
cat confdefs.h >>conftest.$ac_ext
4625
cat >>conftest.$ac_ext <<_ACEOF
4626
/* end confdefs.h.  */
4627
4628
int
4629
main ()
4630
{
4631
4632
  ;
4633
  return 0;
4634
}
4635
_ACEOF
4636
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4637
if { (ac_try="$ac_link"
4638
case "(($ac_try" in
4639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640
  *) ac_try_echo=$ac_try;;
4641
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4642
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4643
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4644
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4645
  ac_status=$?
4646
  grep -v '^ *+' conftest.er1 >conftest.err
4647
  rm -f conftest.er1
4648
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4649
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4650
  (exit $ac_status); } && {
4651
	 test -z "$ac_c_werror_flag" ||
4652
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4653
       } && test -s conftest$ac_exeext && {
4654
	 test "$cross_compiling" = yes ||
4655
	 $as_test_x conftest$ac_exeext
4656
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4657
  lt_cv_cc_needs_belf=yes
4658
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4659
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4660
sed 's/^/| /' conftest.$ac_ext >&5
4661
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4662
	lt_cv_cc_needs_belf=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4663
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4664
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4665
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4667
      conftest$ac_exeext conftest.$ac_ext
4668
     ac_ext=c
4669
ac_cpp='$CPP $CPPFLAGS'
4670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4675
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4676
$as_echo "$lt_cv_cc_needs_belf" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4677
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4678
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4679
    CFLAGS="$SAVE_CFLAGS"
4680
  fi
4681
  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4682
sparc*-*solaris*)
4683
  # Find out which ABI we are using.
4684
  echo 'int i;' > conftest.$ac_ext
4685
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686
  (eval $ac_compile) 2>&5
4687
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4688
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4689
  (exit $ac_status); }; then
4690
    case `/usr/bin/file conftest.o` in
4691
    *64-bit*)
4692
      case $lt_cv_prog_gnu_ld in
4693
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4694
      *)
4695
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4696
	  LD="${LD-ld} -64"
4697
	fi
4698
	;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4699
      esac
4700
      ;;
4701
    esac
4702
  fi
4703
  rm -rf conftest*
4704
  ;;
4705
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4706
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4707
  if test -n "$ac_tool_prefix"; then
4708
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4709
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4710
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4712
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4713
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4714
else
4715
  if test -n "$DLLTOOL"; then
4716
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4717
else
4718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719
for as_dir in $PATH
4720
do
4721
  IFS=$as_save_IFS
4722
  test -z "$as_dir" && as_dir=.
4723
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4725
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4726
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4727
    break 2
4728
  fi
4729
done
4730
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4731
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4732
4733
fi
4734
fi
4735
DLLTOOL=$ac_cv_prog_DLLTOOL
4736
if test -n "$DLLTOOL"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4737
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4738
$as_echo "$DLLTOOL" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4739
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4740
  { $as_echo "$as_me:$LINENO: result: no" >&5
4741
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4742
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4743
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4744
4745
fi
4746
if test -z "$ac_cv_prog_DLLTOOL"; then
4747
  ac_ct_DLLTOOL=$DLLTOOL
4748
  # Extract the first word of "dlltool", so it can be a program name with args.
4749
set dummy dlltool; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4750
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4752
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4753
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4754
else
4755
  if test -n "$ac_ct_DLLTOOL"; then
4756
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4757
else
4758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759
for as_dir in $PATH
4760
do
4761
  IFS=$as_save_IFS
4762
  test -z "$as_dir" && as_dir=.
4763
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4765
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4766
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4767
    break 2
4768
  fi
4769
done
4770
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4771
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4772
4773
fi
4774
fi
4775
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4776
if test -n "$ac_ct_DLLTOOL"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4777
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4778
$as_echo "$ac_ct_DLLTOOL" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4779
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4780
  { $as_echo "$as_me:$LINENO: result: no" >&5
4781
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4782
fi
4783
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4784
  if test "x$ac_ct_DLLTOOL" = x; then
4785
    DLLTOOL="false"
4786
  else
4787
    case $cross_compiling:$ac_tool_warned in
4788
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4789
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4790
whose name does not start with the host triplet.  If you think this
4791
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4792
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4793
whose name does not start with the host triplet.  If you think this
4794
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4795
ac_tool_warned=yes ;;
4796
esac
4797
    DLLTOOL=$ac_ct_DLLTOOL
4798
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4799
else
4800
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4801
fi
4802
4803
  if test -n "$ac_tool_prefix"; then
4804
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4805
set dummy ${ac_tool_prefix}as; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4806
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4807
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4808
if test "${ac_cv_prog_AS+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4809
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4810
else
4811
  if test -n "$AS"; then
4812
  ac_cv_prog_AS="$AS" # Let the user override the test.
4813
else
4814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815
for as_dir in $PATH
4816
do
4817
  IFS=$as_save_IFS
4818
  test -z "$as_dir" && as_dir=.
4819
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4820
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4821
    ac_cv_prog_AS="${ac_tool_prefix}as"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4822
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4823
    break 2
4824
  fi
4825
done
4826
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4827
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4828
4829
fi
4830
fi
4831
AS=$ac_cv_prog_AS
4832
if test -n "$AS"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4833
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4834
$as_echo "$AS" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4835
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4836
  { $as_echo "$as_me:$LINENO: result: no" >&5
4837
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4838
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4839
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4840
4841
fi
4842
if test -z "$ac_cv_prog_AS"; then
4843
  ac_ct_AS=$AS
4844
  # Extract the first word of "as", so it can be a program name with args.
4845
set dummy as; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4846
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4847
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4848
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4849
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4850
else
4851
  if test -n "$ac_ct_AS"; then
4852
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4853
else
4854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855
for as_dir in $PATH
4856
do
4857
  IFS=$as_save_IFS
4858
  test -z "$as_dir" && as_dir=.
4859
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4860
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4861
    ac_cv_prog_ac_ct_AS="as"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4862
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4863
    break 2
4864
  fi
4865
done
4866
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4867
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4868
4869
fi
4870
fi
4871
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4872
if test -n "$ac_ct_AS"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4873
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4874
$as_echo "$ac_ct_AS" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4875
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4876
  { $as_echo "$as_me:$LINENO: result: no" >&5
4877
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4878
fi
4879
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4880
  if test "x$ac_ct_AS" = x; then
4881
    AS="false"
4882
  else
4883
    case $cross_compiling:$ac_tool_warned in
4884
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4885
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4886
whose name does not start with the host triplet.  If you think this
4887
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4888
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4889
whose name does not start with the host triplet.  If you think this
4890
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4891
ac_tool_warned=yes ;;
4892
esac
4893
    AS=$ac_ct_AS
4894
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4895
else
4896
  AS="$ac_cv_prog_AS"
4897
fi
4898
4899
  if test -n "$ac_tool_prefix"; then
4900
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4901
set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4902
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4903
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4904
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4905
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4906
else
4907
  if test -n "$OBJDUMP"; then
4908
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4909
else
4910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911
for as_dir in $PATH
4912
do
4913
  IFS=$as_save_IFS
4914
  test -z "$as_dir" && as_dir=.
4915
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4916
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4917
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4918
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4919
    break 2
4920
  fi
4921
done
4922
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4923
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4924
4925
fi
4926
fi
4927
OBJDUMP=$ac_cv_prog_OBJDUMP
4928
if test -n "$OBJDUMP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4929
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4930
$as_echo "$OBJDUMP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4931
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4932
  { $as_echo "$as_me:$LINENO: result: no" >&5
4933
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4934
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4935
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4936
4937
fi
4938
if test -z "$ac_cv_prog_OBJDUMP"; then
4939
  ac_ct_OBJDUMP=$OBJDUMP
4940
  # Extract the first word of "objdump", so it can be a program name with args.
4941
set dummy objdump; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4942
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4943
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4944
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4945
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4946
else
4947
  if test -n "$ac_ct_OBJDUMP"; then
4948
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4949
else
4950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951
for as_dir in $PATH
4952
do
4953
  IFS=$as_save_IFS
4954
  test -z "$as_dir" && as_dir=.
4955
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4956
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4957
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4958
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4959
    break 2
4960
  fi
4961
done
4962
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4963
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4964
4965
fi
4966
fi
4967
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4968
if test -n "$ac_ct_OBJDUMP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4969
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4970
$as_echo "$ac_ct_OBJDUMP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4971
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4972
  { $as_echo "$as_me:$LINENO: result: no" >&5
4973
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4974
fi
4975
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4976
  if test "x$ac_ct_OBJDUMP" = x; then
4977
    OBJDUMP="false"
4978
  else
4979
    case $cross_compiling:$ac_tool_warned in
4980
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4981
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4982
whose name does not start with the host triplet.  If you think this
4983
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
4984
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
4985
whose name does not start with the host triplet.  If you think this
4986
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4987
ac_tool_warned=yes ;;
4988
esac
4989
    OBJDUMP=$ac_ct_OBJDUMP
4990
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
4991
else
4992
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4993
fi
4994
4995
  ;;
4996
4997
esac
4998
4999
need_locks="$enable_libtool_lock"
5000
5001
5002
ac_ext=c
5003
ac_cpp='$CPP $CPPFLAGS'
5004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5007
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5008
$as_echo_n "checking how to run the C preprocessor... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5009
# On Suns, sometimes $CPP names a directory.
5010
if test -n "$CPP" && test -d "$CPP"; then
5011
  CPP=
5012
fi
5013
if test -z "$CPP"; then
5014
  if test "${ac_cv_prog_CPP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5015
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5016
else
5017
      # Double quotes because CPP needs to be expanded
5018
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5019
    do
5020
      ac_preproc_ok=false
5021
for ac_c_preproc_warn_flag in '' yes
5022
do
5023
  # Use a header file that comes with gcc, so configuring glibc
5024
  # with a fresh cross-compiler works.
5025
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026
  # <limits.h> exists even on freestanding compilers.
5027
  # On the NeXT, cc -E runs the code through the compiler's parser,
5028
  # not just through cpp. "Syntax error" is here to catch this case.
5029
  cat >conftest.$ac_ext <<_ACEOF
5030
/* confdefs.h.  */
5031
_ACEOF
5032
cat confdefs.h >>conftest.$ac_ext
5033
cat >>conftest.$ac_ext <<_ACEOF
5034
/* end confdefs.h.  */
5035
#ifdef __STDC__
5036
# include <limits.h>
5037
#else
5038
# include <assert.h>
5039
#endif
5040
		     Syntax error
5041
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5042
if { (ac_try="$ac_cpp conftest.$ac_ext"
5043
case "(($ac_try" in
5044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045
  *) ac_try_echo=$ac_try;;
5046
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5049
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5050
  ac_status=$?
5051
  grep -v '^ *+' conftest.er1 >conftest.err
5052
  rm -f conftest.er1
5053
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5055
  (exit $ac_status); } >/dev/null && {
5056
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057
	 test ! -s conftest.err
5058
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5059
  :
5060
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5061
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5062
sed 's/^/| /' conftest.$ac_ext >&5
5063
5064
  # Broken: fails on valid input.
5065
continue
5066
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5067
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5068
rm -f conftest.err conftest.$ac_ext
5069
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5070
  # OK, works on sane cases.  Now check whether nonexistent headers
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5071
  # can be detected and how.
5072
  cat >conftest.$ac_ext <<_ACEOF
5073
/* confdefs.h.  */
5074
_ACEOF
5075
cat confdefs.h >>conftest.$ac_ext
5076
cat >>conftest.$ac_ext <<_ACEOF
5077
/* end confdefs.h.  */
5078
#include <ac_nonexistent.h>
5079
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5080
if { (ac_try="$ac_cpp conftest.$ac_ext"
5081
case "(($ac_try" in
5082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083
  *) ac_try_echo=$ac_try;;
5084
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5085
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5087
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5088
  ac_status=$?
5089
  grep -v '^ *+' conftest.er1 >conftest.err
5090
  rm -f conftest.er1
5091
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5092
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5093
  (exit $ac_status); } >/dev/null && {
5094
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095
	 test ! -s conftest.err
5096
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5097
  # Broken: success on invalid input.
5098
continue
5099
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5100
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5101
sed 's/^/| /' conftest.$ac_ext >&5
5102
5103
  # Passes both tests.
5104
ac_preproc_ok=:
5105
break
5106
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5107
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5108
rm -f conftest.err conftest.$ac_ext
5109
5110
done
5111
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112
rm -f conftest.err conftest.$ac_ext
5113
if $ac_preproc_ok; then
5114
  break
5115
fi
5116
5117
    done
5118
    ac_cv_prog_CPP=$CPP
5119
5120
fi
5121
  CPP=$ac_cv_prog_CPP
5122
else
5123
  ac_cv_prog_CPP=$CPP
5124
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5125
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5126
$as_echo "$CPP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5127
ac_preproc_ok=false
5128
for ac_c_preproc_warn_flag in '' yes
5129
do
5130
  # Use a header file that comes with gcc, so configuring glibc
5131
  # with a fresh cross-compiler works.
5132
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133
  # <limits.h> exists even on freestanding compilers.
5134
  # On the NeXT, cc -E runs the code through the compiler's parser,
5135
  # not just through cpp. "Syntax error" is here to catch this case.
5136
  cat >conftest.$ac_ext <<_ACEOF
5137
/* confdefs.h.  */
5138
_ACEOF
5139
cat confdefs.h >>conftest.$ac_ext
5140
cat >>conftest.$ac_ext <<_ACEOF
5141
/* end confdefs.h.  */
5142
#ifdef __STDC__
5143
# include <limits.h>
5144
#else
5145
# include <assert.h>
5146
#endif
5147
		     Syntax error
5148
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5149
if { (ac_try="$ac_cpp conftest.$ac_ext"
5150
case "(($ac_try" in
5151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152
  *) ac_try_echo=$ac_try;;
5153
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5154
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5156
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5157
  ac_status=$?
5158
  grep -v '^ *+' conftest.er1 >conftest.err
5159
  rm -f conftest.er1
5160
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5161
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5162
  (exit $ac_status); } >/dev/null && {
5163
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5164
	 test ! -s conftest.err
5165
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5166
  :
5167
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5168
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5169
sed 's/^/| /' conftest.$ac_ext >&5
5170
5171
  # Broken: fails on valid input.
5172
continue
5173
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5174
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5175
rm -f conftest.err conftest.$ac_ext
5176
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5177
  # OK, works on sane cases.  Now check whether nonexistent headers
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5178
  # can be detected and how.
5179
  cat >conftest.$ac_ext <<_ACEOF
5180
/* confdefs.h.  */
5181
_ACEOF
5182
cat confdefs.h >>conftest.$ac_ext
5183
cat >>conftest.$ac_ext <<_ACEOF
5184
/* end confdefs.h.  */
5185
#include <ac_nonexistent.h>
5186
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5187
if { (ac_try="$ac_cpp conftest.$ac_ext"
5188
case "(($ac_try" in
5189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190
  *) ac_try_echo=$ac_try;;
5191
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5193
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5194
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5195
  ac_status=$?
5196
  grep -v '^ *+' conftest.er1 >conftest.err
5197
  rm -f conftest.er1
5198
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5199
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5200
  (exit $ac_status); } >/dev/null && {
5201
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5202
	 test ! -s conftest.err
5203
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5204
  # Broken: success on invalid input.
5205
continue
5206
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5207
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5208
sed 's/^/| /' conftest.$ac_ext >&5
5209
5210
  # Passes both tests.
5211
ac_preproc_ok=:
5212
break
5213
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5214
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5215
rm -f conftest.err conftest.$ac_ext
5216
5217
done
5218
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219
rm -f conftest.err conftest.$ac_ext
5220
if $ac_preproc_ok; then
5221
  :
5222
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5223
  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5224
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5225
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5226
See \`config.log' for more details." >&2;}
5227
   { (exit 1); exit 1; }; }
5228
fi
5229
5230
ac_ext=c
5231
ac_cpp='$CPP $CPPFLAGS'
5232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5237
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5238
$as_echo_n "checking for ANSI C header files... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5239
if test "${ac_cv_header_stdc+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5240
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5241
else
5242
  cat >conftest.$ac_ext <<_ACEOF
5243
/* confdefs.h.  */
5244
_ACEOF
5245
cat confdefs.h >>conftest.$ac_ext
5246
cat >>conftest.$ac_ext <<_ACEOF
5247
/* end confdefs.h.  */
5248
#include <stdlib.h>
5249
#include <stdarg.h>
5250
#include <string.h>
5251
#include <float.h>
5252
5253
int
5254
main ()
5255
{
5256
5257
  ;
5258
  return 0;
5259
}
5260
_ACEOF
5261
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5262
if { (ac_try="$ac_compile"
5263
case "(($ac_try" in
5264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265
  *) ac_try_echo=$ac_try;;
5266
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5267
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5268
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5269
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5270
  ac_status=$?
5271
  grep -v '^ *+' conftest.er1 >conftest.err
5272
  rm -f conftest.er1
5273
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5274
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5275
  (exit $ac_status); } && {
5276
	 test -z "$ac_c_werror_flag" ||
5277
	 test ! -s conftest.err
5278
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5279
  ac_cv_header_stdc=yes
5280
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5281
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5282
sed 's/^/| /' conftest.$ac_ext >&5
5283
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5284
	ac_cv_header_stdc=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5285
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5286
5287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5288
5289
if test $ac_cv_header_stdc = yes; then
5290
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5291
  cat >conftest.$ac_ext <<_ACEOF
5292
/* confdefs.h.  */
5293
_ACEOF
5294
cat confdefs.h >>conftest.$ac_ext
5295
cat >>conftest.$ac_ext <<_ACEOF
5296
/* end confdefs.h.  */
5297
#include <string.h>
5298
5299
_ACEOF
5300
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301
  $EGREP "memchr" >/dev/null 2>&1; then
5302
  :
5303
else
5304
  ac_cv_header_stdc=no
5305
fi
5306
rm -f conftest*
5307
5308
fi
5309
5310
if test $ac_cv_header_stdc = yes; then
5311
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5312
  cat >conftest.$ac_ext <<_ACEOF
5313
/* confdefs.h.  */
5314
_ACEOF
5315
cat confdefs.h >>conftest.$ac_ext
5316
cat >>conftest.$ac_ext <<_ACEOF
5317
/* end confdefs.h.  */
5318
#include <stdlib.h>
5319
5320
_ACEOF
5321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5322
  $EGREP "free" >/dev/null 2>&1; then
5323
  :
5324
else
5325
  ac_cv_header_stdc=no
5326
fi
5327
rm -f conftest*
5328
5329
fi
5330
5331
if test $ac_cv_header_stdc = yes; then
5332
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5333
  if test "$cross_compiling" = yes; then
5334
  :
5335
else
5336
  cat >conftest.$ac_ext <<_ACEOF
5337
/* confdefs.h.  */
5338
_ACEOF
5339
cat confdefs.h >>conftest.$ac_ext
5340
cat >>conftest.$ac_ext <<_ACEOF
5341
/* end confdefs.h.  */
5342
#include <ctype.h>
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5343
#include <stdlib.h>
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5344
#if ((' ' & 0x0FF) == 0x020)
5345
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347
#else
5348
# define ISLOWER(c) \
5349
		   (('a' <= (c) && (c) <= 'i') \
5350
		     || ('j' <= (c) && (c) <= 'r') \
5351
		     || ('s' <= (c) && (c) <= 'z'))
5352
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353
#endif
5354
5355
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356
int
5357
main ()
5358
{
5359
  int i;
5360
  for (i = 0; i < 256; i++)
5361
    if (XOR (islower (i), ISLOWER (i))
5362
	|| toupper (i) != TOUPPER (i))
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5363
      return 2;
5364
  return 0;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5365
}
5366
_ACEOF
5367
rm -f conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5368
if { (ac_try="$ac_link"
5369
case "(($ac_try" in
5370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371
  *) ac_try_echo=$ac_try;;
5372
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5374
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5375
  (eval "$ac_link") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5376
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5377
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5378
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5379
  { (case "(($ac_try" in
5380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381
  *) ac_try_echo=$ac_try;;
5382
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5383
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5385
  (eval "$ac_try") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5386
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5387
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5388
  (exit $ac_status); }; }; then
5389
  :
5390
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5391
  $as_echo "$as_me: program exited with status $ac_status" >&5
5392
$as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5393
sed 's/^/| /' conftest.$ac_ext >&5
5394
5395
( exit $ac_status )
5396
ac_cv_header_stdc=no
5397
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5398
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5399
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5400
fi
5401
5402
5403
fi
5404
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5405
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5406
$as_echo "$ac_cv_header_stdc" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5407
if test $ac_cv_header_stdc = yes; then
5408
5409
cat >>confdefs.h <<\_ACEOF
5410
#define STDC_HEADERS 1
5411
_ACEOF
5412
5413
fi
5414
5415
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5426
		  inttypes.h stdint.h unistd.h
5427
do
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5428
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5430
$as_echo_n "checking for $ac_header... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5431
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5432
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5433
else
5434
  cat >conftest.$ac_ext <<_ACEOF
5435
/* confdefs.h.  */
5436
_ACEOF
5437
cat confdefs.h >>conftest.$ac_ext
5438
cat >>conftest.$ac_ext <<_ACEOF
5439
/* end confdefs.h.  */
5440
$ac_includes_default
5441
5442
#include <$ac_header>
5443
_ACEOF
5444
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5445
if { (ac_try="$ac_compile"
5446
case "(($ac_try" in
5447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448
  *) ac_try_echo=$ac_try;;
5449
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5451
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5452
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5453
  ac_status=$?
5454
  grep -v '^ *+' conftest.er1 >conftest.err
5455
  rm -f conftest.er1
5456
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5457
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5458
  (exit $ac_status); } && {
5459
	 test -z "$ac_c_werror_flag" ||
5460
	 test ! -s conftest.err
5461
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5462
  eval "$as_ac_Header=yes"
5463
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5464
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5465
sed 's/^/| /' conftest.$ac_ext >&5
5466
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5467
	eval "$as_ac_Header=no"
5468
fi
5469
5470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5472
ac_res=`eval 'as_val=${'$as_ac_Header'}
5473
		 $as_echo "$as_val"'`
5474
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5475
$as_echo "$ac_res" >&6; }
5476
if test `eval 'as_val=${'$as_ac_Header'}
5477
		 $as_echo "$as_val"'` = yes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5478
  cat >>confdefs.h <<_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5479
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5480
_ACEOF
5481
5482
fi
5483
5484
done
5485
5486
5487
5488
for ac_header in dlfcn.h
5489
do
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5490
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493
$as_echo_n "checking for $ac_header... " >&6; }
5494
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5496
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5497
ac_res=`eval 'as_val=${'$as_ac_Header'}
5498
		 $as_echo "$as_val"'`
5499
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5500
$as_echo "$ac_res" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5501
else
5502
  # Is the header compilable?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5503
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504
$as_echo_n "checking $ac_header usability... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5505
cat >conftest.$ac_ext <<_ACEOF
5506
/* confdefs.h.  */
5507
_ACEOF
5508
cat confdefs.h >>conftest.$ac_ext
5509
cat >>conftest.$ac_ext <<_ACEOF
5510
/* end confdefs.h.  */
5511
$ac_includes_default
5512
#include <$ac_header>
5513
_ACEOF
5514
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5515
if { (ac_try="$ac_compile"
5516
case "(($ac_try" in
5517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518
  *) ac_try_echo=$ac_try;;
5519
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5521
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5522
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5523
  ac_status=$?
5524
  grep -v '^ *+' conftest.er1 >conftest.err
5525
  rm -f conftest.er1
5526
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5528
  (exit $ac_status); } && {
5529
	 test -z "$ac_c_werror_flag" ||
5530
	 test ! -s conftest.err
5531
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5532
  ac_header_compiler=yes
5533
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5534
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5535
sed 's/^/| /' conftest.$ac_ext >&5
5536
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5537
	ac_header_compiler=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5538
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5539
5540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5541
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5542
$as_echo "$ac_header_compiler" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5543
5544
# Is the header present?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5545
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5546
$as_echo_n "checking $ac_header presence... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5547
cat >conftest.$ac_ext <<_ACEOF
5548
/* confdefs.h.  */
5549
_ACEOF
5550
cat confdefs.h >>conftest.$ac_ext
5551
cat >>conftest.$ac_ext <<_ACEOF
5552
/* end confdefs.h.  */
5553
#include <$ac_header>
5554
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5555
if { (ac_try="$ac_cpp conftest.$ac_ext"
5556
case "(($ac_try" in
5557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558
  *) ac_try_echo=$ac_try;;
5559
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5562
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5563
  ac_status=$?
5564
  grep -v '^ *+' conftest.er1 >conftest.err
5565
  rm -f conftest.er1
5566
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5567
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5568
  (exit $ac_status); } >/dev/null && {
5569
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570
	 test ! -s conftest.err
5571
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5572
  ac_header_preproc=yes
5573
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5574
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5575
sed 's/^/| /' conftest.$ac_ext >&5
5576
5577
  ac_header_preproc=no
5578
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5579
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5580
rm -f conftest.err conftest.$ac_ext
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5581
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5582
$as_echo "$ac_header_preproc" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5583
5584
# So?  What about this header?
5585
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5586
  yes:no: )
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5587
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5588
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5589
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5590
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5591
    ac_header_preproc=yes
5592
    ;;
5593
  no:yes:* )
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5594
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5595
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5596
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5597
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5598
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5599
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5600
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5601
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5602
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5603
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5604
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5605
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5606
    ( cat <<\_ASBOX
5607
## --------------------------------------------------------------------------------- ##
5608
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=atk&component=gail ##
5609
## --------------------------------------------------------------------------------- ##
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5610
_ASBOX
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5611
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5612
    ;;
5613
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5614
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5615
$as_echo_n "checking for $ac_header... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5616
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5617
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5618
else
5619
  eval "$as_ac_Header=\$ac_header_preproc"
5620
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5621
ac_res=`eval 'as_val=${'$as_ac_Header'}
5622
		 $as_echo "$as_val"'`
5623
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5624
$as_echo "$ac_res" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5625
5626
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5627
if test `eval 'as_val=${'$as_ac_Header'}
5628
		 $as_echo "$as_val"'` = yes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5629
  cat >>confdefs.h <<_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5630
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5631
_ACEOF
5632
5633
fi
5634
5635
done
5636
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5637
ac_ext=cpp
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5638
ac_cpp='$CXXCPP $CPPFLAGS'
5639
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5642
if test -z "$CXX"; then
5643
  if test -n "$CCC"; then
5644
    CXX=$CCC
5645
  else
5646
    if test -n "$ac_tool_prefix"; then
5647
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5648
  do
5649
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5651
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5652
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5653
if test "${ac_cv_prog_CXX+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5654
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5655
else
5656
  if test -n "$CXX"; then
5657
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5658
else
5659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660
for as_dir in $PATH
5661
do
5662
  IFS=$as_save_IFS
5663
  test -z "$as_dir" && as_dir=.
5664
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5666
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5667
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5668
    break 2
5669
  fi
5670
done
5671
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5672
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5673
5674
fi
5675
fi
5676
CXX=$ac_cv_prog_CXX
5677
if test -n "$CXX"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5678
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5679
$as_echo "$CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5680
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5681
  { $as_echo "$as_me:$LINENO: result: no" >&5
5682
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5683
fi
5684
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5685
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5686
    test -n "$CXX" && break
5687
  done
5688
fi
5689
if test -z "$CXX"; then
5690
  ac_ct_CXX=$CXX
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5691
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5692
do
5693
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5694
set dummy $ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5695
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5696
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5697
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5698
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5699
else
5700
  if test -n "$ac_ct_CXX"; then
5701
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5702
else
5703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704
for as_dir in $PATH
5705
do
5706
  IFS=$as_save_IFS
5707
  test -z "$as_dir" && as_dir=.
5708
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5709
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5710
    ac_cv_prog_ac_ct_CXX="$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5711
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5712
    break 2
5713
  fi
5714
done
5715
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5716
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5717
5718
fi
5719
fi
5720
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5721
if test -n "$ac_ct_CXX"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5722
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5723
$as_echo "$ac_ct_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5724
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5725
  { $as_echo "$as_me:$LINENO: result: no" >&5
5726
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5727
fi
5728
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5729
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5730
  test -n "$ac_ct_CXX" && break
5731
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5732
5733
  if test "x$ac_ct_CXX" = x; then
5734
    CXX="g++"
5735
  else
5736
    case $cross_compiling:$ac_tool_warned in
5737
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5738
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5739
whose name does not start with the host triplet.  If you think this
5740
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5741
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5742
whose name does not start with the host triplet.  If you think this
5743
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5744
ac_tool_warned=yes ;;
5745
esac
5746
    CXX=$ac_ct_CXX
5747
  fi
5748
fi
5749
5750
  fi
5751
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5752
# Provide some information about the compiler.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5753
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5754
set X $ac_compile
5755
ac_compiler=$2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5756
{ (ac_try="$ac_compiler --version >&5"
5757
case "(($ac_try" in
5758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759
  *) ac_try_echo=$ac_try;;
5760
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5761
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5762
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5763
  (eval "$ac_compiler --version >&5") 2>&5
5764
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5765
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5766
  (exit $ac_status); }
5767
{ (ac_try="$ac_compiler -v >&5"
5768
case "(($ac_try" in
5769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770
  *) ac_try_echo=$ac_try;;
5771
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5773
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5774
  (eval "$ac_compiler -v >&5") 2>&5
5775
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5776
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5777
  (exit $ac_status); }
5778
{ (ac_try="$ac_compiler -V >&5"
5779
case "(($ac_try" in
5780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781
  *) ac_try_echo=$ac_try;;
5782
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5783
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5784
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5785
  (eval "$ac_compiler -V >&5") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5786
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5787
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5788
  (exit $ac_status); }
5789
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5790
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5791
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5792
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5793
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5794
else
5795
  cat >conftest.$ac_ext <<_ACEOF
5796
/* confdefs.h.  */
5797
_ACEOF
5798
cat confdefs.h >>conftest.$ac_ext
5799
cat >>conftest.$ac_ext <<_ACEOF
5800
/* end confdefs.h.  */
5801
5802
int
5803
main ()
5804
{
5805
#ifndef __GNUC__
5806
       choke me
5807
#endif
5808
5809
  ;
5810
  return 0;
5811
}
5812
_ACEOF
5813
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5814
if { (ac_try="$ac_compile"
5815
case "(($ac_try" in
5816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817
  *) ac_try_echo=$ac_try;;
5818
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5819
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5820
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5821
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5822
  ac_status=$?
5823
  grep -v '^ *+' conftest.er1 >conftest.err
5824
  rm -f conftest.er1
5825
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5826
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5827
  (exit $ac_status); } && {
5828
	 test -z "$ac_cxx_werror_flag" ||
5829
	 test ! -s conftest.err
5830
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5831
  ac_compiler_gnu=yes
5832
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5833
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5834
sed 's/^/| /' conftest.$ac_ext >&5
5835
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5836
	ac_compiler_gnu=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5837
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5838
5839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5840
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5841
5842
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5843
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5844
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5845
if test $ac_compiler_gnu = yes; then
5846
  GXX=yes
5847
else
5848
  GXX=
5849
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5850
ac_test_CXXFLAGS=${CXXFLAGS+set}
5851
ac_save_CXXFLAGS=$CXXFLAGS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5852
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5853
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5854
if test "${ac_cv_prog_cxx_g+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5855
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5856
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5857
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5858
   ac_cxx_werror_flag=yes
5859
   ac_cv_prog_cxx_g=no
5860
   CXXFLAGS="-g"
5861
   cat >conftest.$ac_ext <<_ACEOF
5862
/* confdefs.h.  */
5863
_ACEOF
5864
cat confdefs.h >>conftest.$ac_ext
5865
cat >>conftest.$ac_ext <<_ACEOF
5866
/* end confdefs.h.  */
5867
5868
int
5869
main ()
5870
{
5871
5872
  ;
5873
  return 0;
5874
}
5875
_ACEOF
5876
rm -f conftest.$ac_objext
5877
if { (ac_try="$ac_compile"
5878
case "(($ac_try" in
5879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880
  *) ac_try_echo=$ac_try;;
5881
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5882
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5883
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5884
  (eval "$ac_compile") 2>conftest.er1
5885
  ac_status=$?
5886
  grep -v '^ *+' conftest.er1 >conftest.err
5887
  rm -f conftest.er1
5888
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5889
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5890
  (exit $ac_status); } && {
5891
	 test -z "$ac_cxx_werror_flag" ||
5892
	 test ! -s conftest.err
5893
       } && test -s conftest.$ac_objext; then
5894
  ac_cv_prog_cxx_g=yes
5895
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5896
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5897
sed 's/^/| /' conftest.$ac_ext >&5
5898
5899
	CXXFLAGS=""
5900
      cat >conftest.$ac_ext <<_ACEOF
5901
/* confdefs.h.  */
5902
_ACEOF
5903
cat confdefs.h >>conftest.$ac_ext
5904
cat >>conftest.$ac_ext <<_ACEOF
5905
/* end confdefs.h.  */
5906
5907
int
5908
main ()
5909
{
5910
5911
  ;
5912
  return 0;
5913
}
5914
_ACEOF
5915
rm -f conftest.$ac_objext
5916
if { (ac_try="$ac_compile"
5917
case "(($ac_try" in
5918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919
  *) ac_try_echo=$ac_try;;
5920
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5921
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5923
  (eval "$ac_compile") 2>conftest.er1
5924
  ac_status=$?
5925
  grep -v '^ *+' conftest.er1 >conftest.err
5926
  rm -f conftest.er1
5927
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5929
  (exit $ac_status); } && {
5930
	 test -z "$ac_cxx_werror_flag" ||
5931
	 test ! -s conftest.err
5932
       } && test -s conftest.$ac_objext; then
5933
  :
5934
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5935
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5936
sed 's/^/| /' conftest.$ac_ext >&5
5937
5938
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5939
	 CXXFLAGS="-g"
5940
	 cat >conftest.$ac_ext <<_ACEOF
5941
/* confdefs.h.  */
5942
_ACEOF
5943
cat confdefs.h >>conftest.$ac_ext
5944
cat >>conftest.$ac_ext <<_ACEOF
5945
/* end confdefs.h.  */
5946
5947
int
5948
main ()
5949
{
5950
5951
  ;
5952
  return 0;
5953
}
5954
_ACEOF
5955
rm -f conftest.$ac_objext
5956
if { (ac_try="$ac_compile"
5957
case "(($ac_try" in
5958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959
  *) ac_try_echo=$ac_try;;
5960
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5963
  (eval "$ac_compile") 2>conftest.er1
5964
  ac_status=$?
5965
  grep -v '^ *+' conftest.er1 >conftest.err
5966
  rm -f conftest.er1
5967
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5969
  (exit $ac_status); } && {
5970
	 test -z "$ac_cxx_werror_flag" ||
5971
	 test ! -s conftest.err
5972
       } && test -s conftest.$ac_objext; then
5973
  ac_cv_prog_cxx_g=yes
5974
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5975
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
5976
sed 's/^/| /' conftest.$ac_ext >&5
5977
5978
5979
fi
5980
5981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982
fi
5983
5984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985
fi
5986
5987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5989
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
5990
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5991
$as_echo "$ac_cv_prog_cxx_g" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
5992
if test "$ac_test_CXXFLAGS" = set; then
5993
  CXXFLAGS=$ac_save_CXXFLAGS
5994
elif test $ac_cv_prog_cxx_g = yes; then
5995
  if test "$GXX" = yes; then
5996
    CXXFLAGS="-g -O2"
5997
  else
5998
    CXXFLAGS="-g"
5999
  fi
6000
else
6001
  if test "$GXX" = yes; then
6002
    CXXFLAGS="-O2"
6003
  else
6004
    CXXFLAGS=
6005
  fi
6006
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6007
ac_ext=cpp
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6008
ac_cpp='$CXXCPP $CPPFLAGS'
6009
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6012
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6013
depcc="$CXX"  am_compiler_list=
6014
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6015
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6016
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6017
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6018
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6019
else
6020
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6021
  # We make a subdir and do the tests there.  Otherwise we can end up
6022
  # making bogus files that we don't know about and never remove.  For
6023
  # instance it was reported that on HP-UX the gcc test will end up
6024
  # making a dummy file named `D' -- because `-MD' means `put the output
6025
  # in D'.
6026
  mkdir conftest.dir
6027
  # Copy depcomp to subdir because otherwise we won't find it if we're
6028
  # using a relative directory.
6029
  cp "$am_depcomp" conftest.dir
6030
  cd conftest.dir
6031
  # We will build objects and dependencies in a subdirectory because
6032
  # it helps to detect inapplicable dependency modes.  For instance
6033
  # both Tru64's cc and ICC support -MD to output dependencies as a
6034
  # side effect of compilation, but ICC will put the dependencies in
6035
  # the current directory while Tru64 will put them in the object
6036
  # directory.
6037
  mkdir sub
6038
6039
  am_cv_CXX_dependencies_compiler_type=none
6040
  if test "$am_compiler_list" = ""; then
6041
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6042
  fi
6043
  for depmode in $am_compiler_list; do
6044
    # Setup a source with many dependencies, because some compilers
6045
    # like to wrap large dependency lists on column 80 (with \), and
6046
    # we should not choose a depcomp mode which is confused by this.
6047
    #
6048
    # We need to recreate these files for each test, as the compiler may
6049
    # overwrite some of them when testing with obscure command lines.
6050
    # This happens at least with the AIX C compiler.
6051
    : > sub/conftest.c
6052
    for i in 1 2 3 4 5 6; do
6053
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6054
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6055
      # Solaris 8's {/usr,}/bin/sh.
6056
      touch sub/conftst$i.h
6057
    done
6058
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6059
6060
    case $depmode in
6061
    nosideeffect)
6062
      # after this tag, mechanisms are not by side-effect, so they'll
6063
      # only be used when explicitly requested
6064
      if test "x$enable_dependency_tracking" = xyes; then
6065
	continue
6066
      else
6067
	break
6068
      fi
6069
      ;;
6070
    none) break ;;
6071
    esac
6072
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6073
    # mode.  It turns out that the SunPro C++ compiler does not properly
6074
    # handle `-M -o', and we need to detect this.
6075
    if depmode=$depmode \
6076
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6077
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6078
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6079
         >/dev/null 2>conftest.err &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6080
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6081
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6082
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6083
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6084
      # icc doesn't choke on unknown options, it will just issue warnings
6085
      # or remarks (even with -Werror).  So we grep stderr for any message
6086
      # that says an option was ignored or not supported.
6087
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6088
      #   icc: Command line warning: ignoring option '-M'; no argument required
6089
      # The diagnosis changed in icc 8.0:
6090
      #   icc: Command line remark: option '-MP' not supported
6091
      if (grep 'ignoring option' conftest.err ||
6092
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6093
        am_cv_CXX_dependencies_compiler_type=$depmode
6094
        break
6095
      fi
6096
    fi
6097
  done
6098
6099
  cd ..
6100
  rm -rf conftest.dir
6101
else
6102
  am_cv_CXX_dependencies_compiler_type=none
6103
fi
6104
6105
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6106
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6107
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6108
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6109
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6110
 if
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6111
  test "x$enable_dependency_tracking" != xno \
6112
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6113
  am__fastdepCXX_TRUE=
6114
  am__fastdepCXX_FALSE='#'
6115
else
6116
  am__fastdepCXX_TRUE='#'
6117
  am__fastdepCXX_FALSE=
6118
fi
6119
6120
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6121
6122
6123
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6124
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6125
    (test "X$CXX" != "Xg++"))) ; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6126
  ac_ext=cpp
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6127
ac_cpp='$CXXCPP $CPPFLAGS'
6128
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6131
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6133
if test -z "$CXXCPP"; then
6134
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6135
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6136
else
6137
      # Double quotes because CXXCPP needs to be expanded
6138
    for CXXCPP in "$CXX -E" "/lib/cpp"
6139
    do
6140
      ac_preproc_ok=false
6141
for ac_cxx_preproc_warn_flag in '' yes
6142
do
6143
  # Use a header file that comes with gcc, so configuring glibc
6144
  # with a fresh cross-compiler works.
6145
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146
  # <limits.h> exists even on freestanding compilers.
6147
  # On the NeXT, cc -E runs the code through the compiler's parser,
6148
  # not just through cpp. "Syntax error" is here to catch this case.
6149
  cat >conftest.$ac_ext <<_ACEOF
6150
/* confdefs.h.  */
6151
_ACEOF
6152
cat confdefs.h >>conftest.$ac_ext
6153
cat >>conftest.$ac_ext <<_ACEOF
6154
/* end confdefs.h.  */
6155
#ifdef __STDC__
6156
# include <limits.h>
6157
#else
6158
# include <assert.h>
6159
#endif
6160
		     Syntax error
6161
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6162
if { (ac_try="$ac_cpp conftest.$ac_ext"
6163
case "(($ac_try" in
6164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165
  *) ac_try_echo=$ac_try;;
6166
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6169
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6170
  ac_status=$?
6171
  grep -v '^ *+' conftest.er1 >conftest.err
6172
  rm -f conftest.er1
6173
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6174
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6175
  (exit $ac_status); } >/dev/null && {
6176
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6177
	 test ! -s conftest.err
6178
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6179
  :
6180
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6181
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6182
sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
  # Broken: fails on valid input.
6185
continue
6186
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6187
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6188
rm -f conftest.err conftest.$ac_ext
6189
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6190
  # OK, works on sane cases.  Now check whether nonexistent headers
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6191
  # can be detected and how.
6192
  cat >conftest.$ac_ext <<_ACEOF
6193
/* confdefs.h.  */
6194
_ACEOF
6195
cat confdefs.h >>conftest.$ac_ext
6196
cat >>conftest.$ac_ext <<_ACEOF
6197
/* end confdefs.h.  */
6198
#include <ac_nonexistent.h>
6199
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6200
if { (ac_try="$ac_cpp conftest.$ac_ext"
6201
case "(($ac_try" in
6202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203
  *) ac_try_echo=$ac_try;;
6204
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6207
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6208
  ac_status=$?
6209
  grep -v '^ *+' conftest.er1 >conftest.err
6210
  rm -f conftest.er1
6211
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6212
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6213
  (exit $ac_status); } >/dev/null && {
6214
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6215
	 test ! -s conftest.err
6216
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6217
  # Broken: success on invalid input.
6218
continue
6219
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6220
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6221
sed 's/^/| /' conftest.$ac_ext >&5
6222
6223
  # Passes both tests.
6224
ac_preproc_ok=:
6225
break
6226
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6227
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6228
rm -f conftest.err conftest.$ac_ext
6229
6230
done
6231
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232
rm -f conftest.err conftest.$ac_ext
6233
if $ac_preproc_ok; then
6234
  break
6235
fi
6236
6237
    done
6238
    ac_cv_prog_CXXCPP=$CXXCPP
6239
6240
fi
6241
  CXXCPP=$ac_cv_prog_CXXCPP
6242
else
6243
  ac_cv_prog_CXXCPP=$CXXCPP
6244
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6245
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6246
$as_echo "$CXXCPP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6247
ac_preproc_ok=false
6248
for ac_cxx_preproc_warn_flag in '' yes
6249
do
6250
  # Use a header file that comes with gcc, so configuring glibc
6251
  # with a fresh cross-compiler works.
6252
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253
  # <limits.h> exists even on freestanding compilers.
6254
  # On the NeXT, cc -E runs the code through the compiler's parser,
6255
  # not just through cpp. "Syntax error" is here to catch this case.
6256
  cat >conftest.$ac_ext <<_ACEOF
6257
/* confdefs.h.  */
6258
_ACEOF
6259
cat confdefs.h >>conftest.$ac_ext
6260
cat >>conftest.$ac_ext <<_ACEOF
6261
/* end confdefs.h.  */
6262
#ifdef __STDC__
6263
# include <limits.h>
6264
#else
6265
# include <assert.h>
6266
#endif
6267
		     Syntax error
6268
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6269
if { (ac_try="$ac_cpp conftest.$ac_ext"
6270
case "(($ac_try" in
6271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272
  *) ac_try_echo=$ac_try;;
6273
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6275
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6276
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6277
  ac_status=$?
6278
  grep -v '^ *+' conftest.er1 >conftest.err
6279
  rm -f conftest.er1
6280
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6281
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6282
  (exit $ac_status); } >/dev/null && {
6283
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6284
	 test ! -s conftest.err
6285
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6286
  :
6287
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6288
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6289
sed 's/^/| /' conftest.$ac_ext >&5
6290
6291
  # Broken: fails on valid input.
6292
continue
6293
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6294
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6295
rm -f conftest.err conftest.$ac_ext
6296
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6297
  # OK, works on sane cases.  Now check whether nonexistent headers
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6298
  # can be detected and how.
6299
  cat >conftest.$ac_ext <<_ACEOF
6300
/* confdefs.h.  */
6301
_ACEOF
6302
cat confdefs.h >>conftest.$ac_ext
6303
cat >>conftest.$ac_ext <<_ACEOF
6304
/* end confdefs.h.  */
6305
#include <ac_nonexistent.h>
6306
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6307
if { (ac_try="$ac_cpp conftest.$ac_ext"
6308
case "(($ac_try" in
6309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310
  *) ac_try_echo=$ac_try;;
6311
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6314
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6315
  ac_status=$?
6316
  grep -v '^ *+' conftest.er1 >conftest.err
6317
  rm -f conftest.er1
6318
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6319
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6320
  (exit $ac_status); } >/dev/null && {
6321
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6322
	 test ! -s conftest.err
6323
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6324
  # Broken: success on invalid input.
6325
continue
6326
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6327
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6328
sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
  # Passes both tests.
6331
ac_preproc_ok=:
6332
break
6333
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6334
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6335
rm -f conftest.err conftest.$ac_ext
6336
6337
done
6338
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6339
rm -f conftest.err conftest.$ac_ext
6340
if $ac_preproc_ok; then
6341
  :
6342
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6343
  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6344
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6345
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6346
See \`config.log' for more details." >&2;}
6347
   { (exit 1); exit 1; }; }
6348
fi
6349
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6350
ac_ext=cpp
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6351
ac_cpp='$CXXCPP $CPPFLAGS'
6352
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6355
6356
fi
6357
6358
6359
ac_ext=f
6360
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6361
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6363
if test -n "$ac_tool_prefix"; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6364
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6365
  do
6366
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6367
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6368
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6369
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6370
if test "${ac_cv_prog_F77+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6371
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6372
else
6373
  if test -n "$F77"; then
6374
  ac_cv_prog_F77="$F77" # Let the user override the test.
6375
else
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377
for as_dir in $PATH
6378
do
6379
  IFS=$as_save_IFS
6380
  test -z "$as_dir" && as_dir=.
6381
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6383
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6384
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6385
    break 2
6386
  fi
6387
done
6388
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6389
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6390
6391
fi
6392
fi
6393
F77=$ac_cv_prog_F77
6394
if test -n "$F77"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6395
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6396
$as_echo "$F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6397
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6398
  { $as_echo "$as_me:$LINENO: result: no" >&5
6399
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6400
fi
6401
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6402
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6403
    test -n "$F77" && break
6404
  done
6405
fi
6406
if test -z "$F77"; then
6407
  ac_ct_F77=$F77
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6408
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6409
do
6410
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6411
set dummy $ac_prog; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6412
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6413
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6414
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6415
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6416
else
6417
  if test -n "$ac_ct_F77"; then
6418
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6419
else
6420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421
for as_dir in $PATH
6422
do
6423
  IFS=$as_save_IFS
6424
  test -z "$as_dir" && as_dir=.
6425
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6426
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6427
    ac_cv_prog_ac_ct_F77="$ac_prog"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6428
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6429
    break 2
6430
  fi
6431
done
6432
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6433
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6434
6435
fi
6436
fi
6437
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6438
if test -n "$ac_ct_F77"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6439
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6440
$as_echo "$ac_ct_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6441
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6442
  { $as_echo "$as_me:$LINENO: result: no" >&5
6443
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6444
fi
6445
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6446
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6447
  test -n "$ac_ct_F77" && break
6448
done
6449
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6450
  if test "x$ac_ct_F77" = x; then
6451
    F77=""
6452
  else
6453
    case $cross_compiling:$ac_tool_warned in
6454
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6455
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6456
whose name does not start with the host triplet.  If you think this
6457
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6458
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6459
whose name does not start with the host triplet.  If you think this
6460
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6461
ac_tool_warned=yes ;;
6462
esac
6463
    F77=$ac_ct_F77
6464
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6465
fi
6466
6467
6468
# Provide some information about the compiler.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6469
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6470
set X $ac_compile
6471
ac_compiler=$2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6472
{ (ac_try="$ac_compiler --version >&5"
6473
case "(($ac_try" in
6474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475
  *) ac_try_echo=$ac_try;;
6476
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6477
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6479
  (eval "$ac_compiler --version >&5") 2>&5
6480
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6481
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6482
  (exit $ac_status); }
6483
{ (ac_try="$ac_compiler -v >&5"
6484
case "(($ac_try" in
6485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486
  *) ac_try_echo=$ac_try;;
6487
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6488
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6490
  (eval "$ac_compiler -v >&5") 2>&5
6491
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6492
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6493
  (exit $ac_status); }
6494
{ (ac_try="$ac_compiler -V >&5"
6495
case "(($ac_try" in
6496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497
  *) ac_try_echo=$ac_try;;
6498
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6500
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6501
  (eval "$ac_compiler -V >&5") 2>&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6502
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6503
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6504
  (exit $ac_status); }
6505
rm -f a.out
6506
6507
# If we don't use `.F' as extension, the preprocessor is not run on the
6508
# input file.  (Note that this only needs to work for GNU compilers.)
6509
ac_save_ext=$ac_ext
6510
ac_ext=F
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6511
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6512
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6513
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6514
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6515
else
6516
  cat >conftest.$ac_ext <<_ACEOF
6517
      program main
6518
#ifndef __GNUC__
6519
       choke me
6520
#endif
6521
6522
      end
6523
_ACEOF
6524
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6525
if { (ac_try="$ac_compile"
6526
case "(($ac_try" in
6527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528
  *) ac_try_echo=$ac_try;;
6529
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6531
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6532
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6533
  ac_status=$?
6534
  grep -v '^ *+' conftest.er1 >conftest.err
6535
  rm -f conftest.er1
6536
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6537
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6538
  (exit $ac_status); } && {
6539
	 test -z "$ac_f77_werror_flag" ||
6540
	 test ! -s conftest.err
6541
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6542
  ac_compiler_gnu=yes
6543
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6544
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6545
sed 's/^/| /' conftest.$ac_ext >&5
6546
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6547
	ac_compiler_gnu=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6548
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6549
6550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6551
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6552
6553
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6554
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6555
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6556
ac_ext=$ac_save_ext
6557
ac_test_FFLAGS=${FFLAGS+set}
6558
ac_save_FFLAGS=$FFLAGS
6559
FFLAGS=
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6560
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6561
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6562
if test "${ac_cv_prog_f77_g+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6563
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6564
else
6565
  FFLAGS=-g
6566
cat >conftest.$ac_ext <<_ACEOF
6567
      program main
6568
6569
      end
6570
_ACEOF
6571
rm -f conftest.$ac_objext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6572
if { (ac_try="$ac_compile"
6573
case "(($ac_try" in
6574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575
  *) ac_try_echo=$ac_try;;
6576
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6579
  (eval "$ac_compile") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6580
  ac_status=$?
6581
  grep -v '^ *+' conftest.er1 >conftest.err
6582
  rm -f conftest.er1
6583
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6585
  (exit $ac_status); } && {
6586
	 test -z "$ac_f77_werror_flag" ||
6587
	 test ! -s conftest.err
6588
       } && test -s conftest.$ac_objext; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6589
  ac_cv_prog_f77_g=yes
6590
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6591
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6592
sed 's/^/| /' conftest.$ac_ext >&5
6593
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6594
	ac_cv_prog_f77_g=no
6595
fi
6596
6597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598
6599
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6601
$as_echo "$ac_cv_prog_f77_g" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6602
if test "$ac_test_FFLAGS" = set; then
6603
  FFLAGS=$ac_save_FFLAGS
6604
elif test $ac_cv_prog_f77_g = yes; then
6605
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6606
    FFLAGS="-g -O2"
6607
  else
6608
    FFLAGS="-g"
6609
  fi
6610
else
6611
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6612
    FFLAGS="-O2"
6613
  else
6614
    FFLAGS=
6615
  fi
6616
fi
6617
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6618
if test $ac_compiler_gnu = yes; then
6619
  G77=yes
6620
else
6621
  G77=
6622
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6623
ac_ext=c
6624
ac_cpp='$CPP $CPPFLAGS'
6625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628
6629
6630
6631
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6632
# find the maximum length of command line arguments
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6633
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6634
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6635
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6636
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6637
else
6638
    i=0
6639
  teststring="ABCD"
6640
6641
  case $build_os in
6642
  msdosdjgpp*)
6643
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6644
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6645
    # during glob expansion).  Even if it were fixed, the result of this
6646
    # check would be larger than it should be.
6647
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6648
    ;;
6649
6650
  gnu*)
6651
    # Under GNU Hurd, this test is not required because there is
6652
    # no limit to the length of command line arguments.
6653
    # Libtool will interpret -1 as no limit whatsoever
6654
    lt_cv_sys_max_cmd_len=-1;
6655
    ;;
6656
6657
  cygwin* | mingw*)
6658
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6659
    # about 5 minutes as the teststring grows exponentially.
6660
    # Worse, since 9x/ME are not pre-emptively multitasking,
6661
    # you end up with a "frozen" computer, even though with patience
6662
    # the test eventually succeeds (with a max line length of 256k).
6663
    # Instead, let's just punt: use the minimum linelength reported by
6664
    # all of the supported platforms: 8192 (on NT/2K/XP).
6665
    lt_cv_sys_max_cmd_len=8192;
6666
    ;;
6667
6668
  amigaos*)
6669
    # On AmigaOS with pdksh, this test takes hours, literally.
6670
    # So we just punt and use a minimum line length of 8192.
6671
    lt_cv_sys_max_cmd_len=8192;
6672
    ;;
6673
6674
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6675
    # This has been around since 386BSD, at least.  Likely further.
6676
    if test -x /sbin/sysctl; then
6677
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6678
    elif test -x /usr/sbin/sysctl; then
6679
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6680
    else
6681
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6682
    fi
6683
    # And add a safety zone
6684
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6685
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6686
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6687
6688
  interix*)
6689
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6690
    lt_cv_sys_max_cmd_len=196608
6691
    ;;
6692
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6693
  osf*)
6694
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6695
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6696
    # nice to cause kernel panics so lets avoid the loop below.
6697
    # First set a reasonable default.
6698
    lt_cv_sys_max_cmd_len=16384
6699
    #
6700
    if test -x /sbin/sysconfig; then
6701
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6702
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6703
      esac
6704
    fi
6705
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6706
  sco3.2v5*)
6707
    lt_cv_sys_max_cmd_len=102400
6708
    ;;
6709
  sysv5* | sco5v6* | sysv4.2uw2*)
6710
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6711
    if test -n "$kargmax"; then
6712
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6713
    else
6714
      lt_cv_sys_max_cmd_len=32768
6715
    fi
6716
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6717
  *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
6718
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6719
    if test -n "$lt_cv_sys_max_cmd_len"; then
6720
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6721
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6722
    else
6723
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6724
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6725
	       = "XX$teststring") >/dev/null 2>&1 &&
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
6726
	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6727
	      lt_cv_sys_max_cmd_len=$new_result &&
6728
	      test $i != 17 # 1/2 MB should be enough
6729
      do
6730
        i=`expr $i + 1`
6731
        teststring=$teststring$teststring
6732
      done
6733
      teststring=
6734
      # Add a significant safety factor because C++ compilers can tack on massive
6735
      # amounts of additional arguments before passing them to the linker.
6736
      # It appears as though 1/2 is a usable value.
6737
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6738
    fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6739
    ;;
6740
  esac
6741
6742
fi
6743
6744
if test -n $lt_cv_sys_max_cmd_len ; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6745
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6746
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6747
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6748
  { $as_echo "$as_me:$LINENO: result: none" >&5
6749
$as_echo "none" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6750
fi
6751
6752
6753
6754
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
6755
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6756
# Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6757
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6758
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6759
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6760
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6761
else
6762
6763
# These are sane defaults that work on at least a few old systems.
6764
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6765
6766
# Character class describing NM global symbol codes.
6767
symcode='[BCDEGRST]'
6768
6769
# Regexp to match symbols that can be accessed directly from C.
6770
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6771
6772
# Transform an extracted symbol line into a proper C declaration
6773
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6774
6775
# Transform an extracted symbol line into symbol name and symbol address
6776
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6777
6778
# Define system-specific variables.
6779
case $host_os in
6780
aix*)
6781
  symcode='[BCDT]'
6782
  ;;
6783
cygwin* | mingw* | pw32*)
6784
  symcode='[ABCDGISTW]'
6785
  ;;
6786
hpux*) # Its linker distinguishes data from code symbols
6787
  if test "$host_cpu" = ia64; then
6788
    symcode='[ABCDEGRST]'
6789
  fi
6790
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6791
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6792
  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6793
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6794
  if test "$host_cpu" = ia64; then
6795
    symcode='[ABCDGIRSTW]'
6796
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6797
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6798
  fi
6799
  ;;
6800
irix* | nonstopux*)
6801
  symcode='[BCDEGRST]'
6802
  ;;
6803
osf*)
6804
  symcode='[BCDEGQRST]'
6805
  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6806
solaris*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6807
  symcode='[BDRT]'
6808
  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
6809
sco3.2v5*)
6810
  symcode='[DT]'
6811
  ;;
6812
sysv4.2uw2*)
6813
  symcode='[DT]'
6814
  ;;
6815
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6816
  symcode='[ABDT]'
6817
  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6818
sysv4)
6819
  symcode='[DFNSTU]'
6820
  ;;
6821
esac
6822
6823
# Handle CRLF in mingw tool chain
6824
opt_cr=
6825
case $build_os in
6826
mingw*)
6827
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6828
  ;;
6829
esac
6830
6831
# If we're using GNU nm, then use its standard symbol codes.
6832
case `$NM -V 2>&1` in
6833
*GNU* | *'with BFD'*)
6834
  symcode='[ABCDGIRSTW]' ;;
6835
esac
6836
6837
# Try without a prefix undercore, then with it.
6838
for ac_symprfx in "" "_"; do
6839
6840
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6841
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6842
6843
  # Write the raw and C identifiers.
6844
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6845
6846
  # Check to see that the pipe works correctly.
6847
  pipe_works=no
6848
6849
  rm -f conftest*
6850
  cat > conftest.$ac_ext <<EOF
6851
#ifdef __cplusplus
6852
extern "C" {
6853
#endif
6854
char nm_test_var;
6855
void nm_test_func(){}
6856
#ifdef __cplusplus
6857
}
6858
#endif
6859
int main(){nm_test_var='a';nm_test_func();return(0);}
6860
EOF
6861
6862
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863
  (eval $ac_compile) 2>&5
6864
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6865
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6866
  (exit $ac_status); }; then
6867
    # Now try to grab the symbols.
6868
    nlist=conftest.nm
6869
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6870
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6871
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6873
  (exit $ac_status); } && test -s "$nlist"; then
6874
      # Try sorting and uniquifying the output.
6875
      if sort "$nlist" | uniq > "$nlist"T; then
6876
	mv -f "$nlist"T "$nlist"
6877
      else
6878
	rm -f "$nlist"T
6879
      fi
6880
6881
      # Make sure that we snagged all the symbols we need.
6882
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6883
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6884
	  cat <<EOF > conftest.$ac_ext
6885
#ifdef __cplusplus
6886
extern "C" {
6887
#endif
6888
6889
EOF
6890
	  # Now generate the symbol file.
6891
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6892
6893
	  cat <<EOF >> conftest.$ac_ext
6894
#if defined (__STDC__) && __STDC__
6895
# define lt_ptr_t void *
6896
#else
6897
# define lt_ptr_t char *
6898
# define const
6899
#endif
6900
6901
/* The mapping between symbol names and symbols. */
6902
const struct {
6903
  const char *name;
6904
  lt_ptr_t address;
6905
}
6906
lt_preloaded_symbols[] =
6907
{
6908
EOF
6909
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6910
	  cat <<\EOF >> conftest.$ac_ext
6911
  {0, (lt_ptr_t) 0}
6912
};
6913
6914
#ifdef __cplusplus
6915
}
6916
#endif
6917
EOF
6918
	  # Now try linking the two files.
6919
	  mv conftest.$ac_objext conftstm.$ac_objext
6920
	  lt_save_LIBS="$LIBS"
6921
	  lt_save_CFLAGS="$CFLAGS"
6922
	  LIBS="conftstm.$ac_objext"
6923
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6924
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6925
  (eval $ac_link) 2>&5
6926
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6928
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6929
	    pipe_works=yes
6930
	  fi
6931
	  LIBS="$lt_save_LIBS"
6932
	  CFLAGS="$lt_save_CFLAGS"
6933
	else
6934
	  echo "cannot find nm_test_func in $nlist" >&5
6935
	fi
6936
      else
6937
	echo "cannot find nm_test_var in $nlist" >&5
6938
      fi
6939
    else
6940
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6941
    fi
6942
  else
6943
    echo "$progname: failed program was:" >&5
6944
    cat conftest.$ac_ext >&5
6945
  fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6946
  rm -rf conftest* conftst*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6947
6948
  # Do not use the global_symbol_pipe unless it works.
6949
  if test "$pipe_works" = yes; then
6950
    break
6951
  else
6952
    lt_cv_sys_global_symbol_pipe=
6953
  fi
6954
done
6955
6956
fi
6957
6958
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6959
  lt_cv_sys_global_symbol_to_cdecl=
6960
fi
6961
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6962
  { $as_echo "$as_me:$LINENO: result: failed" >&5
6963
$as_echo "failed" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6964
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6965
  { $as_echo "$as_me:$LINENO: result: ok" >&5
6966
$as_echo "ok" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6967
fi
6968
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6969
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6970
$as_echo_n "checking for objdir... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6971
if test "${lt_cv_objdir+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6972
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6973
else
6974
  rm -f .libs 2>/dev/null
6975
mkdir .libs 2>/dev/null
6976
if test -d .libs; then
6977
  lt_cv_objdir=.libs
6978
else
6979
  # MS-DOS does not allow filenames that begin with a dot.
6980
  lt_cv_objdir=_libs
6981
fi
6982
rmdir .libs 2>/dev/null
6983
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
6984
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6985
$as_echo "$lt_cv_objdir" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
6986
objdir=$lt_cv_objdir
6987
6988
6989
6990
6991
6992
case $host_os in
6993
aix3*)
6994
  # AIX sometimes has problems with the GCC collect2 program.  For some
6995
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6996
  # vanish in a puff of smoke.
6997
  if test "X${COLLECT_NAMES+set}" != Xset; then
6998
    COLLECT_NAMES=
6999
    export COLLECT_NAMES
7000
  fi
7001
  ;;
7002
esac
7003
7004
# Sed substitution that helps us do robust quoting.  It backslashifies
7005
# metacharacters that are still active within double-quoted strings.
7006
Xsed='sed -e 1s/^X//'
7007
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7008
7009
# Same as above, but do not quote variable references.
7010
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7011
7012
# Sed substitution to delay expansion of an escaped shell variable in a
7013
# double_quote_subst'ed string.
7014
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7015
7016
# Sed substitution to avoid accidental globbing in evaled expressions
7017
no_glob_subst='s/\*/\\\*/g'
7018
7019
# Constants:
7020
rm="rm -f"
7021
7022
# Global variables:
7023
default_ofile=libtool
7024
can_build_shared=yes
7025
7026
# All known linkers require a `.a' archive for static linking (except MSVC,
7027
# which needs '.lib').
7028
libext=a
7029
ltmain="$ac_aux_dir/ltmain.sh"
7030
ofile="$default_ofile"
7031
with_gnu_ld="$lt_cv_prog_gnu_ld"
7032
7033
if test -n "$ac_tool_prefix"; then
7034
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7035
set dummy ${ac_tool_prefix}ar; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7036
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7037
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7038
if test "${ac_cv_prog_AR+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7039
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7040
else
7041
  if test -n "$AR"; then
7042
  ac_cv_prog_AR="$AR" # Let the user override the test.
7043
else
7044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045
for as_dir in $PATH
7046
do
7047
  IFS=$as_save_IFS
7048
  test -z "$as_dir" && as_dir=.
7049
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7050
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7051
    ac_cv_prog_AR="${ac_tool_prefix}ar"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7052
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7053
    break 2
7054
  fi
7055
done
7056
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7057
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7058
7059
fi
7060
fi
7061
AR=$ac_cv_prog_AR
7062
if test -n "$AR"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7063
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7064
$as_echo "$AR" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7065
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7066
  { $as_echo "$as_me:$LINENO: result: no" >&5
7067
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7068
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7069
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7070
7071
fi
7072
if test -z "$ac_cv_prog_AR"; then
7073
  ac_ct_AR=$AR
7074
  # Extract the first word of "ar", so it can be a program name with args.
7075
set dummy ar; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7076
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7077
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7078
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7079
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7080
else
7081
  if test -n "$ac_ct_AR"; then
7082
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7083
else
7084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085
for as_dir in $PATH
7086
do
7087
  IFS=$as_save_IFS
7088
  test -z "$as_dir" && as_dir=.
7089
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7090
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7091
    ac_cv_prog_ac_ct_AR="ar"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7092
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7093
    break 2
7094
  fi
7095
done
7096
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7097
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7098
7099
fi
7100
fi
7101
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7102
if test -n "$ac_ct_AR"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7103
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7104
$as_echo "$ac_ct_AR" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7105
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7106
  { $as_echo "$as_me:$LINENO: result: no" >&5
7107
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7108
fi
7109
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7110
  if test "x$ac_ct_AR" = x; then
7111
    AR="false"
7112
  else
7113
    case $cross_compiling:$ac_tool_warned in
7114
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7115
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7116
whose name does not start with the host triplet.  If you think this
7117
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7118
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7119
whose name does not start with the host triplet.  If you think this
7120
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7121
ac_tool_warned=yes ;;
7122
esac
7123
    AR=$ac_ct_AR
7124
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7125
else
7126
  AR="$ac_cv_prog_AR"
7127
fi
7128
7129
if test -n "$ac_tool_prefix"; then
7130
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7132
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7133
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7134
if test "${ac_cv_prog_RANLIB+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7135
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7136
else
7137
  if test -n "$RANLIB"; then
7138
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139
else
7140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141
for as_dir in $PATH
7142
do
7143
  IFS=$as_save_IFS
7144
  test -z "$as_dir" && as_dir=.
7145
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7147
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7148
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7149
    break 2
7150
  fi
7151
done
7152
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7153
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7154
7155
fi
7156
fi
7157
RANLIB=$ac_cv_prog_RANLIB
7158
if test -n "$RANLIB"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7159
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7160
$as_echo "$RANLIB" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7161
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7162
  { $as_echo "$as_me:$LINENO: result: no" >&5
7163
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7164
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7165
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7166
7167
fi
7168
if test -z "$ac_cv_prog_RANLIB"; then
7169
  ac_ct_RANLIB=$RANLIB
7170
  # Extract the first word of "ranlib", so it can be a program name with args.
7171
set dummy ranlib; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7172
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7173
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7174
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7175
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7176
else
7177
  if test -n "$ac_ct_RANLIB"; then
7178
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7179
else
7180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181
for as_dir in $PATH
7182
do
7183
  IFS=$as_save_IFS
7184
  test -z "$as_dir" && as_dir=.
7185
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7186
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7187
    ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7188
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7189
    break 2
7190
  fi
7191
done
7192
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7193
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7194
7195
fi
7196
fi
7197
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198
if test -n "$ac_ct_RANLIB"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7199
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200
$as_echo "$ac_ct_RANLIB" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7201
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7202
  { $as_echo "$as_me:$LINENO: result: no" >&5
7203
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7204
fi
7205
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7206
  if test "x$ac_ct_RANLIB" = x; then
7207
    RANLIB=":"
7208
  else
7209
    case $cross_compiling:$ac_tool_warned in
7210
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7211
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7212
whose name does not start with the host triplet.  If you think this
7213
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7214
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7215
whose name does not start with the host triplet.  If you think this
7216
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217
ac_tool_warned=yes ;;
7218
esac
7219
    RANLIB=$ac_ct_RANLIB
7220
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7221
else
7222
  RANLIB="$ac_cv_prog_RANLIB"
7223
fi
7224
7225
if test -n "$ac_tool_prefix"; then
7226
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7227
set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7228
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7229
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7230
if test "${ac_cv_prog_STRIP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7231
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7232
else
7233
  if test -n "$STRIP"; then
7234
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7235
else
7236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237
for as_dir in $PATH
7238
do
7239
  IFS=$as_save_IFS
7240
  test -z "$as_dir" && as_dir=.
7241
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7243
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7244
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7245
    break 2
7246
  fi
7247
done
7248
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7249
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7250
7251
fi
7252
fi
7253
STRIP=$ac_cv_prog_STRIP
7254
if test -n "$STRIP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7255
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7256
$as_echo "$STRIP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7257
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7258
  { $as_echo "$as_me:$LINENO: result: no" >&5
7259
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7260
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7261
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7262
7263
fi
7264
if test -z "$ac_cv_prog_STRIP"; then
7265
  ac_ct_STRIP=$STRIP
7266
  # Extract the first word of "strip", so it can be a program name with args.
7267
set dummy strip; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7268
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7269
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7270
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7271
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7272
else
7273
  if test -n "$ac_ct_STRIP"; then
7274
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275
else
7276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277
for as_dir in $PATH
7278
do
7279
  IFS=$as_save_IFS
7280
  test -z "$as_dir" && as_dir=.
7281
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7283
    ac_cv_prog_ac_ct_STRIP="strip"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7284
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7285
    break 2
7286
  fi
7287
done
7288
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7289
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7290
7291
fi
7292
fi
7293
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7294
if test -n "$ac_ct_STRIP"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7295
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7296
$as_echo "$ac_ct_STRIP" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7297
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7298
  { $as_echo "$as_me:$LINENO: result: no" >&5
7299
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7300
fi
7301
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7302
  if test "x$ac_ct_STRIP" = x; then
7303
    STRIP=":"
7304
  else
7305
    case $cross_compiling:$ac_tool_warned in
7306
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7307
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7308
whose name does not start with the host triplet.  If you think this
7309
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7310
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7311
whose name does not start with the host triplet.  If you think this
7312
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7313
ac_tool_warned=yes ;;
7314
esac
7315
    STRIP=$ac_ct_STRIP
7316
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7317
else
7318
  STRIP="$ac_cv_prog_STRIP"
7319
fi
7320
7321
7322
old_CC="$CC"
7323
old_CFLAGS="$CFLAGS"
7324
7325
# Set sane defaults for various variables
7326
test -z "$AR" && AR=ar
7327
test -z "$AR_FLAGS" && AR_FLAGS=cru
7328
test -z "$AS" && AS=as
7329
test -z "$CC" && CC=cc
7330
test -z "$LTCC" && LTCC=$CC
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7331
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7332
test -z "$DLLTOOL" && DLLTOOL=dlltool
7333
test -z "$LD" && LD=ld
7334
test -z "$LN_S" && LN_S="ln -s"
7335
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7336
test -z "$NM" && NM=nm
7337
test -z "$SED" && SED=sed
7338
test -z "$OBJDUMP" && OBJDUMP=objdump
7339
test -z "$RANLIB" && RANLIB=:
7340
test -z "$STRIP" && STRIP=:
7341
test -z "$ac_objext" && ac_objext=o
7342
7343
# Determine commands to create old-style static archives.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7344
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7345
old_postinstall_cmds='chmod 644 $oldlib'
7346
old_postuninstall_cmds=
7347
7348
if test -n "$RANLIB"; then
7349
  case $host_os in
7350
  openbsd*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7351
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7352
    ;;
7353
  *)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7354
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7355
    ;;
7356
  esac
7357
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7358
fi
7359
7360
for cc_temp in $compiler""; do
7361
  case $cc_temp in
7362
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7363
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7364
    \-*) ;;
7365
    *) break;;
7366
  esac
7367
done
7368
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7369
7370
7371
# Only perform the check for file, if the check method requires it
7372
case $deplibs_check_method in
7373
file_magic*)
7374
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7375
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7376
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7377
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7378
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7379
else
7380
  case $MAGIC_CMD in
7381
[\\/*] |  ?:[\\/]*)
7382
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7383
  ;;
7384
*)
7385
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7386
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7387
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7388
  for ac_dir in $ac_dummy; do
7389
    IFS="$lt_save_ifs"
7390
    test -z "$ac_dir" && ac_dir=.
7391
    if test -f $ac_dir/${ac_tool_prefix}file; then
7392
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7393
      if test -n "$file_magic_test_file"; then
7394
	case $deplibs_check_method in
7395
	"file_magic "*)
7396
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7397
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7399
	    $EGREP "$file_magic_regex" > /dev/null; then
7400
	    :
7401
	  else
7402
	    cat <<EOF 1>&2
7403
7404
*** Warning: the command libtool uses to detect shared libraries,
7405
*** $file_magic_cmd, produces output that libtool cannot recognize.
7406
*** The result is that libtool may fail to recognize shared libraries
7407
*** as such.  This will affect the creation of libtool libraries that
7408
*** depend on shared libraries, but programs linked with such libtool
7409
*** libraries will work regardless of this problem.  Nevertheless, you
7410
*** may want to report the problem to your system manager and/or to
7411
*** bug-libtool@gnu.org
7412
7413
EOF
7414
	  fi ;;
7415
	esac
7416
      fi
7417
      break
7418
    fi
7419
  done
7420
  IFS="$lt_save_ifs"
7421
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7422
  ;;
7423
esac
7424
fi
7425
7426
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427
if test -n "$MAGIC_CMD"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7428
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7429
$as_echo "$MAGIC_CMD" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7430
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7431
  { $as_echo "$as_me:$LINENO: result: no" >&5
7432
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7433
fi
7434
7435
if test -z "$lt_cv_path_MAGIC_CMD"; then
7436
  if test -n "$ac_tool_prefix"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7437
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7438
$as_echo_n "checking for file... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7439
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7440
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7441
else
7442
  case $MAGIC_CMD in
7443
[\\/*] |  ?:[\\/]*)
7444
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445
  ;;
7446
*)
7447
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7448
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450
  for ac_dir in $ac_dummy; do
7451
    IFS="$lt_save_ifs"
7452
    test -z "$ac_dir" && ac_dir=.
7453
    if test -f $ac_dir/file; then
7454
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7455
      if test -n "$file_magic_test_file"; then
7456
	case $deplibs_check_method in
7457
	"file_magic "*)
7458
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461
	    $EGREP "$file_magic_regex" > /dev/null; then
7462
	    :
7463
	  else
7464
	    cat <<EOF 1>&2
7465
7466
*** Warning: the command libtool uses to detect shared libraries,
7467
*** $file_magic_cmd, produces output that libtool cannot recognize.
7468
*** The result is that libtool may fail to recognize shared libraries
7469
*** as such.  This will affect the creation of libtool libraries that
7470
*** depend on shared libraries, but programs linked with such libtool
7471
*** libraries will work regardless of this problem.  Nevertheless, you
7472
*** may want to report the problem to your system manager and/or to
7473
*** bug-libtool@gnu.org
7474
7475
EOF
7476
	  fi ;;
7477
	esac
7478
      fi
7479
      break
7480
    fi
7481
  done
7482
  IFS="$lt_save_ifs"
7483
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7484
  ;;
7485
esac
7486
fi
7487
7488
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489
if test -n "$MAGIC_CMD"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7490
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7491
$as_echo "$MAGIC_CMD" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7492
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7493
  { $as_echo "$as_me:$LINENO: result: no" >&5
7494
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7495
fi
7496
7497
  else
7498
    MAGIC_CMD=:
7499
  fi
7500
fi
7501
7502
  fi
7503
  ;;
7504
esac
7505
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7506
7507
  case $host_os in
7508
    rhapsody* | darwin*)
7509
    if test -n "$ac_tool_prefix"; then
7510
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7511
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7512
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7513
$as_echo_n "checking for $ac_word... " >&6; }
7514
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7515
  $as_echo_n "(cached) " >&6
7516
else
7517
  if test -n "$DSYMUTIL"; then
7518
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7519
else
7520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521
for as_dir in $PATH
7522
do
7523
  IFS=$as_save_IFS
7524
  test -z "$as_dir" && as_dir=.
7525
  for ac_exec_ext in '' $ac_executable_extensions; do
7526
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7528
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529
    break 2
7530
  fi
7531
done
7532
done
7533
IFS=$as_save_IFS
7534
7535
fi
7536
fi
7537
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7538
if test -n "$DSYMUTIL"; then
7539
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7540
$as_echo "$DSYMUTIL" >&6; }
7541
else
7542
  { $as_echo "$as_me:$LINENO: result: no" >&5
7543
$as_echo "no" >&6; }
7544
fi
7545
7546
7547
fi
7548
if test -z "$ac_cv_prog_DSYMUTIL"; then
7549
  ac_ct_DSYMUTIL=$DSYMUTIL
7550
  # Extract the first word of "dsymutil", so it can be a program name with args.
7551
set dummy dsymutil; ac_word=$2
7552
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7553
$as_echo_n "checking for $ac_word... " >&6; }
7554
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7555
  $as_echo_n "(cached) " >&6
7556
else
7557
  if test -n "$ac_ct_DSYMUTIL"; then
7558
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7559
else
7560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561
for as_dir in $PATH
7562
do
7563
  IFS=$as_save_IFS
7564
  test -z "$as_dir" && as_dir=.
7565
  for ac_exec_ext in '' $ac_executable_extensions; do
7566
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7568
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569
    break 2
7570
  fi
7571
done
7572
done
7573
IFS=$as_save_IFS
7574
7575
fi
7576
fi
7577
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7578
if test -n "$ac_ct_DSYMUTIL"; then
7579
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7580
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7581
else
7582
  { $as_echo "$as_me:$LINENO: result: no" >&5
7583
$as_echo "no" >&6; }
7584
fi
7585
7586
  if test "x$ac_ct_DSYMUTIL" = x; then
7587
    DSYMUTIL=":"
7588
  else
7589
    case $cross_compiling:$ac_tool_warned in
7590
yes:)
7591
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7592
whose name does not start with the host triplet.  If you think this
7593
configuration is useful to you, please write to autoconf@gnu.org." >&5
7594
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7595
whose name does not start with the host triplet.  If you think this
7596
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7597
ac_tool_warned=yes ;;
7598
esac
7599
    DSYMUTIL=$ac_ct_DSYMUTIL
7600
  fi
7601
else
7602
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7603
fi
7604
7605
    if test -n "$ac_tool_prefix"; then
7606
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7607
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7608
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7609
$as_echo_n "checking for $ac_word... " >&6; }
7610
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7611
  $as_echo_n "(cached) " >&6
7612
else
7613
  if test -n "$NMEDIT"; then
7614
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7615
else
7616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617
for as_dir in $PATH
7618
do
7619
  IFS=$as_save_IFS
7620
  test -z "$as_dir" && as_dir=.
7621
  for ac_exec_ext in '' $ac_executable_extensions; do
7622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7624
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625
    break 2
7626
  fi
7627
done
7628
done
7629
IFS=$as_save_IFS
7630
7631
fi
7632
fi
7633
NMEDIT=$ac_cv_prog_NMEDIT
7634
if test -n "$NMEDIT"; then
7635
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7636
$as_echo "$NMEDIT" >&6; }
7637
else
7638
  { $as_echo "$as_me:$LINENO: result: no" >&5
7639
$as_echo "no" >&6; }
7640
fi
7641
7642
7643
fi
7644
if test -z "$ac_cv_prog_NMEDIT"; then
7645
  ac_ct_NMEDIT=$NMEDIT
7646
  # Extract the first word of "nmedit", so it can be a program name with args.
7647
set dummy nmedit; ac_word=$2
7648
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7649
$as_echo_n "checking for $ac_word... " >&6; }
7650
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7651
  $as_echo_n "(cached) " >&6
7652
else
7653
  if test -n "$ac_ct_NMEDIT"; then
7654
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7655
else
7656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657
for as_dir in $PATH
7658
do
7659
  IFS=$as_save_IFS
7660
  test -z "$as_dir" && as_dir=.
7661
  for ac_exec_ext in '' $ac_executable_extensions; do
7662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7664
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665
    break 2
7666
  fi
7667
done
7668
done
7669
IFS=$as_save_IFS
7670
7671
fi
7672
fi
7673
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7674
if test -n "$ac_ct_NMEDIT"; then
7675
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7676
$as_echo "$ac_ct_NMEDIT" >&6; }
7677
else
7678
  { $as_echo "$as_me:$LINENO: result: no" >&5
7679
$as_echo "no" >&6; }
7680
fi
7681
7682
  if test "x$ac_ct_NMEDIT" = x; then
7683
    NMEDIT=":"
7684
  else
7685
    case $cross_compiling:$ac_tool_warned in
7686
yes:)
7687
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7688
whose name does not start with the host triplet.  If you think this
7689
configuration is useful to you, please write to autoconf@gnu.org." >&5
7690
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7691
whose name does not start with the host triplet.  If you think this
7692
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7693
ac_tool_warned=yes ;;
7694
esac
7695
    NMEDIT=$ac_ct_NMEDIT
7696
  fi
7697
else
7698
  NMEDIT="$ac_cv_prog_NMEDIT"
7699
fi
7700
7701
7702
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7703
$as_echo_n "checking for -single_module linker flag... " >&6; }
7704
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7705
  $as_echo_n "(cached) " >&6
7706
else
7707
  lt_cv_apple_cc_single_mod=no
7708
      if test -z "${LT_MULTI_MODULE}"; then
7709
   # By default we will add the -single_module flag. You can override
7710
   # by either setting the environment variable LT_MULTI_MODULE
7711
   # non-empty at configure time, or by adding -multi_module to the
7712
   # link flags.
7713
   echo "int foo(void){return 1;}" > conftest.c
7714
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7715
     -dynamiclib ${wl}-single_module conftest.c
7716
   if test -f libconftest.dylib; then
7717
     lt_cv_apple_cc_single_mod=yes
7718
     rm -rf libconftest.dylib*
7719
   fi
7720
   rm conftest.c
7721
      fi
7722
fi
7723
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7724
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7725
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7726
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7727
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7728
  $as_echo_n "(cached) " >&6
7729
else
7730
  lt_cv_ld_exported_symbols_list=no
7731
      save_LDFLAGS=$LDFLAGS
7732
      echo "_main" > conftest.sym
7733
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7734
      cat >conftest.$ac_ext <<_ACEOF
7735
/* confdefs.h.  */
7736
_ACEOF
7737
cat confdefs.h >>conftest.$ac_ext
7738
cat >>conftest.$ac_ext <<_ACEOF
7739
/* end confdefs.h.  */
7740
7741
int
7742
main ()
7743
{
7744
7745
  ;
7746
  return 0;
7747
}
7748
_ACEOF
7749
rm -f conftest.$ac_objext conftest$ac_exeext
7750
if { (ac_try="$ac_link"
7751
case "(($ac_try" in
7752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753
  *) ac_try_echo=$ac_try;;
7754
esac
7755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756
$as_echo "$ac_try_echo") >&5
7757
  (eval "$ac_link") 2>conftest.er1
7758
  ac_status=$?
7759
  grep -v '^ *+' conftest.er1 >conftest.err
7760
  rm -f conftest.er1
7761
  cat conftest.err >&5
7762
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763
  (exit $ac_status); } && {
7764
	 test -z "$ac_c_werror_flag" ||
7765
	 test ! -s conftest.err
7766
       } && test -s conftest$ac_exeext && {
7767
	 test "$cross_compiling" = yes ||
7768
	 $as_test_x conftest$ac_exeext
7769
       }; then
7770
  lt_cv_ld_exported_symbols_list=yes
7771
else
7772
  $as_echo "$as_me: failed program was:" >&5
7773
sed 's/^/| /' conftest.$ac_ext >&5
7774
7775
	lt_cv_ld_exported_symbols_list=no
7776
fi
7777
7778
rm -rf conftest.dSYM
7779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7780
      conftest$ac_exeext conftest.$ac_ext
7781
   LDFLAGS="$save_LDFLAGS"
7782
7783
fi
7784
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7785
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7786
    case $host_os in
7787
    rhapsody* | darwin1.[0123])
7788
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7789
    darwin1.*)
7790
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7791
    darwin*)
7792
      # if running on 10.5 or later, the deployment target defaults
7793
      # to the OS version, if on x86, and 10.4, the deployment
7794
      # target defaults to 10.4. Don't you love it?
7795
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7796
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7797
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7798
   10.[012]*)
7799
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7800
   10.*)
7801
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7802
      esac
7803
    ;;
7804
  esac
7805
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7806
      _lt_dar_single_mod='$single_module'
7807
    fi
7808
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7809
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7810
    else
7811
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7812
    fi
7813
    if test "$DSYMUTIL" != ":"; then
7814
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7815
    else
7816
      _lt_dsymutil=
7817
    fi
7818
    ;;
7819
  esac
7820
7821
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7822
enable_dlopen=no
7823
enable_win32_dll=yes
7824
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7825
# Check whether --enable-libtool-lock was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7826
if test "${enable_libtool_lock+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7827
  enableval=$enable_libtool_lock;
7828
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7829
7830
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7831
7832
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7833
# Check whether --with-pic was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7834
if test "${with_pic+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7835
  withval=$with_pic; pic_mode="$withval"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7836
else
7837
  pic_mode=default
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7838
fi
7839
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7840
test -z "$pic_mode" && pic_mode=default
7841
7842
# Use C for the default configuration in the libtool script
7843
tagname=
7844
lt_save_CC="$CC"
7845
ac_ext=c
7846
ac_cpp='$CPP $CPPFLAGS'
7847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851
7852
# Source file extension for C test sources.
7853
ac_ext=c
7854
7855
# Object file extension for compiled C test sources.
7856
objext=o
7857
objext=$objext
7858
7859
# Code to be used in simple compile tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7860
lt_simple_compile_test_code="int some_variable = 0;"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7861
7862
# Code to be used in simple link tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7863
lt_simple_link_test_code='int main(){return(0);}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7864
7865
7866
# If no C compiler was specified, use CC.
7867
LTCC=${LTCC-"$CC"}
7868
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7869
# If no C compiler flags were specified, use CFLAGS.
7870
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7871
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7872
# Allow CC to be a program name with arguments.
7873
compiler=$CC
7874
7875
7876
# save warnings/boilerplate of simple test code
7877
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7878
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7879
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7880
_lt_compiler_boilerplate=`cat conftest.err`
7881
$rm conftest*
7882
7883
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7884
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7885
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7886
_lt_linker_boilerplate=`cat conftest.err`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7887
$rm -r conftest*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7888
7889
7890
7891
lt_prog_compiler_no_builtin_flag=
7892
7893
if test "$GCC" = yes; then
7894
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
7896
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7897
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7898
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7899
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7900
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7901
else
7902
  lt_cv_prog_compiler_rtti_exceptions=no
7903
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7904
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7905
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7906
   # Insert the option either (1) after the last *FLAGS variable, or
7907
   # (2) before a word containing "conftest.", or (3) at the end.
7908
   # Note that $ac_compile itself does not contain backslashes and begins
7909
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7910
   # The option is referenced via a variable to avoid confusing sed.
7911
   lt_compile=`echo "$ac_compile" | $SED \
7912
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7915
   (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7916
   (eval "$lt_compile" 2>conftest.err)
7917
   ac_status=$?
7918
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7919
   echo "$as_me:7919: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7920
   if (exit $ac_status) && test -s "$ac_outfile"; then
7921
     # The compiler can only warn and ignore the option if not recognized
7922
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7923
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7924
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7925
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7926
       lt_cv_prog_compiler_rtti_exceptions=yes
7927
     fi
7928
   fi
7929
   $rm conftest*
7930
7931
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7932
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7933
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7934
7935
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7936
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7937
else
7938
    :
7939
fi
7940
7941
fi
7942
7943
lt_prog_compiler_wl=
7944
lt_prog_compiler_pic=
7945
lt_prog_compiler_static=
7946
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
7947
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7948
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7949
7950
  if test "$GCC" = yes; then
7951
    lt_prog_compiler_wl='-Wl,'
7952
    lt_prog_compiler_static='-static'
7953
7954
    case $host_os in
7955
      aix*)
7956
      # All AIX code is PIC.
7957
      if test "$host_cpu" = ia64; then
7958
	# AIX 5 now supports IA64 processor
7959
	lt_prog_compiler_static='-Bstatic'
7960
      fi
7961
      ;;
7962
7963
    amigaos*)
7964
      # FIXME: we need at least 68020 code to build shared libraries, but
7965
      # adding the `-m68020' flag to GCC prevents building anything better,
7966
      # like `-m68040'.
7967
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968
      ;;
7969
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7970
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7971
      # PIC is the default for these OSes.
7972
      ;;
7973
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7974
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7975
      # This hack is so that the source file can tell whether it is being
7976
      # built for inclusion in a dll (and should export symbols for example).
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7977
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7978
      # (--disable-auto-import) libraries
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7979
      lt_prog_compiler_pic='-DDLL_EXPORT'
7980
      ;;
7981
7982
    darwin* | rhapsody*)
7983
      # PIC is the default on this platform
7984
      # Common symbols not allowed in MH_DYLIB files
7985
      lt_prog_compiler_pic='-fno-common'
7986
      ;;
7987
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
7988
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
7989
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990
      # Instead, we relocate shared libraries at runtime.
7991
      ;;
7992
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
7993
    msdosdjgpp*)
7994
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7995
      # on systems that don't support them.
7996
      lt_prog_compiler_can_build_shared=no
7997
      enable_shared=no
7998
      ;;
7999
8000
    sysv4*MP*)
8001
      if test -d /usr/nec; then
8002
	lt_prog_compiler_pic=-Kconform_pic
8003
      fi
8004
      ;;
8005
8006
    hpux*)
8007
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8008
      # not for PA HP-UX.
8009
      case $host_cpu in
8010
      hppa*64*|ia64*)
8011
	# +Z the default
8012
	;;
8013
      *)
8014
	lt_prog_compiler_pic='-fPIC'
8015
	;;
8016
      esac
8017
      ;;
8018
8019
    *)
8020
      lt_prog_compiler_pic='-fPIC'
8021
      ;;
8022
    esac
8023
  else
8024
    # PORTME Check for flag to pass linker flags through the system compiler.
8025
    case $host_os in
8026
    aix*)
8027
      lt_prog_compiler_wl='-Wl,'
8028
      if test "$host_cpu" = ia64; then
8029
	# AIX 5 now supports IA64 processor
8030
	lt_prog_compiler_static='-Bstatic'
8031
      else
8032
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8033
      fi
8034
      ;;
8035
      darwin*)
8036
        # PIC is the default on this platform
8037
        # Common symbols not allowed in MH_DYLIB files
8038
       case $cc_basename in
8039
         xlc*)
8040
         lt_prog_compiler_pic='-qnocommon'
8041
         lt_prog_compiler_wl='-Wl,'
8042
         ;;
8043
       esac
8044
       ;;
8045
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8046
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8047
      # This hack is so that the source file can tell whether it is being
8048
      # built for inclusion in a dll (and should export symbols for example).
8049
      lt_prog_compiler_pic='-DDLL_EXPORT'
8050
      ;;
8051
8052
    hpux9* | hpux10* | hpux11*)
8053
      lt_prog_compiler_wl='-Wl,'
8054
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8055
      # not for PA HP-UX.
8056
      case $host_cpu in
8057
      hppa*64*|ia64*)
8058
	# +Z the default
8059
	;;
8060
      *)
8061
	lt_prog_compiler_pic='+Z'
8062
	;;
8063
      esac
8064
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8065
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8066
      ;;
8067
8068
    irix5* | irix6* | nonstopux*)
8069
      lt_prog_compiler_wl='-Wl,'
8070
      # PIC (with -KPIC) is the default.
8071
      lt_prog_compiler_static='-non_shared'
8072
      ;;
8073
8074
    newsos6)
8075
      lt_prog_compiler_pic='-KPIC'
8076
      lt_prog_compiler_static='-Bstatic'
8077
      ;;
8078
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8079
    linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8080
      case $cc_basename in
8081
      icc* | ecc*)
8082
	lt_prog_compiler_wl='-Wl,'
8083
	lt_prog_compiler_pic='-KPIC'
8084
	lt_prog_compiler_static='-static'
8085
        ;;
8086
      pgcc* | pgf77* | pgf90* | pgf95*)
8087
        # Portland Group compilers (*not* the Pentium gcc compiler,
8088
	# which looks to be a dead project)
8089
	lt_prog_compiler_wl='-Wl,'
8090
	lt_prog_compiler_pic='-fpic'
8091
	lt_prog_compiler_static='-Bstatic'
8092
        ;;
8093
      ccc*)
8094
        lt_prog_compiler_wl='-Wl,'
8095
        # All Alpha code is PIC.
8096
        lt_prog_compiler_static='-non_shared'
8097
        ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8098
      *)
8099
        case `$CC -V 2>&1 | sed 5q` in
8100
	*Sun\ C*)
8101
	  # Sun C 5.9
8102
	  lt_prog_compiler_pic='-KPIC'
8103
	  lt_prog_compiler_static='-Bstatic'
8104
	  lt_prog_compiler_wl='-Wl,'
8105
	  ;;
8106
	*Sun\ F*)
8107
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8108
	  lt_prog_compiler_pic='-KPIC'
8109
	  lt_prog_compiler_static='-Bstatic'
8110
	  lt_prog_compiler_wl=''
8111
	  ;;
8112
	esac
8113
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8114
      esac
8115
      ;;
8116
8117
    osf3* | osf4* | osf5*)
8118
      lt_prog_compiler_wl='-Wl,'
8119
      # All OSF/1 code is PIC.
8120
      lt_prog_compiler_static='-non_shared'
8121
      ;;
8122
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8123
    rdos*)
8124
      lt_prog_compiler_static='-non_shared'
8125
      ;;
8126
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8127
    solaris*)
8128
      lt_prog_compiler_pic='-KPIC'
8129
      lt_prog_compiler_static='-Bstatic'
8130
      case $cc_basename in
8131
      f77* | f90* | f95*)
8132
	lt_prog_compiler_wl='-Qoption ld ';;
8133
      *)
8134
	lt_prog_compiler_wl='-Wl,';;
8135
      esac
8136
      ;;
8137
8138
    sunos4*)
8139
      lt_prog_compiler_wl='-Qoption ld '
8140
      lt_prog_compiler_pic='-PIC'
8141
      lt_prog_compiler_static='-Bstatic'
8142
      ;;
8143
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8144
    sysv4 | sysv4.2uw2* | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8145
      lt_prog_compiler_wl='-Wl,'
8146
      lt_prog_compiler_pic='-KPIC'
8147
      lt_prog_compiler_static='-Bstatic'
8148
      ;;
8149
8150
    sysv4*MP*)
8151
      if test -d /usr/nec ;then
8152
	lt_prog_compiler_pic='-Kconform_pic'
8153
	lt_prog_compiler_static='-Bstatic'
8154
      fi
8155
      ;;
8156
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8157
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8158
      lt_prog_compiler_wl='-Wl,'
8159
      lt_prog_compiler_pic='-KPIC'
8160
      lt_prog_compiler_static='-Bstatic'
8161
      ;;
8162
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8163
    unicos*)
8164
      lt_prog_compiler_wl='-Wl,'
8165
      lt_prog_compiler_can_build_shared=no
8166
      ;;
8167
8168
    uts4*)
8169
      lt_prog_compiler_pic='-pic'
8170
      lt_prog_compiler_static='-Bstatic'
8171
      ;;
8172
8173
    *)
8174
      lt_prog_compiler_can_build_shared=no
8175
      ;;
8176
    esac
8177
  fi
8178
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8179
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8180
$as_echo "$lt_prog_compiler_pic" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8181
8182
#
8183
# Check to make sure the PIC flag actually works.
8184
#
8185
if test -n "$lt_prog_compiler_pic"; then
8186
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8187
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8188
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8189
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8190
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8191
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8192
  lt_cv_prog_compiler_pic_works=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8193
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8194
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8195
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8196
   # Insert the option either (1) after the last *FLAGS variable, or
8197
   # (2) before a word containing "conftest.", or (3) at the end.
8198
   # Note that $ac_compile itself does not contain backslashes and begins
8199
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8200
   # The option is referenced via a variable to avoid confusing sed.
8201
   lt_compile=`echo "$ac_compile" | $SED \
8202
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8205
   (eval echo "\"\$as_me:8205: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8206
   (eval "$lt_compile" 2>conftest.err)
8207
   ac_status=$?
8208
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8209
   echo "$as_me:8209: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8210
   if (exit $ac_status) && test -s "$ac_outfile"; then
8211
     # The compiler can only warn and ignore the option if not recognized
8212
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8213
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8214
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8215
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8216
       lt_cv_prog_compiler_pic_works=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8217
     fi
8218
   fi
8219
   $rm conftest*
8220
8221
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8222
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8223
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8224
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8225
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8226
    case $lt_prog_compiler_pic in
8227
     "" | " "*) ;;
8228
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8229
     esac
8230
else
8231
    lt_prog_compiler_pic=
8232
     lt_prog_compiler_can_build_shared=no
8233
fi
8234
8235
fi
8236
case $host_os in
8237
  # For platforms which do not support PIC, -DPIC is meaningless:
8238
  *djgpp*)
8239
    lt_prog_compiler_pic=
8240
    ;;
8241
  *)
8242
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8243
    ;;
8244
esac
8245
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8246
#
8247
# Check to make sure the static flag actually works.
8248
#
8249
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8250
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8251
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8252
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8253
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8254
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8255
  lt_cv_prog_compiler_static_works=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8256
   save_LDFLAGS="$LDFLAGS"
8257
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8258
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8259
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8260
     # The linker can only warn and ignore the option if not recognized
8261
     # So say no if there are warnings
8262
     if test -s conftest.err; then
8263
       # Append any errors to the config.log.
8264
       cat conftest.err 1>&5
8265
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8266
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8267
       if diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8268
         lt_cv_prog_compiler_static_works=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8269
       fi
8270
     else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8271
       lt_cv_prog_compiler_static_works=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8272
     fi
8273
   fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8274
   $rm -r conftest*
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8275
   LDFLAGS="$save_LDFLAGS"
8276
8277
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8278
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8279
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8280
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8281
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8282
    :
8283
else
8284
    lt_prog_compiler_static=
8285
fi
8286
8287
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8288
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8289
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8290
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8291
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8292
else
8293
  lt_cv_prog_compiler_c_o=no
8294
   $rm -r conftest 2>/dev/null
8295
   mkdir conftest
8296
   cd conftest
8297
   mkdir out
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8298
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8299
8300
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8301
   # Insert the option either (1) after the last *FLAGS variable, or
8302
   # (2) before a word containing "conftest.", or (3) at the end.
8303
   # Note that $ac_compile itself does not contain backslashes and begins
8304
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8305
   lt_compile=`echo "$ac_compile" | $SED \
8306
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8307
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8308
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8309
   (eval echo "\"\$as_me:8309: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8310
   (eval "$lt_compile" 2>out/conftest.err)
8311
   ac_status=$?
8312
   cat out/conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8313
   echo "$as_me:8313: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8314
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8315
   then
8316
     # The compiler can only warn and ignore the option if not recognized
8317
     # So say no if there are warnings
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8318
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8319
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8320
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8321
       lt_cv_prog_compiler_c_o=yes
8322
     fi
8323
   fi
8324
   chmod u+w . 2>&5
8325
   $rm conftest*
8326
   # SGI C++ compiler will create directory out/ii_files/ for
8327
   # template instantiation
8328
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8329
   $rm out/* && rmdir out
8330
   cd ..
8331
   rmdir conftest
8332
   $rm conftest*
8333
8334
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8336
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8337
8338
8339
hard_links="nottested"
8340
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8341
  # do not overwrite the value of need_locks provided by the user
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8342
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8343
$as_echo_n "checking if we can lock with hard links... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8344
  hard_links=yes
8345
  $rm conftest*
8346
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8347
  touch conftest.a
8348
  ln conftest.a conftest.b 2>&5 || hard_links=no
8349
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8350
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8351
$as_echo "$hard_links" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8352
  if test "$hard_links" = no; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8353
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8354
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8355
    need_locks=warn
8356
  fi
8357
else
8358
  need_locks=no
8359
fi
8360
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8361
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8362
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8363
8364
  runpath_var=
8365
  allow_undefined_flag=
8366
  enable_shared_with_static_runtimes=no
8367
  archive_cmds=
8368
  archive_expsym_cmds=
8369
  old_archive_From_new_cmds=
8370
  old_archive_from_expsyms_cmds=
8371
  export_dynamic_flag_spec=
8372
  whole_archive_flag_spec=
8373
  thread_safe_flag_spec=
8374
  hardcode_libdir_flag_spec=
8375
  hardcode_libdir_flag_spec_ld=
8376
  hardcode_libdir_separator=
8377
  hardcode_direct=no
8378
  hardcode_minus_L=no
8379
  hardcode_shlibpath_var=unsupported
8380
  link_all_deplibs=unknown
8381
  hardcode_automatic=no
8382
  module_cmds=
8383
  module_expsym_cmds=
8384
  always_export_symbols=no
8385
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8386
  # include_expsyms should be a list of space-separated symbols to be *always*
8387
  # included in the symbol list
8388
  include_expsyms=
8389
  # exclude_expsyms can be an extended regexp of symbols to exclude
8390
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8391
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8392
  # as well as any symbol that contains `d'.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8393
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8394
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8395
  # platforms (ab)use it in PIC code, but their linkers get confused if
8396
  # the symbol is explicitly referenced.  Since portable code cannot
8397
  # rely on this symbol name, it's probably fine to never include it in
8398
  # preloaded symbol tables.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8399
  # Exclude shared library initialization/finalization symbols.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8400
  extract_expsyms_cmds=
8401
  # Just being paranoid about ensuring that cc_basename is set.
8402
  for cc_temp in $compiler""; do
8403
  case $cc_temp in
8404
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8405
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8406
    \-*) ;;
8407
    *) break;;
8408
  esac
8409
done
8410
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8411
8412
  case $host_os in
8413
  cygwin* | mingw* | pw32*)
8414
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8415
    # When not using gcc, we currently assume that we are using
8416
    # Microsoft Visual C++.
8417
    if test "$GCC" != yes; then
8418
      with_gnu_ld=no
8419
    fi
8420
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8421
  interix*)
8422
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8423
    with_gnu_ld=yes
8424
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8425
  openbsd*)
8426
    with_gnu_ld=no
8427
    ;;
8428
  esac
8429
8430
  ld_shlibs=yes
8431
  if test "$with_gnu_ld" = yes; then
8432
    # If archive_cmds runs LD, not CC, wlarc should be empty
8433
    wlarc='${wl}'
8434
8435
    # Set some defaults for GNU ld with shared library support. These
8436
    # are reset later if shared libraries are not supported. Putting them
8437
    # here allows them to be overridden if necessary.
8438
    runpath_var=LD_RUN_PATH
8439
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8440
    export_dynamic_flag_spec='${wl}--export-dynamic'
8441
    # ancient GNU ld didn't support --whole-archive et. al.
8442
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8443
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8444
      else
8445
  	whole_archive_flag_spec=
8446
    fi
8447
    supports_anon_versioning=no
8448
    case `$LD -v 2>/dev/null` in
8449
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8450
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8451
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8452
      *\ 2.11.*) ;; # other 2.11 versions
8453
      *) supports_anon_versioning=yes ;;
8454
    esac
8455
8456
    # See if GNU ld supports shared libraries.
8457
    case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8458
    aix[3-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8459
      # On AIX/PPC, the GNU linker is very broken
8460
      if test "$host_cpu" != ia64; then
8461
	ld_shlibs=no
8462
	cat <<EOF 1>&2
8463
8464
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8465
*** to be unable to reliably create shared libraries on AIX.
8466
*** Therefore, libtool is disabling shared libraries support.  If you
8467
*** really care for shared libraries, you may want to modify your PATH
8468
*** so that a non-GNU linker is found, and then restart.
8469
8470
EOF
8471
      fi
8472
      ;;
8473
8474
    amigaos*)
8475
      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)'
8476
      hardcode_libdir_flag_spec='-L$libdir'
8477
      hardcode_minus_L=yes
8478
8479
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8480
      # that the semantics of dynamic libraries on AmigaOS, at least up
8481
      # to version 4, is to share data among multiple programs linked
8482
      # with the same dynamic library.  Since this doesn't match the
8483
      # behavior of shared libraries on other platforms, we can't use
8484
      # them.
8485
      ld_shlibs=no
8486
      ;;
8487
8488
    beos*)
8489
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8490
	allow_undefined_flag=unsupported
8491
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8492
	# support --undefined.  This deserves some investigation.  FIXME
8493
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494
      else
8495
	ld_shlibs=no
8496
      fi
8497
      ;;
8498
8499
    cygwin* | mingw* | pw32*)
8500
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8501
      # as there is no search path for DLLs.
8502
      hardcode_libdir_flag_spec='-L$libdir'
8503
      allow_undefined_flag=unsupported
8504
      always_export_symbols=no
8505
      enable_shared_with_static_runtimes=yes
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8506
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8507
8508
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8509
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8510
	# If the export-symbols file already is a .def file (1st line
8511
	# is EXPORTS), use it as is; otherwise, prepend...
8512
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8513
	  cp $export_symbols $output_objdir/$soname.def;
8514
	else
8515
	  echo EXPORTS > $output_objdir/$soname.def;
8516
	  cat $export_symbols >> $output_objdir/$soname.def;
8517
	fi~
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8518
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8519
      else
8520
	ld_shlibs=no
8521
      fi
8522
      ;;
8523
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8524
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8525
      hardcode_direct=no
8526
      hardcode_shlibpath_var=no
8527
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528
      export_dynamic_flag_spec='${wl}-E'
8529
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8530
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8531
      # default) and relocated if they conflict, which is a slow very memory
8532
      # consuming and fragmenting process.  To avoid this, we pick a random,
8533
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8534
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8535
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8536
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8537
      ;;
8538
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8539
    gnu* | linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8540
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8541
	tmp_addflag=
8542
	case $cc_basename,$host_cpu in
8543
	pgcc*)				# Portland Group C compiler
8544
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8545
	  tmp_addflag=' $pic_flag'
8546
	  ;;
8547
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8548
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8549
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8550
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8551
	  tmp_addflag=' -i_dynamic' ;;
8552
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8553
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8554
	ifc* | ifort*)			# Intel Fortran compiler
8555
	  tmp_addflag=' -nofor_main' ;;
8556
	esac
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8557
	case `$CC -V 2>&1 | sed 5q` in
8558
	*Sun\ C*)			# Sun C 5.9
8559
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8560
	  tmp_sharedflag='-G' ;;
8561
	*Sun\ F*)			# Sun Fortran 8.3
8562
	  tmp_sharedflag='-G' ;;
8563
	*)
8564
	  tmp_sharedflag='-shared' ;;
8565
	esac
8566
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8567
8568
	if test $supports_anon_versioning = yes; then
8569
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8570
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8571
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8572
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8573
	fi
8574
      else
8575
	ld_shlibs=no
8576
      fi
8577
      ;;
8578
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8579
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8580
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8581
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8582
	wlarc=
8583
      else
8584
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586
      fi
8587
      ;;
8588
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8589
    solaris*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8590
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8591
	ld_shlibs=no
8592
	cat <<EOF 1>&2
8593
8594
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8595
*** create shared libraries on Solaris systems.  Therefore, libtool
8596
*** is disabling shared libraries support.  We urge you to upgrade GNU
8597
*** binutils to release 2.9.1 or newer.  Another option is to modify
8598
*** your PATH or compiler configuration so that the native linker is
8599
*** used, and then restart.
8600
8601
EOF
8602
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8603
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605
      else
8606
	ld_shlibs=no
8607
      fi
8608
      ;;
8609
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8610
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8611
      case `$LD -v 2>&1` in
8612
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8613
	ld_shlibs=no
8614
	cat <<_LT_EOF 1>&2
8615
8616
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8617
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8618
*** is disabling shared libraries support.  We urge you to upgrade GNU
8619
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8620
*** your PATH or compiler configuration so that the native linker is
8621
*** used, and then restart.
8622
8623
_LT_EOF
8624
	;;
8625
	*)
8626
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8627
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8628
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8629
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8630
	  else
8631
	    ld_shlibs=no
8632
	  fi
8633
	;;
8634
      esac
8635
      ;;
8636
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8637
    sunos4*)
8638
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8639
      wlarc=
8640
      hardcode_direct=yes
8641
      hardcode_shlibpath_var=no
8642
      ;;
8643
8644
    *)
8645
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8646
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8648
      else
8649
	ld_shlibs=no
8650
      fi
8651
      ;;
8652
    esac
8653
8654
    if test "$ld_shlibs" = no; then
8655
      runpath_var=
8656
      hardcode_libdir_flag_spec=
8657
      export_dynamic_flag_spec=
8658
      whole_archive_flag_spec=
8659
    fi
8660
  else
8661
    # PORTME fill in a description of your system's linker (not GNU ld)
8662
    case $host_os in
8663
    aix3*)
8664
      allow_undefined_flag=unsupported
8665
      always_export_symbols=yes
8666
      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'
8667
      # Note: this linker hardcodes the directories in LIBPATH if there
8668
      # are no directories specified by -L.
8669
      hardcode_minus_L=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8670
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8671
	# Neither direct hardcoding nor static linking is supported with a
8672
	# broken collect2.
8673
	hardcode_direct=unsupported
8674
      fi
8675
      ;;
8676
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8677
    aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8678
      if test "$host_cpu" = ia64; then
8679
	# On IA64, the linker does run time linking by default, so we don't
8680
	# have to do anything special.
8681
	aix_use_runtimelinking=no
8682
	exp_sym_flag='-Bexport'
8683
	no_entry_flag=""
8684
      else
8685
	# If we're using GNU nm, then we don't want the "-C" option.
8686
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8687
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8688
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8689
	else
8690
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8691
	fi
8692
	aix_use_runtimelinking=no
8693
8694
	# Test if we are trying to use run time linking or normal
8695
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8696
	# need to do runtime linking.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8697
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8698
	  for ld_flag in $LDFLAGS; do
8699
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8700
  	    aix_use_runtimelinking=yes
8701
  	    break
8702
  	  fi
8703
	  done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8704
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8705
	esac
8706
8707
	exp_sym_flag='-bexport'
8708
	no_entry_flag='-bnoentry'
8709
      fi
8710
8711
      # When large executables or shared objects are built, AIX ld can
8712
      # have problems creating the table of contents.  If linking a library
8713
      # or program results in "error TOC overflow" add -mminimal-toc to
8714
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8715
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8716
8717
      archive_cmds=''
8718
      hardcode_direct=yes
8719
      hardcode_libdir_separator=':'
8720
      link_all_deplibs=yes
8721
8722
      if test "$GCC" = yes; then
8723
	case $host_os in aix4.[012]|aix4.[012].*)
8724
	# We only want to do this on AIX 4.2 and lower, the check
8725
	# below for broken collect2 doesn't work under 4.3+
8726
	  collect2name=`${CC} -print-prog-name=collect2`
8727
	  if test -f "$collect2name" && \
8728
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8729
	  then
8730
  	  # We have reworked collect2
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8731
  	  :
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8732
	  else
8733
  	  # We have old collect2
8734
  	  hardcode_direct=unsupported
8735
  	  # It fails to find uninstalled libraries when the uninstalled
8736
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8737
  	  # to unsupported forces relinking
8738
  	  hardcode_minus_L=yes
8739
  	  hardcode_libdir_flag_spec='-L$libdir'
8740
  	  hardcode_libdir_separator=
8741
	  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8742
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8743
	esac
8744
	shared_flag='-shared'
8745
	if test "$aix_use_runtimelinking" = yes; then
8746
	  shared_flag="$shared_flag "'${wl}-G'
8747
	fi
8748
      else
8749
	# not using gcc
8750
	if test "$host_cpu" = ia64; then
8751
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8752
  	# chokes on -Wl,-G. The following line is correct:
8753
	  shared_flag='-G'
8754
	else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8755
	  if test "$aix_use_runtimelinking" = yes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8756
	    shared_flag='${wl}-G'
8757
	  else
8758
	    shared_flag='${wl}-bM:SRE'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8759
	  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8760
	fi
8761
      fi
8762
8763
      # It seems that -bexpall does not export symbols beginning with
8764
      # underscore (_), so it is better to generate a list of symbols to export.
8765
      always_export_symbols=yes
8766
      if test "$aix_use_runtimelinking" = yes; then
8767
	# Warning - without using the other runtime loading flags (-brtl),
8768
	# -berok will link without error, but may produce a broken library.
8769
	allow_undefined_flag='-berok'
8770
       # Determine the default libpath from the value encoded in an empty executable.
8771
       cat >conftest.$ac_ext <<_ACEOF
8772
/* confdefs.h.  */
8773
_ACEOF
8774
cat confdefs.h >>conftest.$ac_ext
8775
cat >>conftest.$ac_ext <<_ACEOF
8776
/* end confdefs.h.  */
8777
8778
int
8779
main ()
8780
{
8781
8782
  ;
8783
  return 0;
8784
}
8785
_ACEOF
8786
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8787
if { (ac_try="$ac_link"
8788
case "(($ac_try" in
8789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790
  *) ac_try_echo=$ac_try;;
8791
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8793
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8794
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8795
  ac_status=$?
8796
  grep -v '^ *+' conftest.er1 >conftest.err
8797
  rm -f conftest.er1
8798
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8800
  (exit $ac_status); } && {
8801
	 test -z "$ac_c_werror_flag" ||
8802
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8803
       } && test -s conftest$ac_exeext && {
8804
	 test "$cross_compiling" = yes ||
8805
	 $as_test_x conftest$ac_exeext
8806
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8807
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8808
lt_aix_libpath_sed='
8809
    /Import File Strings/,/^$/ {
8810
	/^0/ {
8811
	    s/^0  *\(.*\)$/\1/
8812
	    p
8813
	}
8814
    }'
8815
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8816
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8817
if test -z "$aix_libpath"; then
8818
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8819
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8820
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8821
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8822
sed 's/^/| /' conftest.$ac_ext >&5
8823
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8824
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8825
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8826
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8827
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8828
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8829
      conftest$ac_exeext conftest.$ac_ext
8830
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8831
8832
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8833
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8834
       else
8835
	if test "$host_cpu" = ia64; then
8836
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8837
	  allow_undefined_flag="-z nodefs"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8838
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8839
	else
8840
	 # Determine the default libpath from the value encoded in an empty executable.
8841
	 cat >conftest.$ac_ext <<_ACEOF
8842
/* confdefs.h.  */
8843
_ACEOF
8844
cat confdefs.h >>conftest.$ac_ext
8845
cat >>conftest.$ac_ext <<_ACEOF
8846
/* end confdefs.h.  */
8847
8848
int
8849
main ()
8850
{
8851
8852
  ;
8853
  return 0;
8854
}
8855
_ACEOF
8856
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8857
if { (ac_try="$ac_link"
8858
case "(($ac_try" in
8859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860
  *) ac_try_echo=$ac_try;;
8861
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8864
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8865
  ac_status=$?
8866
  grep -v '^ *+' conftest.er1 >conftest.err
8867
  rm -f conftest.er1
8868
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8869
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8870
  (exit $ac_status); } && {
8871
	 test -z "$ac_c_werror_flag" ||
8872
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8873
       } && test -s conftest$ac_exeext && {
8874
	 test "$cross_compiling" = yes ||
8875
	 $as_test_x conftest$ac_exeext
8876
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8877
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8878
lt_aix_libpath_sed='
8879
    /Import File Strings/,/^$/ {
8880
	/^0/ {
8881
	    s/^0  *\(.*\)$/\1/
8882
	    p
8883
	}
8884
    }'
8885
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8886
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8887
if test -z "$aix_libpath"; then
8888
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8890
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8891
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8892
sed 's/^/| /' conftest.$ac_ext >&5
8893
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8894
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8895
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8896
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8897
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8898
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8899
      conftest$ac_exeext conftest.$ac_ext
8900
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8901
8902
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8903
	  # Warning - without using the other run time loading flags,
8904
	  # -berok will link without error, but may produce a broken library.
8905
	  no_undefined_flag=' ${wl}-bernotok'
8906
	  allow_undefined_flag=' ${wl}-berok'
8907
	  # Exported symbols can be pulled into shared objects from archives
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8908
	  whole_archive_flag_spec='$convenience'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8909
	  archive_cmds_need_lc=yes
8910
	  # This is similar to how AIX traditionally builds its shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
8911
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8912
	fi
8913
      fi
8914
      ;;
8915
8916
    amigaos*)
8917
      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)'
8918
      hardcode_libdir_flag_spec='-L$libdir'
8919
      hardcode_minus_L=yes
8920
      # see comment about different semantics on the GNU ld section
8921
      ld_shlibs=no
8922
      ;;
8923
8924
    bsdi[45]*)
8925
      export_dynamic_flag_spec=-rdynamic
8926
      ;;
8927
8928
    cygwin* | mingw* | pw32*)
8929
      # When not using gcc, we currently assume that we are using
8930
      # Microsoft Visual C++.
8931
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8932
      # no search path for DLLs.
8933
      hardcode_libdir_flag_spec=' '
8934
      allow_undefined_flag=unsupported
8935
      # Tell ltmain to make .lib files, not .a files.
8936
      libext=lib
8937
      # Tell ltmain to make .dll files, not .so files.
8938
      shrext_cmds=".dll"
8939
      # FIXME: Setting linknames here is a bad hack.
8940
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8941
      # The linker will automatically build a .lib file if we build a DLL.
8942
      old_archive_From_new_cmds='true'
8943
      # FIXME: Should let the user specify the lib program.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8944
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8945
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8946
      enable_shared_with_static_runtimes=yes
8947
      ;;
8948
8949
    darwin* | rhapsody*)
8950
      case $host_os in
8951
        rhapsody* | darwin1.[012])
8952
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8953
         ;;
8954
       *) # Darwin 1.3 on
8955
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8956
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8957
         else
8958
           case ${MACOSX_DEPLOYMENT_TARGET} in
8959
             10.[012])
8960
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8961
               ;;
8962
             10.*)
8963
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8964
               ;;
8965
           esac
8966
         fi
8967
         ;;
8968
      esac
8969
      archive_cmds_need_lc=no
8970
      hardcode_direct=no
8971
      hardcode_automatic=yes
8972
      hardcode_shlibpath_var=unsupported
8973
      whole_archive_flag_spec=''
8974
      link_all_deplibs=yes
8975
    if test "$GCC" = yes ; then
8976
    	output_verbose_link_cmd='echo'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
8977
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8978
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8979
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8980
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8981
    else
8982
      case $cc_basename in
8983
        xlc*)
8984
         output_verbose_link_cmd='echo'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8985
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8986
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8987
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
8988
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
8989
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8990
          ;;
8991
       *)
8992
         ld_shlibs=no
8993
          ;;
8994
      esac
8995
    fi
8996
      ;;
8997
8998
    dgux*)
8999
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000
      hardcode_libdir_flag_spec='-L$libdir'
9001
      hardcode_shlibpath_var=no
9002
      ;;
9003
9004
    freebsd1*)
9005
      ld_shlibs=no
9006
      ;;
9007
9008
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9009
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9010
    # does not break anything, and helps significantly (at the cost of a little
9011
    # extra space).
9012
    freebsd2.2*)
9013
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9014
      hardcode_libdir_flag_spec='-R$libdir'
9015
      hardcode_direct=yes
9016
      hardcode_shlibpath_var=no
9017
      ;;
9018
9019
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9020
    freebsd2*)
9021
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022
      hardcode_direct=yes
9023
      hardcode_minus_L=yes
9024
      hardcode_shlibpath_var=no
9025
      ;;
9026
9027
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9028
    freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9029
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9030
      hardcode_libdir_flag_spec='-R$libdir'
9031
      hardcode_direct=yes
9032
      hardcode_shlibpath_var=no
9033
      ;;
9034
9035
    hpux9*)
9036
      if test "$GCC" = yes; then
9037
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9038
      else
9039
	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'
9040
      fi
9041
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9042
      hardcode_libdir_separator=:
9043
      hardcode_direct=yes
9044
9045
      # hardcode_minus_L: Not really in the search PATH,
9046
      # but as the default location of the library.
9047
      hardcode_minus_L=yes
9048
      export_dynamic_flag_spec='${wl}-E'
9049
      ;;
9050
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9051
    hpux10*)
9052
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9053
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9054
      else
9055
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9056
      fi
9057
      if test "$with_gnu_ld" = no; then
9058
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9059
	hardcode_libdir_separator=:
9060
9061
	hardcode_direct=yes
9062
	export_dynamic_flag_spec='${wl}-E'
9063
9064
	# hardcode_minus_L: Not really in the search PATH,
9065
	# but as the default location of the library.
9066
	hardcode_minus_L=yes
9067
      fi
9068
      ;;
9069
9070
    hpux11*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9071
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9072
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9073
	hppa*64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9074
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075
	  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9076
	ia64*)
9077
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9079
	*)
9080
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081
	  ;;
9082
	esac
9083
      else
9084
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9085
	hppa*64*)
9086
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087
	  ;;
9088
	ia64*)
9089
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9090
	  ;;
9091
	*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9092
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9093
	  ;;
9094
	esac
9095
      fi
9096
      if test "$with_gnu_ld" = no; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9097
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9098
	hardcode_libdir_separator=:
9099
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9100
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9101
	hppa*64*|ia64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9102
	  hardcode_libdir_flag_spec_ld='+b $libdir'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9103
	  hardcode_direct=no
9104
	  hardcode_shlibpath_var=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9105
	  ;;
9106
	*)
9107
	  hardcode_direct=yes
9108
	  export_dynamic_flag_spec='${wl}-E'
9109
9110
	  # hardcode_minus_L: Not really in the search PATH,
9111
	  # but as the default location of the library.
9112
	  hardcode_minus_L=yes
9113
	  ;;
9114
	esac
9115
      fi
9116
      ;;
9117
9118
    irix5* | irix6* | nonstopux*)
9119
      if test "$GCC" = yes; then
9120
	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'
9121
      else
9122
	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'
9123
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9124
      fi
9125
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9126
      hardcode_libdir_separator=:
9127
      link_all_deplibs=yes
9128
      ;;
9129
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9130
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9131
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9132
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9133
      else
9134
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9135
      fi
9136
      hardcode_libdir_flag_spec='-R$libdir'
9137
      hardcode_direct=yes
9138
      hardcode_shlibpath_var=no
9139
      ;;
9140
9141
    newsos6)
9142
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143
      hardcode_direct=yes
9144
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145
      hardcode_libdir_separator=:
9146
      hardcode_shlibpath_var=no
9147
      ;;
9148
9149
    openbsd*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9150
      if test -f /usr/libexec/ld.so; then
9151
	hardcode_direct=yes
9152
	hardcode_shlibpath_var=no
9153
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9154
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9155
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9156
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9157
	  export_dynamic_flag_spec='${wl}-E'
9158
	else
9159
	  case $host_os in
9160
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9161
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162
	     hardcode_libdir_flag_spec='-R$libdir'
9163
	     ;;
9164
	   *)
9165
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9167
	     ;;
9168
	  esac
9169
        fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9170
      else
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9171
	ld_shlibs=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9172
      fi
9173
      ;;
9174
9175
    os2*)
9176
      hardcode_libdir_flag_spec='-L$libdir'
9177
      hardcode_minus_L=yes
9178
      allow_undefined_flag=unsupported
9179
      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'
9180
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9181
      ;;
9182
9183
    osf3*)
9184
      if test "$GCC" = yes; then
9185
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9186
	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'
9187
      else
9188
	allow_undefined_flag=' -expect_unresolved \*'
9189
	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'
9190
      fi
9191
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192
      hardcode_libdir_separator=:
9193
      ;;
9194
9195
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9196
      if test "$GCC" = yes; then
9197
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9198
	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'
9199
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9200
      else
9201
	allow_undefined_flag=' -expect_unresolved \*'
9202
	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'
9203
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9204
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9205
9206
	# Both c and cxx compiler support -rpath directly
9207
	hardcode_libdir_flag_spec='-rpath $libdir'
9208
      fi
9209
      hardcode_libdir_separator=:
9210
      ;;
9211
9212
    solaris*)
9213
      no_undefined_flag=' -z text'
9214
      if test "$GCC" = yes; then
9215
	wlarc='${wl}'
9216
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9217
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9218
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9219
      else
9220
	wlarc=''
9221
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9223
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9224
      fi
9225
      hardcode_libdir_flag_spec='-R$libdir'
9226
      hardcode_shlibpath_var=no
9227
      case $host_os in
9228
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9229
      *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9230
	# The compiler driver will combine and reorder linker options,
9231
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9232
	# but is careful enough not to reorder.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9233
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9234
	if test "$GCC" = yes; then
9235
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9236
	else
9237
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9238
	fi
9239
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9240
      esac
9241
      link_all_deplibs=yes
9242
      ;;
9243
9244
    sunos4*)
9245
      if test "x$host_vendor" = xsequent; then
9246
	# Use $CC to link under sequent, because it throws in some extra .o
9247
	# files that make .init and .fini sections work.
9248
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9249
      else
9250
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9251
      fi
9252
      hardcode_libdir_flag_spec='-L$libdir'
9253
      hardcode_direct=yes
9254
      hardcode_minus_L=yes
9255
      hardcode_shlibpath_var=no
9256
      ;;
9257
9258
    sysv4)
9259
      case $host_vendor in
9260
	sni)
9261
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262
	  hardcode_direct=yes # is this really true???
9263
	;;
9264
	siemens)
9265
	  ## LD is ld it makes a PLAMLIB
9266
	  ## CC just makes a GrossModule.
9267
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9268
	  reload_cmds='$CC -r -o $output$reload_objs'
9269
	  hardcode_direct=no
9270
        ;;
9271
	motorola)
9272
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9274
	;;
9275
      esac
9276
      runpath_var='LD_RUN_PATH'
9277
      hardcode_shlibpath_var=no
9278
      ;;
9279
9280
    sysv4.3*)
9281
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282
      hardcode_shlibpath_var=no
9283
      export_dynamic_flag_spec='-Bexport'
9284
      ;;
9285
9286
    sysv4*MP*)
9287
      if test -d /usr/nec; then
9288
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289
	hardcode_shlibpath_var=no
9290
	runpath_var=LD_RUN_PATH
9291
	hardcode_runpath_var=yes
9292
	ld_shlibs=yes
9293
      fi
9294
      ;;
9295
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9296
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9297
      no_undefined_flag='${wl}-z,text'
9298
      archive_cmds_need_lc=no
9299
      hardcode_shlibpath_var=no
9300
      runpath_var='LD_RUN_PATH'
9301
9302
      if test "$GCC" = yes; then
9303
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305
      else
9306
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308
      fi
9309
      ;;
9310
9311
    sysv5* | sco3.2v5* | sco5v6*)
9312
      # Note: We can NOT use -z defs as we might desire, because we do not
9313
      # link with -lc, and that would cause any symbols used from libc to
9314
      # always be unresolved, which means just about no library would
9315
      # ever link correctly.  If we're not using GNU ld we use -z text
9316
      # though, which does catch some bad symbols but isn't as heavy-handed
9317
      # as -z defs.
9318
      no_undefined_flag='${wl}-z,text'
9319
      allow_undefined_flag='${wl}-z,nodefs'
9320
      archive_cmds_need_lc=no
9321
      hardcode_shlibpath_var=no
9322
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9323
      hardcode_libdir_separator=':'
9324
      link_all_deplibs=yes
9325
      export_dynamic_flag_spec='${wl}-Bexport'
9326
      runpath_var='LD_RUN_PATH'
9327
9328
      if test "$GCC" = yes; then
9329
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331
      else
9332
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9334
      fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9335
      ;;
9336
9337
    uts4*)
9338
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339
      hardcode_libdir_flag_spec='-L$libdir'
9340
      hardcode_shlibpath_var=no
9341
      ;;
9342
9343
    *)
9344
      ld_shlibs=no
9345
      ;;
9346
    esac
9347
  fi
9348
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9349
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9350
$as_echo "$ld_shlibs" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9351
test "$ld_shlibs" = no && can_build_shared=no
9352
9353
#
9354
# Do we need to explicitly link libc?
9355
#
9356
case "x$archive_cmds_need_lc" in
9357
x|xyes)
9358
  # Assume -lc should be added
9359
  archive_cmds_need_lc=yes
9360
9361
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9362
    case $archive_cmds in
9363
    *'~'*)
9364
      # FIXME: we may have to deal with multi-command sequences.
9365
      ;;
9366
    '$CC '*)
9367
      # Test whether the compiler implicitly links with -lc since on some
9368
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9369
      # to ld, don't add -lc before -lgcc.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9370
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9371
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9372
      $rm conftest*
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9373
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9374
9375
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376
  (eval $ac_compile) 2>&5
9377
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9378
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9379
  (exit $ac_status); } 2>conftest.err; then
9380
        soname=conftest
9381
        lib=conftest
9382
        libobjs=conftest.$ac_objext
9383
        deplibs=
9384
        wl=$lt_prog_compiler_wl
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9385
	pic_flag=$lt_prog_compiler_pic
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9386
        compiler_flags=-v
9387
        linker_flags=-v
9388
        verstring=
9389
        output_objdir=.
9390
        libname=conftest
9391
        lt_save_allow_undefined_flag=$allow_undefined_flag
9392
        allow_undefined_flag=
9393
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9394
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9395
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9396
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9397
  (exit $ac_status); }
9398
        then
9399
	  archive_cmds_need_lc=no
9400
        else
9401
	  archive_cmds_need_lc=yes
9402
        fi
9403
        allow_undefined_flag=$lt_save_allow_undefined_flag
9404
      else
9405
        cat conftest.err 1>&5
9406
      fi
9407
      $rm conftest*
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9408
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9409
$as_echo "$archive_cmds_need_lc" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9410
      ;;
9411
    esac
9412
  fi
9413
  ;;
9414
esac
9415
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9416
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9417
$as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9418
library_names_spec=
9419
libname_spec='lib$name'
9420
soname_spec=
9421
shrext_cmds=".so"
9422
postinstall_cmds=
9423
postuninstall_cmds=
9424
finish_cmds=
9425
finish_eval=
9426
shlibpath_var=
9427
shlibpath_overrides_runpath=unknown
9428
version_type=none
9429
dynamic_linker="$host_os ld.so"
9430
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9431
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9432
if test "$GCC" = yes; then
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9433
  case $host_os in
9434
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9435
    *) lt_awk_arg="/^libraries:/" ;;
9436
  esac
9437
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9438
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9439
    # if the path contains ";" then we assume it to be the separator
9440
    # otherwise default to the standard path separator (i.e. ":") - it is
9441
    # assumed that no part of a normal pathname contains ";" but that should
9442
    # okay in the real world where ";" in dirpaths is itself problematic.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9443
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9444
  else
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9445
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9446
  fi
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9447
  # Ok, now we have the path, separated by spaces, we can step through it
9448
  # and add multilib dir if necessary.
9449
  lt_tmp_lt_search_path_spec=
9450
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9451
  for lt_sys_path in $lt_search_path_spec; do
9452
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9453
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9454
    else
9455
      test -d "$lt_sys_path" && \
9456
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9457
    fi
9458
  done
9459
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9460
BEGIN {RS=" "; FS="/|\n";} {
9461
  lt_foo="";
9462
  lt_count=0;
9463
  for (lt_i = NF; lt_i > 0; lt_i--) {
9464
    if ($lt_i != "" && $lt_i != ".") {
9465
      if ($lt_i == "..") {
9466
        lt_count++;
9467
      } else {
9468
        if (lt_count == 0) {
9469
          lt_foo="/" $lt_i lt_foo;
9470
        } else {
9471
          lt_count--;
9472
        }
9473
      }
9474
    }
9475
  }
9476
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9477
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9478
}'`
9479
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9480
else
9481
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9482
fi
9483
need_lib_prefix=unknown
9484
hardcode_into_libs=no
9485
9486
# when you set need_version to no, make sure it does not cause -set_version
9487
# flags to be left without arguments
9488
need_version=unknown
9489
9490
case $host_os in
9491
aix3*)
9492
  version_type=linux
9493
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9494
  shlibpath_var=LIBPATH
9495
9496
  # AIX 3 has no versioning support, so we append a major version to the name.
9497
  soname_spec='${libname}${release}${shared_ext}$major'
9498
  ;;
9499
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9500
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9501
  version_type=linux
9502
  need_lib_prefix=no
9503
  need_version=no
9504
  hardcode_into_libs=yes
9505
  if test "$host_cpu" = ia64; then
9506
    # AIX 5 supports IA64
9507
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9508
    shlibpath_var=LD_LIBRARY_PATH
9509
  else
9510
    # With GCC up to 2.95.x, collect2 would create an import file
9511
    # for dependence libraries.  The import file would start with
9512
    # the line `#! .'.  This would cause the generated library to
9513
    # depend on `.', always an invalid library.  This was fixed in
9514
    # development snapshots of GCC prior to 3.0.
9515
    case $host_os in
9516
      aix4 | aix4.[01] | aix4.[01].*)
9517
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9518
	   echo ' yes '
9519
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9520
	:
9521
      else
9522
	can_build_shared=no
9523
      fi
9524
      ;;
9525
    esac
9526
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9527
    # soname into executable. Probably we can add versioning support to
9528
    # collect2, so additional links can be useful in future.
9529
    if test "$aix_use_runtimelinking" = yes; then
9530
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9531
      # instead of lib<name>.a to let people know that these are not
9532
      # typical AIX shared libraries.
9533
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534
    else
9535
      # We preserve .a as extension for shared libraries through AIX4.2
9536
      # and later when we are not doing run time linking.
9537
      library_names_spec='${libname}${release}.a $libname.a'
9538
      soname_spec='${libname}${release}${shared_ext}$major'
9539
    fi
9540
    shlibpath_var=LIBPATH
9541
  fi
9542
  ;;
9543
9544
amigaos*)
9545
  library_names_spec='$libname.ixlibrary $libname.a'
9546
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9547
  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'
9548
  ;;
9549
9550
beos*)
9551
  library_names_spec='${libname}${shared_ext}'
9552
  dynamic_linker="$host_os ld.so"
9553
  shlibpath_var=LIBRARY_PATH
9554
  ;;
9555
9556
bsdi[45]*)
9557
  version_type=linux
9558
  need_version=no
9559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560
  soname_spec='${libname}${release}${shared_ext}$major'
9561
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9562
  shlibpath_var=LD_LIBRARY_PATH
9563
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9564
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9565
  # the default ld.so.conf also contains /usr/contrib/lib and
9566
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9567
  # libtool to hard-code these into programs
9568
  ;;
9569
9570
cygwin* | mingw* | pw32*)
9571
  version_type=windows
9572
  shrext_cmds=".dll"
9573
  need_version=no
9574
  need_lib_prefix=no
9575
9576
  case $GCC,$host_os in
9577
  yes,cygwin* | yes,mingw* | yes,pw32*)
9578
    library_names_spec='$libname.dll.a'
9579
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9580
    postinstall_cmds='base_file=`basename \${file}`~
9581
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9582
      dldir=$destdir/`dirname \$dlpath`~
9583
      test -d \$dldir || mkdir -p \$dldir~
9584
      $install_prog $dir/$dlname \$dldir/$dlname~
9585
      chmod a+x \$dldir/$dlname'
9586
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9587
      dlpath=$dir/\$dldll~
9588
       $rm \$dlpath'
9589
    shlibpath_overrides_runpath=yes
9590
9591
    case $host_os in
9592
    cygwin*)
9593
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9594
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9595
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9596
      ;;
9597
    mingw*)
9598
      # MinGW DLLs use traditional 'lib' prefix
9599
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9601
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9602
        # It is most probably a Windows format PATH printed by
9603
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9604
        # path with ; separators, and with drive letters. We can handle the
9605
        # drive letters (cygwin fileutils understands them), so leave them,
9606
        # especially as we might pass files found there to a mingw objdump,
9607
        # which wouldn't understand a cygwinified path. Ahh.
9608
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9609
      else
9610
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9611
      fi
9612
      ;;
9613
    pw32*)
9614
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9615
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9616
      ;;
9617
    esac
9618
    ;;
9619
9620
  *)
9621
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9622
    ;;
9623
  esac
9624
  dynamic_linker='Win32 ld.exe'
9625
  # FIXME: first we should search . and the directory the executable is in
9626
  shlibpath_var=PATH
9627
  ;;
9628
9629
darwin* | rhapsody*)
9630
  dynamic_linker="$host_os dyld"
9631
  version_type=darwin
9632
  need_lib_prefix=no
9633
  need_version=no
9634
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9635
  soname_spec='${libname}${release}${major}$shared_ext'
9636
  shlibpath_overrides_runpath=yes
9637
  shlibpath_var=DYLD_LIBRARY_PATH
9638
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9639
9640
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9641
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9642
  ;;
9643
9644
dgux*)
9645
  version_type=linux
9646
  need_lib_prefix=no
9647
  need_version=no
9648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9649
  soname_spec='${libname}${release}${shared_ext}$major'
9650
  shlibpath_var=LD_LIBRARY_PATH
9651
  ;;
9652
9653
freebsd1*)
9654
  dynamic_linker=no
9655
  ;;
9656
9657
freebsd* | dragonfly*)
9658
  # DragonFly does not have aout.  When/if they implement a new
9659
  # versioning mechanism, adjust this.
9660
  if test -x /usr/bin/objformat; then
9661
    objformat=`/usr/bin/objformat`
9662
  else
9663
    case $host_os in
9664
    freebsd[123]*) objformat=aout ;;
9665
    *) objformat=elf ;;
9666
    esac
9667
  fi
9668
  version_type=freebsd-$objformat
9669
  case $version_type in
9670
    freebsd-elf*)
9671
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9672
      need_version=no
9673
      need_lib_prefix=no
9674
      ;;
9675
    freebsd-*)
9676
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9677
      need_version=yes
9678
      ;;
9679
  esac
9680
  shlibpath_var=LD_LIBRARY_PATH
9681
  case $host_os in
9682
  freebsd2*)
9683
    shlibpath_overrides_runpath=yes
9684
    ;;
9685
  freebsd3.[01]* | freebsdelf3.[01]*)
9686
    shlibpath_overrides_runpath=yes
9687
    hardcode_into_libs=yes
9688
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9689
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9690
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9691
    shlibpath_overrides_runpath=no
9692
    hardcode_into_libs=yes
9693
    ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9694
  *) # from 4.6 on, and DragonFly
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9695
    shlibpath_overrides_runpath=yes
9696
    hardcode_into_libs=yes
9697
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9698
  esac
9699
  ;;
9700
9701
gnu*)
9702
  version_type=linux
9703
  need_lib_prefix=no
9704
  need_version=no
9705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9706
  soname_spec='${libname}${release}${shared_ext}$major'
9707
  shlibpath_var=LD_LIBRARY_PATH
9708
  hardcode_into_libs=yes
9709
  ;;
9710
9711
hpux9* | hpux10* | hpux11*)
9712
  # Give a soname corresponding to the major version so that dld.sl refuses to
9713
  # link against other versions.
9714
  version_type=sunos
9715
  need_lib_prefix=no
9716
  need_version=no
9717
  case $host_cpu in
9718
  ia64*)
9719
    shrext_cmds='.so'
9720
    hardcode_into_libs=yes
9721
    dynamic_linker="$host_os dld.so"
9722
    shlibpath_var=LD_LIBRARY_PATH
9723
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9724
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725
    soname_spec='${libname}${release}${shared_ext}$major'
9726
    if test "X$HPUX_IA64_MODE" = X32; then
9727
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9728
    else
9729
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9730
    fi
9731
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9732
    ;;
9733
   hppa*64*)
9734
     shrext_cmds='.sl'
9735
     hardcode_into_libs=yes
9736
     dynamic_linker="$host_os dld.sl"
9737
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9738
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9739
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740
     soname_spec='${libname}${release}${shared_ext}$major'
9741
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9742
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9743
     ;;
9744
   *)
9745
    shrext_cmds='.sl'
9746
    dynamic_linker="$host_os dld.sl"
9747
    shlibpath_var=SHLIB_PATH
9748
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9749
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750
    soname_spec='${libname}${release}${shared_ext}$major'
9751
    ;;
9752
  esac
9753
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9754
  postinstall_cmds='chmod 555 $lib'
9755
  ;;
9756
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9757
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9758
  version_type=linux
9759
  need_lib_prefix=no
9760
  need_version=no
9761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9762
  soname_spec='${libname}${release}${shared_ext}$major'
9763
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9764
  shlibpath_var=LD_LIBRARY_PATH
9765
  shlibpath_overrides_runpath=no
9766
  hardcode_into_libs=yes
9767
  ;;
9768
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9769
irix5* | irix6* | nonstopux*)
9770
  case $host_os in
9771
    nonstopux*) version_type=nonstopux ;;
9772
    *)
9773
	if test "$lt_cv_prog_gnu_ld" = yes; then
9774
		version_type=linux
9775
	else
9776
		version_type=irix
9777
	fi ;;
9778
  esac
9779
  need_lib_prefix=no
9780
  need_version=no
9781
  soname_spec='${libname}${release}${shared_ext}$major'
9782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9783
  case $host_os in
9784
  irix5* | nonstopux*)
9785
    libsuff= shlibsuff=
9786
    ;;
9787
  *)
9788
    case $LD in # libtool.m4 will add one of these switches to LD
9789
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9790
      libsuff= shlibsuff= libmagic=32-bit;;
9791
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9792
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9793
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9794
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9795
    *) libsuff= shlibsuff= libmagic=never-match;;
9796
    esac
9797
    ;;
9798
  esac
9799
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9800
  shlibpath_overrides_runpath=no
9801
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9802
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9803
  hardcode_into_libs=yes
9804
  ;;
9805
9806
# No shared lib support for Linux oldld, aout, or coff.
9807
linux*oldld* | linux*aout* | linux*coff*)
9808
  dynamic_linker=no
9809
  ;;
9810
9811
# This must be Linux ELF.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9812
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9813
  version_type=linux
9814
  need_lib_prefix=no
9815
  need_version=no
9816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817
  soname_spec='${libname}${release}${shared_ext}$major'
9818
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9819
  shlibpath_var=LD_LIBRARY_PATH
9820
  shlibpath_overrides_runpath=no
9821
  # This implies no fast_install, which is unacceptable.
9822
  # Some rework will be needed to allow for fast_install
9823
  # before this can be enabled.
9824
  hardcode_into_libs=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9825
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9826
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9827
9828
  # Append ld.so.conf contents to the search path
9829
  if test -f /etc/ld.so.conf; then
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9830
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
9831
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9832
  fi
9833
9834
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9835
  # powerpc, because MkLinux only supported shared libraries with the
9836
  # GNU dynamic linker.  Since this was broken with cross compilers,
9837
  # most powerpc-linux boxes support dynamic linking these days and
9838
  # people can always --disable-shared, the test was removed, and we
9839
  # assume the GNU/Linux dynamic linker is in use.
9840
  dynamic_linker='GNU/Linux ld.so'
9841
  ;;
9842
9843
netbsd*)
9844
  version_type=sunos
9845
  need_lib_prefix=no
9846
  need_version=no
9847
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9848
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9849
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9850
    dynamic_linker='NetBSD (a.out) ld.so'
9851
  else
9852
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9853
    soname_spec='${libname}${release}${shared_ext}$major'
9854
    dynamic_linker='NetBSD ld.elf_so'
9855
  fi
9856
  shlibpath_var=LD_LIBRARY_PATH
9857
  shlibpath_overrides_runpath=yes
9858
  hardcode_into_libs=yes
9859
  ;;
9860
9861
newsos6)
9862
  version_type=linux
9863
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864
  shlibpath_var=LD_LIBRARY_PATH
9865
  shlibpath_overrides_runpath=yes
9866
  ;;
9867
9868
nto-qnx*)
9869
  version_type=linux
9870
  need_lib_prefix=no
9871
  need_version=no
9872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873
  soname_spec='${libname}${release}${shared_ext}$major'
9874
  shlibpath_var=LD_LIBRARY_PATH
9875
  shlibpath_overrides_runpath=yes
9876
  ;;
9877
9878
openbsd*)
9879
  version_type=sunos
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9880
  sys_lib_dlsearch_path_spec="/usr/lib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9881
  need_lib_prefix=no
9882
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9883
  case $host_os in
9884
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9885
    *)                         need_version=no  ;;
9886
  esac
9887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9888
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9889
  shlibpath_var=LD_LIBRARY_PATH
9890
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9891
    case $host_os in
9892
      openbsd2.[89] | openbsd2.[89].*)
9893
	shlibpath_overrides_runpath=no
9894
	;;
9895
      *)
9896
	shlibpath_overrides_runpath=yes
9897
	;;
9898
      esac
9899
  else
9900
    shlibpath_overrides_runpath=yes
9901
  fi
9902
  ;;
9903
9904
os2*)
9905
  libname_spec='$name'
9906
  shrext_cmds=".dll"
9907
  need_lib_prefix=no
9908
  library_names_spec='$libname${shared_ext} $libname.a'
9909
  dynamic_linker='OS/2 ld.exe'
9910
  shlibpath_var=LIBPATH
9911
  ;;
9912
9913
osf3* | osf4* | osf5*)
9914
  version_type=osf
9915
  need_lib_prefix=no
9916
  need_version=no
9917
  soname_spec='${libname}${release}${shared_ext}$major'
9918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919
  shlibpath_var=LD_LIBRARY_PATH
9920
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9921
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9922
  ;;
9923
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
9924
rdos*)
9925
  dynamic_linker=no
9926
  ;;
9927
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9928
solaris*)
9929
  version_type=linux
9930
  need_lib_prefix=no
9931
  need_version=no
9932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933
  soname_spec='${libname}${release}${shared_ext}$major'
9934
  shlibpath_var=LD_LIBRARY_PATH
9935
  shlibpath_overrides_runpath=yes
9936
  hardcode_into_libs=yes
9937
  # ldd complains unless libraries are executable
9938
  postinstall_cmds='chmod +x $lib'
9939
  ;;
9940
9941
sunos4*)
9942
  version_type=sunos
9943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9944
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9945
  shlibpath_var=LD_LIBRARY_PATH
9946
  shlibpath_overrides_runpath=yes
9947
  if test "$with_gnu_ld" = yes; then
9948
    need_lib_prefix=no
9949
  fi
9950
  need_version=yes
9951
  ;;
9952
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9953
sysv4 | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
9954
  version_type=linux
9955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956
  soname_spec='${libname}${release}${shared_ext}$major'
9957
  shlibpath_var=LD_LIBRARY_PATH
9958
  case $host_vendor in
9959
    sni)
9960
      shlibpath_overrides_runpath=no
9961
      need_lib_prefix=no
9962
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9963
      runpath_var=LD_RUN_PATH
9964
      ;;
9965
    siemens)
9966
      need_lib_prefix=no
9967
      ;;
9968
    motorola)
9969
      need_lib_prefix=no
9970
      need_version=no
9971
      shlibpath_overrides_runpath=no
9972
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9973
      ;;
9974
  esac
9975
  ;;
9976
9977
sysv4*MP*)
9978
  if test -d /usr/nec ;then
9979
    version_type=linux
9980
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9981
    soname_spec='$libname${shared_ext}.$major'
9982
    shlibpath_var=LD_LIBRARY_PATH
9983
  fi
9984
  ;;
9985
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
9986
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9987
  version_type=freebsd-elf
9988
  need_lib_prefix=no
9989
  need_version=no
9990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9991
  soname_spec='${libname}${release}${shared_ext}$major'
9992
  shlibpath_var=LD_LIBRARY_PATH
9993
  hardcode_into_libs=yes
9994
  if test "$with_gnu_ld" = yes; then
9995
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9996
    shlibpath_overrides_runpath=no
9997
  else
9998
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9999
    shlibpath_overrides_runpath=yes
10000
    case $host_os in
10001
      sco3.2v5*)
10002
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10003
	;;
10004
    esac
10005
  fi
10006
  sys_lib_dlsearch_path_spec='/usr/lib'
10007
  ;;
10008
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10009
uts4*)
10010
  version_type=linux
10011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012
  soname_spec='${libname}${release}${shared_ext}$major'
10013
  shlibpath_var=LD_LIBRARY_PATH
10014
  ;;
10015
10016
*)
10017
  dynamic_linker=no
10018
  ;;
10019
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10020
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10021
$as_echo "$dynamic_linker" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10022
test "$dynamic_linker" = no && can_build_shared=no
10023
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10024
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10025
  $as_echo_n "(cached) " >&6
10026
else
10027
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10028
fi
10029
10030
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10031
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10032
  $as_echo_n "(cached) " >&6
10033
else
10034
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10035
fi
10036
10037
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10038
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10039
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10040
if test "$GCC" = yes; then
10041
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10042
fi
10043
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10044
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10045
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10046
hardcode_action=
10047
if test -n "$hardcode_libdir_flag_spec" || \
10048
   test -n "$runpath_var" || \
10049
   test "X$hardcode_automatic" = "Xyes" ; then
10050
10051
  # We can hardcode non-existant directories.
10052
  if test "$hardcode_direct" != no &&
10053
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10054
     # have to relink, otherwise we might link with an installed library
10055
     # when we should be linking with a yet-to-be-installed one
10056
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10057
     test "$hardcode_minus_L" != no; then
10058
    # Linking always hardcodes the temporary library directory.
10059
    hardcode_action=relink
10060
  else
10061
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10062
    hardcode_action=immediate
10063
  fi
10064
else
10065
  # We cannot hardcode anything, or else we can only hardcode existing
10066
  # directories.
10067
  hardcode_action=unsupported
10068
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10069
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10070
$as_echo "$hardcode_action" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10071
10072
if test "$hardcode_action" = relink; then
10073
  # Fast installation is not supported
10074
  enable_fast_install=no
10075
elif test "$shlibpath_overrides_runpath" = yes ||
10076
     test "$enable_shared" = no; then
10077
  # Fast installation is not necessary
10078
  enable_fast_install=needless
10079
fi
10080
10081
striplib=
10082
old_striplib=
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10083
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10084
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10085
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10086
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10087
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10088
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10089
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10090
else
10091
# FIXME - insert some real tests, host_os isn't really good enough
10092
  case $host_os in
10093
   darwin*)
10094
       if test -n "$STRIP" ; then
10095
         striplib="$STRIP -x"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
10096
         old_striplib="$STRIP -S"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10097
         { $as_echo "$as_me:$LINENO: result: yes" >&5
10098
$as_echo "yes" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10099
       else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10100
  { $as_echo "$as_me:$LINENO: result: no" >&5
10101
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10102
fi
10103
       ;;
10104
   *)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10105
  { $as_echo "$as_me:$LINENO: result: no" >&5
10106
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10107
    ;;
10108
  esac
10109
fi
10110
10111
if test "x$enable_dlopen" != xyes; then
10112
  enable_dlopen=unknown
10113
  enable_dlopen_self=unknown
10114
  enable_dlopen_self_static=unknown
10115
else
10116
  lt_cv_dlopen=no
10117
  lt_cv_dlopen_libs=
10118
10119
  case $host_os in
10120
  beos*)
10121
    lt_cv_dlopen="load_add_on"
10122
    lt_cv_dlopen_libs=
10123
    lt_cv_dlopen_self=yes
10124
    ;;
10125
10126
  mingw* | pw32*)
10127
    lt_cv_dlopen="LoadLibrary"
10128
    lt_cv_dlopen_libs=
10129
   ;;
10130
10131
  cygwin*)
10132
    lt_cv_dlopen="dlopen"
10133
    lt_cv_dlopen_libs=
10134
   ;;
10135
10136
  darwin*)
10137
  # if libdl is installed we need to link against it
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10138
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10139
$as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10140
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10141
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10142
else
10143
  ac_check_lib_save_LIBS=$LIBS
10144
LIBS="-ldl  $LIBS"
10145
cat >conftest.$ac_ext <<_ACEOF
10146
/* confdefs.h.  */
10147
_ACEOF
10148
cat confdefs.h >>conftest.$ac_ext
10149
cat >>conftest.$ac_ext <<_ACEOF
10150
/* end confdefs.h.  */
10151
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10152
/* Override any GCC internal prototype to avoid an error.
10153
   Use char because int might match the return type of a GCC
10154
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10155
#ifdef __cplusplus
10156
extern "C"
10157
#endif
10158
char dlopen ();
10159
int
10160
main ()
10161
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10162
return dlopen ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10163
  ;
10164
  return 0;
10165
}
10166
_ACEOF
10167
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10168
if { (ac_try="$ac_link"
10169
case "(($ac_try" in
10170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171
  *) ac_try_echo=$ac_try;;
10172
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10175
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10176
  ac_status=$?
10177
  grep -v '^ *+' conftest.er1 >conftest.err
10178
  rm -f conftest.er1
10179
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10181
  (exit $ac_status); } && {
10182
	 test -z "$ac_c_werror_flag" ||
10183
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10184
       } && test -s conftest$ac_exeext && {
10185
	 test "$cross_compiling" = yes ||
10186
	 $as_test_x conftest$ac_exeext
10187
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10188
  ac_cv_lib_dl_dlopen=yes
10189
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10190
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10191
sed 's/^/| /' conftest.$ac_ext >&5
10192
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10193
	ac_cv_lib_dl_dlopen=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10194
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10195
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10196
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10197
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10198
      conftest$ac_exeext conftest.$ac_ext
10199
LIBS=$ac_check_lib_save_LIBS
10200
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10201
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10202
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10203
if test $ac_cv_lib_dl_dlopen = yes; then
10204
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10205
else
10206
10207
    lt_cv_dlopen="dyld"
10208
    lt_cv_dlopen_libs=
10209
    lt_cv_dlopen_self=yes
10210
10211
fi
10212
10213
   ;;
10214
10215
  *)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10216
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10217
$as_echo_n "checking for shl_load... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10218
if test "${ac_cv_func_shl_load+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10219
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10220
else
10221
  cat >conftest.$ac_ext <<_ACEOF
10222
/* confdefs.h.  */
10223
_ACEOF
10224
cat confdefs.h >>conftest.$ac_ext
10225
cat >>conftest.$ac_ext <<_ACEOF
10226
/* end confdefs.h.  */
10227
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10228
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10229
#define shl_load innocuous_shl_load
10230
10231
/* System header to define __stub macros and hopefully few prototypes,
10232
    which can conflict with char shl_load (); below.
10233
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234
    <limits.h> exists even on freestanding compilers.  */
10235
10236
#ifdef __STDC__
10237
# include <limits.h>
10238
#else
10239
# include <assert.h>
10240
#endif
10241
10242
#undef shl_load
10243
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10244
/* Override any GCC internal prototype to avoid an error.
10245
   Use char because int might match the return type of a GCC
10246
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10247
#ifdef __cplusplus
10248
extern "C"
10249
#endif
10250
char shl_load ();
10251
/* The GNU C library defines this for functions which it implements
10252
    to always fail with ENOSYS.  Some functions are actually named
10253
    something starting with __ and the normal name is an alias.  */
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10254
#if defined __stub_shl_load || defined __stub___shl_load
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10255
choke me
10256
#endif
10257
10258
int
10259
main ()
10260
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10261
return shl_load ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10262
  ;
10263
  return 0;
10264
}
10265
_ACEOF
10266
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10267
if { (ac_try="$ac_link"
10268
case "(($ac_try" in
10269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270
  *) ac_try_echo=$ac_try;;
10271
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10272
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10274
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10275
  ac_status=$?
10276
  grep -v '^ *+' conftest.er1 >conftest.err
10277
  rm -f conftest.er1
10278
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10280
  (exit $ac_status); } && {
10281
	 test -z "$ac_c_werror_flag" ||
10282
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10283
       } && test -s conftest$ac_exeext && {
10284
	 test "$cross_compiling" = yes ||
10285
	 $as_test_x conftest$ac_exeext
10286
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10287
  ac_cv_func_shl_load=yes
10288
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10289
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10290
sed 's/^/| /' conftest.$ac_ext >&5
10291
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10292
	ac_cv_func_shl_load=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10293
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10294
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10295
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10296
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10297
      conftest$ac_exeext conftest.$ac_ext
10298
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10299
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10300
$as_echo "$ac_cv_func_shl_load" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10301
if test $ac_cv_func_shl_load = yes; then
10302
  lt_cv_dlopen="shl_load"
10303
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10304
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10305
$as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10306
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10307
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10308
else
10309
  ac_check_lib_save_LIBS=$LIBS
10310
LIBS="-ldld  $LIBS"
10311
cat >conftest.$ac_ext <<_ACEOF
10312
/* confdefs.h.  */
10313
_ACEOF
10314
cat confdefs.h >>conftest.$ac_ext
10315
cat >>conftest.$ac_ext <<_ACEOF
10316
/* end confdefs.h.  */
10317
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10318
/* Override any GCC internal prototype to avoid an error.
10319
   Use char because int might match the return type of a GCC
10320
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10321
#ifdef __cplusplus
10322
extern "C"
10323
#endif
10324
char shl_load ();
10325
int
10326
main ()
10327
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10328
return shl_load ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10329
  ;
10330
  return 0;
10331
}
10332
_ACEOF
10333
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10334
if { (ac_try="$ac_link"
10335
case "(($ac_try" in
10336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337
  *) ac_try_echo=$ac_try;;
10338
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10339
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10340
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10341
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10342
  ac_status=$?
10343
  grep -v '^ *+' conftest.er1 >conftest.err
10344
  rm -f conftest.er1
10345
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10346
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10347
  (exit $ac_status); } && {
10348
	 test -z "$ac_c_werror_flag" ||
10349
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10350
       } && test -s conftest$ac_exeext && {
10351
	 test "$cross_compiling" = yes ||
10352
	 $as_test_x conftest$ac_exeext
10353
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10354
  ac_cv_lib_dld_shl_load=yes
10355
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10356
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10357
sed 's/^/| /' conftest.$ac_ext >&5
10358
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10359
	ac_cv_lib_dld_shl_load=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10360
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10361
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10362
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10363
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10364
      conftest$ac_exeext conftest.$ac_ext
10365
LIBS=$ac_check_lib_save_LIBS
10366
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10367
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10368
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10369
if test $ac_cv_lib_dld_shl_load = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10370
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10371
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10372
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10373
$as_echo_n "checking for dlopen... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10374
if test "${ac_cv_func_dlopen+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10375
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10376
else
10377
  cat >conftest.$ac_ext <<_ACEOF
10378
/* confdefs.h.  */
10379
_ACEOF
10380
cat confdefs.h >>conftest.$ac_ext
10381
cat >>conftest.$ac_ext <<_ACEOF
10382
/* end confdefs.h.  */
10383
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10384
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10385
#define dlopen innocuous_dlopen
10386
10387
/* System header to define __stub macros and hopefully few prototypes,
10388
    which can conflict with char dlopen (); below.
10389
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390
    <limits.h> exists even on freestanding compilers.  */
10391
10392
#ifdef __STDC__
10393
# include <limits.h>
10394
#else
10395
# include <assert.h>
10396
#endif
10397
10398
#undef dlopen
10399
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10400
/* Override any GCC internal prototype to avoid an error.
10401
   Use char because int might match the return type of a GCC
10402
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10403
#ifdef __cplusplus
10404
extern "C"
10405
#endif
10406
char dlopen ();
10407
/* The GNU C library defines this for functions which it implements
10408
    to always fail with ENOSYS.  Some functions are actually named
10409
    something starting with __ and the normal name is an alias.  */
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10410
#if defined __stub_dlopen || defined __stub___dlopen
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10411
choke me
10412
#endif
10413
10414
int
10415
main ()
10416
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10417
return dlopen ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10418
  ;
10419
  return 0;
10420
}
10421
_ACEOF
10422
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10423
if { (ac_try="$ac_link"
10424
case "(($ac_try" in
10425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426
  *) ac_try_echo=$ac_try;;
10427
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10429
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10430
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10431
  ac_status=$?
10432
  grep -v '^ *+' conftest.er1 >conftest.err
10433
  rm -f conftest.er1
10434
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10435
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10436
  (exit $ac_status); } && {
10437
	 test -z "$ac_c_werror_flag" ||
10438
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10439
       } && test -s conftest$ac_exeext && {
10440
	 test "$cross_compiling" = yes ||
10441
	 $as_test_x conftest$ac_exeext
10442
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10443
  ac_cv_func_dlopen=yes
10444
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10445
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10446
sed 's/^/| /' conftest.$ac_ext >&5
10447
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10448
	ac_cv_func_dlopen=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10449
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10450
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10451
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10452
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10453
      conftest$ac_exeext conftest.$ac_ext
10454
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10455
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10456
$as_echo "$ac_cv_func_dlopen" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10457
if test $ac_cv_func_dlopen = yes; then
10458
  lt_cv_dlopen="dlopen"
10459
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10460
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10461
$as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10462
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10463
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10464
else
10465
  ac_check_lib_save_LIBS=$LIBS
10466
LIBS="-ldl  $LIBS"
10467
cat >conftest.$ac_ext <<_ACEOF
10468
/* confdefs.h.  */
10469
_ACEOF
10470
cat confdefs.h >>conftest.$ac_ext
10471
cat >>conftest.$ac_ext <<_ACEOF
10472
/* end confdefs.h.  */
10473
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10474
/* Override any GCC internal prototype to avoid an error.
10475
   Use char because int might match the return type of a GCC
10476
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10477
#ifdef __cplusplus
10478
extern "C"
10479
#endif
10480
char dlopen ();
10481
int
10482
main ()
10483
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10484
return dlopen ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10485
  ;
10486
  return 0;
10487
}
10488
_ACEOF
10489
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10490
if { (ac_try="$ac_link"
10491
case "(($ac_try" in
10492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493
  *) ac_try_echo=$ac_try;;
10494
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10496
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10497
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10498
  ac_status=$?
10499
  grep -v '^ *+' conftest.er1 >conftest.err
10500
  rm -f conftest.er1
10501
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10503
  (exit $ac_status); } && {
10504
	 test -z "$ac_c_werror_flag" ||
10505
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10506
       } && test -s conftest$ac_exeext && {
10507
	 test "$cross_compiling" = yes ||
10508
	 $as_test_x conftest$ac_exeext
10509
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10510
  ac_cv_lib_dl_dlopen=yes
10511
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10512
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10513
sed 's/^/| /' conftest.$ac_ext >&5
10514
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10515
	ac_cv_lib_dl_dlopen=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10516
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10517
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10518
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10520
      conftest$ac_exeext conftest.$ac_ext
10521
LIBS=$ac_check_lib_save_LIBS
10522
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10523
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10524
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10525
if test $ac_cv_lib_dl_dlopen = yes; then
10526
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10528
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10529
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10530
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10531
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10532
else
10533
  ac_check_lib_save_LIBS=$LIBS
10534
LIBS="-lsvld  $LIBS"
10535
cat >conftest.$ac_ext <<_ACEOF
10536
/* confdefs.h.  */
10537
_ACEOF
10538
cat confdefs.h >>conftest.$ac_ext
10539
cat >>conftest.$ac_ext <<_ACEOF
10540
/* end confdefs.h.  */
10541
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10542
/* Override any GCC internal prototype to avoid an error.
10543
   Use char because int might match the return type of a GCC
10544
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10545
#ifdef __cplusplus
10546
extern "C"
10547
#endif
10548
char dlopen ();
10549
int
10550
main ()
10551
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10552
return dlopen ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10553
  ;
10554
  return 0;
10555
}
10556
_ACEOF
10557
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10558
if { (ac_try="$ac_link"
10559
case "(($ac_try" in
10560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561
  *) ac_try_echo=$ac_try;;
10562
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10563
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10565
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10566
  ac_status=$?
10567
  grep -v '^ *+' conftest.er1 >conftest.err
10568
  rm -f conftest.er1
10569
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10570
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10571
  (exit $ac_status); } && {
10572
	 test -z "$ac_c_werror_flag" ||
10573
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10574
       } && test -s conftest$ac_exeext && {
10575
	 test "$cross_compiling" = yes ||
10576
	 $as_test_x conftest$ac_exeext
10577
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10578
  ac_cv_lib_svld_dlopen=yes
10579
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10580
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10581
sed 's/^/| /' conftest.$ac_ext >&5
10582
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10583
	ac_cv_lib_svld_dlopen=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10584
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10585
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10586
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10587
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10588
      conftest$ac_exeext conftest.$ac_ext
10589
LIBS=$ac_check_lib_save_LIBS
10590
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10591
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10592
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10593
if test $ac_cv_lib_svld_dlopen = yes; then
10594
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10595
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10596
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10597
$as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10598
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10599
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10600
else
10601
  ac_check_lib_save_LIBS=$LIBS
10602
LIBS="-ldld  $LIBS"
10603
cat >conftest.$ac_ext <<_ACEOF
10604
/* confdefs.h.  */
10605
_ACEOF
10606
cat confdefs.h >>conftest.$ac_ext
10607
cat >>conftest.$ac_ext <<_ACEOF
10608
/* end confdefs.h.  */
10609
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10610
/* Override any GCC internal prototype to avoid an error.
10611
   Use char because int might match the return type of a GCC
10612
   builtin and then its argument prototype would still apply.  */
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10613
#ifdef __cplusplus
10614
extern "C"
10615
#endif
10616
char dld_link ();
10617
int
10618
main ()
10619
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10620
return dld_link ();
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10621
  ;
10622
  return 0;
10623
}
10624
_ACEOF
10625
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10626
if { (ac_try="$ac_link"
10627
case "(($ac_try" in
10628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629
  *) ac_try_echo=$ac_try;;
10630
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10632
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10633
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10634
  ac_status=$?
10635
  grep -v '^ *+' conftest.er1 >conftest.err
10636
  rm -f conftest.er1
10637
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10639
  (exit $ac_status); } && {
10640
	 test -z "$ac_c_werror_flag" ||
10641
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10642
       } && test -s conftest$ac_exeext && {
10643
	 test "$cross_compiling" = yes ||
10644
	 $as_test_x conftest$ac_exeext
10645
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10646
  ac_cv_lib_dld_dld_link=yes
10647
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10648
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10649
sed 's/^/| /' conftest.$ac_ext >&5
10650
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10651
	ac_cv_lib_dld_dld_link=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10652
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10653
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10654
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10656
      conftest$ac_exeext conftest.$ac_ext
10657
LIBS=$ac_check_lib_save_LIBS
10658
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10659
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10660
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10661
if test $ac_cv_lib_dld_dld_link = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10662
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10663
fi
10664
10665
10666
fi
10667
10668
10669
fi
10670
10671
10672
fi
10673
10674
10675
fi
10676
10677
10678
fi
10679
10680
    ;;
10681
  esac
10682
10683
  if test "x$lt_cv_dlopen" != xno; then
10684
    enable_dlopen=yes
10685
  else
10686
    enable_dlopen=no
10687
  fi
10688
10689
  case $lt_cv_dlopen in
10690
  dlopen)
10691
    save_CPPFLAGS="$CPPFLAGS"
10692
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10693
10694
    save_LDFLAGS="$LDFLAGS"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10695
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10696
10697
    save_LIBS="$LIBS"
10698
    LIBS="$lt_cv_dlopen_libs $LIBS"
10699
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10700
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10701
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10702
if test "${lt_cv_dlopen_self+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10703
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10704
else
10705
  	  if test "$cross_compiling" = yes; then :
10706
  lt_cv_dlopen_self=cross
10707
else
10708
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10709
  lt_status=$lt_dlunknown
10710
  cat > conftest.$ac_ext <<EOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10711
#line 10711 "configure"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10712
#include "confdefs.h"
10713
10714
#if HAVE_DLFCN_H
10715
#include <dlfcn.h>
10716
#endif
10717
10718
#include <stdio.h>
10719
10720
#ifdef RTLD_GLOBAL
10721
#  define LT_DLGLOBAL		RTLD_GLOBAL
10722
#else
10723
#  ifdef DL_GLOBAL
10724
#    define LT_DLGLOBAL		DL_GLOBAL
10725
#  else
10726
#    define LT_DLGLOBAL		0
10727
#  endif
10728
#endif
10729
10730
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10731
   find out it does not work in some platform. */
10732
#ifndef LT_DLLAZY_OR_NOW
10733
#  ifdef RTLD_LAZY
10734
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10735
#  else
10736
#    ifdef DL_LAZY
10737
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10738
#    else
10739
#      ifdef RTLD_NOW
10740
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10741
#      else
10742
#        ifdef DL_NOW
10743
#          define LT_DLLAZY_OR_NOW	DL_NOW
10744
#        else
10745
#          define LT_DLLAZY_OR_NOW	0
10746
#        endif
10747
#      endif
10748
#    endif
10749
#  endif
10750
#endif
10751
10752
#ifdef __cplusplus
10753
extern "C" void exit (int);
10754
#endif
10755
10756
void fnord() { int i=42;}
10757
int main ()
10758
{
10759
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10760
  int status = $lt_dlunknown;
10761
10762
  if (self)
10763
    {
10764
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10765
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10766
      /* dlclose (self); */
10767
    }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10768
  else
10769
    puts (dlerror ());
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10770
10771
    exit (status);
10772
}
10773
EOF
10774
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775
  (eval $ac_link) 2>&5
10776
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10778
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10779
    (./conftest; exit; ) >&5 2>/dev/null
10780
    lt_status=$?
10781
    case x$lt_status in
10782
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10783
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10784
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10785
    esac
10786
  else :
10787
    # compilation failed
10788
    lt_cv_dlopen_self=no
10789
  fi
10790
fi
10791
rm -fr conftest*
10792
10793
10794
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10795
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10796
$as_echo "$lt_cv_dlopen_self" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10797
10798
    if test "x$lt_cv_dlopen_self" = xyes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10799
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10800
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10801
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10802
if test "${lt_cv_dlopen_self_static+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10803
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10804
else
10805
  	  if test "$cross_compiling" = yes; then :
10806
  lt_cv_dlopen_self_static=cross
10807
else
10808
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10809
  lt_status=$lt_dlunknown
10810
  cat > conftest.$ac_ext <<EOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10811
#line 10811 "configure"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10812
#include "confdefs.h"
10813
10814
#if HAVE_DLFCN_H
10815
#include <dlfcn.h>
10816
#endif
10817
10818
#include <stdio.h>
10819
10820
#ifdef RTLD_GLOBAL
10821
#  define LT_DLGLOBAL		RTLD_GLOBAL
10822
#else
10823
#  ifdef DL_GLOBAL
10824
#    define LT_DLGLOBAL		DL_GLOBAL
10825
#  else
10826
#    define LT_DLGLOBAL		0
10827
#  endif
10828
#endif
10829
10830
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10831
   find out it does not work in some platform. */
10832
#ifndef LT_DLLAZY_OR_NOW
10833
#  ifdef RTLD_LAZY
10834
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10835
#  else
10836
#    ifdef DL_LAZY
10837
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10838
#    else
10839
#      ifdef RTLD_NOW
10840
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10841
#      else
10842
#        ifdef DL_NOW
10843
#          define LT_DLLAZY_OR_NOW	DL_NOW
10844
#        else
10845
#          define LT_DLLAZY_OR_NOW	0
10846
#        endif
10847
#      endif
10848
#    endif
10849
#  endif
10850
#endif
10851
10852
#ifdef __cplusplus
10853
extern "C" void exit (int);
10854
#endif
10855
10856
void fnord() { int i=42;}
10857
int main ()
10858
{
10859
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10860
  int status = $lt_dlunknown;
10861
10862
  if (self)
10863
    {
10864
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10865
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10866
      /* dlclose (self); */
10867
    }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10868
  else
10869
    puts (dlerror ());
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10870
10871
    exit (status);
10872
}
10873
EOF
10874
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875
  (eval $ac_link) 2>&5
10876
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10877
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10878
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10879
    (./conftest; exit; ) >&5 2>/dev/null
10880
    lt_status=$?
10881
    case x$lt_status in
10882
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10883
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10884
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10885
    esac
10886
  else :
10887
    # compilation failed
10888
    lt_cv_dlopen_self_static=no
10889
  fi
10890
fi
10891
rm -fr conftest*
10892
10893
10894
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10895
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10896
$as_echo "$lt_cv_dlopen_self_static" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10897
    fi
10898
10899
    CPPFLAGS="$save_CPPFLAGS"
10900
    LDFLAGS="$save_LDFLAGS"
10901
    LIBS="$save_LIBS"
10902
    ;;
10903
  esac
10904
10905
  case $lt_cv_dlopen_self in
10906
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10907
  *) enable_dlopen_self=unknown ;;
10908
  esac
10909
10910
  case $lt_cv_dlopen_self_static in
10911
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10912
  *) enable_dlopen_self_static=unknown ;;
10913
  esac
10914
fi
10915
10916
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10917
# Report which library types will actually be built
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10918
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10919
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10920
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10921
$as_echo "$can_build_shared" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10922
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10923
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10924
$as_echo_n "checking whether to build shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10925
test "$can_build_shared" = "no" && enable_shared=no
10926
10927
# On AIX, shared libraries and static libraries use the same namespace, and
10928
# are all built from PIC.
10929
case $host_os in
10930
aix3*)
10931
  test "$enable_shared" = yes && enable_static=no
10932
  if test -n "$RANLIB"; then
10933
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10934
    postinstall_cmds='$RANLIB $lib'
10935
  fi
10936
  ;;
10937
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10938
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10939
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10940
    test "$enable_shared" = yes && enable_static=no
10941
  fi
10942
    ;;
10943
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10944
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10945
$as_echo "$enable_shared" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10946
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10947
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10948
$as_echo_n "checking whether to build static libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10949
# Make sure either enable_shared or enable_static is yes.
10950
test "$enable_shared" = yes || enable_static=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10951
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10952
$as_echo "$enable_static" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10953
10954
# The else clause should only fire when bootstrapping the
10955
# libtool distribution, otherwise you forgot to ship ltmain.sh
10956
# with your package, and you will get complaints that there are
10957
# no rules to generate ltmain.sh.
10958
if test -f "$ltmain"; then
10959
  # See if we are running on zsh, and set the options which allow our commands through
10960
  # without removal of \ escapes.
10961
  if test -n "${ZSH_VERSION+set}" ; then
10962
    setopt NO_GLOB_SUBST
10963
  fi
10964
  # Now quote all the things that may contain metacharacters while being
10965
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10966
  # variables and quote the copies for generation of the libtool script.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
10967
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10968
    SED SHELL STRIP \
10969
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10970
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10971
    deplibs_check_method reload_flag reload_cmds need_locks \
10972
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10973
    lt_cv_sys_global_symbol_to_c_name_address \
10974
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10975
    old_postinstall_cmds old_postuninstall_cmds \
10976
    compiler \
10977
    CC \
10978
    LD \
10979
    lt_prog_compiler_wl \
10980
    lt_prog_compiler_pic \
10981
    lt_prog_compiler_static \
10982
    lt_prog_compiler_no_builtin_flag \
10983
    export_dynamic_flag_spec \
10984
    thread_safe_flag_spec \
10985
    whole_archive_flag_spec \
10986
    enable_shared_with_static_runtimes \
10987
    old_archive_cmds \
10988
    old_archive_from_new_cmds \
10989
    predep_objects \
10990
    postdep_objects \
10991
    predeps \
10992
    postdeps \
10993
    compiler_lib_search_path \
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
10994
    compiler_lib_search_dirs \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
10995
    archive_cmds \
10996
    archive_expsym_cmds \
10997
    postinstall_cmds \
10998
    postuninstall_cmds \
10999
    old_archive_from_expsyms_cmds \
11000
    allow_undefined_flag \
11001
    no_undefined_flag \
11002
    export_symbols_cmds \
11003
    hardcode_libdir_flag_spec \
11004
    hardcode_libdir_flag_spec_ld \
11005
    hardcode_libdir_separator \
11006
    hardcode_automatic \
11007
    module_cmds \
11008
    module_expsym_cmds \
11009
    lt_cv_prog_compiler_c_o \
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11010
    fix_srcfile_path \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11011
    exclude_expsyms \
11012
    include_expsyms; do
11013
11014
    case $var in
11015
    old_archive_cmds | \
11016
    old_archive_from_new_cmds | \
11017
    archive_cmds | \
11018
    archive_expsym_cmds | \
11019
    module_cmds | \
11020
    module_expsym_cmds | \
11021
    old_archive_from_expsyms_cmds | \
11022
    export_symbols_cmds | \
11023
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11024
    postinstall_cmds | postuninstall_cmds | \
11025
    old_postinstall_cmds | old_postuninstall_cmds | \
11026
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11027
      # Double-quote double-evaled strings.
11028
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11029
      ;;
11030
    *)
11031
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11032
      ;;
11033
    esac
11034
  done
11035
11036
  case $lt_echo in
11037
  *'\$0 --fallback-echo"')
11038
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11039
    ;;
11040
  esac
11041
11042
cfgfile="${ofile}T"
11043
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11044
  $rm -f "$cfgfile"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11045
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11046
$as_echo "$as_me: creating $ofile" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11047
11048
  cat <<__EOF__ >> "$cfgfile"
11049
#! $SHELL
11050
11051
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11052
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11053
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11054
#
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11055
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11056
# Free Software Foundation, Inc.
11057
#
11058
# This file is part of GNU Libtool:
11059
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11060
#
11061
# This program is free software; you can redistribute it and/or modify
11062
# it under the terms of the GNU General Public License as published by
11063
# the Free Software Foundation; either version 2 of the License, or
11064
# (at your option) any later version.
11065
#
11066
# This program is distributed in the hope that it will be useful, but
11067
# WITHOUT ANY WARRANTY; without even the implied warranty of
11068
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11069
# General Public License for more details.
11070
#
11071
# You should have received a copy of the GNU General Public License
11072
# along with this program; if not, write to the Free Software
11073
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11074
#
11075
# As a special exception to the GNU General Public License, if you
11076
# distribute this file as part of a program that contains a
11077
# configuration script generated by Autoconf, you may include it under
11078
# the same distribution terms that you use for the rest of that program.
11079
11080
# A sed program that does not truncate output.
11081
SED=$lt_SED
11082
11083
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11084
Xsed="$SED -e 1s/^X//"
11085
11086
# The HP-UX ksh and POSIX shell print the target directory to stdout
11087
# if CDPATH is set.
11088
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11089
11090
# The names of the tagged configurations supported by this script.
11091
available_tags=
11092
11093
# ### BEGIN LIBTOOL CONFIG
11094
11095
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11096
11097
# Shell to use when invoking shell scripts.
11098
SHELL=$lt_SHELL
11099
11100
# Whether or not to build shared libraries.
11101
build_libtool_libs=$enable_shared
11102
11103
# Whether or not to build static libraries.
11104
build_old_libs=$enable_static
11105
11106
# Whether or not to add -lc for building shared libraries.
11107
build_libtool_need_lc=$archive_cmds_need_lc
11108
11109
# Whether or not to disallow shared libs when runtime libs are static
11110
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11111
11112
# Whether or not to optimize for fast installation.
11113
fast_install=$enable_fast_install
11114
11115
# The host system.
11116
host_alias=$host_alias
11117
host=$host
11118
host_os=$host_os
11119
11120
# The build system.
11121
build_alias=$build_alias
11122
build=$build
11123
build_os=$build_os
11124
11125
# An echo program that does not interpret backslashes.
11126
echo=$lt_echo
11127
11128
# The archiver.
11129
AR=$lt_AR
11130
AR_FLAGS=$lt_AR_FLAGS
11131
11132
# A C compiler.
11133
LTCC=$lt_LTCC
11134
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11135
# LTCC compiler flags.
11136
LTCFLAGS=$lt_LTCFLAGS
11137
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11138
# A language-specific compiler.
11139
CC=$lt_compiler
11140
11141
# Is the compiler the GNU C compiler?
11142
with_gcc=$GCC
11143
11144
# An ERE matcher.
11145
EGREP=$lt_EGREP
11146
11147
# The linker used to build libraries.
11148
LD=$lt_LD
11149
11150
# Whether we need hard or soft links.
11151
LN_S=$lt_LN_S
11152
11153
# A BSD-compatible nm program.
11154
NM=$lt_NM
11155
11156
# A symbol stripping program
11157
STRIP=$lt_STRIP
11158
11159
# Used to examine libraries when file_magic_cmd begins "file"
11160
MAGIC_CMD=$MAGIC_CMD
11161
11162
# Used on cygwin: DLL creation program.
11163
DLLTOOL="$DLLTOOL"
11164
11165
# Used on cygwin: object dumper.
11166
OBJDUMP="$OBJDUMP"
11167
11168
# Used on cygwin: assembler.
11169
AS="$AS"
11170
11171
# The name of the directory that contains temporary libtool files.
11172
objdir=$objdir
11173
11174
# How to create reloadable object files.
11175
reload_flag=$lt_reload_flag
11176
reload_cmds=$lt_reload_cmds
11177
11178
# How to pass a linker flag through the compiler.
11179
wl=$lt_lt_prog_compiler_wl
11180
11181
# Object file suffix (normally "o").
11182
objext="$ac_objext"
11183
11184
# Old archive suffix (normally "a").
11185
libext="$libext"
11186
11187
# Shared library suffix (normally ".so").
11188
shrext_cmds='$shrext_cmds'
11189
11190
# Executable file suffix (normally "").
11191
exeext="$exeext"
11192
11193
# Additional compiler flags for building library objects.
11194
pic_flag=$lt_lt_prog_compiler_pic
11195
pic_mode=$pic_mode
11196
11197
# What is the maximum length of a command?
11198
max_cmd_len=$lt_cv_sys_max_cmd_len
11199
11200
# Does compiler simultaneously support -c and -o options?
11201
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11202
11203
# Must we lock files when doing compilation?
11204
need_locks=$lt_need_locks
11205
11206
# Do we need the lib prefix for modules?
11207
need_lib_prefix=$need_lib_prefix
11208
11209
# Do we need a version for libraries?
11210
need_version=$need_version
11211
11212
# Whether dlopen is supported.
11213
dlopen_support=$enable_dlopen
11214
11215
# Whether dlopen of programs is supported.
11216
dlopen_self=$enable_dlopen_self
11217
11218
# Whether dlopen of statically linked programs is supported.
11219
dlopen_self_static=$enable_dlopen_self_static
11220
11221
# Compiler flag to prevent dynamic linking.
11222
link_static_flag=$lt_lt_prog_compiler_static
11223
11224
# Compiler flag to turn off builtin functions.
11225
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11226
11227
# Compiler flag to allow reflexive dlopens.
11228
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11229
11230
# Compiler flag to generate shared objects directly from archives.
11231
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11232
11233
# Compiler flag to generate thread-safe objects.
11234
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11235
11236
# Library versioning type.
11237
version_type=$version_type
11238
11239
# Format of library name prefix.
11240
libname_spec=$lt_libname_spec
11241
11242
# List of archive names.  First name is the real one, the rest are links.
11243
# The last name is the one that the linker finds with -lNAME.
11244
library_names_spec=$lt_library_names_spec
11245
11246
# The coded name of the library, if different from the real name.
11247
soname_spec=$lt_soname_spec
11248
11249
# Commands used to build and install an old-style archive.
11250
RANLIB=$lt_RANLIB
11251
old_archive_cmds=$lt_old_archive_cmds
11252
old_postinstall_cmds=$lt_old_postinstall_cmds
11253
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11254
11255
# Create an old-style archive from a shared archive.
11256
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11257
11258
# Create a temporary old-style archive to link instead of a shared archive.
11259
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11260
11261
# Commands used to build and install a shared archive.
11262
archive_cmds=$lt_archive_cmds
11263
archive_expsym_cmds=$lt_archive_expsym_cmds
11264
postinstall_cmds=$lt_postinstall_cmds
11265
postuninstall_cmds=$lt_postuninstall_cmds
11266
11267
# Commands used to build a loadable module (assumed same as above if empty)
11268
module_cmds=$lt_module_cmds
11269
module_expsym_cmds=$lt_module_expsym_cmds
11270
11271
# Commands to strip libraries.
11272
old_striplib=$lt_old_striplib
11273
striplib=$lt_striplib
11274
11275
# Dependencies to place before the objects being linked to create a
11276
# shared library.
11277
predep_objects=$lt_predep_objects
11278
11279
# Dependencies to place after the objects being linked to create a
11280
# shared library.
11281
postdep_objects=$lt_postdep_objects
11282
11283
# Dependencies to place before the objects being linked to create a
11284
# shared library.
11285
predeps=$lt_predeps
11286
11287
# Dependencies to place after the objects being linked to create a
11288
# shared library.
11289
postdeps=$lt_postdeps
11290
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11291
# The directories searched by this compiler when creating a shared
11292
# library
11293
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11294
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11295
# The library search path used internally by the compiler when linking
11296
# a shared library.
11297
compiler_lib_search_path=$lt_compiler_lib_search_path
11298
11299
# Method to check whether dependent libraries are shared objects.
11300
deplibs_check_method=$lt_deplibs_check_method
11301
11302
# Command to use when deplibs_check_method == file_magic.
11303
file_magic_cmd=$lt_file_magic_cmd
11304
11305
# Flag that allows shared libraries with undefined symbols to be built.
11306
allow_undefined_flag=$lt_allow_undefined_flag
11307
11308
# Flag that forces no undefined symbols.
11309
no_undefined_flag=$lt_no_undefined_flag
11310
11311
# Commands used to finish a libtool library installation in a directory.
11312
finish_cmds=$lt_finish_cmds
11313
11314
# Same as above, but a single script fragment to be evaled but not shown.
11315
finish_eval=$lt_finish_eval
11316
11317
# Take the output of nm and produce a listing of raw symbols and C names.
11318
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11319
11320
# Transform the output of nm in a proper C declaration
11321
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11322
11323
# Transform the output of nm in a C name address pair
11324
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11325
11326
# This is the shared library runtime path variable.
11327
runpath_var=$runpath_var
11328
11329
# This is the shared library path variable.
11330
shlibpath_var=$shlibpath_var
11331
11332
# Is shlibpath searched before the hard-coded library search path?
11333
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11334
11335
# How to hardcode a shared library path into an executable.
11336
hardcode_action=$hardcode_action
11337
11338
# Whether we should hardcode library paths into libraries.
11339
hardcode_into_libs=$hardcode_into_libs
11340
11341
# Flag to hardcode \$libdir into a binary during linking.
11342
# This must work even if \$libdir does not exist.
11343
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11344
11345
# If ld is used when linking, flag to hardcode \$libdir into
11346
# a binary during linking. This must work even if \$libdir does
11347
# not exist.
11348
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11349
11350
# Whether we need a single -rpath flag with a separated argument.
11351
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11352
11353
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11354
# resulting binary.
11355
hardcode_direct=$hardcode_direct
11356
11357
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11358
# resulting binary.
11359
hardcode_minus_L=$hardcode_minus_L
11360
11361
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11362
# the resulting binary.
11363
hardcode_shlibpath_var=$hardcode_shlibpath_var
11364
11365
# Set to yes if building a shared library automatically hardcodes DIR into the library
11366
# and all subsequent libraries and executables linked against it.
11367
hardcode_automatic=$hardcode_automatic
11368
11369
# Variables whose values should be saved in libtool wrapper scripts and
11370
# restored at relink time.
11371
variables_saved_for_relink="$variables_saved_for_relink"
11372
11373
# Whether libtool must link a program against all its dependency libraries.
11374
link_all_deplibs=$link_all_deplibs
11375
11376
# Compile-time system search path for libraries
11377
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11378
11379
# Run-time system search path for libraries
11380
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11381
11382
# Fix the shell variable \$srcfile for the compiler.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11383
fix_srcfile_path=$lt_fix_srcfile_path
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11384
11385
# Set to yes if exported symbols are required.
11386
always_export_symbols=$always_export_symbols
11387
11388
# The commands to list exported symbols.
11389
export_symbols_cmds=$lt_export_symbols_cmds
11390
11391
# The commands to extract the exported symbol list from a shared archive.
11392
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11393
11394
# Symbols that should not be listed in the preloaded symbols.
11395
exclude_expsyms=$lt_exclude_expsyms
11396
11397
# Symbols that must always be exported.
11398
include_expsyms=$lt_include_expsyms
11399
11400
# ### END LIBTOOL CONFIG
11401
11402
__EOF__
11403
11404
11405
  case $host_os in
11406
  aix3*)
11407
    cat <<\EOF >> "$cfgfile"
11408
11409
# AIX sometimes has problems with the GCC collect2 program.  For some
11410
# reason, if we set the COLLECT_NAMES environment variable, the problems
11411
# vanish in a puff of smoke.
11412
if test "X${COLLECT_NAMES+set}" != Xset; then
11413
  COLLECT_NAMES=
11414
  export COLLECT_NAMES
11415
fi
11416
EOF
11417
    ;;
11418
  esac
11419
11420
  # We use sed instead of cat because bash on DJGPP gets confused if
11421
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11422
  # text mode, it properly converts lines to CR/LF.  This bash problem
11423
  # is reportedly fixed, but why not run on old versions too?
11424
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11425
11426
  mv -f "$cfgfile" "$ofile" || \
11427
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11428
  chmod +x "$ofile"
11429
11430
else
11431
  # If there is no Makefile yet, we rely on a make rule to execute
11432
  # `config.status --recheck' to rerun these tests and create the
11433
  # libtool script then.
11434
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11435
  if test -f "$ltmain_in"; then
11436
    test -f Makefile && make "$ltmain"
11437
  fi
11438
fi
11439
11440
11441
ac_ext=c
11442
ac_cpp='$CPP $CPPFLAGS'
11443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447
CC="$lt_save_CC"
11448
11449
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11450
# Check whether --with-tags was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11451
if test "${with_tags+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11452
  withval=$with_tags; tagnames="$withval"
11453
fi
11454
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11455
11456
if test -f "$ltmain" && test -n "$tagnames"; then
11457
  if test ! -f "${ofile}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11458
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11459
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11460
  fi
11461
11462
  if test -z "$LTCC"; then
11463
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11464
    if test -z "$LTCC"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11465
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11466
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11467
    else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11468
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11469
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11470
    fi
11471
  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11472
  if test -z "$LTCFLAGS"; then
11473
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11474
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11475
11476
  # Extract list of available tagged configurations in $ofile.
11477
  # Note that this assumes the entire list is on one line.
11478
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11479
11480
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11481
  for tagname in $tagnames; do
11482
    IFS="$lt_save_ifs"
11483
    # Check whether tagname contains only valid characters
11484
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11485
    "") ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11486
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11487
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11488
   { (exit 1); exit 1; }; }
11489
	;;
11490
    esac
11491
11492
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11493
    then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11494
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11495
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11496
   { (exit 1); exit 1; }; }
11497
    fi
11498
11499
    # Update the list of available tags.
11500
    if test -n "$tagname"; then
11501
      echo appending configuration tag \"$tagname\" to $ofile
11502
11503
      case $tagname in
11504
      CXX)
11505
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11506
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11507
	    (test "X$CXX" != "Xg++"))) ; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11508
	  ac_ext=cpp
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11509
ac_cpp='$CXXCPP $CPPFLAGS'
11510
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11513
11514
11515
11516
11517
archive_cmds_need_lc_CXX=no
11518
allow_undefined_flag_CXX=
11519
always_export_symbols_CXX=no
11520
archive_expsym_cmds_CXX=
11521
export_dynamic_flag_spec_CXX=
11522
hardcode_direct_CXX=no
11523
hardcode_libdir_flag_spec_CXX=
11524
hardcode_libdir_flag_spec_ld_CXX=
11525
hardcode_libdir_separator_CXX=
11526
hardcode_minus_L_CXX=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11527
hardcode_shlibpath_var_CXX=unsupported
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11528
hardcode_automatic_CXX=no
11529
module_cmds_CXX=
11530
module_expsym_cmds_CXX=
11531
link_all_deplibs_CXX=unknown
11532
old_archive_cmds_CXX=$old_archive_cmds
11533
no_undefined_flag_CXX=
11534
whole_archive_flag_spec_CXX=
11535
enable_shared_with_static_runtimes_CXX=no
11536
11537
# Dependencies to place before and after the object being linked:
11538
predep_objects_CXX=
11539
postdep_objects_CXX=
11540
predeps_CXX=
11541
postdeps_CXX=
11542
compiler_lib_search_path_CXX=
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11543
compiler_lib_search_dirs_CXX=
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11544
11545
# Source file extension for C++ test sources.
11546
ac_ext=cpp
11547
11548
# Object file extension for compiled C++ test sources.
11549
objext=o
11550
objext_CXX=$objext
11551
11552
# Code to be used in simple compile tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11553
lt_simple_compile_test_code="int some_variable = 0;"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11554
11555
# Code to be used in simple link tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11556
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11557
11558
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11559
11560
# If no C compiler was specified, use CC.
11561
LTCC=${LTCC-"$CC"}
11562
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11563
# If no C compiler flags were specified, use CFLAGS.
11564
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11565
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11566
# Allow CC to be a program name with arguments.
11567
compiler=$CC
11568
11569
11570
# save warnings/boilerplate of simple test code
11571
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11572
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11573
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11574
_lt_compiler_boilerplate=`cat conftest.err`
11575
$rm conftest*
11576
11577
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11578
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11579
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11580
_lt_linker_boilerplate=`cat conftest.err`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11581
$rm -r conftest*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11582
11583
11584
# Allow CC to be a program name with arguments.
11585
lt_save_CC=$CC
11586
lt_save_LD=$LD
11587
lt_save_GCC=$GCC
11588
GCC=$GXX
11589
lt_save_with_gnu_ld=$with_gnu_ld
11590
lt_save_path_LD=$lt_cv_path_LD
11591
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11592
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11593
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11594
  $as_unset lt_cv_prog_gnu_ld
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11595
fi
11596
if test -n "${lt_cv_path_LDCXX+set}"; then
11597
  lt_cv_path_LD=$lt_cv_path_LDCXX
11598
else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11599
  $as_unset lt_cv_path_LD
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11600
fi
11601
test -z "${LDCXX+set}" || LD=$LDCXX
11602
CC=${CXX-"c++"}
11603
compiler=$CC
11604
compiler_CXX=$CC
11605
for cc_temp in $compiler""; do
11606
  case $cc_temp in
11607
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11608
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11609
    \-*) ;;
11610
    *) break;;
11611
  esac
11612
done
11613
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11614
11615
11616
# We don't want -fno-exception wen compiling C++ code, so set the
11617
# no_builtin_flag separately
11618
if test "$GXX" = yes; then
11619
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11620
else
11621
  lt_prog_compiler_no_builtin_flag_CXX=
11622
fi
11623
11624
if test "$GXX" = yes; then
11625
  # Set up default GNU C++ configuration
11626
11627
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11628
# Check whether --with-gnu-ld was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11629
if test "${with_gnu_ld+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11630
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11631
else
11632
  with_gnu_ld=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11633
fi
11634
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11635
ac_prog=ld
11636
if test "$GCC" = yes; then
11637
  # Check if gcc -print-prog-name=ld gives a path.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11638
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11639
$as_echo_n "checking for ld used by $CC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11640
  case $host in
11641
  *-*-mingw*)
11642
    # gcc leaves a trailing carriage return which upsets mingw
11643
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11644
  *)
11645
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11646
  esac
11647
  case $ac_prog in
11648
    # Accept absolute paths.
11649
    [\\/]* | ?:[\\/]*)
11650
      re_direlt='/[^/][^/]*/\.\./'
11651
      # Canonicalize the pathname of ld
11652
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11653
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11654
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11655
      done
11656
      test -z "$LD" && LD="$ac_prog"
11657
      ;;
11658
  "")
11659
    # If it fails, then pretend we aren't using GCC.
11660
    ac_prog=ld
11661
    ;;
11662
  *)
11663
    # If it is relative, then search for the first ld in PATH.
11664
    with_gnu_ld=unknown
11665
    ;;
11666
  esac
11667
elif test "$with_gnu_ld" = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11668
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11669
$as_echo_n "checking for GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11670
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11671
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11672
$as_echo_n "checking for non-GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11673
fi
11674
if test "${lt_cv_path_LD+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11675
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11676
else
11677
  if test -z "$LD"; then
11678
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11679
  for ac_dir in $PATH; do
11680
    IFS="$lt_save_ifs"
11681
    test -z "$ac_dir" && ac_dir=.
11682
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11683
      lt_cv_path_LD="$ac_dir/$ac_prog"
11684
      # Check to see if the program is GNU ld.  I'd rather use --version,
11685
      # but apparently some variants of GNU ld only accept -v.
11686
      # Break only if it was the GNU/non-GNU ld that we prefer.
11687
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11688
      *GNU* | *'with BFD'*)
11689
	test "$with_gnu_ld" != no && break
11690
	;;
11691
      *)
11692
	test "$with_gnu_ld" != yes && break
11693
	;;
11694
      esac
11695
    fi
11696
  done
11697
  IFS="$lt_save_ifs"
11698
else
11699
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11700
fi
11701
fi
11702
11703
LD="$lt_cv_path_LD"
11704
if test -n "$LD"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11705
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11706
$as_echo "$LD" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11707
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11708
  { $as_echo "$as_me:$LINENO: result: no" >&5
11709
$as_echo "no" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11710
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11711
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11712
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11713
   { (exit 1); exit 1; }; }
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11714
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11715
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11716
if test "${lt_cv_prog_gnu_ld+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11717
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11718
else
11719
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11720
case `$LD -v 2>&1 </dev/null` in
11721
*GNU* | *'with BFD'*)
11722
  lt_cv_prog_gnu_ld=yes
11723
  ;;
11724
*)
11725
  lt_cv_prog_gnu_ld=no
11726
  ;;
11727
esac
11728
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11729
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11730
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11731
with_gnu_ld=$lt_cv_prog_gnu_ld
11732
11733
11734
11735
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11736
  # archiving commands below assume that GNU ld is being used.
11737
  if test "$with_gnu_ld" = yes; then
11738
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11739
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11740
11741
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11742
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11743
11744
    # If archive_cmds runs LD, not CC, wlarc should be empty
11745
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11746
    #     investigate it a little bit more. (MM)
11747
    wlarc='${wl}'
11748
11749
    # ancient GNU ld didn't support --whole-archive et. al.
11750
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11751
	grep 'no-whole-archive' > /dev/null; then
11752
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11753
    else
11754
      whole_archive_flag_spec_CXX=
11755
    fi
11756
  else
11757
    with_gnu_ld=no
11758
    wlarc=
11759
11760
    # A generic and very simple default shared library creation
11761
    # command for GNU C++ for the case where it uses the native
11762
    # linker, instead of GNU ld.  If possible, this setting should
11763
    # overridden to take advantage of the native linker features on
11764
    # the platform it is being used on.
11765
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11766
  fi
11767
11768
  # Commands to make compiler produce verbose output that lists
11769
  # what "hidden" libraries, object files and flags are used when
11770
  # linking a shared library.
11771
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11772
11773
else
11774
  GXX=no
11775
  with_gnu_ld=no
11776
  wlarc=
11777
fi
11778
11779
# PORTME: fill in a description of your system's C++ link characteristics
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11780
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11781
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11782
ld_shlibs_CXX=yes
11783
case $host_os in
11784
  aix3*)
11785
    # FIXME: insert proper C++ library support
11786
    ld_shlibs_CXX=no
11787
    ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11788
  aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11789
    if test "$host_cpu" = ia64; then
11790
      # On IA64, the linker does run time linking by default, so we don't
11791
      # have to do anything special.
11792
      aix_use_runtimelinking=no
11793
      exp_sym_flag='-Bexport'
11794
      no_entry_flag=""
11795
    else
11796
      aix_use_runtimelinking=no
11797
11798
      # Test if we are trying to use run time linking or normal
11799
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11800
      # need to do runtime linking.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11801
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11802
	for ld_flag in $LDFLAGS; do
11803
	  case $ld_flag in
11804
	  *-brtl*)
11805
	    aix_use_runtimelinking=yes
11806
	    break
11807
	    ;;
11808
	  esac
11809
	done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11810
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11811
      esac
11812
11813
      exp_sym_flag='-bexport'
11814
      no_entry_flag='-bnoentry'
11815
    fi
11816
11817
    # When large executables or shared objects are built, AIX ld can
11818
    # have problems creating the table of contents.  If linking a library
11819
    # or program results in "error TOC overflow" add -mminimal-toc to
11820
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11821
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11822
11823
    archive_cmds_CXX=''
11824
    hardcode_direct_CXX=yes
11825
    hardcode_libdir_separator_CXX=':'
11826
    link_all_deplibs_CXX=yes
11827
11828
    if test "$GXX" = yes; then
11829
      case $host_os in aix4.[012]|aix4.[012].*)
11830
      # We only want to do this on AIX 4.2 and lower, the check
11831
      # below for broken collect2 doesn't work under 4.3+
11832
	collect2name=`${CC} -print-prog-name=collect2`
11833
	if test -f "$collect2name" && \
11834
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11835
	then
11836
	  # We have reworked collect2
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11837
	  :
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11838
	else
11839
	  # We have old collect2
11840
	  hardcode_direct_CXX=unsupported
11841
	  # It fails to find uninstalled libraries when the uninstalled
11842
	  # path is not listed in the libpath.  Setting hardcode_minus_L
11843
	  # to unsupported forces relinking
11844
	  hardcode_minus_L_CXX=yes
11845
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11846
	  hardcode_libdir_separator_CXX=
11847
	fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11848
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11849
      esac
11850
      shared_flag='-shared'
11851
      if test "$aix_use_runtimelinking" = yes; then
11852
	shared_flag="$shared_flag "'${wl}-G'
11853
      fi
11854
    else
11855
      # not using gcc
11856
      if test "$host_cpu" = ia64; then
11857
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11858
	# chokes on -Wl,-G. The following line is correct:
11859
	shared_flag='-G'
11860
      else
11861
	if test "$aix_use_runtimelinking" = yes; then
11862
	  shared_flag='${wl}-G'
11863
	else
11864
	  shared_flag='${wl}-bM:SRE'
11865
	fi
11866
      fi
11867
    fi
11868
11869
    # It seems that -bexpall does not export symbols beginning with
11870
    # underscore (_), so it is better to generate a list of symbols to export.
11871
    always_export_symbols_CXX=yes
11872
    if test "$aix_use_runtimelinking" = yes; then
11873
      # Warning - without using the other runtime loading flags (-brtl),
11874
      # -berok will link without error, but may produce a broken library.
11875
      allow_undefined_flag_CXX='-berok'
11876
      # Determine the default libpath from the value encoded in an empty executable.
11877
      cat >conftest.$ac_ext <<_ACEOF
11878
/* confdefs.h.  */
11879
_ACEOF
11880
cat confdefs.h >>conftest.$ac_ext
11881
cat >>conftest.$ac_ext <<_ACEOF
11882
/* end confdefs.h.  */
11883
11884
int
11885
main ()
11886
{
11887
11888
  ;
11889
  return 0;
11890
}
11891
_ACEOF
11892
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11893
if { (ac_try="$ac_link"
11894
case "(($ac_try" in
11895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896
  *) ac_try_echo=$ac_try;;
11897
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11900
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11901
  ac_status=$?
11902
  grep -v '^ *+' conftest.er1 >conftest.err
11903
  rm -f conftest.er1
11904
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11905
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11906
  (exit $ac_status); } && {
11907
	 test -z "$ac_cxx_werror_flag" ||
11908
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11909
       } && test -s conftest$ac_exeext && {
11910
	 test "$cross_compiling" = yes ||
11911
	 $as_test_x conftest$ac_exeext
11912
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11913
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11914
lt_aix_libpath_sed='
11915
    /Import File Strings/,/^$/ {
11916
	/^0/ {
11917
	    s/^0  *\(.*\)$/\1/
11918
	    p
11919
	}
11920
    }'
11921
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11922
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11923
if test -z "$aix_libpath"; then
11924
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11925
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11926
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11927
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11928
sed 's/^/| /' conftest.$ac_ext >&5
11929
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11930
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11931
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11932
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11933
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11935
      conftest$ac_exeext conftest.$ac_ext
11936
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11937
11938
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11939
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11940
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11941
     else
11942
      if test "$host_cpu" = ia64; then
11943
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11944
	allow_undefined_flag_CXX="-z nodefs"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11945
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11946
      else
11947
	# Determine the default libpath from the value encoded in an empty executable.
11948
	cat >conftest.$ac_ext <<_ACEOF
11949
/* confdefs.h.  */
11950
_ACEOF
11951
cat confdefs.h >>conftest.$ac_ext
11952
cat >>conftest.$ac_ext <<_ACEOF
11953
/* end confdefs.h.  */
11954
11955
int
11956
main ()
11957
{
11958
11959
  ;
11960
  return 0;
11961
}
11962
_ACEOF
11963
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11964
if { (ac_try="$ac_link"
11965
case "(($ac_try" in
11966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967
  *) ac_try_echo=$ac_try;;
11968
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11969
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11970
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11971
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11972
  ac_status=$?
11973
  grep -v '^ *+' conftest.er1 >conftest.err
11974
  rm -f conftest.er1
11975
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11976
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
11977
  (exit $ac_status); } && {
11978
	 test -z "$ac_cxx_werror_flag" ||
11979
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11980
       } && test -s conftest$ac_exeext && {
11981
	 test "$cross_compiling" = yes ||
11982
	 $as_test_x conftest$ac_exeext
11983
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11984
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11985
lt_aix_libpath_sed='
11986
    /Import File Strings/,/^$/ {
11987
	/^0/ {
11988
	    s/^0  *\(.*\)$/\1/
11989
	    p
11990
	}
11991
    }'
11992
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11993
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
11994
if test -z "$aix_libpath"; then
11995
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11996
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11997
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
11998
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
11999
sed 's/^/| /' conftest.$ac_ext >&5
12000
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12001
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12002
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12003
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12004
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12006
      conftest$ac_exeext conftest.$ac_ext
12007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12008
12009
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12010
	# Warning - without using the other run time loading flags,
12011
	# -berok will link without error, but may produce a broken library.
12012
	no_undefined_flag_CXX=' ${wl}-bernotok'
12013
	allow_undefined_flag_CXX=' ${wl}-berok'
12014
	# Exported symbols can be pulled into shared objects from archives
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12015
	whole_archive_flag_spec_CXX='$convenience'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12016
	archive_cmds_need_lc_CXX=yes
12017
	# This is similar to how AIX traditionally builds its shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12018
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12019
      fi
12020
    fi
12021
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12022
12023
  beos*)
12024
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12025
      allow_undefined_flag_CXX=unsupported
12026
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12027
      # support --undefined.  This deserves some investigation.  FIXME
12028
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12029
    else
12030
      ld_shlibs_CXX=no
12031
    fi
12032
    ;;
12033
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12034
  chorus*)
12035
    case $cc_basename in
12036
      *)
12037
	# FIXME: insert proper C++ library support
12038
	ld_shlibs_CXX=no
12039
	;;
12040
    esac
12041
    ;;
12042
12043
  cygwin* | mingw* | pw32*)
12044
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12045
    # as there is no search path for DLLs.
12046
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12047
    allow_undefined_flag_CXX=unsupported
12048
    always_export_symbols_CXX=no
12049
    enable_shared_with_static_runtimes_CXX=yes
12050
12051
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12052
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12053
      # If the export-symbols file already is a .def file (1st line
12054
      # is EXPORTS), use it as is; otherwise, prepend...
12055
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12056
	cp $export_symbols $output_objdir/$soname.def;
12057
      else
12058
	echo EXPORTS > $output_objdir/$soname.def;
12059
	cat $export_symbols >> $output_objdir/$soname.def;
12060
      fi~
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12061
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12062
    else
12063
      ld_shlibs_CXX=no
12064
    fi
12065
  ;;
12066
      darwin* | rhapsody*)
12067
      archive_cmds_need_lc_CXX=no
12068
      hardcode_direct_CXX=no
12069
      hardcode_automatic_CXX=yes
12070
      hardcode_shlibpath_var_CXX=unsupported
12071
      whole_archive_flag_spec_CXX=''
12072
      link_all_deplibs_CXX=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12073
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12074
      if test "$GXX" = yes ; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12075
      output_verbose_link_cmd='echo'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12076
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12077
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12078
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12079
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12080
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12081
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12082
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12083
      fi
12084
      else
12085
      case $cc_basename in
12086
        xlc*)
12087
         output_verbose_link_cmd='echo'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12088
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12089
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12090
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12091
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12092
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12093
          ;;
12094
       *)
12095
         ld_shlibs_CXX=no
12096
          ;;
12097
      esac
12098
      fi
12099
        ;;
12100
12101
  dgux*)
12102
    case $cc_basename in
12103
      ec++*)
12104
	# FIXME: insert proper C++ library support
12105
	ld_shlibs_CXX=no
12106
	;;
12107
      ghcx*)
12108
	# Green Hills C++ Compiler
12109
	# FIXME: insert proper C++ library support
12110
	ld_shlibs_CXX=no
12111
	;;
12112
      *)
12113
	# FIXME: insert proper C++ library support
12114
	ld_shlibs_CXX=no
12115
	;;
12116
    esac
12117
    ;;
12118
  freebsd[12]*)
12119
    # C++ shared libraries reported to be fairly broken before switch to ELF
12120
    ld_shlibs_CXX=no
12121
    ;;
12122
  freebsd-elf*)
12123
    archive_cmds_need_lc_CXX=no
12124
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12125
  freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12126
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12127
    # conventions
12128
    ld_shlibs_CXX=yes
12129
    ;;
12130
  gnu*)
12131
    ;;
12132
  hpux9*)
12133
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12134
    hardcode_libdir_separator_CXX=:
12135
    export_dynamic_flag_spec_CXX='${wl}-E'
12136
    hardcode_direct_CXX=yes
12137
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12138
				# but as the default
12139
				# location of the library.
12140
12141
    case $cc_basename in
12142
    CC*)
12143
      # FIXME: insert proper C++ library support
12144
      ld_shlibs_CXX=no
12145
      ;;
12146
    aCC*)
12147
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12148
      # Commands to make compiler produce verbose output that lists
12149
      # what "hidden" libraries, object files and flags are used when
12150
      # linking a shared library.
12151
      #
12152
      # There doesn't appear to be a way to prevent this compiler from
12153
      # explicitly linking system object files so we need to strip them
12154
      # from the output so that they don't get included in the library
12155
      # dependencies.
12156
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12157
      ;;
12158
    *)
12159
      if test "$GXX" = yes; then
12160
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12161
      else
12162
        # FIXME: insert proper C++ library support
12163
        ld_shlibs_CXX=no
12164
      fi
12165
      ;;
12166
    esac
12167
    ;;
12168
  hpux10*|hpux11*)
12169
    if test $with_gnu_ld = no; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12170
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12171
      hardcode_libdir_separator_CXX=:
12172
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12173
      case $host_cpu in
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12174
      hppa*64*|ia64*) ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12175
      *)
12176
	export_dynamic_flag_spec_CXX='${wl}-E'
12177
        ;;
12178
      esac
12179
    fi
12180
    case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12181
    hppa*64*|ia64*)
12182
      hardcode_direct_CXX=no
12183
      hardcode_shlibpath_var_CXX=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12184
      ;;
12185
    *)
12186
      hardcode_direct_CXX=yes
12187
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12188
					      # but as the default
12189
					      # location of the library.
12190
      ;;
12191
    esac
12192
12193
    case $cc_basename in
12194
      CC*)
12195
	# FIXME: insert proper C++ library support
12196
	ld_shlibs_CXX=no
12197
	;;
12198
      aCC*)
12199
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12200
	hppa*64*)
12201
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12202
	  ;;
12203
	ia64*)
12204
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12205
	  ;;
12206
	*)
12207
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12208
	  ;;
12209
	esac
12210
	# Commands to make compiler produce verbose output that lists
12211
	# what "hidden" libraries, object files and flags are used when
12212
	# linking a shared library.
12213
	#
12214
	# There doesn't appear to be a way to prevent this compiler from
12215
	# explicitly linking system object files so we need to strip them
12216
	# from the output so that they don't get included in the library
12217
	# dependencies.
12218
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12219
	;;
12220
      *)
12221
	if test "$GXX" = yes; then
12222
	  if test $with_gnu_ld = no; then
12223
	    case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12224
	    hppa*64*)
12225
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12226
	      ;;
12227
	    ia64*)
12228
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12229
	      ;;
12230
	    *)
12231
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12232
	      ;;
12233
	    esac
12234
	  fi
12235
	else
12236
	  # FIXME: insert proper C++ library support
12237
	  ld_shlibs_CXX=no
12238
	fi
12239
	;;
12240
    esac
12241
    ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12242
  interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12243
    hardcode_direct_CXX=no
12244
    hardcode_shlibpath_var_CXX=no
12245
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12246
    export_dynamic_flag_spec_CXX='${wl}-E'
12247
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12248
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12249
    # default) and relocated if they conflict, which is a slow very memory
12250
    # consuming and fragmenting process.  To avoid this, we pick a random,
12251
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12252
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12253
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12254
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12255
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12256
  irix5* | irix6*)
12257
    case $cc_basename in
12258
      CC*)
12259
	# SGI C++
12260
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12261
12262
	# Archives containing C++ object files must be created using
12263
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12264
	# necessary to make sure instantiated templates are included
12265
	# in the archive.
12266
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12267
	;;
12268
      *)
12269
	if test "$GXX" = yes; then
12270
	  if test "$with_gnu_ld" = no; then
12271
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12272
	  else
12273
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12274
	  fi
12275
	fi
12276
	link_all_deplibs_CXX=yes
12277
	;;
12278
    esac
12279
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280
    hardcode_libdir_separator_CXX=:
12281
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12282
  linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12283
    case $cc_basename in
12284
      KCC*)
12285
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12286
12287
	# KCC will only create a shared library if the output file
12288
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12289
	# to its proper name (with version) after linking.
12290
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12291
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12292
	# Commands to make compiler produce verbose output that lists
12293
	# what "hidden" libraries, object files and flags are used when
12294
	# linking a shared library.
12295
	#
12296
	# There doesn't appear to be a way to prevent this compiler from
12297
	# explicitly linking system object files so we need to strip them
12298
	# from the output so that they don't get included in the library
12299
	# dependencies.
12300
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12301
12302
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12303
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12304
12305
	# Archives containing C++ object files must be created using
12306
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12307
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12308
	;;
12309
      icpc*)
12310
	# Intel C++
12311
	with_gnu_ld=yes
12312
	# version 8.0 and above of icpc choke on multiply defined symbols
12313
	# if we add $predep_objects and $postdep_objects, however 7.1 and
12314
	# earlier do not add the objects themselves.
12315
	case `$CC -V 2>&1` in
12316
	*"Version 7."*)
12317
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12318
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12319
	  ;;
12320
	*)  # Version 8.0 or newer
12321
	  tmp_idyn=
12322
	  case $host_cpu in
12323
	    ia64*) tmp_idyn=' -i_dynamic';;
12324
	  esac
12325
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12327
	  ;;
12328
	esac
12329
	archive_cmds_need_lc_CXX=no
12330
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12331
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12332
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12333
	;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12334
      pgCC* | pgcpp*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12335
        # Portland Group C++ compiler
12336
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12337
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12338
12339
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12340
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12341
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12342
        ;;
12343
      cxx*)
12344
	# Compaq C++
12345
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12347
12348
	runpath_var=LD_RUN_PATH
12349
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12350
	hardcode_libdir_separator_CXX=:
12351
12352
	# Commands to make compiler produce verbose output that lists
12353
	# what "hidden" libraries, object files and flags are used when
12354
	# linking a shared library.
12355
	#
12356
	# There doesn't appear to be a way to prevent this compiler from
12357
	# explicitly linking system object files so we need to strip them
12358
	# from the output so that they don't get included in the library
12359
	# dependencies.
12360
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12361
	;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12362
      *)
12363
	case `$CC -V 2>&1 | sed 5q` in
12364
	*Sun\ C*)
12365
	  # Sun C++ 5.9
12366
	  no_undefined_flag_CXX=' -zdefs'
12367
	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12368
	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12369
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12370
	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12371
12372
	  # Not sure whether something based on
12373
	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12374
	  # would be better.
12375
	  output_verbose_link_cmd='echo'
12376
12377
	  # Archives containing C++ object files must be created using
12378
	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12379
	  # necessary to make sure instantiated templates are included
12380
	  # in the archive.
12381
	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12382
	  ;;
12383
	esac
12384
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12385
    esac
12386
    ;;
12387
  lynxos*)
12388
    # FIXME: insert proper C++ library support
12389
    ld_shlibs_CXX=no
12390
    ;;
12391
  m88k*)
12392
    # FIXME: insert proper C++ library support
12393
    ld_shlibs_CXX=no
12394
    ;;
12395
  mvs*)
12396
    case $cc_basename in
12397
      cxx*)
12398
	# FIXME: insert proper C++ library support
12399
	ld_shlibs_CXX=no
12400
	;;
12401
      *)
12402
	# FIXME: insert proper C++ library support
12403
	ld_shlibs_CXX=no
12404
	;;
12405
    esac
12406
    ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12407
  netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12408
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12409
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12410
      wlarc=
12411
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12412
      hardcode_direct_CXX=yes
12413
      hardcode_shlibpath_var_CXX=no
12414
    fi
12415
    # Workaround some broken pre-1.5 toolchains
12416
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12417
    ;;
12418
  openbsd2*)
12419
    # C++ shared libraries are fairly broken
12420
    ld_shlibs_CXX=no
12421
    ;;
12422
  openbsd*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12423
    if test -f /usr/libexec/ld.so; then
12424
      hardcode_direct_CXX=yes
12425
      hardcode_shlibpath_var_CXX=no
12426
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12427
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12428
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12429
	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12430
	export_dynamic_flag_spec_CXX='${wl}-E'
12431
	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12432
      fi
12433
      output_verbose_link_cmd='echo'
12434
    else
12435
      ld_shlibs_CXX=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12436
    fi
12437
    ;;
12438
  osf3*)
12439
    case $cc_basename in
12440
      KCC*)
12441
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12442
12443
	# KCC will only create a shared library if the output file
12444
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12445
	# to its proper name (with version) after linking.
12446
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12447
12448
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12449
	hardcode_libdir_separator_CXX=:
12450
12451
	# Archives containing C++ object files must be created using
12452
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12453
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12454
12455
	;;
12456
      RCC*)
12457
	# Rational C++ 2.4.1
12458
	# FIXME: insert proper C++ library support
12459
	ld_shlibs_CXX=no
12460
	;;
12461
      cxx*)
12462
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12463
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12464
12465
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12466
	hardcode_libdir_separator_CXX=:
12467
12468
	# Commands to make compiler produce verbose output that lists
12469
	# what "hidden" libraries, object files and flags are used when
12470
	# linking a shared library.
12471
	#
12472
	# There doesn't appear to be a way to prevent this compiler from
12473
	# explicitly linking system object files so we need to strip them
12474
	# from the output so that they don't get included in the library
12475
	# dependencies.
12476
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12477
	;;
12478
      *)
12479
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12480
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12481
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12482
12483
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12484
	  hardcode_libdir_separator_CXX=:
12485
12486
	  # Commands to make compiler produce verbose output that lists
12487
	  # what "hidden" libraries, object files and flags are used when
12488
	  # linking a shared library.
12489
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12490
12491
	else
12492
	  # FIXME: insert proper C++ library support
12493
	  ld_shlibs_CXX=no
12494
	fi
12495
	;;
12496
    esac
12497
    ;;
12498
  osf4* | osf5*)
12499
    case $cc_basename in
12500
      KCC*)
12501
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12502
12503
	# KCC will only create a shared library if the output file
12504
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12505
	# to its proper name (with version) after linking.
12506
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12507
12508
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12509
	hardcode_libdir_separator_CXX=:
12510
12511
	# Archives containing C++ object files must be created using
12512
	# the KAI C++ compiler.
12513
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12514
	;;
12515
      RCC*)
12516
	# Rational C++ 2.4.1
12517
	# FIXME: insert proper C++ library support
12518
	ld_shlibs_CXX=no
12519
	;;
12520
      cxx*)
12521
	allow_undefined_flag_CXX=' -expect_unresolved \*'
12522
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12523
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12524
	  echo "-hidden">> $lib.exp~
12525
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12526
	  $rm $lib.exp'
12527
12528
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12529
	hardcode_libdir_separator_CXX=:
12530
12531
	# Commands to make compiler produce verbose output that lists
12532
	# what "hidden" libraries, object files and flags are used when
12533
	# linking a shared library.
12534
	#
12535
	# There doesn't appear to be a way to prevent this compiler from
12536
	# explicitly linking system object files so we need to strip them
12537
	# from the output so that they don't get included in the library
12538
	# dependencies.
12539
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12540
	;;
12541
      *)
12542
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12543
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12544
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12545
12546
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12547
	  hardcode_libdir_separator_CXX=:
12548
12549
	  # Commands to make compiler produce verbose output that lists
12550
	  # what "hidden" libraries, object files and flags are used when
12551
	  # linking a shared library.
12552
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12553
12554
	else
12555
	  # FIXME: insert proper C++ library support
12556
	  ld_shlibs_CXX=no
12557
	fi
12558
	;;
12559
    esac
12560
    ;;
12561
  psos*)
12562
    # FIXME: insert proper C++ library support
12563
    ld_shlibs_CXX=no
12564
    ;;
12565
  sunos4*)
12566
    case $cc_basename in
12567
      CC*)
12568
	# Sun C++ 4.x
12569
	# FIXME: insert proper C++ library support
12570
	ld_shlibs_CXX=no
12571
	;;
12572
      lcc*)
12573
	# Lucid
12574
	# FIXME: insert proper C++ library support
12575
	ld_shlibs_CXX=no
12576
	;;
12577
      *)
12578
	# FIXME: insert proper C++ library support
12579
	ld_shlibs_CXX=no
12580
	;;
12581
    esac
12582
    ;;
12583
  solaris*)
12584
    case $cc_basename in
12585
      CC*)
12586
	# Sun C++ 4.2, 5.x and Centerline C++
12587
        archive_cmds_need_lc_CXX=yes
12588
	no_undefined_flag_CXX=' -zdefs'
12589
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12591
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12592
12593
	hardcode_libdir_flag_spec_CXX='-R$libdir'
12594
	hardcode_shlibpath_var_CXX=no
12595
	case $host_os in
12596
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12597
	  *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12598
	    # The compiler driver will combine and reorder linker options,
12599
	    # but understands `-z linker_flag'.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12600
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12601
	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12602
	    ;;
12603
	esac
12604
	link_all_deplibs_CXX=yes
12605
12606
	output_verbose_link_cmd='echo'
12607
12608
	# Archives containing C++ object files must be created using
12609
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12610
	# necessary to make sure instantiated templates are included
12611
	# in the archive.
12612
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12613
	;;
12614
      gcx*)
12615
	# Green Hills C++ Compiler
12616
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12617
12618
	# The C++ compiler must be used to create the archive.
12619
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12620
	;;
12621
      *)
12622
	# GNU C++ compiler with Solaris linker
12623
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12624
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12625
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12626
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12627
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12628
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12629
12630
	    # Commands to make compiler produce verbose output that lists
12631
	    # what "hidden" libraries, object files and flags are used when
12632
	    # linking a shared library.
12633
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12634
	  else
12635
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12636
	    # platform.
12637
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12638
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12639
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12640
12641
	    # Commands to make compiler produce verbose output that lists
12642
	    # what "hidden" libraries, object files and flags are used when
12643
	    # linking a shared library.
12644
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12645
	  fi
12646
12647
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12648
	  case $host_os in
12649
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12650
	  *)
12651
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12652
	    ;;
12653
	  esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12654
	fi
12655
	;;
12656
    esac
12657
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12658
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12659
    no_undefined_flag_CXX='${wl}-z,text'
12660
    archive_cmds_need_lc_CXX=no
12661
    hardcode_shlibpath_var_CXX=no
12662
    runpath_var='LD_RUN_PATH'
12663
12664
    case $cc_basename in
12665
      CC*)
12666
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12668
	;;
12669
      *)
12670
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672
	;;
12673
    esac
12674
    ;;
12675
  sysv5* | sco3.2v5* | sco5v6*)
12676
    # Note: We can NOT use -z defs as we might desire, because we do not
12677
    # link with -lc, and that would cause any symbols used from libc to
12678
    # always be unresolved, which means just about no library would
12679
    # ever link correctly.  If we're not using GNU ld we use -z text
12680
    # though, which does catch some bad symbols but isn't as heavy-handed
12681
    # as -z defs.
12682
    # For security reasons, it is highly recommended that you always
12683
    # use absolute paths for naming shared libraries, and exclude the
12684
    # DT_RUNPATH tag from executables and libraries.  But doing so
12685
    # requires that you compile everything twice, which is a pain.
12686
    # So that behaviour is only enabled if SCOABSPATH is set to a
12687
    # non-empty value in the environment.  Most likely only useful for
12688
    # creating official distributions of packages.
12689
    # This is a hack until libtool officially supports absolute path
12690
    # names for shared libraries.
12691
    no_undefined_flag_CXX='${wl}-z,text'
12692
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12693
    archive_cmds_need_lc_CXX=no
12694
    hardcode_shlibpath_var_CXX=no
12695
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12696
    hardcode_libdir_separator_CXX=':'
12697
    link_all_deplibs_CXX=yes
12698
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12699
    runpath_var='LD_RUN_PATH'
12700
12701
    case $cc_basename in
12702
      CC*)
12703
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12704
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12705
	;;
12706
      *)
12707
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12708
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12709
	;;
12710
    esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12711
    ;;
12712
  tandem*)
12713
    case $cc_basename in
12714
      NCC*)
12715
	# NonStop-UX NCC 3.20
12716
	# FIXME: insert proper C++ library support
12717
	ld_shlibs_CXX=no
12718
	;;
12719
      *)
12720
	# FIXME: insert proper C++ library support
12721
	ld_shlibs_CXX=no
12722
	;;
12723
    esac
12724
    ;;
12725
  vxworks*)
12726
    # FIXME: insert proper C++ library support
12727
    ld_shlibs_CXX=no
12728
    ;;
12729
  *)
12730
    # FIXME: insert proper C++ library support
12731
    ld_shlibs_CXX=no
12732
    ;;
12733
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12734
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12735
$as_echo "$ld_shlibs_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12736
test "$ld_shlibs_CXX" = no && can_build_shared=no
12737
12738
GCC_CXX="$GXX"
12739
LD_CXX="$LD"
12740
12741
cat > conftest.$ac_ext <<EOF
12742
class Foo
12743
{
12744
public:
12745
  Foo (void) { a = 0; }
12746
private:
12747
  int a;
12748
};
12749
EOF
12750
12751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752
  (eval $ac_compile) 2>&5
12753
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12754
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12755
  (exit $ac_status); }; then
12756
  # Parse the compiler output and extract the necessary
12757
  # objects, libraries and library flags.
12758
12759
  # Sentinel used to keep track of whether or not we are before
12760
  # the conftest object file.
12761
  pre_test_object_deps_done=no
12762
12763
  # The `*' in the case matches for architectures that use `case' in
12764
  # $output_verbose_cmd can trigger glob expansion during the loop
12765
  # eval without this substitution.
12766
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12767
12768
  for p in `eval $output_verbose_link_cmd`; do
12769
    case $p in
12770
12771
    -L* | -R* | -l*)
12772
       # Some compilers place space between "-{L,R}" and the path.
12773
       # Remove the space.
12774
       if test $p = "-L" \
12775
	  || test $p = "-R"; then
12776
	 prev=$p
12777
	 continue
12778
       else
12779
	 prev=
12780
       fi
12781
12782
       if test "$pre_test_object_deps_done" = no; then
12783
	 case $p in
12784
	 -L* | -R*)
12785
	   # Internal compiler library paths should come after those
12786
	   # provided the user.  The postdeps already come after the
12787
	   # user supplied libs so there is no need to process them.
12788
	   if test -z "$compiler_lib_search_path_CXX"; then
12789
	     compiler_lib_search_path_CXX="${prev}${p}"
12790
	   else
12791
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12792
	   fi
12793
	   ;;
12794
	 # The "-l" case would never come before the object being
12795
	 # linked, so don't bother handling this case.
12796
	 esac
12797
       else
12798
	 if test -z "$postdeps_CXX"; then
12799
	   postdeps_CXX="${prev}${p}"
12800
	 else
12801
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12802
	 fi
12803
       fi
12804
       ;;
12805
12806
    *.$objext)
12807
       # This assumes that the test object file only shows up
12808
       # once in the compiler output.
12809
       if test "$p" = "conftest.$objext"; then
12810
	 pre_test_object_deps_done=yes
12811
	 continue
12812
       fi
12813
12814
       if test "$pre_test_object_deps_done" = no; then
12815
	 if test -z "$predep_objects_CXX"; then
12816
	   predep_objects_CXX="$p"
12817
	 else
12818
	   predep_objects_CXX="$predep_objects_CXX $p"
12819
	 fi
12820
       else
12821
	 if test -z "$postdep_objects_CXX"; then
12822
	   postdep_objects_CXX="$p"
12823
	 else
12824
	   postdep_objects_CXX="$postdep_objects_CXX $p"
12825
	 fi
12826
       fi
12827
       ;;
12828
12829
    *) ;; # Ignore the rest.
12830
12831
    esac
12832
  done
12833
12834
  # Clean up.
12835
  rm -f a.out a.exe
12836
else
12837
  echo "libtool.m4: error: problem compiling CXX test program"
12838
fi
12839
12840
$rm -f confest.$objext
12841
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12842
compiler_lib_search_dirs_CXX=
12843
if test -n "$compiler_lib_search_path_CXX"; then
12844
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12845
fi
12846
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12847
# PORTME: override above test on systems where it is broken
12848
case $host_os in
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12849
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12850
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12851
  # hack all around it, let's just trust "g++" to DTRT.
12852
  predep_objects_CXX=
12853
  postdep_objects_CXX=
12854
  postdeps_CXX=
12855
  ;;
12856
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12857
linux*)
12858
  case `$CC -V 2>&1 | sed 5q` in
12859
  *Sun\ C*)
12860
    # Sun C++ 5.9
12861
    #
12862
    # The more standards-conforming stlport4 library is
12863
    # incompatible with the Cstd library. Avoid specifying
12864
    # it if it's in CXXFLAGS. Ignore libCrun as
12865
    # -library=stlport4 depends on it.
12866
    case " $CXX $CXXFLAGS " in
12867
    *" -library=stlport4 "*)
12868
      solaris_use_stlport4=yes
12869
      ;;
12870
    esac
12871
    if test "$solaris_use_stlport4" != yes; then
12872
      postdeps_CXX='-library=Cstd -library=Crun'
12873
    fi
12874
    ;;
12875
  esac
12876
  ;;
12877
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12878
solaris*)
12879
  case $cc_basename in
12880
  CC*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12881
    # The more standards-conforming stlport4 library is
12882
    # incompatible with the Cstd library. Avoid specifying
12883
    # it if it's in CXXFLAGS. Ignore libCrun as
12884
    # -library=stlport4 depends on it.
12885
    case " $CXX $CXXFLAGS " in
12886
    *" -library=stlport4 "*)
12887
      solaris_use_stlport4=yes
12888
      ;;
12889
    esac
12890
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12891
    # Adding this requires a known-good setup of shared libraries for
12892
    # Sun compiler versions before 5.6, else PIC objects from an old
12893
    # archive will be linked into the output, leading to subtle bugs.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12894
    if test "$solaris_use_stlport4" != yes; then
12895
      postdeps_CXX='-library=Cstd -library=Crun'
12896
    fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12897
    ;;
12898
  esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12899
  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12900
esac
12901
12902
case " $postdeps_CXX " in
12903
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12904
esac
12905
12906
lt_prog_compiler_wl_CXX=
12907
lt_prog_compiler_pic_CXX=
12908
lt_prog_compiler_static_CXX=
12909
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12910
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12911
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12912
12913
  # C++ specific cases for pic, static, wl, etc.
12914
  if test "$GXX" = yes; then
12915
    lt_prog_compiler_wl_CXX='-Wl,'
12916
    lt_prog_compiler_static_CXX='-static'
12917
12918
    case $host_os in
12919
    aix*)
12920
      # All AIX code is PIC.
12921
      if test "$host_cpu" = ia64; then
12922
	# AIX 5 now supports IA64 processor
12923
	lt_prog_compiler_static_CXX='-Bstatic'
12924
      fi
12925
      ;;
12926
    amigaos*)
12927
      # FIXME: we need at least 68020 code to build shared libraries, but
12928
      # adding the `-m68020' flag to GCC prevents building anything better,
12929
      # like `-m68040'.
12930
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12931
      ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12932
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12933
      # PIC is the default for these OSes.
12934
      ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12935
    mingw* | cygwin* | os2* | pw32*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12936
      # This hack is so that the source file can tell whether it is being
12937
      # built for inclusion in a dll (and should export symbols for example).
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12938
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12939
      # (--disable-auto-import) libraries
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12940
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12941
      ;;
12942
    darwin* | rhapsody*)
12943
      # PIC is the default on this platform
12944
      # Common symbols not allowed in MH_DYLIB files
12945
      lt_prog_compiler_pic_CXX='-fno-common'
12946
      ;;
12947
    *djgpp*)
12948
      # DJGPP does not support shared libraries at all
12949
      lt_prog_compiler_pic_CXX=
12950
      ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
12951
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
12952
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12953
      # Instead, we relocate shared libraries at runtime.
12954
      ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12955
    sysv4*MP*)
12956
      if test -d /usr/nec; then
12957
	lt_prog_compiler_pic_CXX=-Kconform_pic
12958
      fi
12959
      ;;
12960
    hpux*)
12961
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12962
      # not for PA HP-UX.
12963
      case $host_cpu in
12964
      hppa*64*|ia64*)
12965
	;;
12966
      *)
12967
	lt_prog_compiler_pic_CXX='-fPIC'
12968
	;;
12969
      esac
12970
      ;;
12971
    *)
12972
      lt_prog_compiler_pic_CXX='-fPIC'
12973
      ;;
12974
    esac
12975
  else
12976
    case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
12977
      aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
12978
	# All AIX code is PIC.
12979
	if test "$host_cpu" = ia64; then
12980
	  # AIX 5 now supports IA64 processor
12981
	  lt_prog_compiler_static_CXX='-Bstatic'
12982
	else
12983
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12984
	fi
12985
	;;
12986
      chorus*)
12987
	case $cc_basename in
12988
	cxch68*)
12989
	  # Green Hills C++ Compiler
12990
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12991
	  ;;
12992
	esac
12993
	;;
12994
       darwin*)
12995
         # PIC is the default on this platform
12996
         # Common symbols not allowed in MH_DYLIB files
12997
         case $cc_basename in
12998
           xlc*)
12999
           lt_prog_compiler_pic_CXX='-qnocommon'
13000
           lt_prog_compiler_wl_CXX='-Wl,'
13001
           ;;
13002
         esac
13003
       ;;
13004
      dgux*)
13005
	case $cc_basename in
13006
	  ec++*)
13007
	    lt_prog_compiler_pic_CXX='-KPIC'
13008
	    ;;
13009
	  ghcx*)
13010
	    # Green Hills C++ Compiler
13011
	    lt_prog_compiler_pic_CXX='-pic'
13012
	    ;;
13013
	  *)
13014
	    ;;
13015
	esac
13016
	;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13017
      freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13018
	# FreeBSD uses GNU C++
13019
	;;
13020
      hpux9* | hpux10* | hpux11*)
13021
	case $cc_basename in
13022
	  CC*)
13023
	    lt_prog_compiler_wl_CXX='-Wl,'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13024
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13025
	    if test "$host_cpu" != ia64; then
13026
	      lt_prog_compiler_pic_CXX='+Z'
13027
	    fi
13028
	    ;;
13029
	  aCC*)
13030
	    lt_prog_compiler_wl_CXX='-Wl,'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13031
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13032
	    case $host_cpu in
13033
	    hppa*64*|ia64*)
13034
	      # +Z the default
13035
	      ;;
13036
	    *)
13037
	      lt_prog_compiler_pic_CXX='+Z'
13038
	      ;;
13039
	    esac
13040
	    ;;
13041
	  *)
13042
	    ;;
13043
	esac
13044
	;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13045
      interix*)
13046
	# This is c89, which is MS Visual C++ (no shared libs)
13047
	# Anyone wants to do a port?
13048
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13049
      irix5* | irix6* | nonstopux*)
13050
	case $cc_basename in
13051
	  CC*)
13052
	    lt_prog_compiler_wl_CXX='-Wl,'
13053
	    lt_prog_compiler_static_CXX='-non_shared'
13054
	    # CC pic flag -KPIC is the default.
13055
	    ;;
13056
	  *)
13057
	    ;;
13058
	esac
13059
	;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13060
      linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13061
	case $cc_basename in
13062
	  KCC*)
13063
	    # KAI C++ Compiler
13064
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13065
	    lt_prog_compiler_pic_CXX='-fPIC'
13066
	    ;;
13067
	  icpc* | ecpc*)
13068
	    # Intel C++
13069
	    lt_prog_compiler_wl_CXX='-Wl,'
13070
	    lt_prog_compiler_pic_CXX='-KPIC'
13071
	    lt_prog_compiler_static_CXX='-static'
13072
	    ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13073
	  pgCC* | pgcpp*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13074
	    # Portland Group C++ compiler.
13075
	    lt_prog_compiler_wl_CXX='-Wl,'
13076
	    lt_prog_compiler_pic_CXX='-fpic'
13077
	    lt_prog_compiler_static_CXX='-Bstatic'
13078
	    ;;
13079
	  cxx*)
13080
	    # Compaq C++
13081
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13082
	    # Linux and Compaq Tru64 Unix objects are PIC.
13083
	    lt_prog_compiler_pic_CXX=
13084
	    lt_prog_compiler_static_CXX='-non_shared'
13085
	    ;;
13086
	  *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13087
	    case `$CC -V 2>&1 | sed 5q` in
13088
	    *Sun\ C*)
13089
	      # Sun C++ 5.9
13090
	      lt_prog_compiler_pic_CXX='-KPIC'
13091
	      lt_prog_compiler_static_CXX='-Bstatic'
13092
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13093
	      ;;
13094
	    esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13095
	    ;;
13096
	esac
13097
	;;
13098
      lynxos*)
13099
	;;
13100
      m88k*)
13101
	;;
13102
      mvs*)
13103
	case $cc_basename in
13104
	  cxx*)
13105
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13106
	    ;;
13107
	  *)
13108
	    ;;
13109
	esac
13110
	;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13111
      netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13112
	;;
13113
      osf3* | osf4* | osf5*)
13114
	case $cc_basename in
13115
	  KCC*)
13116
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13117
	    ;;
13118
	  RCC*)
13119
	    # Rational C++ 2.4.1
13120
	    lt_prog_compiler_pic_CXX='-pic'
13121
	    ;;
13122
	  cxx*)
13123
	    # Digital/Compaq C++
13124
	    lt_prog_compiler_wl_CXX='-Wl,'
13125
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13126
	    # Linux and Compaq Tru64 Unix objects are PIC.
13127
	    lt_prog_compiler_pic_CXX=
13128
	    lt_prog_compiler_static_CXX='-non_shared'
13129
	    ;;
13130
	  *)
13131
	    ;;
13132
	esac
13133
	;;
13134
      psos*)
13135
	;;
13136
      solaris*)
13137
	case $cc_basename in
13138
	  CC*)
13139
	    # Sun C++ 4.2, 5.x and Centerline C++
13140
	    lt_prog_compiler_pic_CXX='-KPIC'
13141
	    lt_prog_compiler_static_CXX='-Bstatic'
13142
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13143
	    ;;
13144
	  gcx*)
13145
	    # Green Hills C++ Compiler
13146
	    lt_prog_compiler_pic_CXX='-PIC'
13147
	    ;;
13148
	  *)
13149
	    ;;
13150
	esac
13151
	;;
13152
      sunos4*)
13153
	case $cc_basename in
13154
	  CC*)
13155
	    # Sun C++ 4.x
13156
	    lt_prog_compiler_pic_CXX='-pic'
13157
	    lt_prog_compiler_static_CXX='-Bstatic'
13158
	    ;;
13159
	  lcc*)
13160
	    # Lucid
13161
	    lt_prog_compiler_pic_CXX='-pic'
13162
	    ;;
13163
	  *)
13164
	    ;;
13165
	esac
13166
	;;
13167
      tandem*)
13168
	case $cc_basename in
13169
	  NCC*)
13170
	    # NonStop-UX NCC 3.20
13171
	    lt_prog_compiler_pic_CXX='-KPIC'
13172
	    ;;
13173
	  *)
13174
	    ;;
13175
	esac
13176
	;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13177
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13178
	case $cc_basename in
13179
	  CC*)
13180
	    lt_prog_compiler_wl_CXX='-Wl,'
13181
	    lt_prog_compiler_pic_CXX='-KPIC'
13182
	    lt_prog_compiler_static_CXX='-Bstatic'
13183
	    ;;
13184
	esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13185
	;;
13186
      vxworks*)
13187
	;;
13188
      *)
13189
	lt_prog_compiler_can_build_shared_CXX=no
13190
	;;
13191
    esac
13192
  fi
13193
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13194
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13195
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13196
13197
#
13198
# Check to make sure the PIC flag actually works.
13199
#
13200
if test -n "$lt_prog_compiler_pic_CXX"; then
13201
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13202
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13203
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13204
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13205
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13206
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13207
  lt_cv_prog_compiler_pic_works_CXX=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13208
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13209
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13210
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13211
   # Insert the option either (1) after the last *FLAGS variable, or
13212
   # (2) before a word containing "conftest.", or (3) at the end.
13213
   # Note that $ac_compile itself does not contain backslashes and begins
13214
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13215
   # The option is referenced via a variable to avoid confusing sed.
13216
   lt_compile=`echo "$ac_compile" | $SED \
13217
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13218
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13219
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13220
   (eval echo "\"\$as_me:13220: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13221
   (eval "$lt_compile" 2>conftest.err)
13222
   ac_status=$?
13223
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13224
   echo "$as_me:13224: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13225
   if (exit $ac_status) && test -s "$ac_outfile"; then
13226
     # The compiler can only warn and ignore the option if not recognized
13227
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13228
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13229
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13230
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13231
       lt_cv_prog_compiler_pic_works_CXX=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13232
     fi
13233
   fi
13234
   $rm conftest*
13235
13236
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13237
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13238
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13239
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13240
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13241
    case $lt_prog_compiler_pic_CXX in
13242
     "" | " "*) ;;
13243
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13244
     esac
13245
else
13246
    lt_prog_compiler_pic_CXX=
13247
     lt_prog_compiler_can_build_shared_CXX=no
13248
fi
13249
13250
fi
13251
case $host_os in
13252
  # For platforms which do not support PIC, -DPIC is meaningless:
13253
  *djgpp*)
13254
    lt_prog_compiler_pic_CXX=
13255
    ;;
13256
  *)
13257
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13258
    ;;
13259
esac
13260
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13261
#
13262
# Check to make sure the static flag actually works.
13263
#
13264
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13265
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13266
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13267
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13268
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13269
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13270
  lt_cv_prog_compiler_static_works_CXX=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13271
   save_LDFLAGS="$LDFLAGS"
13272
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13273
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13274
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13275
     # The linker can only warn and ignore the option if not recognized
13276
     # So say no if there are warnings
13277
     if test -s conftest.err; then
13278
       # Append any errors to the config.log.
13279
       cat conftest.err 1>&5
13280
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13281
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13282
       if diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13283
         lt_cv_prog_compiler_static_works_CXX=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13284
       fi
13285
     else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13286
       lt_cv_prog_compiler_static_works_CXX=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13287
     fi
13288
   fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13289
   $rm -r conftest*
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13290
   LDFLAGS="$save_LDFLAGS"
13291
13292
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13293
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13294
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13295
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13296
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13297
    :
13298
else
13299
    lt_prog_compiler_static_CXX=
13300
fi
13301
13302
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13303
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13304
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13305
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13306
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13307
else
13308
  lt_cv_prog_compiler_c_o_CXX=no
13309
   $rm -r conftest 2>/dev/null
13310
   mkdir conftest
13311
   cd conftest
13312
   mkdir out
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13313
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13314
13315
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13316
   # Insert the option either (1) after the last *FLAGS variable, or
13317
   # (2) before a word containing "conftest.", or (3) at the end.
13318
   # Note that $ac_compile itself does not contain backslashes and begins
13319
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13320
   lt_compile=`echo "$ac_compile" | $SED \
13321
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13322
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13323
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13324
   (eval echo "\"\$as_me:13324: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13325
   (eval "$lt_compile" 2>out/conftest.err)
13326
   ac_status=$?
13327
   cat out/conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13328
   echo "$as_me:13328: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13329
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13330
   then
13331
     # The compiler can only warn and ignore the option if not recognized
13332
     # So say no if there are warnings
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13333
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13334
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13335
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13336
       lt_cv_prog_compiler_c_o_CXX=yes
13337
     fi
13338
   fi
13339
   chmod u+w . 2>&5
13340
   $rm conftest*
13341
   # SGI C++ compiler will create directory out/ii_files/ for
13342
   # template instantiation
13343
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13344
   $rm out/* && rmdir out
13345
   cd ..
13346
   rmdir conftest
13347
   $rm conftest*
13348
13349
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13350
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13351
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13352
13353
13354
hard_links="nottested"
13355
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13356
  # do not overwrite the value of need_locks provided by the user
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13357
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13358
$as_echo_n "checking if we can lock with hard links... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13359
  hard_links=yes
13360
  $rm conftest*
13361
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13362
  touch conftest.a
13363
  ln conftest.a conftest.b 2>&5 || hard_links=no
13364
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13365
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13366
$as_echo "$hard_links" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13367
  if test "$hard_links" = no; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13368
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13369
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13370
    need_locks=warn
13371
  fi
13372
else
13373
  need_locks=no
13374
fi
13375
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13376
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13377
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13378
13379
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13380
  case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13381
  aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13382
    # If we're using GNU nm, then we don't want the "-C" option.
13383
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13384
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13385
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13386
    else
13387
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13388
    fi
13389
    ;;
13390
  pw32*)
13391
    export_symbols_cmds_CXX="$ltdll_cmds"
13392
  ;;
13393
  cygwin* | mingw*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13394
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13395
  ;;
13396
  *)
13397
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13398
  ;;
13399
  esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13400
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13401
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13402
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13403
$as_echo "$ld_shlibs_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13404
test "$ld_shlibs_CXX" = no && can_build_shared=no
13405
13406
#
13407
# Do we need to explicitly link libc?
13408
#
13409
case "x$archive_cmds_need_lc_CXX" in
13410
x|xyes)
13411
  # Assume -lc should be added
13412
  archive_cmds_need_lc_CXX=yes
13413
13414
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13415
    case $archive_cmds_CXX in
13416
    *'~'*)
13417
      # FIXME: we may have to deal with multi-command sequences.
13418
      ;;
13419
    '$CC '*)
13420
      # Test whether the compiler implicitly links with -lc since on some
13421
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13422
      # to ld, don't add -lc before -lgcc.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13423
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13424
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13425
      $rm conftest*
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13426
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13427
13428
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429
  (eval $ac_compile) 2>&5
13430
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13432
  (exit $ac_status); } 2>conftest.err; then
13433
        soname=conftest
13434
        lib=conftest
13435
        libobjs=conftest.$ac_objext
13436
        deplibs=
13437
        wl=$lt_prog_compiler_wl_CXX
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13438
	pic_flag=$lt_prog_compiler_pic_CXX
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13439
        compiler_flags=-v
13440
        linker_flags=-v
13441
        verstring=
13442
        output_objdir=.
13443
        libname=conftest
13444
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13445
        allow_undefined_flag_CXX=
13446
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13447
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13448
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13450
  (exit $ac_status); }
13451
        then
13452
	  archive_cmds_need_lc_CXX=no
13453
        else
13454
	  archive_cmds_need_lc_CXX=yes
13455
        fi
13456
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13457
      else
13458
        cat conftest.err 1>&5
13459
      fi
13460
      $rm conftest*
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13461
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13462
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13463
      ;;
13464
    esac
13465
  fi
13466
  ;;
13467
esac
13468
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13469
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13470
$as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13471
library_names_spec=
13472
libname_spec='lib$name'
13473
soname_spec=
13474
shrext_cmds=".so"
13475
postinstall_cmds=
13476
postuninstall_cmds=
13477
finish_cmds=
13478
finish_eval=
13479
shlibpath_var=
13480
shlibpath_overrides_runpath=unknown
13481
version_type=none
13482
dynamic_linker="$host_os ld.so"
13483
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13484
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13485
need_lib_prefix=unknown
13486
hardcode_into_libs=no
13487
13488
# when you set need_version to no, make sure it does not cause -set_version
13489
# flags to be left without arguments
13490
need_version=unknown
13491
13492
case $host_os in
13493
aix3*)
13494
  version_type=linux
13495
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13496
  shlibpath_var=LIBPATH
13497
13498
  # AIX 3 has no versioning support, so we append a major version to the name.
13499
  soname_spec='${libname}${release}${shared_ext}$major'
13500
  ;;
13501
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13502
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13503
  version_type=linux
13504
  need_lib_prefix=no
13505
  need_version=no
13506
  hardcode_into_libs=yes
13507
  if test "$host_cpu" = ia64; then
13508
    # AIX 5 supports IA64
13509
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13510
    shlibpath_var=LD_LIBRARY_PATH
13511
  else
13512
    # With GCC up to 2.95.x, collect2 would create an import file
13513
    # for dependence libraries.  The import file would start with
13514
    # the line `#! .'.  This would cause the generated library to
13515
    # depend on `.', always an invalid library.  This was fixed in
13516
    # development snapshots of GCC prior to 3.0.
13517
    case $host_os in
13518
      aix4 | aix4.[01] | aix4.[01].*)
13519
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13520
	   echo ' yes '
13521
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13522
	:
13523
      else
13524
	can_build_shared=no
13525
      fi
13526
      ;;
13527
    esac
13528
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13529
    # soname into executable. Probably we can add versioning support to
13530
    # collect2, so additional links can be useful in future.
13531
    if test "$aix_use_runtimelinking" = yes; then
13532
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13533
      # instead of lib<name>.a to let people know that these are not
13534
      # typical AIX shared libraries.
13535
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536
    else
13537
      # We preserve .a as extension for shared libraries through AIX4.2
13538
      # and later when we are not doing run time linking.
13539
      library_names_spec='${libname}${release}.a $libname.a'
13540
      soname_spec='${libname}${release}${shared_ext}$major'
13541
    fi
13542
    shlibpath_var=LIBPATH
13543
  fi
13544
  ;;
13545
13546
amigaos*)
13547
  library_names_spec='$libname.ixlibrary $libname.a'
13548
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13549
  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'
13550
  ;;
13551
13552
beos*)
13553
  library_names_spec='${libname}${shared_ext}'
13554
  dynamic_linker="$host_os ld.so"
13555
  shlibpath_var=LIBRARY_PATH
13556
  ;;
13557
13558
bsdi[45]*)
13559
  version_type=linux
13560
  need_version=no
13561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562
  soname_spec='${libname}${release}${shared_ext}$major'
13563
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13564
  shlibpath_var=LD_LIBRARY_PATH
13565
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13566
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13567
  # the default ld.so.conf also contains /usr/contrib/lib and
13568
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13569
  # libtool to hard-code these into programs
13570
  ;;
13571
13572
cygwin* | mingw* | pw32*)
13573
  version_type=windows
13574
  shrext_cmds=".dll"
13575
  need_version=no
13576
  need_lib_prefix=no
13577
13578
  case $GCC,$host_os in
13579
  yes,cygwin* | yes,mingw* | yes,pw32*)
13580
    library_names_spec='$libname.dll.a'
13581
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13582
    postinstall_cmds='base_file=`basename \${file}`~
13583
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13584
      dldir=$destdir/`dirname \$dlpath`~
13585
      test -d \$dldir || mkdir -p \$dldir~
13586
      $install_prog $dir/$dlname \$dldir/$dlname~
13587
      chmod a+x \$dldir/$dlname'
13588
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13589
      dlpath=$dir/\$dldll~
13590
       $rm \$dlpath'
13591
    shlibpath_overrides_runpath=yes
13592
13593
    case $host_os in
13594
    cygwin*)
13595
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13596
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13597
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13598
      ;;
13599
    mingw*)
13600
      # MinGW DLLs use traditional 'lib' prefix
13601
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13602
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13603
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13604
        # It is most probably a Windows format PATH printed by
13605
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13606
        # path with ; separators, and with drive letters. We can handle the
13607
        # drive letters (cygwin fileutils understands them), so leave them,
13608
        # especially as we might pass files found there to a mingw objdump,
13609
        # which wouldn't understand a cygwinified path. Ahh.
13610
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13611
      else
13612
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13613
      fi
13614
      ;;
13615
    pw32*)
13616
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13617
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13618
      ;;
13619
    esac
13620
    ;;
13621
13622
  *)
13623
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13624
    ;;
13625
  esac
13626
  dynamic_linker='Win32 ld.exe'
13627
  # FIXME: first we should search . and the directory the executable is in
13628
  shlibpath_var=PATH
13629
  ;;
13630
13631
darwin* | rhapsody*)
13632
  dynamic_linker="$host_os dyld"
13633
  version_type=darwin
13634
  need_lib_prefix=no
13635
  need_version=no
13636
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13637
  soname_spec='${libname}${release}${major}$shared_ext'
13638
  shlibpath_overrides_runpath=yes
13639
  shlibpath_var=DYLD_LIBRARY_PATH
13640
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13641
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13642
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13643
  ;;
13644
13645
dgux*)
13646
  version_type=linux
13647
  need_lib_prefix=no
13648
  need_version=no
13649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13650
  soname_spec='${libname}${release}${shared_ext}$major'
13651
  shlibpath_var=LD_LIBRARY_PATH
13652
  ;;
13653
13654
freebsd1*)
13655
  dynamic_linker=no
13656
  ;;
13657
13658
freebsd* | dragonfly*)
13659
  # DragonFly does not have aout.  When/if they implement a new
13660
  # versioning mechanism, adjust this.
13661
  if test -x /usr/bin/objformat; then
13662
    objformat=`/usr/bin/objformat`
13663
  else
13664
    case $host_os in
13665
    freebsd[123]*) objformat=aout ;;
13666
    *) objformat=elf ;;
13667
    esac
13668
  fi
13669
  version_type=freebsd-$objformat
13670
  case $version_type in
13671
    freebsd-elf*)
13672
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13673
      need_version=no
13674
      need_lib_prefix=no
13675
      ;;
13676
    freebsd-*)
13677
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13678
      need_version=yes
13679
      ;;
13680
  esac
13681
  shlibpath_var=LD_LIBRARY_PATH
13682
  case $host_os in
13683
  freebsd2*)
13684
    shlibpath_overrides_runpath=yes
13685
    ;;
13686
  freebsd3.[01]* | freebsdelf3.[01]*)
13687
    shlibpath_overrides_runpath=yes
13688
    hardcode_into_libs=yes
13689
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13690
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13691
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13692
    shlibpath_overrides_runpath=no
13693
    hardcode_into_libs=yes
13694
    ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13695
  *) # from 4.6 on, and DragonFly
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13696
    shlibpath_overrides_runpath=yes
13697
    hardcode_into_libs=yes
13698
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13699
  esac
13700
  ;;
13701
13702
gnu*)
13703
  version_type=linux
13704
  need_lib_prefix=no
13705
  need_version=no
13706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13707
  soname_spec='${libname}${release}${shared_ext}$major'
13708
  shlibpath_var=LD_LIBRARY_PATH
13709
  hardcode_into_libs=yes
13710
  ;;
13711
13712
hpux9* | hpux10* | hpux11*)
13713
  # Give a soname corresponding to the major version so that dld.sl refuses to
13714
  # link against other versions.
13715
  version_type=sunos
13716
  need_lib_prefix=no
13717
  need_version=no
13718
  case $host_cpu in
13719
  ia64*)
13720
    shrext_cmds='.so'
13721
    hardcode_into_libs=yes
13722
    dynamic_linker="$host_os dld.so"
13723
    shlibpath_var=LD_LIBRARY_PATH
13724
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726
    soname_spec='${libname}${release}${shared_ext}$major'
13727
    if test "X$HPUX_IA64_MODE" = X32; then
13728
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13729
    else
13730
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13731
    fi
13732
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13733
    ;;
13734
   hppa*64*)
13735
     shrext_cmds='.sl'
13736
     hardcode_into_libs=yes
13737
     dynamic_linker="$host_os dld.sl"
13738
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13739
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13740
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741
     soname_spec='${libname}${release}${shared_ext}$major'
13742
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13743
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13744
     ;;
13745
   *)
13746
    shrext_cmds='.sl'
13747
    dynamic_linker="$host_os dld.sl"
13748
    shlibpath_var=SHLIB_PATH
13749
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13750
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13751
    soname_spec='${libname}${release}${shared_ext}$major'
13752
    ;;
13753
  esac
13754
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13755
  postinstall_cmds='chmod 555 $lib'
13756
  ;;
13757
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13758
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13759
  version_type=linux
13760
  need_lib_prefix=no
13761
  need_version=no
13762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13763
  soname_spec='${libname}${release}${shared_ext}$major'
13764
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13765
  shlibpath_var=LD_LIBRARY_PATH
13766
  shlibpath_overrides_runpath=no
13767
  hardcode_into_libs=yes
13768
  ;;
13769
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13770
irix5* | irix6* | nonstopux*)
13771
  case $host_os in
13772
    nonstopux*) version_type=nonstopux ;;
13773
    *)
13774
	if test "$lt_cv_prog_gnu_ld" = yes; then
13775
		version_type=linux
13776
	else
13777
		version_type=irix
13778
	fi ;;
13779
  esac
13780
  need_lib_prefix=no
13781
  need_version=no
13782
  soname_spec='${libname}${release}${shared_ext}$major'
13783
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13784
  case $host_os in
13785
  irix5* | nonstopux*)
13786
    libsuff= shlibsuff=
13787
    ;;
13788
  *)
13789
    case $LD in # libtool.m4 will add one of these switches to LD
13790
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13791
      libsuff= shlibsuff= libmagic=32-bit;;
13792
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13793
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13794
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13795
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13796
    *) libsuff= shlibsuff= libmagic=never-match;;
13797
    esac
13798
    ;;
13799
  esac
13800
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13801
  shlibpath_overrides_runpath=no
13802
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13803
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13804
  hardcode_into_libs=yes
13805
  ;;
13806
13807
# No shared lib support for Linux oldld, aout, or coff.
13808
linux*oldld* | linux*aout* | linux*coff*)
13809
  dynamic_linker=no
13810
  ;;
13811
13812
# This must be Linux ELF.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13813
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13814
  version_type=linux
13815
  need_lib_prefix=no
13816
  need_version=no
13817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818
  soname_spec='${libname}${release}${shared_ext}$major'
13819
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13820
  shlibpath_var=LD_LIBRARY_PATH
13821
  shlibpath_overrides_runpath=no
13822
  # This implies no fast_install, which is unacceptable.
13823
  # Some rework will be needed to allow for fast_install
13824
  # before this can be enabled.
13825
  hardcode_into_libs=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13826
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13827
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13828
13829
  # Append ld.so.conf contents to the search path
13830
  if test -f /etc/ld.so.conf; then
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13831
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
13832
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13833
  fi
13834
13835
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13836
  # powerpc, because MkLinux only supported shared libraries with the
13837
  # GNU dynamic linker.  Since this was broken with cross compilers,
13838
  # most powerpc-linux boxes support dynamic linking these days and
13839
  # people can always --disable-shared, the test was removed, and we
13840
  # assume the GNU/Linux dynamic linker is in use.
13841
  dynamic_linker='GNU/Linux ld.so'
13842
  ;;
13843
13844
netbsd*)
13845
  version_type=sunos
13846
  need_lib_prefix=no
13847
  need_version=no
13848
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13849
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13850
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13851
    dynamic_linker='NetBSD (a.out) ld.so'
13852
  else
13853
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13854
    soname_spec='${libname}${release}${shared_ext}$major'
13855
    dynamic_linker='NetBSD ld.elf_so'
13856
  fi
13857
  shlibpath_var=LD_LIBRARY_PATH
13858
  shlibpath_overrides_runpath=yes
13859
  hardcode_into_libs=yes
13860
  ;;
13861
13862
newsos6)
13863
  version_type=linux
13864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13865
  shlibpath_var=LD_LIBRARY_PATH
13866
  shlibpath_overrides_runpath=yes
13867
  ;;
13868
13869
nto-qnx*)
13870
  version_type=linux
13871
  need_lib_prefix=no
13872
  need_version=no
13873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874
  soname_spec='${libname}${release}${shared_ext}$major'
13875
  shlibpath_var=LD_LIBRARY_PATH
13876
  shlibpath_overrides_runpath=yes
13877
  ;;
13878
13879
openbsd*)
13880
  version_type=sunos
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13881
  sys_lib_dlsearch_path_spec="/usr/lib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13882
  need_lib_prefix=no
13883
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13884
  case $host_os in
13885
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13886
    *)                         need_version=no  ;;
13887
  esac
13888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13889
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13890
  shlibpath_var=LD_LIBRARY_PATH
13891
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13892
    case $host_os in
13893
      openbsd2.[89] | openbsd2.[89].*)
13894
	shlibpath_overrides_runpath=no
13895
	;;
13896
      *)
13897
	shlibpath_overrides_runpath=yes
13898
	;;
13899
      esac
13900
  else
13901
    shlibpath_overrides_runpath=yes
13902
  fi
13903
  ;;
13904
13905
os2*)
13906
  libname_spec='$name'
13907
  shrext_cmds=".dll"
13908
  need_lib_prefix=no
13909
  library_names_spec='$libname${shared_ext} $libname.a'
13910
  dynamic_linker='OS/2 ld.exe'
13911
  shlibpath_var=LIBPATH
13912
  ;;
13913
13914
osf3* | osf4* | osf5*)
13915
  version_type=osf
13916
  need_lib_prefix=no
13917
  need_version=no
13918
  soname_spec='${libname}${release}${shared_ext}$major'
13919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920
  shlibpath_var=LD_LIBRARY_PATH
13921
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13922
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13923
  ;;
13924
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
13925
rdos*)
13926
  dynamic_linker=no
13927
  ;;
13928
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13929
solaris*)
13930
  version_type=linux
13931
  need_lib_prefix=no
13932
  need_version=no
13933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934
  soname_spec='${libname}${release}${shared_ext}$major'
13935
  shlibpath_var=LD_LIBRARY_PATH
13936
  shlibpath_overrides_runpath=yes
13937
  hardcode_into_libs=yes
13938
  # ldd complains unless libraries are executable
13939
  postinstall_cmds='chmod +x $lib'
13940
  ;;
13941
13942
sunos4*)
13943
  version_type=sunos
13944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13945
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13946
  shlibpath_var=LD_LIBRARY_PATH
13947
  shlibpath_overrides_runpath=yes
13948
  if test "$with_gnu_ld" = yes; then
13949
    need_lib_prefix=no
13950
  fi
13951
  need_version=yes
13952
  ;;
13953
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13954
sysv4 | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
13955
  version_type=linux
13956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957
  soname_spec='${libname}${release}${shared_ext}$major'
13958
  shlibpath_var=LD_LIBRARY_PATH
13959
  case $host_vendor in
13960
    sni)
13961
      shlibpath_overrides_runpath=no
13962
      need_lib_prefix=no
13963
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13964
      runpath_var=LD_RUN_PATH
13965
      ;;
13966
    siemens)
13967
      need_lib_prefix=no
13968
      ;;
13969
    motorola)
13970
      need_lib_prefix=no
13971
      need_version=no
13972
      shlibpath_overrides_runpath=no
13973
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13974
      ;;
13975
  esac
13976
  ;;
13977
13978
sysv4*MP*)
13979
  if test -d /usr/nec ;then
13980
    version_type=linux
13981
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13982
    soname_spec='$libname${shared_ext}.$major'
13983
    shlibpath_var=LD_LIBRARY_PATH
13984
  fi
13985
  ;;
13986
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
13987
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13988
  version_type=freebsd-elf
13989
  need_lib_prefix=no
13990
  need_version=no
13991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13992
  soname_spec='${libname}${release}${shared_ext}$major'
13993
  shlibpath_var=LD_LIBRARY_PATH
13994
  hardcode_into_libs=yes
13995
  if test "$with_gnu_ld" = yes; then
13996
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13997
    shlibpath_overrides_runpath=no
13998
  else
13999
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14000
    shlibpath_overrides_runpath=yes
14001
    case $host_os in
14002
      sco3.2v5*)
14003
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14004
	;;
14005
    esac
14006
  fi
14007
  sys_lib_dlsearch_path_spec='/usr/lib'
14008
  ;;
14009
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14010
uts4*)
14011
  version_type=linux
14012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013
  soname_spec='${libname}${release}${shared_ext}$major'
14014
  shlibpath_var=LD_LIBRARY_PATH
14015
  ;;
14016
14017
*)
14018
  dynamic_linker=no
14019
  ;;
14020
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14021
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14022
$as_echo "$dynamic_linker" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14023
test "$dynamic_linker" = no && can_build_shared=no
14024
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14025
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14026
  $as_echo_n "(cached) " >&6
14027
else
14028
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14029
fi
14030
14031
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14032
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14033
  $as_echo_n "(cached) " >&6
14034
else
14035
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14036
fi
14037
14038
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14039
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14041
if test "$GCC" = yes; then
14042
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14043
fi
14044
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14045
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14046
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14047
hardcode_action_CXX=
14048
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14049
   test -n "$runpath_var_CXX" || \
14050
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14051
14052
  # We can hardcode non-existant directories.
14053
  if test "$hardcode_direct_CXX" != no &&
14054
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14055
     # have to relink, otherwise we might link with an installed library
14056
     # when we should be linking with a yet-to-be-installed one
14057
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14058
     test "$hardcode_minus_L_CXX" != no; then
14059
    # Linking always hardcodes the temporary library directory.
14060
    hardcode_action_CXX=relink
14061
  else
14062
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14063
    hardcode_action_CXX=immediate
14064
  fi
14065
else
14066
  # We cannot hardcode anything, or else we can only hardcode existing
14067
  # directories.
14068
  hardcode_action_CXX=unsupported
14069
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14070
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14071
$as_echo "$hardcode_action_CXX" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14072
14073
if test "$hardcode_action_CXX" = relink; then
14074
  # Fast installation is not supported
14075
  enable_fast_install=no
14076
elif test "$shlibpath_overrides_runpath" = yes ||
14077
     test "$enable_shared" = no; then
14078
  # Fast installation is not necessary
14079
  enable_fast_install=needless
14080
fi
14081
14082
14083
# The else clause should only fire when bootstrapping the
14084
# libtool distribution, otherwise you forgot to ship ltmain.sh
14085
# with your package, and you will get complaints that there are
14086
# no rules to generate ltmain.sh.
14087
if test -f "$ltmain"; then
14088
  # See if we are running on zsh, and set the options which allow our commands through
14089
  # without removal of \ escapes.
14090
  if test -n "${ZSH_VERSION+set}" ; then
14091
    setopt NO_GLOB_SUBST
14092
  fi
14093
  # Now quote all the things that may contain metacharacters while being
14094
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14095
  # variables and quote the copies for generation of the libtool script.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14096
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14097
    SED SHELL STRIP \
14098
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14099
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14100
    deplibs_check_method reload_flag reload_cmds need_locks \
14101
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14102
    lt_cv_sys_global_symbol_to_c_name_address \
14103
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14104
    old_postinstall_cmds old_postuninstall_cmds \
14105
    compiler_CXX \
14106
    CC_CXX \
14107
    LD_CXX \
14108
    lt_prog_compiler_wl_CXX \
14109
    lt_prog_compiler_pic_CXX \
14110
    lt_prog_compiler_static_CXX \
14111
    lt_prog_compiler_no_builtin_flag_CXX \
14112
    export_dynamic_flag_spec_CXX \
14113
    thread_safe_flag_spec_CXX \
14114
    whole_archive_flag_spec_CXX \
14115
    enable_shared_with_static_runtimes_CXX \
14116
    old_archive_cmds_CXX \
14117
    old_archive_from_new_cmds_CXX \
14118
    predep_objects_CXX \
14119
    postdep_objects_CXX \
14120
    predeps_CXX \
14121
    postdeps_CXX \
14122
    compiler_lib_search_path_CXX \
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14123
    compiler_lib_search_dirs_CXX \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14124
    archive_cmds_CXX \
14125
    archive_expsym_cmds_CXX \
14126
    postinstall_cmds_CXX \
14127
    postuninstall_cmds_CXX \
14128
    old_archive_from_expsyms_cmds_CXX \
14129
    allow_undefined_flag_CXX \
14130
    no_undefined_flag_CXX \
14131
    export_symbols_cmds_CXX \
14132
    hardcode_libdir_flag_spec_CXX \
14133
    hardcode_libdir_flag_spec_ld_CXX \
14134
    hardcode_libdir_separator_CXX \
14135
    hardcode_automatic_CXX \
14136
    module_cmds_CXX \
14137
    module_expsym_cmds_CXX \
14138
    lt_cv_prog_compiler_c_o_CXX \
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14139
    fix_srcfile_path_CXX \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14140
    exclude_expsyms_CXX \
14141
    include_expsyms_CXX; do
14142
14143
    case $var in
14144
    old_archive_cmds_CXX | \
14145
    old_archive_from_new_cmds_CXX | \
14146
    archive_cmds_CXX | \
14147
    archive_expsym_cmds_CXX | \
14148
    module_cmds_CXX | \
14149
    module_expsym_cmds_CXX | \
14150
    old_archive_from_expsyms_cmds_CXX | \
14151
    export_symbols_cmds_CXX | \
14152
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14153
    postinstall_cmds | postuninstall_cmds | \
14154
    old_postinstall_cmds | old_postuninstall_cmds | \
14155
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14156
      # Double-quote double-evaled strings.
14157
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14158
      ;;
14159
    *)
14160
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14161
      ;;
14162
    esac
14163
  done
14164
14165
  case $lt_echo in
14166
  *'\$0 --fallback-echo"')
14167
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14168
    ;;
14169
  esac
14170
14171
cfgfile="$ofile"
14172
14173
  cat <<__EOF__ >> "$cfgfile"
14174
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14175
14176
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14177
14178
# Shell to use when invoking shell scripts.
14179
SHELL=$lt_SHELL
14180
14181
# Whether or not to build shared libraries.
14182
build_libtool_libs=$enable_shared
14183
14184
# Whether or not to build static libraries.
14185
build_old_libs=$enable_static
14186
14187
# Whether or not to add -lc for building shared libraries.
14188
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14189
14190
# Whether or not to disallow shared libs when runtime libs are static
14191
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14192
14193
# Whether or not to optimize for fast installation.
14194
fast_install=$enable_fast_install
14195
14196
# The host system.
14197
host_alias=$host_alias
14198
host=$host
14199
host_os=$host_os
14200
14201
# The build system.
14202
build_alias=$build_alias
14203
build=$build
14204
build_os=$build_os
14205
14206
# An echo program that does not interpret backslashes.
14207
echo=$lt_echo
14208
14209
# The archiver.
14210
AR=$lt_AR
14211
AR_FLAGS=$lt_AR_FLAGS
14212
14213
# A C compiler.
14214
LTCC=$lt_LTCC
14215
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14216
# LTCC compiler flags.
14217
LTCFLAGS=$lt_LTCFLAGS
14218
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14219
# A language-specific compiler.
14220
CC=$lt_compiler_CXX
14221
14222
# Is the compiler the GNU C compiler?
14223
with_gcc=$GCC_CXX
14224
14225
# An ERE matcher.
14226
EGREP=$lt_EGREP
14227
14228
# The linker used to build libraries.
14229
LD=$lt_LD_CXX
14230
14231
# Whether we need hard or soft links.
14232
LN_S=$lt_LN_S
14233
14234
# A BSD-compatible nm program.
14235
NM=$lt_NM
14236
14237
# A symbol stripping program
14238
STRIP=$lt_STRIP
14239
14240
# Used to examine libraries when file_magic_cmd begins "file"
14241
MAGIC_CMD=$MAGIC_CMD
14242
14243
# Used on cygwin: DLL creation program.
14244
DLLTOOL="$DLLTOOL"
14245
14246
# Used on cygwin: object dumper.
14247
OBJDUMP="$OBJDUMP"
14248
14249
# Used on cygwin: assembler.
14250
AS="$AS"
14251
14252
# The name of the directory that contains temporary libtool files.
14253
objdir=$objdir
14254
14255
# How to create reloadable object files.
14256
reload_flag=$lt_reload_flag
14257
reload_cmds=$lt_reload_cmds
14258
14259
# How to pass a linker flag through the compiler.
14260
wl=$lt_lt_prog_compiler_wl_CXX
14261
14262
# Object file suffix (normally "o").
14263
objext="$ac_objext"
14264
14265
# Old archive suffix (normally "a").
14266
libext="$libext"
14267
14268
# Shared library suffix (normally ".so").
14269
shrext_cmds='$shrext_cmds'
14270
14271
# Executable file suffix (normally "").
14272
exeext="$exeext"
14273
14274
# Additional compiler flags for building library objects.
14275
pic_flag=$lt_lt_prog_compiler_pic_CXX
14276
pic_mode=$pic_mode
14277
14278
# What is the maximum length of a command?
14279
max_cmd_len=$lt_cv_sys_max_cmd_len
14280
14281
# Does compiler simultaneously support -c and -o options?
14282
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14283
14284
# Must we lock files when doing compilation?
14285
need_locks=$lt_need_locks
14286
14287
# Do we need the lib prefix for modules?
14288
need_lib_prefix=$need_lib_prefix
14289
14290
# Do we need a version for libraries?
14291
need_version=$need_version
14292
14293
# Whether dlopen is supported.
14294
dlopen_support=$enable_dlopen
14295
14296
# Whether dlopen of programs is supported.
14297
dlopen_self=$enable_dlopen_self
14298
14299
# Whether dlopen of statically linked programs is supported.
14300
dlopen_self_static=$enable_dlopen_self_static
14301
14302
# Compiler flag to prevent dynamic linking.
14303
link_static_flag=$lt_lt_prog_compiler_static_CXX
14304
14305
# Compiler flag to turn off builtin functions.
14306
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14307
14308
# Compiler flag to allow reflexive dlopens.
14309
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14310
14311
# Compiler flag to generate shared objects directly from archives.
14312
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14313
14314
# Compiler flag to generate thread-safe objects.
14315
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14316
14317
# Library versioning type.
14318
version_type=$version_type
14319
14320
# Format of library name prefix.
14321
libname_spec=$lt_libname_spec
14322
14323
# List of archive names.  First name is the real one, the rest are links.
14324
# The last name is the one that the linker finds with -lNAME.
14325
library_names_spec=$lt_library_names_spec
14326
14327
# The coded name of the library, if different from the real name.
14328
soname_spec=$lt_soname_spec
14329
14330
# Commands used to build and install an old-style archive.
14331
RANLIB=$lt_RANLIB
14332
old_archive_cmds=$lt_old_archive_cmds_CXX
14333
old_postinstall_cmds=$lt_old_postinstall_cmds
14334
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14335
14336
# Create an old-style archive from a shared archive.
14337
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14338
14339
# Create a temporary old-style archive to link instead of a shared archive.
14340
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14341
14342
# Commands used to build and install a shared archive.
14343
archive_cmds=$lt_archive_cmds_CXX
14344
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14345
postinstall_cmds=$lt_postinstall_cmds
14346
postuninstall_cmds=$lt_postuninstall_cmds
14347
14348
# Commands used to build a loadable module (assumed same as above if empty)
14349
module_cmds=$lt_module_cmds_CXX
14350
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14351
14352
# Commands to strip libraries.
14353
old_striplib=$lt_old_striplib
14354
striplib=$lt_striplib
14355
14356
# Dependencies to place before the objects being linked to create a
14357
# shared library.
14358
predep_objects=$lt_predep_objects_CXX
14359
14360
# Dependencies to place after the objects being linked to create a
14361
# shared library.
14362
postdep_objects=$lt_postdep_objects_CXX
14363
14364
# Dependencies to place before the objects being linked to create a
14365
# shared library.
14366
predeps=$lt_predeps_CXX
14367
14368
# Dependencies to place after the objects being linked to create a
14369
# shared library.
14370
postdeps=$lt_postdeps_CXX
14371
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14372
# The directories searched by this compiler when creating a shared
14373
# library
14374
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14375
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14376
# The library search path used internally by the compiler when linking
14377
# a shared library.
14378
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14379
14380
# Method to check whether dependent libraries are shared objects.
14381
deplibs_check_method=$lt_deplibs_check_method
14382
14383
# Command to use when deplibs_check_method == file_magic.
14384
file_magic_cmd=$lt_file_magic_cmd
14385
14386
# Flag that allows shared libraries with undefined symbols to be built.
14387
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14388
14389
# Flag that forces no undefined symbols.
14390
no_undefined_flag=$lt_no_undefined_flag_CXX
14391
14392
# Commands used to finish a libtool library installation in a directory.
14393
finish_cmds=$lt_finish_cmds
14394
14395
# Same as above, but a single script fragment to be evaled but not shown.
14396
finish_eval=$lt_finish_eval
14397
14398
# Take the output of nm and produce a listing of raw symbols and C names.
14399
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14400
14401
# Transform the output of nm in a proper C declaration
14402
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14403
14404
# Transform the output of nm in a C name address pair
14405
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14406
14407
# This is the shared library runtime path variable.
14408
runpath_var=$runpath_var
14409
14410
# This is the shared library path variable.
14411
shlibpath_var=$shlibpath_var
14412
14413
# Is shlibpath searched before the hard-coded library search path?
14414
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14415
14416
# How to hardcode a shared library path into an executable.
14417
hardcode_action=$hardcode_action_CXX
14418
14419
# Whether we should hardcode library paths into libraries.
14420
hardcode_into_libs=$hardcode_into_libs
14421
14422
# Flag to hardcode \$libdir into a binary during linking.
14423
# This must work even if \$libdir does not exist.
14424
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14425
14426
# If ld is used when linking, flag to hardcode \$libdir into
14427
# a binary during linking. This must work even if \$libdir does
14428
# not exist.
14429
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14430
14431
# Whether we need a single -rpath flag with a separated argument.
14432
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14433
14434
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14435
# resulting binary.
14436
hardcode_direct=$hardcode_direct_CXX
14437
14438
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14439
# resulting binary.
14440
hardcode_minus_L=$hardcode_minus_L_CXX
14441
14442
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14443
# the resulting binary.
14444
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14445
14446
# Set to yes if building a shared library automatically hardcodes DIR into the library
14447
# and all subsequent libraries and executables linked against it.
14448
hardcode_automatic=$hardcode_automatic_CXX
14449
14450
# Variables whose values should be saved in libtool wrapper scripts and
14451
# restored at relink time.
14452
variables_saved_for_relink="$variables_saved_for_relink"
14453
14454
# Whether libtool must link a program against all its dependency libraries.
14455
link_all_deplibs=$link_all_deplibs_CXX
14456
14457
# Compile-time system search path for libraries
14458
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14459
14460
# Run-time system search path for libraries
14461
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14462
14463
# Fix the shell variable \$srcfile for the compiler.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14464
fix_srcfile_path=$lt_fix_srcfile_path
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14465
14466
# Set to yes if exported symbols are required.
14467
always_export_symbols=$always_export_symbols_CXX
14468
14469
# The commands to list exported symbols.
14470
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14471
14472
# The commands to extract the exported symbol list from a shared archive.
14473
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14474
14475
# Symbols that should not be listed in the preloaded symbols.
14476
exclude_expsyms=$lt_exclude_expsyms_CXX
14477
14478
# Symbols that must always be exported.
14479
include_expsyms=$lt_include_expsyms_CXX
14480
14481
# ### END LIBTOOL TAG CONFIG: $tagname
14482
14483
__EOF__
14484
14485
14486
else
14487
  # If there is no Makefile yet, we rely on a make rule to execute
14488
  # `config.status --recheck' to rerun these tests and create the
14489
  # libtool script then.
14490
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14491
  if test -f "$ltmain_in"; then
14492
    test -f Makefile && make "$ltmain"
14493
  fi
14494
fi
14495
14496
14497
ac_ext=c
14498
ac_cpp='$CPP $CPPFLAGS'
14499
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14500
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14501
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14502
14503
CC=$lt_save_CC
14504
LDCXX=$LD
14505
LD=$lt_save_LD
14506
GCC=$lt_save_GCC
14507
with_gnu_ldcxx=$with_gnu_ld
14508
with_gnu_ld=$lt_save_with_gnu_ld
14509
lt_cv_path_LDCXX=$lt_cv_path_LD
14510
lt_cv_path_LD=$lt_save_path_LD
14511
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14512
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14513
14514
	else
14515
	  tagname=""
14516
	fi
14517
	;;
14518
14519
      F77)
14520
	if test -n "$F77" && test "X$F77" != "Xno"; then
14521
14522
ac_ext=f
14523
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14524
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14526
14527
14528
archive_cmds_need_lc_F77=no
14529
allow_undefined_flag_F77=
14530
always_export_symbols_F77=no
14531
archive_expsym_cmds_F77=
14532
export_dynamic_flag_spec_F77=
14533
hardcode_direct_F77=no
14534
hardcode_libdir_flag_spec_F77=
14535
hardcode_libdir_flag_spec_ld_F77=
14536
hardcode_libdir_separator_F77=
14537
hardcode_minus_L_F77=no
14538
hardcode_automatic_F77=no
14539
module_cmds_F77=
14540
module_expsym_cmds_F77=
14541
link_all_deplibs_F77=unknown
14542
old_archive_cmds_F77=$old_archive_cmds
14543
no_undefined_flag_F77=
14544
whole_archive_flag_spec_F77=
14545
enable_shared_with_static_runtimes_F77=no
14546
14547
# Source file extension for f77 test sources.
14548
ac_ext=f
14549
14550
# Object file extension for compiled f77 test sources.
14551
objext=o
14552
objext_F77=$objext
14553
14554
# Code to be used in simple compile tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14555
lt_simple_compile_test_code="\
14556
      subroutine t
14557
      return
14558
      end
14559
"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14560
14561
# Code to be used in simple link tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14562
lt_simple_link_test_code="\
14563
      program t
14564
      end
14565
"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14566
14567
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14568
14569
# If no C compiler was specified, use CC.
14570
LTCC=${LTCC-"$CC"}
14571
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14572
# If no C compiler flags were specified, use CFLAGS.
14573
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14574
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14575
# Allow CC to be a program name with arguments.
14576
compiler=$CC
14577
14578
14579
# save warnings/boilerplate of simple test code
14580
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14581
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14582
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14583
_lt_compiler_boilerplate=`cat conftest.err`
14584
$rm conftest*
14585
14586
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14587
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14588
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14589
_lt_linker_boilerplate=`cat conftest.err`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14590
$rm -r conftest*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14591
14592
14593
# Allow CC to be a program name with arguments.
14594
lt_save_CC="$CC"
14595
CC=${F77-"f77"}
14596
compiler=$CC
14597
compiler_F77=$CC
14598
for cc_temp in $compiler""; do
14599
  case $cc_temp in
14600
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602
    \-*) ;;
14603
    *) break;;
14604
  esac
14605
done
14606
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14607
14608
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14609
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14610
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14611
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14612
$as_echo "$can_build_shared" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14613
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14614
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14615
$as_echo_n "checking whether to build shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14616
test "$can_build_shared" = "no" && enable_shared=no
14617
14618
# On AIX, shared libraries and static libraries use the same namespace, and
14619
# are all built from PIC.
14620
case $host_os in
14621
aix3*)
14622
  test "$enable_shared" = yes && enable_static=no
14623
  if test -n "$RANLIB"; then
14624
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14625
    postinstall_cmds='$RANLIB $lib'
14626
  fi
14627
  ;;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14628
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14629
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14630
    test "$enable_shared" = yes && enable_static=no
14631
  fi
14632
  ;;
14633
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14634
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14635
$as_echo "$enable_shared" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14636
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14637
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14638
$as_echo_n "checking whether to build static libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14639
# Make sure either enable_shared or enable_static is yes.
14640
test "$enable_shared" = yes || enable_static=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14641
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14642
$as_echo "$enable_static" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14643
14644
GCC_F77="$G77"
14645
LD_F77="$LD"
14646
14647
lt_prog_compiler_wl_F77=
14648
lt_prog_compiler_pic_F77=
14649
lt_prog_compiler_static_F77=
14650
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14651
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14652
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14653
14654
  if test "$GCC" = yes; then
14655
    lt_prog_compiler_wl_F77='-Wl,'
14656
    lt_prog_compiler_static_F77='-static'
14657
14658
    case $host_os in
14659
      aix*)
14660
      # All AIX code is PIC.
14661
      if test "$host_cpu" = ia64; then
14662
	# AIX 5 now supports IA64 processor
14663
	lt_prog_compiler_static_F77='-Bstatic'
14664
      fi
14665
      ;;
14666
14667
    amigaos*)
14668
      # FIXME: we need at least 68020 code to build shared libraries, but
14669
      # adding the `-m68020' flag to GCC prevents building anything better,
14670
      # like `-m68040'.
14671
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14672
      ;;
14673
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14674
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14675
      # PIC is the default for these OSes.
14676
      ;;
14677
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14678
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14679
      # This hack is so that the source file can tell whether it is being
14680
      # built for inclusion in a dll (and should export symbols for example).
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14681
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14682
      # (--disable-auto-import) libraries
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14683
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14684
      ;;
14685
14686
    darwin* | rhapsody*)
14687
      # PIC is the default on this platform
14688
      # Common symbols not allowed in MH_DYLIB files
14689
      lt_prog_compiler_pic_F77='-fno-common'
14690
      ;;
14691
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14692
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14693
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14694
      # Instead, we relocate shared libraries at runtime.
14695
      ;;
14696
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14697
    msdosdjgpp*)
14698
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14699
      # on systems that don't support them.
14700
      lt_prog_compiler_can_build_shared_F77=no
14701
      enable_shared=no
14702
      ;;
14703
14704
    sysv4*MP*)
14705
      if test -d /usr/nec; then
14706
	lt_prog_compiler_pic_F77=-Kconform_pic
14707
      fi
14708
      ;;
14709
14710
    hpux*)
14711
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14712
      # not for PA HP-UX.
14713
      case $host_cpu in
14714
      hppa*64*|ia64*)
14715
	# +Z the default
14716
	;;
14717
      *)
14718
	lt_prog_compiler_pic_F77='-fPIC'
14719
	;;
14720
      esac
14721
      ;;
14722
14723
    *)
14724
      lt_prog_compiler_pic_F77='-fPIC'
14725
      ;;
14726
    esac
14727
  else
14728
    # PORTME Check for flag to pass linker flags through the system compiler.
14729
    case $host_os in
14730
    aix*)
14731
      lt_prog_compiler_wl_F77='-Wl,'
14732
      if test "$host_cpu" = ia64; then
14733
	# AIX 5 now supports IA64 processor
14734
	lt_prog_compiler_static_F77='-Bstatic'
14735
      else
14736
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14737
      fi
14738
      ;;
14739
      darwin*)
14740
        # PIC is the default on this platform
14741
        # Common symbols not allowed in MH_DYLIB files
14742
       case $cc_basename in
14743
         xlc*)
14744
         lt_prog_compiler_pic_F77='-qnocommon'
14745
         lt_prog_compiler_wl_F77='-Wl,'
14746
         ;;
14747
       esac
14748
       ;;
14749
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14750
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14751
      # This hack is so that the source file can tell whether it is being
14752
      # built for inclusion in a dll (and should export symbols for example).
14753
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14754
      ;;
14755
14756
    hpux9* | hpux10* | hpux11*)
14757
      lt_prog_compiler_wl_F77='-Wl,'
14758
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14759
      # not for PA HP-UX.
14760
      case $host_cpu in
14761
      hppa*64*|ia64*)
14762
	# +Z the default
14763
	;;
14764
      *)
14765
	lt_prog_compiler_pic_F77='+Z'
14766
	;;
14767
      esac
14768
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14769
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14770
      ;;
14771
14772
    irix5* | irix6* | nonstopux*)
14773
      lt_prog_compiler_wl_F77='-Wl,'
14774
      # PIC (with -KPIC) is the default.
14775
      lt_prog_compiler_static_F77='-non_shared'
14776
      ;;
14777
14778
    newsos6)
14779
      lt_prog_compiler_pic_F77='-KPIC'
14780
      lt_prog_compiler_static_F77='-Bstatic'
14781
      ;;
14782
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14783
    linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14784
      case $cc_basename in
14785
      icc* | ecc*)
14786
	lt_prog_compiler_wl_F77='-Wl,'
14787
	lt_prog_compiler_pic_F77='-KPIC'
14788
	lt_prog_compiler_static_F77='-static'
14789
        ;;
14790
      pgcc* | pgf77* | pgf90* | pgf95*)
14791
        # Portland Group compilers (*not* the Pentium gcc compiler,
14792
	# which looks to be a dead project)
14793
	lt_prog_compiler_wl_F77='-Wl,'
14794
	lt_prog_compiler_pic_F77='-fpic'
14795
	lt_prog_compiler_static_F77='-Bstatic'
14796
        ;;
14797
      ccc*)
14798
        lt_prog_compiler_wl_F77='-Wl,'
14799
        # All Alpha code is PIC.
14800
        lt_prog_compiler_static_F77='-non_shared'
14801
        ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14802
      *)
14803
        case `$CC -V 2>&1 | sed 5q` in
14804
	*Sun\ C*)
14805
	  # Sun C 5.9
14806
	  lt_prog_compiler_pic_F77='-KPIC'
14807
	  lt_prog_compiler_static_F77='-Bstatic'
14808
	  lt_prog_compiler_wl_F77='-Wl,'
14809
	  ;;
14810
	*Sun\ F*)
14811
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14812
	  lt_prog_compiler_pic_F77='-KPIC'
14813
	  lt_prog_compiler_static_F77='-Bstatic'
14814
	  lt_prog_compiler_wl_F77=''
14815
	  ;;
14816
	esac
14817
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14818
      esac
14819
      ;;
14820
14821
    osf3* | osf4* | osf5*)
14822
      lt_prog_compiler_wl_F77='-Wl,'
14823
      # All OSF/1 code is PIC.
14824
      lt_prog_compiler_static_F77='-non_shared'
14825
      ;;
14826
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14827
    rdos*)
14828
      lt_prog_compiler_static_F77='-non_shared'
14829
      ;;
14830
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14831
    solaris*)
14832
      lt_prog_compiler_pic_F77='-KPIC'
14833
      lt_prog_compiler_static_F77='-Bstatic'
14834
      case $cc_basename in
14835
      f77* | f90* | f95*)
14836
	lt_prog_compiler_wl_F77='-Qoption ld ';;
14837
      *)
14838
	lt_prog_compiler_wl_F77='-Wl,';;
14839
      esac
14840
      ;;
14841
14842
    sunos4*)
14843
      lt_prog_compiler_wl_F77='-Qoption ld '
14844
      lt_prog_compiler_pic_F77='-PIC'
14845
      lt_prog_compiler_static_F77='-Bstatic'
14846
      ;;
14847
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14848
    sysv4 | sysv4.2uw2* | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14849
      lt_prog_compiler_wl_F77='-Wl,'
14850
      lt_prog_compiler_pic_F77='-KPIC'
14851
      lt_prog_compiler_static_F77='-Bstatic'
14852
      ;;
14853
14854
    sysv4*MP*)
14855
      if test -d /usr/nec ;then
14856
	lt_prog_compiler_pic_F77='-Kconform_pic'
14857
	lt_prog_compiler_static_F77='-Bstatic'
14858
      fi
14859
      ;;
14860
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14861
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14862
      lt_prog_compiler_wl_F77='-Wl,'
14863
      lt_prog_compiler_pic_F77='-KPIC'
14864
      lt_prog_compiler_static_F77='-Bstatic'
14865
      ;;
14866
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14867
    unicos*)
14868
      lt_prog_compiler_wl_F77='-Wl,'
14869
      lt_prog_compiler_can_build_shared_F77=no
14870
      ;;
14871
14872
    uts4*)
14873
      lt_prog_compiler_pic_F77='-pic'
14874
      lt_prog_compiler_static_F77='-Bstatic'
14875
      ;;
14876
14877
    *)
14878
      lt_prog_compiler_can_build_shared_F77=no
14879
      ;;
14880
    esac
14881
  fi
14882
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14883
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14884
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14885
14886
#
14887
# Check to make sure the PIC flag actually works.
14888
#
14889
if test -n "$lt_prog_compiler_pic_F77"; then
14890
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14891
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14892
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14893
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14894
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14895
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14896
  lt_cv_prog_compiler_pic_works_F77=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14897
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14898
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14899
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14900
   # Insert the option either (1) after the last *FLAGS variable, or
14901
   # (2) before a word containing "conftest.", or (3) at the end.
14902
   # Note that $ac_compile itself does not contain backslashes and begins
14903
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14904
   # The option is referenced via a variable to avoid confusing sed.
14905
   lt_compile=`echo "$ac_compile" | $SED \
14906
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14907
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14908
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14909
   (eval echo "\"\$as_me:14909: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14910
   (eval "$lt_compile" 2>conftest.err)
14911
   ac_status=$?
14912
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14913
   echo "$as_me:14913: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14914
   if (exit $ac_status) && test -s "$ac_outfile"; then
14915
     # The compiler can only warn and ignore the option if not recognized
14916
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14917
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14918
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14919
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14920
       lt_cv_prog_compiler_pic_works_F77=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14921
     fi
14922
   fi
14923
   $rm conftest*
14924
14925
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14926
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14927
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14928
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14929
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14930
    case $lt_prog_compiler_pic_F77 in
14931
     "" | " "*) ;;
14932
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14933
     esac
14934
else
14935
    lt_prog_compiler_pic_F77=
14936
     lt_prog_compiler_can_build_shared_F77=no
14937
fi
14938
14939
fi
14940
case $host_os in
14941
  # For platforms which do not support PIC, -DPIC is meaningless:
14942
  *djgpp*)
14943
    lt_prog_compiler_pic_F77=
14944
    ;;
14945
  *)
14946
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14947
    ;;
14948
esac
14949
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14950
#
14951
# Check to make sure the static flag actually works.
14952
#
14953
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14954
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14955
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14956
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14957
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14958
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14959
  lt_cv_prog_compiler_static_works_F77=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14960
   save_LDFLAGS="$LDFLAGS"
14961
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
14962
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14963
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14964
     # The linker can only warn and ignore the option if not recognized
14965
     # So say no if there are warnings
14966
     if test -s conftest.err; then
14967
       # Append any errors to the config.log.
14968
       cat conftest.err 1>&5
14969
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14970
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14971
       if diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14972
         lt_cv_prog_compiler_static_works_F77=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14973
       fi
14974
     else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14975
       lt_cv_prog_compiler_static_works_F77=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14976
     fi
14977
   fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14978
   $rm -r conftest*
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14979
   LDFLAGS="$save_LDFLAGS"
14980
14981
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14982
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14983
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14984
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14985
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
14986
    :
14987
else
14988
    lt_prog_compiler_static_F77=
14989
fi
14990
14991
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14992
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14993
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14994
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
14995
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
14996
else
14997
  lt_cv_prog_compiler_c_o_F77=no
14998
   $rm -r conftest 2>/dev/null
14999
   mkdir conftest
15000
   cd conftest
15001
   mkdir out
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15002
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15003
15004
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15005
   # Insert the option either (1) after the last *FLAGS variable, or
15006
   # (2) before a word containing "conftest.", or (3) at the end.
15007
   # Note that $ac_compile itself does not contain backslashes and begins
15008
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15009
   lt_compile=`echo "$ac_compile" | $SED \
15010
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15011
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15013
   (eval echo "\"\$as_me:15013: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15014
   (eval "$lt_compile" 2>out/conftest.err)
15015
   ac_status=$?
15016
   cat out/conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15017
   echo "$as_me:15017: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15018
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15019
   then
15020
     # The compiler can only warn and ignore the option if not recognized
15021
     # So say no if there are warnings
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15022
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15023
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15024
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15025
       lt_cv_prog_compiler_c_o_F77=yes
15026
     fi
15027
   fi
15028
   chmod u+w . 2>&5
15029
   $rm conftest*
15030
   # SGI C++ compiler will create directory out/ii_files/ for
15031
   # template instantiation
15032
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15033
   $rm out/* && rmdir out
15034
   cd ..
15035
   rmdir conftest
15036
   $rm conftest*
15037
15038
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15039
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15040
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15041
15042
15043
hard_links="nottested"
15044
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15045
  # do not overwrite the value of need_locks provided by the user
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15046
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15047
$as_echo_n "checking if we can lock with hard links... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15048
  hard_links=yes
15049
  $rm conftest*
15050
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15051
  touch conftest.a
15052
  ln conftest.a conftest.b 2>&5 || hard_links=no
15053
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15054
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15055
$as_echo "$hard_links" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15056
  if test "$hard_links" = no; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15057
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15058
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15059
    need_locks=warn
15060
  fi
15061
else
15062
  need_locks=no
15063
fi
15064
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15065
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15066
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15067
15068
  runpath_var=
15069
  allow_undefined_flag_F77=
15070
  enable_shared_with_static_runtimes_F77=no
15071
  archive_cmds_F77=
15072
  archive_expsym_cmds_F77=
15073
  old_archive_From_new_cmds_F77=
15074
  old_archive_from_expsyms_cmds_F77=
15075
  export_dynamic_flag_spec_F77=
15076
  whole_archive_flag_spec_F77=
15077
  thread_safe_flag_spec_F77=
15078
  hardcode_libdir_flag_spec_F77=
15079
  hardcode_libdir_flag_spec_ld_F77=
15080
  hardcode_libdir_separator_F77=
15081
  hardcode_direct_F77=no
15082
  hardcode_minus_L_F77=no
15083
  hardcode_shlibpath_var_F77=unsupported
15084
  link_all_deplibs_F77=unknown
15085
  hardcode_automatic_F77=no
15086
  module_cmds_F77=
15087
  module_expsym_cmds_F77=
15088
  always_export_symbols_F77=no
15089
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15090
  # include_expsyms should be a list of space-separated symbols to be *always*
15091
  # included in the symbol list
15092
  include_expsyms_F77=
15093
  # exclude_expsyms can be an extended regexp of symbols to exclude
15094
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15095
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15096
  # as well as any symbol that contains `d'.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15097
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15098
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15099
  # platforms (ab)use it in PIC code, but their linkers get confused if
15100
  # the symbol is explicitly referenced.  Since portable code cannot
15101
  # rely on this symbol name, it's probably fine to never include it in
15102
  # preloaded symbol tables.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15103
  # Exclude shared library initialization/finalization symbols.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15104
  extract_expsyms_cmds=
15105
  # Just being paranoid about ensuring that cc_basename is set.
15106
  for cc_temp in $compiler""; do
15107
  case $cc_temp in
15108
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15109
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15110
    \-*) ;;
15111
    *) break;;
15112
  esac
15113
done
15114
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15115
15116
  case $host_os in
15117
  cygwin* | mingw* | pw32*)
15118
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15119
    # When not using gcc, we currently assume that we are using
15120
    # Microsoft Visual C++.
15121
    if test "$GCC" != yes; then
15122
      with_gnu_ld=no
15123
    fi
15124
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15125
  interix*)
15126
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15127
    with_gnu_ld=yes
15128
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15129
  openbsd*)
15130
    with_gnu_ld=no
15131
    ;;
15132
  esac
15133
15134
  ld_shlibs_F77=yes
15135
  if test "$with_gnu_ld" = yes; then
15136
    # If archive_cmds runs LD, not CC, wlarc should be empty
15137
    wlarc='${wl}'
15138
15139
    # Set some defaults for GNU ld with shared library support. These
15140
    # are reset later if shared libraries are not supported. Putting them
15141
    # here allows them to be overridden if necessary.
15142
    runpath_var=LD_RUN_PATH
15143
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15144
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15145
    # ancient GNU ld didn't support --whole-archive et. al.
15146
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15147
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15148
      else
15149
  	whole_archive_flag_spec_F77=
15150
    fi
15151
    supports_anon_versioning=no
15152
    case `$LD -v 2>/dev/null` in
15153
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15154
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15155
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15156
      *\ 2.11.*) ;; # other 2.11 versions
15157
      *) supports_anon_versioning=yes ;;
15158
    esac
15159
15160
    # See if GNU ld supports shared libraries.
15161
    case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15162
    aix[3-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15163
      # On AIX/PPC, the GNU linker is very broken
15164
      if test "$host_cpu" != ia64; then
15165
	ld_shlibs_F77=no
15166
	cat <<EOF 1>&2
15167
15168
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15169
*** to be unable to reliably create shared libraries on AIX.
15170
*** Therefore, libtool is disabling shared libraries support.  If you
15171
*** really care for shared libraries, you may want to modify your PATH
15172
*** so that a non-GNU linker is found, and then restart.
15173
15174
EOF
15175
      fi
15176
      ;;
15177
15178
    amigaos*)
15179
      archive_cmds_F77='$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)'
15180
      hardcode_libdir_flag_spec_F77='-L$libdir'
15181
      hardcode_minus_L_F77=yes
15182
15183
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15184
      # that the semantics of dynamic libraries on AmigaOS, at least up
15185
      # to version 4, is to share data among multiple programs linked
15186
      # with the same dynamic library.  Since this doesn't match the
15187
      # behavior of shared libraries on other platforms, we can't use
15188
      # them.
15189
      ld_shlibs_F77=no
15190
      ;;
15191
15192
    beos*)
15193
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194
	allow_undefined_flag_F77=unsupported
15195
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196
	# support --undefined.  This deserves some investigation.  FIXME
15197
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198
      else
15199
	ld_shlibs_F77=no
15200
      fi
15201
      ;;
15202
15203
    cygwin* | mingw* | pw32*)
15204
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15205
      # as there is no search path for DLLs.
15206
      hardcode_libdir_flag_spec_F77='-L$libdir'
15207
      allow_undefined_flag_F77=unsupported
15208
      always_export_symbols_F77=no
15209
      enable_shared_with_static_runtimes_F77=yes
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15210
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15211
15212
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15213
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15214
	# If the export-symbols file already is a .def file (1st line
15215
	# is EXPORTS), use it as is; otherwise, prepend...
15216
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15217
	  cp $export_symbols $output_objdir/$soname.def;
15218
	else
15219
	  echo EXPORTS > $output_objdir/$soname.def;
15220
	  cat $export_symbols >> $output_objdir/$soname.def;
15221
	fi~
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15222
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15223
      else
15224
	ld_shlibs_F77=no
15225
      fi
15226
      ;;
15227
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15228
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15229
      hardcode_direct_F77=no
15230
      hardcode_shlibpath_var_F77=no
15231
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15232
      export_dynamic_flag_spec_F77='${wl}-E'
15233
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15235
      # default) and relocated if they conflict, which is a slow very memory
15236
      # consuming and fragmenting process.  To avoid this, we pick a random,
15237
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15239
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15241
      ;;
15242
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15243
    gnu* | linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15244
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15245
	tmp_addflag=
15246
	case $cc_basename,$host_cpu in
15247
	pgcc*)				# Portland Group C compiler
15248
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15249
	  tmp_addflag=' $pic_flag'
15250
	  ;;
15251
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15252
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15253
	  tmp_addflag=' $pic_flag -Mnomain' ;;
15254
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15255
	  tmp_addflag=' -i_dynamic' ;;
15256
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15257
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15258
	ifc* | ifort*)			# Intel Fortran compiler
15259
	  tmp_addflag=' -nofor_main' ;;
15260
	esac
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15261
	case `$CC -V 2>&1 | sed 5q` in
15262
	*Sun\ C*)			# Sun C 5.9
15263
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15264
	  tmp_sharedflag='-G' ;;
15265
	*Sun\ F*)			# Sun Fortran 8.3
15266
	  tmp_sharedflag='-G' ;;
15267
	*)
15268
	  tmp_sharedflag='-shared' ;;
15269
	esac
15270
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15271
15272
	if test $supports_anon_versioning = yes; then
15273
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15274
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15275
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15276
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15277
	fi
15278
      else
15279
	ld_shlibs_F77=no
15280
      fi
15281
      ;;
15282
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15283
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15284
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15285
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15286
	wlarc=
15287
      else
15288
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15289
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15290
      fi
15291
      ;;
15292
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15293
    solaris*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15294
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15295
	ld_shlibs_F77=no
15296
	cat <<EOF 1>&2
15297
15298
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15299
*** create shared libraries on Solaris systems.  Therefore, libtool
15300
*** is disabling shared libraries support.  We urge you to upgrade GNU
15301
*** binutils to release 2.9.1 or newer.  Another option is to modify
15302
*** your PATH or compiler configuration so that the native linker is
15303
*** used, and then restart.
15304
15305
EOF
15306
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15307
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15308
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15309
      else
15310
	ld_shlibs_F77=no
15311
      fi
15312
      ;;
15313
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15314
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15315
      case `$LD -v 2>&1` in
15316
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15317
	ld_shlibs_F77=no
15318
	cat <<_LT_EOF 1>&2
15319
15320
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15321
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15322
*** is disabling shared libraries support.  We urge you to upgrade GNU
15323
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15324
*** your PATH or compiler configuration so that the native linker is
15325
*** used, and then restart.
15326
15327
_LT_EOF
15328
	;;
15329
	*)
15330
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15331
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15332
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15333
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15334
	  else
15335
	    ld_shlibs_F77=no
15336
	  fi
15337
	;;
15338
      esac
15339
      ;;
15340
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15341
    sunos4*)
15342
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343
      wlarc=
15344
      hardcode_direct_F77=yes
15345
      hardcode_shlibpath_var_F77=no
15346
      ;;
15347
15348
    *)
15349
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15350
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15351
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15352
      else
15353
	ld_shlibs_F77=no
15354
      fi
15355
      ;;
15356
    esac
15357
15358
    if test "$ld_shlibs_F77" = no; then
15359
      runpath_var=
15360
      hardcode_libdir_flag_spec_F77=
15361
      export_dynamic_flag_spec_F77=
15362
      whole_archive_flag_spec_F77=
15363
    fi
15364
  else
15365
    # PORTME fill in a description of your system's linker (not GNU ld)
15366
    case $host_os in
15367
    aix3*)
15368
      allow_undefined_flag_F77=unsupported
15369
      always_export_symbols_F77=yes
15370
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15371
      # Note: this linker hardcodes the directories in LIBPATH if there
15372
      # are no directories specified by -L.
15373
      hardcode_minus_L_F77=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15374
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15375
	# Neither direct hardcoding nor static linking is supported with a
15376
	# broken collect2.
15377
	hardcode_direct_F77=unsupported
15378
      fi
15379
      ;;
15380
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15381
    aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15382
      if test "$host_cpu" = ia64; then
15383
	# On IA64, the linker does run time linking by default, so we don't
15384
	# have to do anything special.
15385
	aix_use_runtimelinking=no
15386
	exp_sym_flag='-Bexport'
15387
	no_entry_flag=""
15388
      else
15389
	# If we're using GNU nm, then we don't want the "-C" option.
15390
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15391
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15392
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15393
	else
15394
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15395
	fi
15396
	aix_use_runtimelinking=no
15397
15398
	# Test if we are trying to use run time linking or normal
15399
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15400
	# need to do runtime linking.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15401
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15402
	  for ld_flag in $LDFLAGS; do
15403
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15404
  	    aix_use_runtimelinking=yes
15405
  	    break
15406
  	  fi
15407
	  done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15408
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15409
	esac
15410
15411
	exp_sym_flag='-bexport'
15412
	no_entry_flag='-bnoentry'
15413
      fi
15414
15415
      # When large executables or shared objects are built, AIX ld can
15416
      # have problems creating the table of contents.  If linking a library
15417
      # or program results in "error TOC overflow" add -mminimal-toc to
15418
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15419
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15420
15421
      archive_cmds_F77=''
15422
      hardcode_direct_F77=yes
15423
      hardcode_libdir_separator_F77=':'
15424
      link_all_deplibs_F77=yes
15425
15426
      if test "$GCC" = yes; then
15427
	case $host_os in aix4.[012]|aix4.[012].*)
15428
	# We only want to do this on AIX 4.2 and lower, the check
15429
	# below for broken collect2 doesn't work under 4.3+
15430
	  collect2name=`${CC} -print-prog-name=collect2`
15431
	  if test -f "$collect2name" && \
15432
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15433
	  then
15434
  	  # We have reworked collect2
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15435
  	  :
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15436
	  else
15437
  	  # We have old collect2
15438
  	  hardcode_direct_F77=unsupported
15439
  	  # It fails to find uninstalled libraries when the uninstalled
15440
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15441
  	  # to unsupported forces relinking
15442
  	  hardcode_minus_L_F77=yes
15443
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15444
  	  hardcode_libdir_separator_F77=
15445
	  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15446
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15447
	esac
15448
	shared_flag='-shared'
15449
	if test "$aix_use_runtimelinking" = yes; then
15450
	  shared_flag="$shared_flag "'${wl}-G'
15451
	fi
15452
      else
15453
	# not using gcc
15454
	if test "$host_cpu" = ia64; then
15455
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15456
  	# chokes on -Wl,-G. The following line is correct:
15457
	  shared_flag='-G'
15458
	else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15459
	  if test "$aix_use_runtimelinking" = yes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15460
	    shared_flag='${wl}-G'
15461
	  else
15462
	    shared_flag='${wl}-bM:SRE'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15463
	  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15464
	fi
15465
      fi
15466
15467
      # It seems that -bexpall does not export symbols beginning with
15468
      # underscore (_), so it is better to generate a list of symbols to export.
15469
      always_export_symbols_F77=yes
15470
      if test "$aix_use_runtimelinking" = yes; then
15471
	# Warning - without using the other runtime loading flags (-brtl),
15472
	# -berok will link without error, but may produce a broken library.
15473
	allow_undefined_flag_F77='-berok'
15474
       # Determine the default libpath from the value encoded in an empty executable.
15475
       cat >conftest.$ac_ext <<_ACEOF
15476
      program main
15477
15478
      end
15479
_ACEOF
15480
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15481
if { (ac_try="$ac_link"
15482
case "(($ac_try" in
15483
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484
  *) ac_try_echo=$ac_try;;
15485
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15486
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15487
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15488
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15489
  ac_status=$?
15490
  grep -v '^ *+' conftest.er1 >conftest.err
15491
  rm -f conftest.er1
15492
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15493
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15494
  (exit $ac_status); } && {
15495
	 test -z "$ac_f77_werror_flag" ||
15496
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15497
       } && test -s conftest$ac_exeext && {
15498
	 test "$cross_compiling" = yes ||
15499
	 $as_test_x conftest$ac_exeext
15500
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15501
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15502
lt_aix_libpath_sed='
15503
    /Import File Strings/,/^$/ {
15504
	/^0/ {
15505
	    s/^0  *\(.*\)$/\1/
15506
	    p
15507
	}
15508
    }'
15509
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15510
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15511
if test -z "$aix_libpath"; then
15512
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15513
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15514
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15515
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15516
sed 's/^/| /' conftest.$ac_ext >&5
15517
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15518
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15519
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15520
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15521
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15522
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15523
      conftest$ac_exeext conftest.$ac_ext
15524
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15525
15526
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15527
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15528
       else
15529
	if test "$host_cpu" = ia64; then
15530
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15531
	  allow_undefined_flag_F77="-z nodefs"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15532
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15533
	else
15534
	 # Determine the default libpath from the value encoded in an empty executable.
15535
	 cat >conftest.$ac_ext <<_ACEOF
15536
      program main
15537
15538
      end
15539
_ACEOF
15540
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15541
if { (ac_try="$ac_link"
15542
case "(($ac_try" in
15543
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544
  *) ac_try_echo=$ac_try;;
15545
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15546
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15547
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15548
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15549
  ac_status=$?
15550
  grep -v '^ *+' conftest.er1 >conftest.err
15551
  rm -f conftest.er1
15552
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15553
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15554
  (exit $ac_status); } && {
15555
	 test -z "$ac_f77_werror_flag" ||
15556
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15557
       } && test -s conftest$ac_exeext && {
15558
	 test "$cross_compiling" = yes ||
15559
	 $as_test_x conftest$ac_exeext
15560
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15561
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15562
lt_aix_libpath_sed='
15563
    /Import File Strings/,/^$/ {
15564
	/^0/ {
15565
	    s/^0  *\(.*\)$/\1/
15566
	    p
15567
	}
15568
    }'
15569
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15570
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15571
if test -z "$aix_libpath"; then
15572
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15573
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15574
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15575
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15576
sed 's/^/| /' conftest.$ac_ext >&5
15577
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15578
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15579
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15580
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15581
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15583
      conftest$ac_exeext conftest.$ac_ext
15584
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15585
15586
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15587
	  # Warning - without using the other run time loading flags,
15588
	  # -berok will link without error, but may produce a broken library.
15589
	  no_undefined_flag_F77=' ${wl}-bernotok'
15590
	  allow_undefined_flag_F77=' ${wl}-berok'
15591
	  # Exported symbols can be pulled into shared objects from archives
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15592
	  whole_archive_flag_spec_F77='$convenience'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15593
	  archive_cmds_need_lc_F77=yes
15594
	  # This is similar to how AIX traditionally builds its shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15595
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15596
	fi
15597
      fi
15598
      ;;
15599
15600
    amigaos*)
15601
      archive_cmds_F77='$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)'
15602
      hardcode_libdir_flag_spec_F77='-L$libdir'
15603
      hardcode_minus_L_F77=yes
15604
      # see comment about different semantics on the GNU ld section
15605
      ld_shlibs_F77=no
15606
      ;;
15607
15608
    bsdi[45]*)
15609
      export_dynamic_flag_spec_F77=-rdynamic
15610
      ;;
15611
15612
    cygwin* | mingw* | pw32*)
15613
      # When not using gcc, we currently assume that we are using
15614
      # Microsoft Visual C++.
15615
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15616
      # no search path for DLLs.
15617
      hardcode_libdir_flag_spec_F77=' '
15618
      allow_undefined_flag_F77=unsupported
15619
      # Tell ltmain to make .lib files, not .a files.
15620
      libext=lib
15621
      # Tell ltmain to make .dll files, not .so files.
15622
      shrext_cmds=".dll"
15623
      # FIXME: Setting linknames here is a bad hack.
15624
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15625
      # The linker will automatically build a .lib file if we build a DLL.
15626
      old_archive_From_new_cmds_F77='true'
15627
      # FIXME: Should let the user specify the lib program.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15628
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15629
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15630
      enable_shared_with_static_runtimes_F77=yes
15631
      ;;
15632
15633
    darwin* | rhapsody*)
15634
      case $host_os in
15635
        rhapsody* | darwin1.[012])
15636
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15637
         ;;
15638
       *) # Darwin 1.3 on
15639
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15640
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15641
         else
15642
           case ${MACOSX_DEPLOYMENT_TARGET} in
15643
             10.[012])
15644
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15645
               ;;
15646
             10.*)
15647
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15648
               ;;
15649
           esac
15650
         fi
15651
         ;;
15652
      esac
15653
      archive_cmds_need_lc_F77=no
15654
      hardcode_direct_F77=no
15655
      hardcode_automatic_F77=yes
15656
      hardcode_shlibpath_var_F77=unsupported
15657
      whole_archive_flag_spec_F77=''
15658
      link_all_deplibs_F77=yes
15659
    if test "$GCC" = yes ; then
15660
    	output_verbose_link_cmd='echo'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15661
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15662
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15663
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15664
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15665
    else
15666
      case $cc_basename in
15667
        xlc*)
15668
         output_verbose_link_cmd='echo'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15669
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15670
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15671
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15672
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15673
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15674
          ;;
15675
       *)
15676
         ld_shlibs_F77=no
15677
          ;;
15678
      esac
15679
    fi
15680
      ;;
15681
15682
    dgux*)
15683
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684
      hardcode_libdir_flag_spec_F77='-L$libdir'
15685
      hardcode_shlibpath_var_F77=no
15686
      ;;
15687
15688
    freebsd1*)
15689
      ld_shlibs_F77=no
15690
      ;;
15691
15692
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15693
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15694
    # does not break anything, and helps significantly (at the cost of a little
15695
    # extra space).
15696
    freebsd2.2*)
15697
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15698
      hardcode_libdir_flag_spec_F77='-R$libdir'
15699
      hardcode_direct_F77=yes
15700
      hardcode_shlibpath_var_F77=no
15701
      ;;
15702
15703
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15704
    freebsd2*)
15705
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15706
      hardcode_direct_F77=yes
15707
      hardcode_minus_L_F77=yes
15708
      hardcode_shlibpath_var_F77=no
15709
      ;;
15710
15711
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15712
    freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15713
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15714
      hardcode_libdir_flag_spec_F77='-R$libdir'
15715
      hardcode_direct_F77=yes
15716
      hardcode_shlibpath_var_F77=no
15717
      ;;
15718
15719
    hpux9*)
15720
      if test "$GCC" = yes; then
15721
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15722
      else
15723
	archive_cmds_F77='$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'
15724
      fi
15725
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15726
      hardcode_libdir_separator_F77=:
15727
      hardcode_direct_F77=yes
15728
15729
      # hardcode_minus_L: Not really in the search PATH,
15730
      # but as the default location of the library.
15731
      hardcode_minus_L_F77=yes
15732
      export_dynamic_flag_spec_F77='${wl}-E'
15733
      ;;
15734
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15735
    hpux10*)
15736
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15737
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15738
      else
15739
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15740
      fi
15741
      if test "$with_gnu_ld" = no; then
15742
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15743
	hardcode_libdir_separator_F77=:
15744
15745
	hardcode_direct_F77=yes
15746
	export_dynamic_flag_spec_F77='${wl}-E'
15747
15748
	# hardcode_minus_L: Not really in the search PATH,
15749
	# but as the default location of the library.
15750
	hardcode_minus_L_F77=yes
15751
      fi
15752
      ;;
15753
15754
    hpux11*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15755
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15756
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15757
	hppa*64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15758
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759
	  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15760
	ia64*)
15761
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15762
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15763
	*)
15764
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15765
	  ;;
15766
	esac
15767
      else
15768
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15769
	hppa*64*)
15770
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771
	  ;;
15772
	ia64*)
15773
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15774
	  ;;
15775
	*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15776
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15777
	  ;;
15778
	esac
15779
      fi
15780
      if test "$with_gnu_ld" = no; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15781
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15782
	hardcode_libdir_separator_F77=:
15783
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15784
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15785
	hppa*64*|ia64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15786
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15787
	  hardcode_direct_F77=no
15788
	  hardcode_shlibpath_var_F77=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15789
	  ;;
15790
	*)
15791
	  hardcode_direct_F77=yes
15792
	  export_dynamic_flag_spec_F77='${wl}-E'
15793
15794
	  # hardcode_minus_L: Not really in the search PATH,
15795
	  # but as the default location of the library.
15796
	  hardcode_minus_L_F77=yes
15797
	  ;;
15798
	esac
15799
      fi
15800
      ;;
15801
15802
    irix5* | irix6* | nonstopux*)
15803
      if test "$GCC" = yes; then
15804
	archive_cmds_F77='$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'
15805
      else
15806
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15807
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15808
      fi
15809
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15810
      hardcode_libdir_separator_F77=:
15811
      link_all_deplibs_F77=yes
15812
      ;;
15813
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
15814
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15815
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15816
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15817
      else
15818
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15819
      fi
15820
      hardcode_libdir_flag_spec_F77='-R$libdir'
15821
      hardcode_direct_F77=yes
15822
      hardcode_shlibpath_var_F77=no
15823
      ;;
15824
15825
    newsos6)
15826
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827
      hardcode_direct_F77=yes
15828
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15829
      hardcode_libdir_separator_F77=:
15830
      hardcode_shlibpath_var_F77=no
15831
      ;;
15832
15833
    openbsd*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15834
      if test -f /usr/libexec/ld.so; then
15835
	hardcode_direct_F77=yes
15836
	hardcode_shlibpath_var_F77=no
15837
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15838
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15839
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15840
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15841
	  export_dynamic_flag_spec_F77='${wl}-E'
15842
	else
15843
	  case $host_os in
15844
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15845
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15846
	     hardcode_libdir_flag_spec_F77='-R$libdir'
15847
	     ;;
15848
	   *)
15849
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15850
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15851
	     ;;
15852
	  esac
15853
        fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15854
      else
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15855
	ld_shlibs_F77=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15856
      fi
15857
      ;;
15858
15859
    os2*)
15860
      hardcode_libdir_flag_spec_F77='-L$libdir'
15861
      hardcode_minus_L_F77=yes
15862
      allow_undefined_flag_F77=unsupported
15863
      archive_cmds_F77='$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'
15864
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15865
      ;;
15866
15867
    osf3*)
15868
      if test "$GCC" = yes; then
15869
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15870
	archive_cmds_F77='$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'
15871
      else
15872
	allow_undefined_flag_F77=' -expect_unresolved \*'
15873
	archive_cmds_F77='$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'
15874
      fi
15875
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15876
      hardcode_libdir_separator_F77=:
15877
      ;;
15878
15879
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15880
      if test "$GCC" = yes; then
15881
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15882
	archive_cmds_F77='$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'
15883
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15884
      else
15885
	allow_undefined_flag_F77=' -expect_unresolved \*'
15886
	archive_cmds_F77='$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'
15887
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15888
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15889
15890
	# Both c and cxx compiler support -rpath directly
15891
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15892
      fi
15893
      hardcode_libdir_separator_F77=:
15894
      ;;
15895
15896
    solaris*)
15897
      no_undefined_flag_F77=' -z text'
15898
      if test "$GCC" = yes; then
15899
	wlarc='${wl}'
15900
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15902
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15903
      else
15904
	wlarc=''
15905
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15907
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15908
      fi
15909
      hardcode_libdir_flag_spec_F77='-R$libdir'
15910
      hardcode_shlibpath_var_F77=no
15911
      case $host_os in
15912
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15913
      *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15914
	# The compiler driver will combine and reorder linker options,
15915
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15916
	# but is careful enough not to reorder.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15917
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15918
	if test "$GCC" = yes; then
15919
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15920
	else
15921
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15922
	fi
15923
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
15924
      esac
15925
      link_all_deplibs_F77=yes
15926
      ;;
15927
15928
    sunos4*)
15929
      if test "x$host_vendor" = xsequent; then
15930
	# Use $CC to link under sequent, because it throws in some extra .o
15931
	# files that make .init and .fini sections work.
15932
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15933
      else
15934
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15935
      fi
15936
      hardcode_libdir_flag_spec_F77='-L$libdir'
15937
      hardcode_direct_F77=yes
15938
      hardcode_minus_L_F77=yes
15939
      hardcode_shlibpath_var_F77=no
15940
      ;;
15941
15942
    sysv4)
15943
      case $host_vendor in
15944
	sni)
15945
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946
	  hardcode_direct_F77=yes # is this really true???
15947
	;;
15948
	siemens)
15949
	  ## LD is ld it makes a PLAMLIB
15950
	  ## CC just makes a GrossModule.
15951
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15952
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15953
	  hardcode_direct_F77=no
15954
        ;;
15955
	motorola)
15956
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15958
	;;
15959
      esac
15960
      runpath_var='LD_RUN_PATH'
15961
      hardcode_shlibpath_var_F77=no
15962
      ;;
15963
15964
    sysv4.3*)
15965
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15966
      hardcode_shlibpath_var_F77=no
15967
      export_dynamic_flag_spec_F77='-Bexport'
15968
      ;;
15969
15970
    sysv4*MP*)
15971
      if test -d /usr/nec; then
15972
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973
	hardcode_shlibpath_var_F77=no
15974
	runpath_var=LD_RUN_PATH
15975
	hardcode_runpath_var=yes
15976
	ld_shlibs_F77=yes
15977
      fi
15978
      ;;
15979
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
15980
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
15981
      no_undefined_flag_F77='${wl}-z,text'
15982
      archive_cmds_need_lc_F77=no
15983
      hardcode_shlibpath_var_F77=no
15984
      runpath_var='LD_RUN_PATH'
15985
15986
      if test "$GCC" = yes; then
15987
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15988
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15989
      else
15990
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15991
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15992
      fi
15993
      ;;
15994
15995
    sysv5* | sco3.2v5* | sco5v6*)
15996
      # Note: We can NOT use -z defs as we might desire, because we do not
15997
      # link with -lc, and that would cause any symbols used from libc to
15998
      # always be unresolved, which means just about no library would
15999
      # ever link correctly.  If we're not using GNU ld we use -z text
16000
      # though, which does catch some bad symbols but isn't as heavy-handed
16001
      # as -z defs.
16002
      no_undefined_flag_F77='${wl}-z,text'
16003
      allow_undefined_flag_F77='${wl}-z,nodefs'
16004
      archive_cmds_need_lc_F77=no
16005
      hardcode_shlibpath_var_F77=no
16006
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16007
      hardcode_libdir_separator_F77=':'
16008
      link_all_deplibs_F77=yes
16009
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16010
      runpath_var='LD_RUN_PATH'
16011
16012
      if test "$GCC" = yes; then
16013
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16015
      else
16016
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16017
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16018
      fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16019
      ;;
16020
16021
    uts4*)
16022
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16023
      hardcode_libdir_flag_spec_F77='-L$libdir'
16024
      hardcode_shlibpath_var_F77=no
16025
      ;;
16026
16027
    *)
16028
      ld_shlibs_F77=no
16029
      ;;
16030
    esac
16031
  fi
16032
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16033
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16034
$as_echo "$ld_shlibs_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16035
test "$ld_shlibs_F77" = no && can_build_shared=no
16036
16037
#
16038
# Do we need to explicitly link libc?
16039
#
16040
case "x$archive_cmds_need_lc_F77" in
16041
x|xyes)
16042
  # Assume -lc should be added
16043
  archive_cmds_need_lc_F77=yes
16044
16045
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16046
    case $archive_cmds_F77 in
16047
    *'~'*)
16048
      # FIXME: we may have to deal with multi-command sequences.
16049
      ;;
16050
    '$CC '*)
16051
      # Test whether the compiler implicitly links with -lc since on some
16052
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16053
      # to ld, don't add -lc before -lgcc.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16054
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16055
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16056
      $rm conftest*
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16057
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16058
16059
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060
  (eval $ac_compile) 2>&5
16061
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16062
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16063
  (exit $ac_status); } 2>conftest.err; then
16064
        soname=conftest
16065
        lib=conftest
16066
        libobjs=conftest.$ac_objext
16067
        deplibs=
16068
        wl=$lt_prog_compiler_wl_F77
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16069
	pic_flag=$lt_prog_compiler_pic_F77
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16070
        compiler_flags=-v
16071
        linker_flags=-v
16072
        verstring=
16073
        output_objdir=.
16074
        libname=conftest
16075
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16076
        allow_undefined_flag_F77=
16077
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16078
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16079
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16080
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16081
  (exit $ac_status); }
16082
        then
16083
	  archive_cmds_need_lc_F77=no
16084
        else
16085
	  archive_cmds_need_lc_F77=yes
16086
        fi
16087
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16088
      else
16089
        cat conftest.err 1>&5
16090
      fi
16091
      $rm conftest*
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16092
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16093
$as_echo "$archive_cmds_need_lc_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16094
      ;;
16095
    esac
16096
  fi
16097
  ;;
16098
esac
16099
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16100
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16101
$as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16102
library_names_spec=
16103
libname_spec='lib$name'
16104
soname_spec=
16105
shrext_cmds=".so"
16106
postinstall_cmds=
16107
postuninstall_cmds=
16108
finish_cmds=
16109
finish_eval=
16110
shlibpath_var=
16111
shlibpath_overrides_runpath=unknown
16112
version_type=none
16113
dynamic_linker="$host_os ld.so"
16114
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16115
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16116
need_lib_prefix=unknown
16117
hardcode_into_libs=no
16118
16119
# when you set need_version to no, make sure it does not cause -set_version
16120
# flags to be left without arguments
16121
need_version=unknown
16122
16123
case $host_os in
16124
aix3*)
16125
  version_type=linux
16126
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16127
  shlibpath_var=LIBPATH
16128
16129
  # AIX 3 has no versioning support, so we append a major version to the name.
16130
  soname_spec='${libname}${release}${shared_ext}$major'
16131
  ;;
16132
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16133
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16134
  version_type=linux
16135
  need_lib_prefix=no
16136
  need_version=no
16137
  hardcode_into_libs=yes
16138
  if test "$host_cpu" = ia64; then
16139
    # AIX 5 supports IA64
16140
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16141
    shlibpath_var=LD_LIBRARY_PATH
16142
  else
16143
    # With GCC up to 2.95.x, collect2 would create an import file
16144
    # for dependence libraries.  The import file would start with
16145
    # the line `#! .'.  This would cause the generated library to
16146
    # depend on `.', always an invalid library.  This was fixed in
16147
    # development snapshots of GCC prior to 3.0.
16148
    case $host_os in
16149
      aix4 | aix4.[01] | aix4.[01].*)
16150
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16151
	   echo ' yes '
16152
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16153
	:
16154
      else
16155
	can_build_shared=no
16156
      fi
16157
      ;;
16158
    esac
16159
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16160
    # soname into executable. Probably we can add versioning support to
16161
    # collect2, so additional links can be useful in future.
16162
    if test "$aix_use_runtimelinking" = yes; then
16163
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16164
      # instead of lib<name>.a to let people know that these are not
16165
      # typical AIX shared libraries.
16166
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167
    else
16168
      # We preserve .a as extension for shared libraries through AIX4.2
16169
      # and later when we are not doing run time linking.
16170
      library_names_spec='${libname}${release}.a $libname.a'
16171
      soname_spec='${libname}${release}${shared_ext}$major'
16172
    fi
16173
    shlibpath_var=LIBPATH
16174
  fi
16175
  ;;
16176
16177
amigaos*)
16178
  library_names_spec='$libname.ixlibrary $libname.a'
16179
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16180
  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'
16181
  ;;
16182
16183
beos*)
16184
  library_names_spec='${libname}${shared_ext}'
16185
  dynamic_linker="$host_os ld.so"
16186
  shlibpath_var=LIBRARY_PATH
16187
  ;;
16188
16189
bsdi[45]*)
16190
  version_type=linux
16191
  need_version=no
16192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193
  soname_spec='${libname}${release}${shared_ext}$major'
16194
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16195
  shlibpath_var=LD_LIBRARY_PATH
16196
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16197
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16198
  # the default ld.so.conf also contains /usr/contrib/lib and
16199
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16200
  # libtool to hard-code these into programs
16201
  ;;
16202
16203
cygwin* | mingw* | pw32*)
16204
  version_type=windows
16205
  shrext_cmds=".dll"
16206
  need_version=no
16207
  need_lib_prefix=no
16208
16209
  case $GCC,$host_os in
16210
  yes,cygwin* | yes,mingw* | yes,pw32*)
16211
    library_names_spec='$libname.dll.a'
16212
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16213
    postinstall_cmds='base_file=`basename \${file}`~
16214
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16215
      dldir=$destdir/`dirname \$dlpath`~
16216
      test -d \$dldir || mkdir -p \$dldir~
16217
      $install_prog $dir/$dlname \$dldir/$dlname~
16218
      chmod a+x \$dldir/$dlname'
16219
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16220
      dlpath=$dir/\$dldll~
16221
       $rm \$dlpath'
16222
    shlibpath_overrides_runpath=yes
16223
16224
    case $host_os in
16225
    cygwin*)
16226
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16227
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16228
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16229
      ;;
16230
    mingw*)
16231
      # MinGW DLLs use traditional 'lib' prefix
16232
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16233
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16234
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16235
        # It is most probably a Windows format PATH printed by
16236
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16237
        # path with ; separators, and with drive letters. We can handle the
16238
        # drive letters (cygwin fileutils understands them), so leave them,
16239
        # especially as we might pass files found there to a mingw objdump,
16240
        # which wouldn't understand a cygwinified path. Ahh.
16241
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16242
      else
16243
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16244
      fi
16245
      ;;
16246
    pw32*)
16247
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16248
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16249
      ;;
16250
    esac
16251
    ;;
16252
16253
  *)
16254
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16255
    ;;
16256
  esac
16257
  dynamic_linker='Win32 ld.exe'
16258
  # FIXME: first we should search . and the directory the executable is in
16259
  shlibpath_var=PATH
16260
  ;;
16261
16262
darwin* | rhapsody*)
16263
  dynamic_linker="$host_os dyld"
16264
  version_type=darwin
16265
  need_lib_prefix=no
16266
  need_version=no
16267
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16268
  soname_spec='${libname}${release}${major}$shared_ext'
16269
  shlibpath_overrides_runpath=yes
16270
  shlibpath_var=DYLD_LIBRARY_PATH
16271
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16272
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16273
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16274
  ;;
16275
16276
dgux*)
16277
  version_type=linux
16278
  need_lib_prefix=no
16279
  need_version=no
16280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16281
  soname_spec='${libname}${release}${shared_ext}$major'
16282
  shlibpath_var=LD_LIBRARY_PATH
16283
  ;;
16284
16285
freebsd1*)
16286
  dynamic_linker=no
16287
  ;;
16288
16289
freebsd* | dragonfly*)
16290
  # DragonFly does not have aout.  When/if they implement a new
16291
  # versioning mechanism, adjust this.
16292
  if test -x /usr/bin/objformat; then
16293
    objformat=`/usr/bin/objformat`
16294
  else
16295
    case $host_os in
16296
    freebsd[123]*) objformat=aout ;;
16297
    *) objformat=elf ;;
16298
    esac
16299
  fi
16300
  version_type=freebsd-$objformat
16301
  case $version_type in
16302
    freebsd-elf*)
16303
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16304
      need_version=no
16305
      need_lib_prefix=no
16306
      ;;
16307
    freebsd-*)
16308
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16309
      need_version=yes
16310
      ;;
16311
  esac
16312
  shlibpath_var=LD_LIBRARY_PATH
16313
  case $host_os in
16314
  freebsd2*)
16315
    shlibpath_overrides_runpath=yes
16316
    ;;
16317
  freebsd3.[01]* | freebsdelf3.[01]*)
16318
    shlibpath_overrides_runpath=yes
16319
    hardcode_into_libs=yes
16320
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16321
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16322
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16323
    shlibpath_overrides_runpath=no
16324
    hardcode_into_libs=yes
16325
    ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16326
  *) # from 4.6 on, and DragonFly
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16327
    shlibpath_overrides_runpath=yes
16328
    hardcode_into_libs=yes
16329
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16330
  esac
16331
  ;;
16332
16333
gnu*)
16334
  version_type=linux
16335
  need_lib_prefix=no
16336
  need_version=no
16337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16338
  soname_spec='${libname}${release}${shared_ext}$major'
16339
  shlibpath_var=LD_LIBRARY_PATH
16340
  hardcode_into_libs=yes
16341
  ;;
16342
16343
hpux9* | hpux10* | hpux11*)
16344
  # Give a soname corresponding to the major version so that dld.sl refuses to
16345
  # link against other versions.
16346
  version_type=sunos
16347
  need_lib_prefix=no
16348
  need_version=no
16349
  case $host_cpu in
16350
  ia64*)
16351
    shrext_cmds='.so'
16352
    hardcode_into_libs=yes
16353
    dynamic_linker="$host_os dld.so"
16354
    shlibpath_var=LD_LIBRARY_PATH
16355
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16356
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357
    soname_spec='${libname}${release}${shared_ext}$major'
16358
    if test "X$HPUX_IA64_MODE" = X32; then
16359
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16360
    else
16361
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16362
    fi
16363
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16364
    ;;
16365
   hppa*64*)
16366
     shrext_cmds='.sl'
16367
     hardcode_into_libs=yes
16368
     dynamic_linker="$host_os dld.sl"
16369
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16370
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16371
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372
     soname_spec='${libname}${release}${shared_ext}$major'
16373
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16374
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16375
     ;;
16376
   *)
16377
    shrext_cmds='.sl'
16378
    dynamic_linker="$host_os dld.sl"
16379
    shlibpath_var=SHLIB_PATH
16380
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16381
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382
    soname_spec='${libname}${release}${shared_ext}$major'
16383
    ;;
16384
  esac
16385
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16386
  postinstall_cmds='chmod 555 $lib'
16387
  ;;
16388
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16389
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16390
  version_type=linux
16391
  need_lib_prefix=no
16392
  need_version=no
16393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16394
  soname_spec='${libname}${release}${shared_ext}$major'
16395
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16396
  shlibpath_var=LD_LIBRARY_PATH
16397
  shlibpath_overrides_runpath=no
16398
  hardcode_into_libs=yes
16399
  ;;
16400
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16401
irix5* | irix6* | nonstopux*)
16402
  case $host_os in
16403
    nonstopux*) version_type=nonstopux ;;
16404
    *)
16405
	if test "$lt_cv_prog_gnu_ld" = yes; then
16406
		version_type=linux
16407
	else
16408
		version_type=irix
16409
	fi ;;
16410
  esac
16411
  need_lib_prefix=no
16412
  need_version=no
16413
  soname_spec='${libname}${release}${shared_ext}$major'
16414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16415
  case $host_os in
16416
  irix5* | nonstopux*)
16417
    libsuff= shlibsuff=
16418
    ;;
16419
  *)
16420
    case $LD in # libtool.m4 will add one of these switches to LD
16421
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16422
      libsuff= shlibsuff= libmagic=32-bit;;
16423
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16424
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16425
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16426
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16427
    *) libsuff= shlibsuff= libmagic=never-match;;
16428
    esac
16429
    ;;
16430
  esac
16431
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16432
  shlibpath_overrides_runpath=no
16433
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16434
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16435
  hardcode_into_libs=yes
16436
  ;;
16437
16438
# No shared lib support for Linux oldld, aout, or coff.
16439
linux*oldld* | linux*aout* | linux*coff*)
16440
  dynamic_linker=no
16441
  ;;
16442
16443
# This must be Linux ELF.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16444
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16445
  version_type=linux
16446
  need_lib_prefix=no
16447
  need_version=no
16448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449
  soname_spec='${libname}${release}${shared_ext}$major'
16450
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16451
  shlibpath_var=LD_LIBRARY_PATH
16452
  shlibpath_overrides_runpath=no
16453
  # This implies no fast_install, which is unacceptable.
16454
  # Some rework will be needed to allow for fast_install
16455
  # before this can be enabled.
16456
  hardcode_into_libs=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16457
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16458
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16459
16460
  # Append ld.so.conf contents to the search path
16461
  if test -f /etc/ld.so.conf; then
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16462
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16463
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16464
  fi
16465
16466
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16467
  # powerpc, because MkLinux only supported shared libraries with the
16468
  # GNU dynamic linker.  Since this was broken with cross compilers,
16469
  # most powerpc-linux boxes support dynamic linking these days and
16470
  # people can always --disable-shared, the test was removed, and we
16471
  # assume the GNU/Linux dynamic linker is in use.
16472
  dynamic_linker='GNU/Linux ld.so'
16473
  ;;
16474
16475
netbsd*)
16476
  version_type=sunos
16477
  need_lib_prefix=no
16478
  need_version=no
16479
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16480
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16481
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16482
    dynamic_linker='NetBSD (a.out) ld.so'
16483
  else
16484
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16485
    soname_spec='${libname}${release}${shared_ext}$major'
16486
    dynamic_linker='NetBSD ld.elf_so'
16487
  fi
16488
  shlibpath_var=LD_LIBRARY_PATH
16489
  shlibpath_overrides_runpath=yes
16490
  hardcode_into_libs=yes
16491
  ;;
16492
16493
newsos6)
16494
  version_type=linux
16495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496
  shlibpath_var=LD_LIBRARY_PATH
16497
  shlibpath_overrides_runpath=yes
16498
  ;;
16499
16500
nto-qnx*)
16501
  version_type=linux
16502
  need_lib_prefix=no
16503
  need_version=no
16504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505
  soname_spec='${libname}${release}${shared_ext}$major'
16506
  shlibpath_var=LD_LIBRARY_PATH
16507
  shlibpath_overrides_runpath=yes
16508
  ;;
16509
16510
openbsd*)
16511
  version_type=sunos
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16512
  sys_lib_dlsearch_path_spec="/usr/lib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16513
  need_lib_prefix=no
16514
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16515
  case $host_os in
16516
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16517
    *)                         need_version=no  ;;
16518
  esac
16519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16520
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16521
  shlibpath_var=LD_LIBRARY_PATH
16522
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16523
    case $host_os in
16524
      openbsd2.[89] | openbsd2.[89].*)
16525
	shlibpath_overrides_runpath=no
16526
	;;
16527
      *)
16528
	shlibpath_overrides_runpath=yes
16529
	;;
16530
      esac
16531
  else
16532
    shlibpath_overrides_runpath=yes
16533
  fi
16534
  ;;
16535
16536
os2*)
16537
  libname_spec='$name'
16538
  shrext_cmds=".dll"
16539
  need_lib_prefix=no
16540
  library_names_spec='$libname${shared_ext} $libname.a'
16541
  dynamic_linker='OS/2 ld.exe'
16542
  shlibpath_var=LIBPATH
16543
  ;;
16544
16545
osf3* | osf4* | osf5*)
16546
  version_type=osf
16547
  need_lib_prefix=no
16548
  need_version=no
16549
  soname_spec='${libname}${release}${shared_ext}$major'
16550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551
  shlibpath_var=LD_LIBRARY_PATH
16552
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16553
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16554
  ;;
16555
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16556
rdos*)
16557
  dynamic_linker=no
16558
  ;;
16559
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16560
solaris*)
16561
  version_type=linux
16562
  need_lib_prefix=no
16563
  need_version=no
16564
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565
  soname_spec='${libname}${release}${shared_ext}$major'
16566
  shlibpath_var=LD_LIBRARY_PATH
16567
  shlibpath_overrides_runpath=yes
16568
  hardcode_into_libs=yes
16569
  # ldd complains unless libraries are executable
16570
  postinstall_cmds='chmod +x $lib'
16571
  ;;
16572
16573
sunos4*)
16574
  version_type=sunos
16575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16576
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16577
  shlibpath_var=LD_LIBRARY_PATH
16578
  shlibpath_overrides_runpath=yes
16579
  if test "$with_gnu_ld" = yes; then
16580
    need_lib_prefix=no
16581
  fi
16582
  need_version=yes
16583
  ;;
16584
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16585
sysv4 | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16586
  version_type=linux
16587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588
  soname_spec='${libname}${release}${shared_ext}$major'
16589
  shlibpath_var=LD_LIBRARY_PATH
16590
  case $host_vendor in
16591
    sni)
16592
      shlibpath_overrides_runpath=no
16593
      need_lib_prefix=no
16594
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16595
      runpath_var=LD_RUN_PATH
16596
      ;;
16597
    siemens)
16598
      need_lib_prefix=no
16599
      ;;
16600
    motorola)
16601
      need_lib_prefix=no
16602
      need_version=no
16603
      shlibpath_overrides_runpath=no
16604
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16605
      ;;
16606
  esac
16607
  ;;
16608
16609
sysv4*MP*)
16610
  if test -d /usr/nec ;then
16611
    version_type=linux
16612
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16613
    soname_spec='$libname${shared_ext}.$major'
16614
    shlibpath_var=LD_LIBRARY_PATH
16615
  fi
16616
  ;;
16617
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16618
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16619
  version_type=freebsd-elf
16620
  need_lib_prefix=no
16621
  need_version=no
16622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16623
  soname_spec='${libname}${release}${shared_ext}$major'
16624
  shlibpath_var=LD_LIBRARY_PATH
16625
  hardcode_into_libs=yes
16626
  if test "$with_gnu_ld" = yes; then
16627
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16628
    shlibpath_overrides_runpath=no
16629
  else
16630
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16631
    shlibpath_overrides_runpath=yes
16632
    case $host_os in
16633
      sco3.2v5*)
16634
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16635
	;;
16636
    esac
16637
  fi
16638
  sys_lib_dlsearch_path_spec='/usr/lib'
16639
  ;;
16640
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16641
uts4*)
16642
  version_type=linux
16643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644
  soname_spec='${libname}${release}${shared_ext}$major'
16645
  shlibpath_var=LD_LIBRARY_PATH
16646
  ;;
16647
16648
*)
16649
  dynamic_linker=no
16650
  ;;
16651
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16652
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16653
$as_echo "$dynamic_linker" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16654
test "$dynamic_linker" = no && can_build_shared=no
16655
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16656
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16657
  $as_echo_n "(cached) " >&6
16658
else
16659
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16660
fi
16661
16662
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16663
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16664
  $as_echo_n "(cached) " >&6
16665
else
16666
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16667
fi
16668
16669
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16670
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16671
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672
if test "$GCC" = yes; then
16673
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674
fi
16675
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16676
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16677
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16678
hardcode_action_F77=
16679
if test -n "$hardcode_libdir_flag_spec_F77" || \
16680
   test -n "$runpath_var_F77" || \
16681
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16682
16683
  # We can hardcode non-existant directories.
16684
  if test "$hardcode_direct_F77" != no &&
16685
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16686
     # have to relink, otherwise we might link with an installed library
16687
     # when we should be linking with a yet-to-be-installed one
16688
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16689
     test "$hardcode_minus_L_F77" != no; then
16690
    # Linking always hardcodes the temporary library directory.
16691
    hardcode_action_F77=relink
16692
  else
16693
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16694
    hardcode_action_F77=immediate
16695
  fi
16696
else
16697
  # We cannot hardcode anything, or else we can only hardcode existing
16698
  # directories.
16699
  hardcode_action_F77=unsupported
16700
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16701
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16702
$as_echo "$hardcode_action_F77" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16703
16704
if test "$hardcode_action_F77" = relink; then
16705
  # Fast installation is not supported
16706
  enable_fast_install=no
16707
elif test "$shlibpath_overrides_runpath" = yes ||
16708
     test "$enable_shared" = no; then
16709
  # Fast installation is not necessary
16710
  enable_fast_install=needless
16711
fi
16712
16713
16714
# The else clause should only fire when bootstrapping the
16715
# libtool distribution, otherwise you forgot to ship ltmain.sh
16716
# with your package, and you will get complaints that there are
16717
# no rules to generate ltmain.sh.
16718
if test -f "$ltmain"; then
16719
  # See if we are running on zsh, and set the options which allow our commands through
16720
  # without removal of \ escapes.
16721
  if test -n "${ZSH_VERSION+set}" ; then
16722
    setopt NO_GLOB_SUBST
16723
  fi
16724
  # Now quote all the things that may contain metacharacters while being
16725
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16726
  # variables and quote the copies for generation of the libtool script.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16727
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16728
    SED SHELL STRIP \
16729
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16730
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16731
    deplibs_check_method reload_flag reload_cmds need_locks \
16732
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16733
    lt_cv_sys_global_symbol_to_c_name_address \
16734
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16735
    old_postinstall_cmds old_postuninstall_cmds \
16736
    compiler_F77 \
16737
    CC_F77 \
16738
    LD_F77 \
16739
    lt_prog_compiler_wl_F77 \
16740
    lt_prog_compiler_pic_F77 \
16741
    lt_prog_compiler_static_F77 \
16742
    lt_prog_compiler_no_builtin_flag_F77 \
16743
    export_dynamic_flag_spec_F77 \
16744
    thread_safe_flag_spec_F77 \
16745
    whole_archive_flag_spec_F77 \
16746
    enable_shared_with_static_runtimes_F77 \
16747
    old_archive_cmds_F77 \
16748
    old_archive_from_new_cmds_F77 \
16749
    predep_objects_F77 \
16750
    postdep_objects_F77 \
16751
    predeps_F77 \
16752
    postdeps_F77 \
16753
    compiler_lib_search_path_F77 \
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
16754
    compiler_lib_search_dirs_F77 \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16755
    archive_cmds_F77 \
16756
    archive_expsym_cmds_F77 \
16757
    postinstall_cmds_F77 \
16758
    postuninstall_cmds_F77 \
16759
    old_archive_from_expsyms_cmds_F77 \
16760
    allow_undefined_flag_F77 \
16761
    no_undefined_flag_F77 \
16762
    export_symbols_cmds_F77 \
16763
    hardcode_libdir_flag_spec_F77 \
16764
    hardcode_libdir_flag_spec_ld_F77 \
16765
    hardcode_libdir_separator_F77 \
16766
    hardcode_automatic_F77 \
16767
    module_cmds_F77 \
16768
    module_expsym_cmds_F77 \
16769
    lt_cv_prog_compiler_c_o_F77 \
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
16770
    fix_srcfile_path_F77 \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16771
    exclude_expsyms_F77 \
16772
    include_expsyms_F77; do
16773
16774
    case $var in
16775
    old_archive_cmds_F77 | \
16776
    old_archive_from_new_cmds_F77 | \
16777
    archive_cmds_F77 | \
16778
    archive_expsym_cmds_F77 | \
16779
    module_cmds_F77 | \
16780
    module_expsym_cmds_F77 | \
16781
    old_archive_from_expsyms_cmds_F77 | \
16782
    export_symbols_cmds_F77 | \
16783
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16784
    postinstall_cmds | postuninstall_cmds | \
16785
    old_postinstall_cmds | old_postuninstall_cmds | \
16786
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16787
      # Double-quote double-evaled strings.
16788
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16789
      ;;
16790
    *)
16791
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16792
      ;;
16793
    esac
16794
  done
16795
16796
  case $lt_echo in
16797
  *'\$0 --fallback-echo"')
16798
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16799
    ;;
16800
  esac
16801
16802
cfgfile="$ofile"
16803
16804
  cat <<__EOF__ >> "$cfgfile"
16805
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16806
16807
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16808
16809
# Shell to use when invoking shell scripts.
16810
SHELL=$lt_SHELL
16811
16812
# Whether or not to build shared libraries.
16813
build_libtool_libs=$enable_shared
16814
16815
# Whether or not to build static libraries.
16816
build_old_libs=$enable_static
16817
16818
# Whether or not to add -lc for building shared libraries.
16819
build_libtool_need_lc=$archive_cmds_need_lc_F77
16820
16821
# Whether or not to disallow shared libs when runtime libs are static
16822
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16823
16824
# Whether or not to optimize for fast installation.
16825
fast_install=$enable_fast_install
16826
16827
# The host system.
16828
host_alias=$host_alias
16829
host=$host
16830
host_os=$host_os
16831
16832
# The build system.
16833
build_alias=$build_alias
16834
build=$build
16835
build_os=$build_os
16836
16837
# An echo program that does not interpret backslashes.
16838
echo=$lt_echo
16839
16840
# The archiver.
16841
AR=$lt_AR
16842
AR_FLAGS=$lt_AR_FLAGS
16843
16844
# A C compiler.
16845
LTCC=$lt_LTCC
16846
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
16847
# LTCC compiler flags.
16848
LTCFLAGS=$lt_LTCFLAGS
16849
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
16850
# A language-specific compiler.
16851
CC=$lt_compiler_F77
16852
16853
# Is the compiler the GNU C compiler?
16854
with_gcc=$GCC_F77
16855
16856
# An ERE matcher.
16857
EGREP=$lt_EGREP
16858
16859
# The linker used to build libraries.
16860
LD=$lt_LD_F77
16861
16862
# Whether we need hard or soft links.
16863
LN_S=$lt_LN_S
16864
16865
# A BSD-compatible nm program.
16866
NM=$lt_NM
16867
16868
# A symbol stripping program
16869
STRIP=$lt_STRIP
16870
16871
# Used to examine libraries when file_magic_cmd begins "file"
16872
MAGIC_CMD=$MAGIC_CMD
16873
16874
# Used on cygwin: DLL creation program.
16875
DLLTOOL="$DLLTOOL"
16876
16877
# Used on cygwin: object dumper.
16878
OBJDUMP="$OBJDUMP"
16879
16880
# Used on cygwin: assembler.
16881
AS="$AS"
16882
16883
# The name of the directory that contains temporary libtool files.
16884
objdir=$objdir
16885
16886
# How to create reloadable object files.
16887
reload_flag=$lt_reload_flag
16888
reload_cmds=$lt_reload_cmds
16889
16890
# How to pass a linker flag through the compiler.
16891
wl=$lt_lt_prog_compiler_wl_F77
16892
16893
# Object file suffix (normally "o").
16894
objext="$ac_objext"
16895
16896
# Old archive suffix (normally "a").
16897
libext="$libext"
16898
16899
# Shared library suffix (normally ".so").
16900
shrext_cmds='$shrext_cmds'
16901
16902
# Executable file suffix (normally "").
16903
exeext="$exeext"
16904
16905
# Additional compiler flags for building library objects.
16906
pic_flag=$lt_lt_prog_compiler_pic_F77
16907
pic_mode=$pic_mode
16908
16909
# What is the maximum length of a command?
16910
max_cmd_len=$lt_cv_sys_max_cmd_len
16911
16912
# Does compiler simultaneously support -c and -o options?
16913
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16914
16915
# Must we lock files when doing compilation?
16916
need_locks=$lt_need_locks
16917
16918
# Do we need the lib prefix for modules?
16919
need_lib_prefix=$need_lib_prefix
16920
16921
# Do we need a version for libraries?
16922
need_version=$need_version
16923
16924
# Whether dlopen is supported.
16925
dlopen_support=$enable_dlopen
16926
16927
# Whether dlopen of programs is supported.
16928
dlopen_self=$enable_dlopen_self
16929
16930
# Whether dlopen of statically linked programs is supported.
16931
dlopen_self_static=$enable_dlopen_self_static
16932
16933
# Compiler flag to prevent dynamic linking.
16934
link_static_flag=$lt_lt_prog_compiler_static_F77
16935
16936
# Compiler flag to turn off builtin functions.
16937
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16938
16939
# Compiler flag to allow reflexive dlopens.
16940
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16941
16942
# Compiler flag to generate shared objects directly from archives.
16943
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16944
16945
# Compiler flag to generate thread-safe objects.
16946
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16947
16948
# Library versioning type.
16949
version_type=$version_type
16950
16951
# Format of library name prefix.
16952
libname_spec=$lt_libname_spec
16953
16954
# List of archive names.  First name is the real one, the rest are links.
16955
# The last name is the one that the linker finds with -lNAME.
16956
library_names_spec=$lt_library_names_spec
16957
16958
# The coded name of the library, if different from the real name.
16959
soname_spec=$lt_soname_spec
16960
16961
# Commands used to build and install an old-style archive.
16962
RANLIB=$lt_RANLIB
16963
old_archive_cmds=$lt_old_archive_cmds_F77
16964
old_postinstall_cmds=$lt_old_postinstall_cmds
16965
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16966
16967
# Create an old-style archive from a shared archive.
16968
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16969
16970
# Create a temporary old-style archive to link instead of a shared archive.
16971
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16972
16973
# Commands used to build and install a shared archive.
16974
archive_cmds=$lt_archive_cmds_F77
16975
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16976
postinstall_cmds=$lt_postinstall_cmds
16977
postuninstall_cmds=$lt_postuninstall_cmds
16978
16979
# Commands used to build a loadable module (assumed same as above if empty)
16980
module_cmds=$lt_module_cmds_F77
16981
module_expsym_cmds=$lt_module_expsym_cmds_F77
16982
16983
# Commands to strip libraries.
16984
old_striplib=$lt_old_striplib
16985
striplib=$lt_striplib
16986
16987
# Dependencies to place before the objects being linked to create a
16988
# shared library.
16989
predep_objects=$lt_predep_objects_F77
16990
16991
# Dependencies to place after the objects being linked to create a
16992
# shared library.
16993
postdep_objects=$lt_postdep_objects_F77
16994
16995
# Dependencies to place before the objects being linked to create a
16996
# shared library.
16997
predeps=$lt_predeps_F77
16998
16999
# Dependencies to place after the objects being linked to create a
17000
# shared library.
17001
postdeps=$lt_postdeps_F77
17002
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17003
# The directories searched by this compiler when creating a shared
17004
# library
17005
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17006
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17007
# The library search path used internally by the compiler when linking
17008
# a shared library.
17009
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17010
17011
# Method to check whether dependent libraries are shared objects.
17012
deplibs_check_method=$lt_deplibs_check_method
17013
17014
# Command to use when deplibs_check_method == file_magic.
17015
file_magic_cmd=$lt_file_magic_cmd
17016
17017
# Flag that allows shared libraries with undefined symbols to be built.
17018
allow_undefined_flag=$lt_allow_undefined_flag_F77
17019
17020
# Flag that forces no undefined symbols.
17021
no_undefined_flag=$lt_no_undefined_flag_F77
17022
17023
# Commands used to finish a libtool library installation in a directory.
17024
finish_cmds=$lt_finish_cmds
17025
17026
# Same as above, but a single script fragment to be evaled but not shown.
17027
finish_eval=$lt_finish_eval
17028
17029
# Take the output of nm and produce a listing of raw symbols and C names.
17030
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17031
17032
# Transform the output of nm in a proper C declaration
17033
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17034
17035
# Transform the output of nm in a C name address pair
17036
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17037
17038
# This is the shared library runtime path variable.
17039
runpath_var=$runpath_var
17040
17041
# This is the shared library path variable.
17042
shlibpath_var=$shlibpath_var
17043
17044
# Is shlibpath searched before the hard-coded library search path?
17045
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17046
17047
# How to hardcode a shared library path into an executable.
17048
hardcode_action=$hardcode_action_F77
17049
17050
# Whether we should hardcode library paths into libraries.
17051
hardcode_into_libs=$hardcode_into_libs
17052
17053
# Flag to hardcode \$libdir into a binary during linking.
17054
# This must work even if \$libdir does not exist.
17055
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17056
17057
# If ld is used when linking, flag to hardcode \$libdir into
17058
# a binary during linking. This must work even if \$libdir does
17059
# not exist.
17060
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17061
17062
# Whether we need a single -rpath flag with a separated argument.
17063
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17064
17065
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17066
# resulting binary.
17067
hardcode_direct=$hardcode_direct_F77
17068
17069
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17070
# resulting binary.
17071
hardcode_minus_L=$hardcode_minus_L_F77
17072
17073
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17074
# the resulting binary.
17075
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17076
17077
# Set to yes if building a shared library automatically hardcodes DIR into the library
17078
# and all subsequent libraries and executables linked against it.
17079
hardcode_automatic=$hardcode_automatic_F77
17080
17081
# Variables whose values should be saved in libtool wrapper scripts and
17082
# restored at relink time.
17083
variables_saved_for_relink="$variables_saved_for_relink"
17084
17085
# Whether libtool must link a program against all its dependency libraries.
17086
link_all_deplibs=$link_all_deplibs_F77
17087
17088
# Compile-time system search path for libraries
17089
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17090
17091
# Run-time system search path for libraries
17092
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17093
17094
# Fix the shell variable \$srcfile for the compiler.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17095
fix_srcfile_path=$lt_fix_srcfile_path
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17096
17097
# Set to yes if exported symbols are required.
17098
always_export_symbols=$always_export_symbols_F77
17099
17100
# The commands to list exported symbols.
17101
export_symbols_cmds=$lt_export_symbols_cmds_F77
17102
17103
# The commands to extract the exported symbol list from a shared archive.
17104
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17105
17106
# Symbols that should not be listed in the preloaded symbols.
17107
exclude_expsyms=$lt_exclude_expsyms_F77
17108
17109
# Symbols that must always be exported.
17110
include_expsyms=$lt_include_expsyms_F77
17111
17112
# ### END LIBTOOL TAG CONFIG: $tagname
17113
17114
__EOF__
17115
17116
17117
else
17118
  # If there is no Makefile yet, we rely on a make rule to execute
17119
  # `config.status --recheck' to rerun these tests and create the
17120
  # libtool script then.
17121
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17122
  if test -f "$ltmain_in"; then
17123
    test -f Makefile && make "$ltmain"
17124
  fi
17125
fi
17126
17127
17128
ac_ext=c
17129
ac_cpp='$CPP $CPPFLAGS'
17130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17133
17134
CC="$lt_save_CC"
17135
17136
	else
17137
	  tagname=""
17138
	fi
17139
	;;
17140
17141
      GCJ)
17142
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17143
17144
17145
# Source file extension for Java test sources.
17146
ac_ext=java
17147
17148
# Object file extension for compiled Java test sources.
17149
objext=o
17150
objext_GCJ=$objext
17151
17152
# Code to be used in simple compile tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17153
lt_simple_compile_test_code="class foo {}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17154
17155
# Code to be used in simple link tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17156
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17157
17158
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17159
17160
# If no C compiler was specified, use CC.
17161
LTCC=${LTCC-"$CC"}
17162
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17163
# If no C compiler flags were specified, use CFLAGS.
17164
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17165
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17166
# Allow CC to be a program name with arguments.
17167
compiler=$CC
17168
17169
17170
# save warnings/boilerplate of simple test code
17171
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17172
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17173
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17174
_lt_compiler_boilerplate=`cat conftest.err`
17175
$rm conftest*
17176
17177
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17178
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17179
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17180
_lt_linker_boilerplate=`cat conftest.err`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17181
$rm -r conftest*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17182
17183
17184
# Allow CC to be a program name with arguments.
17185
lt_save_CC="$CC"
17186
CC=${GCJ-"gcj"}
17187
compiler=$CC
17188
compiler_GCJ=$CC
17189
for cc_temp in $compiler""; do
17190
  case $cc_temp in
17191
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17192
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17193
    \-*) ;;
17194
    *) break;;
17195
  esac
17196
done
17197
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17198
17199
17200
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17201
archive_cmds_need_lc_GCJ=no
17202
17203
old_archive_cmds_GCJ=$old_archive_cmds
17204
17205
17206
lt_prog_compiler_no_builtin_flag_GCJ=
17207
17208
if test "$GCC" = yes; then
17209
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17210
17211
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17212
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17213
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17214
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17215
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17216
else
17217
  lt_cv_prog_compiler_rtti_exceptions=no
17218
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17219
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17220
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17221
   # Insert the option either (1) after the last *FLAGS variable, or
17222
   # (2) before a word containing "conftest.", or (3) at the end.
17223
   # Note that $ac_compile itself does not contain backslashes and begins
17224
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17225
   # The option is referenced via a variable to avoid confusing sed.
17226
   lt_compile=`echo "$ac_compile" | $SED \
17227
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17230
   (eval echo "\"\$as_me:17230: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17231
   (eval "$lt_compile" 2>conftest.err)
17232
   ac_status=$?
17233
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17234
   echo "$as_me:17234: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17235
   if (exit $ac_status) && test -s "$ac_outfile"; then
17236
     # The compiler can only warn and ignore the option if not recognized
17237
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17238
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17239
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17240
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17241
       lt_cv_prog_compiler_rtti_exceptions=yes
17242
     fi
17243
   fi
17244
   $rm conftest*
17245
17246
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17247
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17248
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17249
17250
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17251
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17252
else
17253
    :
17254
fi
17255
17256
fi
17257
17258
lt_prog_compiler_wl_GCJ=
17259
lt_prog_compiler_pic_GCJ=
17260
lt_prog_compiler_static_GCJ=
17261
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17262
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17263
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17264
17265
  if test "$GCC" = yes; then
17266
    lt_prog_compiler_wl_GCJ='-Wl,'
17267
    lt_prog_compiler_static_GCJ='-static'
17268
17269
    case $host_os in
17270
      aix*)
17271
      # All AIX code is PIC.
17272
      if test "$host_cpu" = ia64; then
17273
	# AIX 5 now supports IA64 processor
17274
	lt_prog_compiler_static_GCJ='-Bstatic'
17275
      fi
17276
      ;;
17277
17278
    amigaos*)
17279
      # FIXME: we need at least 68020 code to build shared libraries, but
17280
      # adding the `-m68020' flag to GCC prevents building anything better,
17281
      # like `-m68040'.
17282
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17283
      ;;
17284
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17285
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17286
      # PIC is the default for these OSes.
17287
      ;;
17288
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17289
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17290
      # This hack is so that the source file can tell whether it is being
17291
      # built for inclusion in a dll (and should export symbols for example).
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17292
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17293
      # (--disable-auto-import) libraries
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17294
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17295
      ;;
17296
17297
    darwin* | rhapsody*)
17298
      # PIC is the default on this platform
17299
      # Common symbols not allowed in MH_DYLIB files
17300
      lt_prog_compiler_pic_GCJ='-fno-common'
17301
      ;;
17302
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17303
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17304
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17305
      # Instead, we relocate shared libraries at runtime.
17306
      ;;
17307
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17308
    msdosdjgpp*)
17309
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17310
      # on systems that don't support them.
17311
      lt_prog_compiler_can_build_shared_GCJ=no
17312
      enable_shared=no
17313
      ;;
17314
17315
    sysv4*MP*)
17316
      if test -d /usr/nec; then
17317
	lt_prog_compiler_pic_GCJ=-Kconform_pic
17318
      fi
17319
      ;;
17320
17321
    hpux*)
17322
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17323
      # not for PA HP-UX.
17324
      case $host_cpu in
17325
      hppa*64*|ia64*)
17326
	# +Z the default
17327
	;;
17328
      *)
17329
	lt_prog_compiler_pic_GCJ='-fPIC'
17330
	;;
17331
      esac
17332
      ;;
17333
17334
    *)
17335
      lt_prog_compiler_pic_GCJ='-fPIC'
17336
      ;;
17337
    esac
17338
  else
17339
    # PORTME Check for flag to pass linker flags through the system compiler.
17340
    case $host_os in
17341
    aix*)
17342
      lt_prog_compiler_wl_GCJ='-Wl,'
17343
      if test "$host_cpu" = ia64; then
17344
	# AIX 5 now supports IA64 processor
17345
	lt_prog_compiler_static_GCJ='-Bstatic'
17346
      else
17347
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17348
      fi
17349
      ;;
17350
      darwin*)
17351
        # PIC is the default on this platform
17352
        # Common symbols not allowed in MH_DYLIB files
17353
       case $cc_basename in
17354
         xlc*)
17355
         lt_prog_compiler_pic_GCJ='-qnocommon'
17356
         lt_prog_compiler_wl_GCJ='-Wl,'
17357
         ;;
17358
       esac
17359
       ;;
17360
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17361
    mingw* | cygwin* | pw32* | os2*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17362
      # This hack is so that the source file can tell whether it is being
17363
      # built for inclusion in a dll (and should export symbols for example).
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17364
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17365
      ;;
17366
17367
    hpux9* | hpux10* | hpux11*)
17368
      lt_prog_compiler_wl_GCJ='-Wl,'
17369
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17370
      # not for PA HP-UX.
17371
      case $host_cpu in
17372
      hppa*64*|ia64*)
17373
	# +Z the default
17374
	;;
17375
      *)
17376
	lt_prog_compiler_pic_GCJ='+Z'
17377
	;;
17378
      esac
17379
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17380
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17381
      ;;
17382
17383
    irix5* | irix6* | nonstopux*)
17384
      lt_prog_compiler_wl_GCJ='-Wl,'
17385
      # PIC (with -KPIC) is the default.
17386
      lt_prog_compiler_static_GCJ='-non_shared'
17387
      ;;
17388
17389
    newsos6)
17390
      lt_prog_compiler_pic_GCJ='-KPIC'
17391
      lt_prog_compiler_static_GCJ='-Bstatic'
17392
      ;;
17393
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17394
    linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17395
      case $cc_basename in
17396
      icc* | ecc*)
17397
	lt_prog_compiler_wl_GCJ='-Wl,'
17398
	lt_prog_compiler_pic_GCJ='-KPIC'
17399
	lt_prog_compiler_static_GCJ='-static'
17400
        ;;
17401
      pgcc* | pgf77* | pgf90* | pgf95*)
17402
        # Portland Group compilers (*not* the Pentium gcc compiler,
17403
	# which looks to be a dead project)
17404
	lt_prog_compiler_wl_GCJ='-Wl,'
17405
	lt_prog_compiler_pic_GCJ='-fpic'
17406
	lt_prog_compiler_static_GCJ='-Bstatic'
17407
        ;;
17408
      ccc*)
17409
        lt_prog_compiler_wl_GCJ='-Wl,'
17410
        # All Alpha code is PIC.
17411
        lt_prog_compiler_static_GCJ='-non_shared'
17412
        ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17413
      *)
17414
        case `$CC -V 2>&1 | sed 5q` in
17415
	*Sun\ C*)
17416
	  # Sun C 5.9
17417
	  lt_prog_compiler_pic_GCJ='-KPIC'
17418
	  lt_prog_compiler_static_GCJ='-Bstatic'
17419
	  lt_prog_compiler_wl_GCJ='-Wl,'
17420
	  ;;
17421
	*Sun\ F*)
17422
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17423
	  lt_prog_compiler_pic_GCJ='-KPIC'
17424
	  lt_prog_compiler_static_GCJ='-Bstatic'
17425
	  lt_prog_compiler_wl_GCJ=''
17426
	  ;;
17427
	esac
17428
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17429
      esac
17430
      ;;
17431
17432
    osf3* | osf4* | osf5*)
17433
      lt_prog_compiler_wl_GCJ='-Wl,'
17434
      # All OSF/1 code is PIC.
17435
      lt_prog_compiler_static_GCJ='-non_shared'
17436
      ;;
17437
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17438
    rdos*)
17439
      lt_prog_compiler_static_GCJ='-non_shared'
17440
      ;;
17441
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17442
    solaris*)
17443
      lt_prog_compiler_pic_GCJ='-KPIC'
17444
      lt_prog_compiler_static_GCJ='-Bstatic'
17445
      case $cc_basename in
17446
      f77* | f90* | f95*)
17447
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17448
      *)
17449
	lt_prog_compiler_wl_GCJ='-Wl,';;
17450
      esac
17451
      ;;
17452
17453
    sunos4*)
17454
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17455
      lt_prog_compiler_pic_GCJ='-PIC'
17456
      lt_prog_compiler_static_GCJ='-Bstatic'
17457
      ;;
17458
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17459
    sysv4 | sysv4.2uw2* | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17460
      lt_prog_compiler_wl_GCJ='-Wl,'
17461
      lt_prog_compiler_pic_GCJ='-KPIC'
17462
      lt_prog_compiler_static_GCJ='-Bstatic'
17463
      ;;
17464
17465
    sysv4*MP*)
17466
      if test -d /usr/nec ;then
17467
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17468
	lt_prog_compiler_static_GCJ='-Bstatic'
17469
      fi
17470
      ;;
17471
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17472
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17473
      lt_prog_compiler_wl_GCJ='-Wl,'
17474
      lt_prog_compiler_pic_GCJ='-KPIC'
17475
      lt_prog_compiler_static_GCJ='-Bstatic'
17476
      ;;
17477
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17478
    unicos*)
17479
      lt_prog_compiler_wl_GCJ='-Wl,'
17480
      lt_prog_compiler_can_build_shared_GCJ=no
17481
      ;;
17482
17483
    uts4*)
17484
      lt_prog_compiler_pic_GCJ='-pic'
17485
      lt_prog_compiler_static_GCJ='-Bstatic'
17486
      ;;
17487
17488
    *)
17489
      lt_prog_compiler_can_build_shared_GCJ=no
17490
      ;;
17491
    esac
17492
  fi
17493
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17494
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17495
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17496
17497
#
17498
# Check to make sure the PIC flag actually works.
17499
#
17500
if test -n "$lt_prog_compiler_pic_GCJ"; then
17501
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17502
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17503
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17504
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17505
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17506
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17507
  lt_cv_prog_compiler_pic_works_GCJ=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17508
  ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17509
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17510
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17511
   # Insert the option either (1) after the last *FLAGS variable, or
17512
   # (2) before a word containing "conftest.", or (3) at the end.
17513
   # Note that $ac_compile itself does not contain backslashes and begins
17514
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17515
   # The option is referenced via a variable to avoid confusing sed.
17516
   lt_compile=`echo "$ac_compile" | $SED \
17517
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17518
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17519
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17520
   (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17521
   (eval "$lt_compile" 2>conftest.err)
17522
   ac_status=$?
17523
   cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17524
   echo "$as_me:17524: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17525
   if (exit $ac_status) && test -s "$ac_outfile"; then
17526
     # The compiler can only warn and ignore the option if not recognized
17527
     # So say no if there are warnings other than the usual output.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17528
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17529
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17530
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17531
       lt_cv_prog_compiler_pic_works_GCJ=yes
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17532
     fi
17533
   fi
17534
   $rm conftest*
17535
17536
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17537
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17538
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17539
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17540
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17541
    case $lt_prog_compiler_pic_GCJ in
17542
     "" | " "*) ;;
17543
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17544
     esac
17545
else
17546
    lt_prog_compiler_pic_GCJ=
17547
     lt_prog_compiler_can_build_shared_GCJ=no
17548
fi
17549
17550
fi
17551
case $host_os in
17552
  # For platforms which do not support PIC, -DPIC is meaningless:
17553
  *djgpp*)
17554
    lt_prog_compiler_pic_GCJ=
17555
    ;;
17556
  *)
17557
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17558
    ;;
17559
esac
17560
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17561
#
17562
# Check to make sure the static flag actually works.
17563
#
17564
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17565
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17566
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17567
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17568
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17569
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17570
  lt_cv_prog_compiler_static_works_GCJ=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17571
   save_LDFLAGS="$LDFLAGS"
17572
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17573
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17574
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17575
     # The linker can only warn and ignore the option if not recognized
17576
     # So say no if there are warnings
17577
     if test -s conftest.err; then
17578
       # Append any errors to the config.log.
17579
       cat conftest.err 1>&5
17580
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17581
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17582
       if diff conftest.exp conftest.er2 >/dev/null; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17583
         lt_cv_prog_compiler_static_works_GCJ=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17584
       fi
17585
     else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17586
       lt_cv_prog_compiler_static_works_GCJ=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17587
     fi
17588
   fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17589
   $rm -r conftest*
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17590
   LDFLAGS="$save_LDFLAGS"
17591
17592
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17593
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17594
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17595
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17596
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17597
    :
17598
else
17599
    lt_prog_compiler_static_GCJ=
17600
fi
17601
17602
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17603
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17604
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17605
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17606
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17607
else
17608
  lt_cv_prog_compiler_c_o_GCJ=no
17609
   $rm -r conftest 2>/dev/null
17610
   mkdir conftest
17611
   cd conftest
17612
   mkdir out
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17613
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17614
17615
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17616
   # Insert the option either (1) after the last *FLAGS variable, or
17617
   # (2) before a word containing "conftest.", or (3) at the end.
17618
   # Note that $ac_compile itself does not contain backslashes and begins
17619
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17620
   lt_compile=`echo "$ac_compile" | $SED \
17621
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17622
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17623
   -e 's:$: $lt_compiler_flag:'`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17624
   (eval echo "\"\$as_me:17624: $lt_compile\"" >&5)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17625
   (eval "$lt_compile" 2>out/conftest.err)
17626
   ac_status=$?
17627
   cat out/conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17628
   echo "$as_me:17628: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17629
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17630
   then
17631
     # The compiler can only warn and ignore the option if not recognized
17632
     # So say no if there are warnings
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17633
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17634
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17635
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17636
       lt_cv_prog_compiler_c_o_GCJ=yes
17637
     fi
17638
   fi
17639
   chmod u+w . 2>&5
17640
   $rm conftest*
17641
   # SGI C++ compiler will create directory out/ii_files/ for
17642
   # template instantiation
17643
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17644
   $rm out/* && rmdir out
17645
   cd ..
17646
   rmdir conftest
17647
   $rm conftest*
17648
17649
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17650
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17651
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17652
17653
17654
hard_links="nottested"
17655
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17656
  # do not overwrite the value of need_locks provided by the user
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17657
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17658
$as_echo_n "checking if we can lock with hard links... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17659
  hard_links=yes
17660
  $rm conftest*
17661
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17662
  touch conftest.a
17663
  ln conftest.a conftest.b 2>&5 || hard_links=no
17664
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17665
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17666
$as_echo "$hard_links" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17667
  if test "$hard_links" = no; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17668
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17669
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17670
    need_locks=warn
17671
  fi
17672
else
17673
  need_locks=no
17674
fi
17675
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17676
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17677
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17678
17679
  runpath_var=
17680
  allow_undefined_flag_GCJ=
17681
  enable_shared_with_static_runtimes_GCJ=no
17682
  archive_cmds_GCJ=
17683
  archive_expsym_cmds_GCJ=
17684
  old_archive_From_new_cmds_GCJ=
17685
  old_archive_from_expsyms_cmds_GCJ=
17686
  export_dynamic_flag_spec_GCJ=
17687
  whole_archive_flag_spec_GCJ=
17688
  thread_safe_flag_spec_GCJ=
17689
  hardcode_libdir_flag_spec_GCJ=
17690
  hardcode_libdir_flag_spec_ld_GCJ=
17691
  hardcode_libdir_separator_GCJ=
17692
  hardcode_direct_GCJ=no
17693
  hardcode_minus_L_GCJ=no
17694
  hardcode_shlibpath_var_GCJ=unsupported
17695
  link_all_deplibs_GCJ=unknown
17696
  hardcode_automatic_GCJ=no
17697
  module_cmds_GCJ=
17698
  module_expsym_cmds_GCJ=
17699
  always_export_symbols_GCJ=no
17700
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17701
  # include_expsyms should be a list of space-separated symbols to be *always*
17702
  # included in the symbol list
17703
  include_expsyms_GCJ=
17704
  # exclude_expsyms can be an extended regexp of symbols to exclude
17705
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17706
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17707
  # as well as any symbol that contains `d'.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17708
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17709
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17710
  # platforms (ab)use it in PIC code, but their linkers get confused if
17711
  # the symbol is explicitly referenced.  Since portable code cannot
17712
  # rely on this symbol name, it's probably fine to never include it in
17713
  # preloaded symbol tables.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17714
  # Exclude shared library initialization/finalization symbols.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17715
  extract_expsyms_cmds=
17716
  # Just being paranoid about ensuring that cc_basename is set.
17717
  for cc_temp in $compiler""; do
17718
  case $cc_temp in
17719
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17720
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17721
    \-*) ;;
17722
    *) break;;
17723
  esac
17724
done
17725
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17726
17727
  case $host_os in
17728
  cygwin* | mingw* | pw32*)
17729
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17730
    # When not using gcc, we currently assume that we are using
17731
    # Microsoft Visual C++.
17732
    if test "$GCC" != yes; then
17733
      with_gnu_ld=no
17734
    fi
17735
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17736
  interix*)
17737
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17738
    with_gnu_ld=yes
17739
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17740
  openbsd*)
17741
    with_gnu_ld=no
17742
    ;;
17743
  esac
17744
17745
  ld_shlibs_GCJ=yes
17746
  if test "$with_gnu_ld" = yes; then
17747
    # If archive_cmds runs LD, not CC, wlarc should be empty
17748
    wlarc='${wl}'
17749
17750
    # Set some defaults for GNU ld with shared library support. These
17751
    # are reset later if shared libraries are not supported. Putting them
17752
    # here allows them to be overridden if necessary.
17753
    runpath_var=LD_RUN_PATH
17754
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17755
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17756
    # ancient GNU ld didn't support --whole-archive et. al.
17757
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17758
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17759
      else
17760
  	whole_archive_flag_spec_GCJ=
17761
    fi
17762
    supports_anon_versioning=no
17763
    case `$LD -v 2>/dev/null` in
17764
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17765
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17766
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17767
      *\ 2.11.*) ;; # other 2.11 versions
17768
      *) supports_anon_versioning=yes ;;
17769
    esac
17770
17771
    # See if GNU ld supports shared libraries.
17772
    case $host_os in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17773
    aix[3-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17774
      # On AIX/PPC, the GNU linker is very broken
17775
      if test "$host_cpu" != ia64; then
17776
	ld_shlibs_GCJ=no
17777
	cat <<EOF 1>&2
17778
17779
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17780
*** to be unable to reliably create shared libraries on AIX.
17781
*** Therefore, libtool is disabling shared libraries support.  If you
17782
*** really care for shared libraries, you may want to modify your PATH
17783
*** so that a non-GNU linker is found, and then restart.
17784
17785
EOF
17786
      fi
17787
      ;;
17788
17789
    amigaos*)
17790
      archive_cmds_GCJ='$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)'
17791
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792
      hardcode_minus_L_GCJ=yes
17793
17794
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17795
      # that the semantics of dynamic libraries on AmigaOS, at least up
17796
      # to version 4, is to share data among multiple programs linked
17797
      # with the same dynamic library.  Since this doesn't match the
17798
      # behavior of shared libraries on other platforms, we can't use
17799
      # them.
17800
      ld_shlibs_GCJ=no
17801
      ;;
17802
17803
    beos*)
17804
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17805
	allow_undefined_flag_GCJ=unsupported
17806
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17807
	# support --undefined.  This deserves some investigation.  FIXME
17808
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809
      else
17810
	ld_shlibs_GCJ=no
17811
      fi
17812
      ;;
17813
17814
    cygwin* | mingw* | pw32*)
17815
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17816
      # as there is no search path for DLLs.
17817
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17818
      allow_undefined_flag_GCJ=unsupported
17819
      always_export_symbols_GCJ=no
17820
      enable_shared_with_static_runtimes_GCJ=yes
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17821
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17822
17823
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17824
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17825
	# If the export-symbols file already is a .def file (1st line
17826
	# is EXPORTS), use it as is; otherwise, prepend...
17827
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17828
	  cp $export_symbols $output_objdir/$soname.def;
17829
	else
17830
	  echo EXPORTS > $output_objdir/$soname.def;
17831
	  cat $export_symbols >> $output_objdir/$soname.def;
17832
	fi~
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17833
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17834
      else
17835
	ld_shlibs_GCJ=no
17836
      fi
17837
      ;;
17838
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17839
    interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17840
      hardcode_direct_GCJ=no
17841
      hardcode_shlibpath_var_GCJ=no
17842
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17843
      export_dynamic_flag_spec_GCJ='${wl}-E'
17844
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17845
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17846
      # default) and relocated if they conflict, which is a slow very memory
17847
      # consuming and fragmenting process.  To avoid this, we pick a random,
17848
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17849
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17850
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17851
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17852
      ;;
17853
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17854
    gnu* | linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17855
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17856
	tmp_addflag=
17857
	case $cc_basename,$host_cpu in
17858
	pgcc*)				# Portland Group C compiler
17859
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17860
	  tmp_addflag=' $pic_flag'
17861
	  ;;
17862
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17863
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17864
	  tmp_addflag=' $pic_flag -Mnomain' ;;
17865
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17866
	  tmp_addflag=' -i_dynamic' ;;
17867
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17868
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17869
	ifc* | ifort*)			# Intel Fortran compiler
17870
	  tmp_addflag=' -nofor_main' ;;
17871
	esac
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17872
	case `$CC -V 2>&1 | sed 5q` in
17873
	*Sun\ C*)			# Sun C 5.9
17874
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17875
	  tmp_sharedflag='-G' ;;
17876
	*Sun\ F*)			# Sun Fortran 8.3
17877
	  tmp_sharedflag='-G' ;;
17878
	*)
17879
	  tmp_sharedflag='-shared' ;;
17880
	esac
17881
	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17882
17883
	if test $supports_anon_versioning = yes; then
17884
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17885
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17886
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
17887
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17888
	fi
17889
      else
17890
	ld_shlibs_GCJ=no
17891
      fi
17892
      ;;
17893
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17894
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17895
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17896
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17897
	wlarc=
17898
      else
17899
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17900
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17901
      fi
17902
      ;;
17903
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17904
    solaris*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17905
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17906
	ld_shlibs_GCJ=no
17907
	cat <<EOF 1>&2
17908
17909
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17910
*** create shared libraries on Solaris systems.  Therefore, libtool
17911
*** is disabling shared libraries support.  We urge you to upgrade GNU
17912
*** binutils to release 2.9.1 or newer.  Another option is to modify
17913
*** your PATH or compiler configuration so that the native linker is
17914
*** used, and then restart.
17915
17916
EOF
17917
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17918
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17919
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17920
      else
17921
	ld_shlibs_GCJ=no
17922
      fi
17923
      ;;
17924
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17925
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17926
      case `$LD -v 2>&1` in
17927
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17928
	ld_shlibs_GCJ=no
17929
	cat <<_LT_EOF 1>&2
17930
17931
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17932
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17933
*** is disabling shared libraries support.  We urge you to upgrade GNU
17934
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17935
*** your PATH or compiler configuration so that the native linker is
17936
*** used, and then restart.
17937
17938
_LT_EOF
17939
	;;
17940
	*)
17941
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17942
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17943
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17944
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17945
	  else
17946
	    ld_shlibs_GCJ=no
17947
	  fi
17948
	;;
17949
      esac
17950
      ;;
17951
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17952
    sunos4*)
17953
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17954
      wlarc=
17955
      hardcode_direct_GCJ=yes
17956
      hardcode_shlibpath_var_GCJ=no
17957
      ;;
17958
17959
    *)
17960
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17961
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17962
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17963
      else
17964
	ld_shlibs_GCJ=no
17965
      fi
17966
      ;;
17967
    esac
17968
17969
    if test "$ld_shlibs_GCJ" = no; then
17970
      runpath_var=
17971
      hardcode_libdir_flag_spec_GCJ=
17972
      export_dynamic_flag_spec_GCJ=
17973
      whole_archive_flag_spec_GCJ=
17974
    fi
17975
  else
17976
    # PORTME fill in a description of your system's linker (not GNU ld)
17977
    case $host_os in
17978
    aix3*)
17979
      allow_undefined_flag_GCJ=unsupported
17980
      always_export_symbols_GCJ=yes
17981
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17982
      # Note: this linker hardcodes the directories in LIBPATH if there
17983
      # are no directories specified by -L.
17984
      hardcode_minus_L_GCJ=yes
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
17985
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17986
	# Neither direct hardcoding nor static linking is supported with a
17987
	# broken collect2.
17988
	hardcode_direct_GCJ=unsupported
17989
      fi
17990
      ;;
17991
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
17992
    aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
17993
      if test "$host_cpu" = ia64; then
17994
	# On IA64, the linker does run time linking by default, so we don't
17995
	# have to do anything special.
17996
	aix_use_runtimelinking=no
17997
	exp_sym_flag='-Bexport'
17998
	no_entry_flag=""
17999
      else
18000
	# If we're using GNU nm, then we don't want the "-C" option.
18001
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18002
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18003
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18004
	else
18005
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18006
	fi
18007
	aix_use_runtimelinking=no
18008
18009
	# Test if we are trying to use run time linking or normal
18010
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18011
	# need to do runtime linking.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18012
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18013
	  for ld_flag in $LDFLAGS; do
18014
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18015
  	    aix_use_runtimelinking=yes
18016
  	    break
18017
  	  fi
18018
	  done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18019
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18020
	esac
18021
18022
	exp_sym_flag='-bexport'
18023
	no_entry_flag='-bnoentry'
18024
      fi
18025
18026
      # When large executables or shared objects are built, AIX ld can
18027
      # have problems creating the table of contents.  If linking a library
18028
      # or program results in "error TOC overflow" add -mminimal-toc to
18029
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18030
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18031
18032
      archive_cmds_GCJ=''
18033
      hardcode_direct_GCJ=yes
18034
      hardcode_libdir_separator_GCJ=':'
18035
      link_all_deplibs_GCJ=yes
18036
18037
      if test "$GCC" = yes; then
18038
	case $host_os in aix4.[012]|aix4.[012].*)
18039
	# We only want to do this on AIX 4.2 and lower, the check
18040
	# below for broken collect2 doesn't work under 4.3+
18041
	  collect2name=`${CC} -print-prog-name=collect2`
18042
	  if test -f "$collect2name" && \
18043
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18044
	  then
18045
  	  # We have reworked collect2
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18046
  	  :
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18047
	  else
18048
  	  # We have old collect2
18049
  	  hardcode_direct_GCJ=unsupported
18050
  	  # It fails to find uninstalled libraries when the uninstalled
18051
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18052
  	  # to unsupported forces relinking
18053
  	  hardcode_minus_L_GCJ=yes
18054
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055
  	  hardcode_libdir_separator_GCJ=
18056
	  fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18057
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18058
	esac
18059
	shared_flag='-shared'
18060
	if test "$aix_use_runtimelinking" = yes; then
18061
	  shared_flag="$shared_flag "'${wl}-G'
18062
	fi
18063
      else
18064
	# not using gcc
18065
	if test "$host_cpu" = ia64; then
18066
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18067
  	# chokes on -Wl,-G. The following line is correct:
18068
	  shared_flag='-G'
18069
	else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18070
	  if test "$aix_use_runtimelinking" = yes; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18071
	    shared_flag='${wl}-G'
18072
	  else
18073
	    shared_flag='${wl}-bM:SRE'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18074
	  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18075
	fi
18076
      fi
18077
18078
      # It seems that -bexpall does not export symbols beginning with
18079
      # underscore (_), so it is better to generate a list of symbols to export.
18080
      always_export_symbols_GCJ=yes
18081
      if test "$aix_use_runtimelinking" = yes; then
18082
	# Warning - without using the other runtime loading flags (-brtl),
18083
	# -berok will link without error, but may produce a broken library.
18084
	allow_undefined_flag_GCJ='-berok'
18085
       # Determine the default libpath from the value encoded in an empty executable.
18086
       cat >conftest.$ac_ext <<_ACEOF
18087
/* confdefs.h.  */
18088
_ACEOF
18089
cat confdefs.h >>conftest.$ac_ext
18090
cat >>conftest.$ac_ext <<_ACEOF
18091
/* end confdefs.h.  */
18092
18093
int
18094
main ()
18095
{
18096
18097
  ;
18098
  return 0;
18099
}
18100
_ACEOF
18101
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18102
if { (ac_try="$ac_link"
18103
case "(($ac_try" in
18104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105
  *) ac_try_echo=$ac_try;;
18106
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18109
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18110
  ac_status=$?
18111
  grep -v '^ *+' conftest.er1 >conftest.err
18112
  rm -f conftest.er1
18113
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18114
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18115
  (exit $ac_status); } && {
18116
	 test -z "$ac_c_werror_flag" ||
18117
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18118
       } && test -s conftest$ac_exeext && {
18119
	 test "$cross_compiling" = yes ||
18120
	 $as_test_x conftest$ac_exeext
18121
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18122
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18123
lt_aix_libpath_sed='
18124
    /Import File Strings/,/^$/ {
18125
	/^0/ {
18126
	    s/^0  *\(.*\)$/\1/
18127
	    p
18128
	}
18129
    }'
18130
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18131
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18132
if test -z "$aix_libpath"; then
18133
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18134
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18135
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18136
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18137
sed 's/^/| /' conftest.$ac_ext >&5
18138
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18139
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18140
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18141
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18142
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18143
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18144
      conftest$ac_exeext conftest.$ac_ext
18145
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18146
18147
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18148
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18149
       else
18150
	if test "$host_cpu" = ia64; then
18151
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18152
	  allow_undefined_flag_GCJ="-z nodefs"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18153
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18154
	else
18155
	 # Determine the default libpath from the value encoded in an empty executable.
18156
	 cat >conftest.$ac_ext <<_ACEOF
18157
/* confdefs.h.  */
18158
_ACEOF
18159
cat confdefs.h >>conftest.$ac_ext
18160
cat >>conftest.$ac_ext <<_ACEOF
18161
/* end confdefs.h.  */
18162
18163
int
18164
main ()
18165
{
18166
18167
  ;
18168
  return 0;
18169
}
18170
_ACEOF
18171
rm -f conftest.$ac_objext conftest$ac_exeext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18172
if { (ac_try="$ac_link"
18173
case "(($ac_try" in
18174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175
  *) ac_try_echo=$ac_try;;
18176
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18177
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18178
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18179
  (eval "$ac_link") 2>conftest.er1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18180
  ac_status=$?
18181
  grep -v '^ *+' conftest.er1 >conftest.err
18182
  rm -f conftest.er1
18183
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18184
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18185
  (exit $ac_status); } && {
18186
	 test -z "$ac_c_werror_flag" ||
18187
	 test ! -s conftest.err
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18188
       } && test -s conftest$ac_exeext && {
18189
	 test "$cross_compiling" = yes ||
18190
	 $as_test_x conftest$ac_exeext
18191
       }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18192
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18193
lt_aix_libpath_sed='
18194
    /Import File Strings/,/^$/ {
18195
	/^0/ {
18196
	    s/^0  *\(.*\)$/\1/
18197
	    p
18198
	}
18199
    }'
18200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18201
# Check for a 64-bit object if we didn't find anything.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18202
if test -z "$aix_libpath"; then
18203
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18204
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18205
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18206
  $as_echo "$as_me: failed program was:" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18207
sed 's/^/| /' conftest.$ac_ext >&5
18208
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18209
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18210
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18211
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18212
rm -rf conftest.dSYM
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18214
      conftest$ac_exeext conftest.$ac_ext
18215
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18216
18217
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18218
	  # Warning - without using the other run time loading flags,
18219
	  # -berok will link without error, but may produce a broken library.
18220
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18221
	  allow_undefined_flag_GCJ=' ${wl}-berok'
18222
	  # Exported symbols can be pulled into shared objects from archives
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18223
	  whole_archive_flag_spec_GCJ='$convenience'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18224
	  archive_cmds_need_lc_GCJ=yes
18225
	  # This is similar to how AIX traditionally builds its shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18226
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18227
	fi
18228
      fi
18229
      ;;
18230
18231
    amigaos*)
18232
      archive_cmds_GCJ='$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)'
18233
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234
      hardcode_minus_L_GCJ=yes
18235
      # see comment about different semantics on the GNU ld section
18236
      ld_shlibs_GCJ=no
18237
      ;;
18238
18239
    bsdi[45]*)
18240
      export_dynamic_flag_spec_GCJ=-rdynamic
18241
      ;;
18242
18243
    cygwin* | mingw* | pw32*)
18244
      # When not using gcc, we currently assume that we are using
18245
      # Microsoft Visual C++.
18246
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18247
      # no search path for DLLs.
18248
      hardcode_libdir_flag_spec_GCJ=' '
18249
      allow_undefined_flag_GCJ=unsupported
18250
      # Tell ltmain to make .lib files, not .a files.
18251
      libext=lib
18252
      # Tell ltmain to make .dll files, not .so files.
18253
      shrext_cmds=".dll"
18254
      # FIXME: Setting linknames here is a bad hack.
18255
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18256
      # The linker will automatically build a .lib file if we build a DLL.
18257
      old_archive_From_new_cmds_GCJ='true'
18258
      # FIXME: Should let the user specify the lib program.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18259
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18260
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18261
      enable_shared_with_static_runtimes_GCJ=yes
18262
      ;;
18263
18264
    darwin* | rhapsody*)
18265
      case $host_os in
18266
        rhapsody* | darwin1.[012])
18267
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18268
         ;;
18269
       *) # Darwin 1.3 on
18270
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18271
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18272
         else
18273
           case ${MACOSX_DEPLOYMENT_TARGET} in
18274
             10.[012])
18275
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18276
               ;;
18277
             10.*)
18278
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18279
               ;;
18280
           esac
18281
         fi
18282
         ;;
18283
      esac
18284
      archive_cmds_need_lc_GCJ=no
18285
      hardcode_direct_GCJ=no
18286
      hardcode_automatic_GCJ=yes
18287
      hardcode_shlibpath_var_GCJ=unsupported
18288
      whole_archive_flag_spec_GCJ=''
18289
      link_all_deplibs_GCJ=yes
18290
    if test "$GCC" = yes ; then
18291
    	output_verbose_link_cmd='echo'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18292
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18293
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18294
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18295
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18296
    else
18297
      case $cc_basename in
18298
        xlc*)
18299
         output_verbose_link_cmd='echo'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18300
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18301
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18302
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18303
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18304
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18305
          ;;
18306
       *)
18307
         ld_shlibs_GCJ=no
18308
          ;;
18309
      esac
18310
    fi
18311
      ;;
18312
18313
    dgux*)
18314
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18315
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18316
      hardcode_shlibpath_var_GCJ=no
18317
      ;;
18318
18319
    freebsd1*)
18320
      ld_shlibs_GCJ=no
18321
      ;;
18322
18323
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18324
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18325
    # does not break anything, and helps significantly (at the cost of a little
18326
    # extra space).
18327
    freebsd2.2*)
18328
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18329
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18330
      hardcode_direct_GCJ=yes
18331
      hardcode_shlibpath_var_GCJ=no
18332
      ;;
18333
18334
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18335
    freebsd2*)
18336
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18337
      hardcode_direct_GCJ=yes
18338
      hardcode_minus_L_GCJ=yes
18339
      hardcode_shlibpath_var_GCJ=no
18340
      ;;
18341
18342
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18343
    freebsd* | dragonfly*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18344
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18345
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18346
      hardcode_direct_GCJ=yes
18347
      hardcode_shlibpath_var_GCJ=no
18348
      ;;
18349
18350
    hpux9*)
18351
      if test "$GCC" = yes; then
18352
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18353
      else
18354
	archive_cmds_GCJ='$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'
18355
      fi
18356
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18357
      hardcode_libdir_separator_GCJ=:
18358
      hardcode_direct_GCJ=yes
18359
18360
      # hardcode_minus_L: Not really in the search PATH,
18361
      # but as the default location of the library.
18362
      hardcode_minus_L_GCJ=yes
18363
      export_dynamic_flag_spec_GCJ='${wl}-E'
18364
      ;;
18365
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18366
    hpux10*)
18367
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18368
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18369
      else
18370
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18371
      fi
18372
      if test "$with_gnu_ld" = no; then
18373
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18374
	hardcode_libdir_separator_GCJ=:
18375
18376
	hardcode_direct_GCJ=yes
18377
	export_dynamic_flag_spec_GCJ='${wl}-E'
18378
18379
	# hardcode_minus_L: Not really in the search PATH,
18380
	# but as the default location of the library.
18381
	hardcode_minus_L_GCJ=yes
18382
      fi
18383
      ;;
18384
18385
    hpux11*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18386
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18387
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18388
	hppa*64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18389
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390
	  ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18391
	ia64*)
18392
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18393
	  ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18394
	*)
18395
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18396
	  ;;
18397
	esac
18398
      else
18399
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18400
	hppa*64*)
18401
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402
	  ;;
18403
	ia64*)
18404
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18405
	  ;;
18406
	*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18407
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18408
	  ;;
18409
	esac
18410
      fi
18411
      if test "$with_gnu_ld" = no; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18412
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18413
	hardcode_libdir_separator_GCJ=:
18414
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18415
	case $host_cpu in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18416
	hppa*64*|ia64*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18417
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18418
	  hardcode_direct_GCJ=no
18419
	  hardcode_shlibpath_var_GCJ=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18420
	  ;;
18421
	*)
18422
	  hardcode_direct_GCJ=yes
18423
	  export_dynamic_flag_spec_GCJ='${wl}-E'
18424
18425
	  # hardcode_minus_L: Not really in the search PATH,
18426
	  # but as the default location of the library.
18427
	  hardcode_minus_L_GCJ=yes
18428
	  ;;
18429
	esac
18430
      fi
18431
      ;;
18432
18433
    irix5* | irix6* | nonstopux*)
18434
      if test "$GCC" = yes; then
18435
	archive_cmds_GCJ='$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'
18436
      else
18437
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18438
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18439
      fi
18440
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18441
      hardcode_libdir_separator_GCJ=:
18442
      link_all_deplibs_GCJ=yes
18443
      ;;
18444
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18445
    netbsd*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18446
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18447
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18448
      else
18449
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18450
      fi
18451
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18452
      hardcode_direct_GCJ=yes
18453
      hardcode_shlibpath_var_GCJ=no
18454
      ;;
18455
18456
    newsos6)
18457
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18458
      hardcode_direct_GCJ=yes
18459
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18460
      hardcode_libdir_separator_GCJ=:
18461
      hardcode_shlibpath_var_GCJ=no
18462
      ;;
18463
18464
    openbsd*)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18465
      if test -f /usr/libexec/ld.so; then
18466
	hardcode_direct_GCJ=yes
18467
	hardcode_shlibpath_var_GCJ=no
18468
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18469
	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18470
	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18471
	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18472
	  export_dynamic_flag_spec_GCJ='${wl}-E'
18473
	else
18474
	  case $host_os in
18475
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18476
	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18477
	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18478
	     ;;
18479
	   *)
18480
	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18481
	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18482
	     ;;
18483
	  esac
18484
        fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18485
      else
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18486
	ld_shlibs_GCJ=no
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18487
      fi
18488
      ;;
18489
18490
    os2*)
18491
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18492
      hardcode_minus_L_GCJ=yes
18493
      allow_undefined_flag_GCJ=unsupported
18494
      archive_cmds_GCJ='$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'
18495
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18496
      ;;
18497
18498
    osf3*)
18499
      if test "$GCC" = yes; then
18500
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18501
	archive_cmds_GCJ='$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'
18502
      else
18503
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18504
	archive_cmds_GCJ='$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'
18505
      fi
18506
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18507
      hardcode_libdir_separator_GCJ=:
18508
      ;;
18509
18510
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18511
      if test "$GCC" = yes; then
18512
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18513
	archive_cmds_GCJ='$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'
18514
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18515
      else
18516
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18517
	archive_cmds_GCJ='$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'
18518
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18519
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18520
18521
	# Both c and cxx compiler support -rpath directly
18522
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18523
      fi
18524
      hardcode_libdir_separator_GCJ=:
18525
      ;;
18526
18527
    solaris*)
18528
      no_undefined_flag_GCJ=' -z text'
18529
      if test "$GCC" = yes; then
18530
	wlarc='${wl}'
18531
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18532
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18533
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18534
      else
18535
	wlarc=''
18536
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18537
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18538
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18539
      fi
18540
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18541
      hardcode_shlibpath_var_GCJ=no
18542
      case $host_os in
18543
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18544
      *)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18545
	# The compiler driver will combine and reorder linker options,
18546
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18547
	# but is careful enough not to reorder.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18548
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18549
	if test "$GCC" = yes; then
18550
	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18551
	else
18552
	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18553
	fi
18554
	;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18555
      esac
18556
      link_all_deplibs_GCJ=yes
18557
      ;;
18558
18559
    sunos4*)
18560
      if test "x$host_vendor" = xsequent; then
18561
	# Use $CC to link under sequent, because it throws in some extra .o
18562
	# files that make .init and .fini sections work.
18563
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18564
      else
18565
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18566
      fi
18567
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18568
      hardcode_direct_GCJ=yes
18569
      hardcode_minus_L_GCJ=yes
18570
      hardcode_shlibpath_var_GCJ=no
18571
      ;;
18572
18573
    sysv4)
18574
      case $host_vendor in
18575
	sni)
18576
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577
	  hardcode_direct_GCJ=yes # is this really true???
18578
	;;
18579
	siemens)
18580
	  ## LD is ld it makes a PLAMLIB
18581
	  ## CC just makes a GrossModule.
18582
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18583
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18584
	  hardcode_direct_GCJ=no
18585
        ;;
18586
	motorola)
18587
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18588
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18589
	;;
18590
      esac
18591
      runpath_var='LD_RUN_PATH'
18592
      hardcode_shlibpath_var_GCJ=no
18593
      ;;
18594
18595
    sysv4.3*)
18596
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18597
      hardcode_shlibpath_var_GCJ=no
18598
      export_dynamic_flag_spec_GCJ='-Bexport'
18599
      ;;
18600
18601
    sysv4*MP*)
18602
      if test -d /usr/nec; then
18603
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18604
	hardcode_shlibpath_var_GCJ=no
18605
	runpath_var=LD_RUN_PATH
18606
	hardcode_runpath_var=yes
18607
	ld_shlibs_GCJ=yes
18608
      fi
18609
      ;;
18610
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18611
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18612
      no_undefined_flag_GCJ='${wl}-z,text'
18613
      archive_cmds_need_lc_GCJ=no
18614
      hardcode_shlibpath_var_GCJ=no
18615
      runpath_var='LD_RUN_PATH'
18616
18617
      if test "$GCC" = yes; then
18618
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18619
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18620
      else
18621
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18622
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18623
      fi
18624
      ;;
18625
18626
    sysv5* | sco3.2v5* | sco5v6*)
18627
      # Note: We can NOT use -z defs as we might desire, because we do not
18628
      # link with -lc, and that would cause any symbols used from libc to
18629
      # always be unresolved, which means just about no library would
18630
      # ever link correctly.  If we're not using GNU ld we use -z text
18631
      # though, which does catch some bad symbols but isn't as heavy-handed
18632
      # as -z defs.
18633
      no_undefined_flag_GCJ='${wl}-z,text'
18634
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18635
      archive_cmds_need_lc_GCJ=no
18636
      hardcode_shlibpath_var_GCJ=no
18637
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18638
      hardcode_libdir_separator_GCJ=':'
18639
      link_all_deplibs_GCJ=yes
18640
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18641
      runpath_var='LD_RUN_PATH'
18642
18643
      if test "$GCC" = yes; then
18644
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18645
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18646
      else
18647
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18648
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18649
      fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18650
      ;;
18651
18652
    uts4*)
18653
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18655
      hardcode_shlibpath_var_GCJ=no
18656
      ;;
18657
18658
    *)
18659
      ld_shlibs_GCJ=no
18660
      ;;
18661
    esac
18662
  fi
18663
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18664
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18665
$as_echo "$ld_shlibs_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18666
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18667
18668
#
18669
# Do we need to explicitly link libc?
18670
#
18671
case "x$archive_cmds_need_lc_GCJ" in
18672
x|xyes)
18673
  # Assume -lc should be added
18674
  archive_cmds_need_lc_GCJ=yes
18675
18676
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18677
    case $archive_cmds_GCJ in
18678
    *'~'*)
18679
      # FIXME: we may have to deal with multi-command sequences.
18680
      ;;
18681
    '$CC '*)
18682
      # Test whether the compiler implicitly links with -lc since on some
18683
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18684
      # to ld, don't add -lc before -lgcc.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18685
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18686
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18687
      $rm conftest*
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18688
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18689
18690
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691
  (eval $ac_compile) 2>&5
18692
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18693
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18694
  (exit $ac_status); } 2>conftest.err; then
18695
        soname=conftest
18696
        lib=conftest
18697
        libobjs=conftest.$ac_objext
18698
        deplibs=
18699
        wl=$lt_prog_compiler_wl_GCJ
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18700
	pic_flag=$lt_prog_compiler_pic_GCJ
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18701
        compiler_flags=-v
18702
        linker_flags=-v
18703
        verstring=
18704
        output_objdir=.
18705
        libname=conftest
18706
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18707
        allow_undefined_flag_GCJ=
18708
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18709
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18710
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18711
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18712
  (exit $ac_status); }
18713
        then
18714
	  archive_cmds_need_lc_GCJ=no
18715
        else
18716
	  archive_cmds_need_lc_GCJ=yes
18717
        fi
18718
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18719
      else
18720
        cat conftest.err 1>&5
18721
      fi
18722
      $rm conftest*
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18723
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18724
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18725
      ;;
18726
    esac
18727
  fi
18728
  ;;
18729
esac
18730
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18731
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18732
$as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18733
library_names_spec=
18734
libname_spec='lib$name'
18735
soname_spec=
18736
shrext_cmds=".so"
18737
postinstall_cmds=
18738
postuninstall_cmds=
18739
finish_cmds=
18740
finish_eval=
18741
shlibpath_var=
18742
shlibpath_overrides_runpath=unknown
18743
version_type=none
18744
dynamic_linker="$host_os ld.so"
18745
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18746
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18747
need_lib_prefix=unknown
18748
hardcode_into_libs=no
18749
18750
# when you set need_version to no, make sure it does not cause -set_version
18751
# flags to be left without arguments
18752
need_version=unknown
18753
18754
case $host_os in
18755
aix3*)
18756
  version_type=linux
18757
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18758
  shlibpath_var=LIBPATH
18759
18760
  # AIX 3 has no versioning support, so we append a major version to the name.
18761
  soname_spec='${libname}${release}${shared_ext}$major'
18762
  ;;
18763
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
18764
aix[4-9]*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18765
  version_type=linux
18766
  need_lib_prefix=no
18767
  need_version=no
18768
  hardcode_into_libs=yes
18769
  if test "$host_cpu" = ia64; then
18770
    # AIX 5 supports IA64
18771
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18772
    shlibpath_var=LD_LIBRARY_PATH
18773
  else
18774
    # With GCC up to 2.95.x, collect2 would create an import file
18775
    # for dependence libraries.  The import file would start with
18776
    # the line `#! .'.  This would cause the generated library to
18777
    # depend on `.', always an invalid library.  This was fixed in
18778
    # development snapshots of GCC prior to 3.0.
18779
    case $host_os in
18780
      aix4 | aix4.[01] | aix4.[01].*)
18781
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18782
	   echo ' yes '
18783
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18784
	:
18785
      else
18786
	can_build_shared=no
18787
      fi
18788
      ;;
18789
    esac
18790
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18791
    # soname into executable. Probably we can add versioning support to
18792
    # collect2, so additional links can be useful in future.
18793
    if test "$aix_use_runtimelinking" = yes; then
18794
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18795
      # instead of lib<name>.a to let people know that these are not
18796
      # typical AIX shared libraries.
18797
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798
    else
18799
      # We preserve .a as extension for shared libraries through AIX4.2
18800
      # and later when we are not doing run time linking.
18801
      library_names_spec='${libname}${release}.a $libname.a'
18802
      soname_spec='${libname}${release}${shared_ext}$major'
18803
    fi
18804
    shlibpath_var=LIBPATH
18805
  fi
18806
  ;;
18807
18808
amigaos*)
18809
  library_names_spec='$libname.ixlibrary $libname.a'
18810
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18811
  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'
18812
  ;;
18813
18814
beos*)
18815
  library_names_spec='${libname}${shared_ext}'
18816
  dynamic_linker="$host_os ld.so"
18817
  shlibpath_var=LIBRARY_PATH
18818
  ;;
18819
18820
bsdi[45]*)
18821
  version_type=linux
18822
  need_version=no
18823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824
  soname_spec='${libname}${release}${shared_ext}$major'
18825
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18826
  shlibpath_var=LD_LIBRARY_PATH
18827
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18828
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18829
  # the default ld.so.conf also contains /usr/contrib/lib and
18830
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18831
  # libtool to hard-code these into programs
18832
  ;;
18833
18834
cygwin* | mingw* | pw32*)
18835
  version_type=windows
18836
  shrext_cmds=".dll"
18837
  need_version=no
18838
  need_lib_prefix=no
18839
18840
  case $GCC,$host_os in
18841
  yes,cygwin* | yes,mingw* | yes,pw32*)
18842
    library_names_spec='$libname.dll.a'
18843
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18844
    postinstall_cmds='base_file=`basename \${file}`~
18845
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18846
      dldir=$destdir/`dirname \$dlpath`~
18847
      test -d \$dldir || mkdir -p \$dldir~
18848
      $install_prog $dir/$dlname \$dldir/$dlname~
18849
      chmod a+x \$dldir/$dlname'
18850
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18851
      dlpath=$dir/\$dldll~
18852
       $rm \$dlpath'
18853
    shlibpath_overrides_runpath=yes
18854
18855
    case $host_os in
18856
    cygwin*)
18857
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18858
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18859
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18860
      ;;
18861
    mingw*)
18862
      # MinGW DLLs use traditional 'lib' prefix
18863
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18864
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18865
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18866
        # It is most probably a Windows format PATH printed by
18867
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18868
        # path with ; separators, and with drive letters. We can handle the
18869
        # drive letters (cygwin fileutils understands them), so leave them,
18870
        # especially as we might pass files found there to a mingw objdump,
18871
        # which wouldn't understand a cygwinified path. Ahh.
18872
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18873
      else
18874
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18875
      fi
18876
      ;;
18877
    pw32*)
18878
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18879
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18880
      ;;
18881
    esac
18882
    ;;
18883
18884
  *)
18885
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18886
    ;;
18887
  esac
18888
  dynamic_linker='Win32 ld.exe'
18889
  # FIXME: first we should search . and the directory the executable is in
18890
  shlibpath_var=PATH
18891
  ;;
18892
18893
darwin* | rhapsody*)
18894
  dynamic_linker="$host_os dyld"
18895
  version_type=darwin
18896
  need_lib_prefix=no
18897
  need_version=no
18898
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18899
  soname_spec='${libname}${release}${major}$shared_ext'
18900
  shlibpath_overrides_runpath=yes
18901
  shlibpath_var=DYLD_LIBRARY_PATH
18902
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18903
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18904
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18905
  ;;
18906
18907
dgux*)
18908
  version_type=linux
18909
  need_lib_prefix=no
18910
  need_version=no
18911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18912
  soname_spec='${libname}${release}${shared_ext}$major'
18913
  shlibpath_var=LD_LIBRARY_PATH
18914
  ;;
18915
18916
freebsd1*)
18917
  dynamic_linker=no
18918
  ;;
18919
18920
freebsd* | dragonfly*)
18921
  # DragonFly does not have aout.  When/if they implement a new
18922
  # versioning mechanism, adjust this.
18923
  if test -x /usr/bin/objformat; then
18924
    objformat=`/usr/bin/objformat`
18925
  else
18926
    case $host_os in
18927
    freebsd[123]*) objformat=aout ;;
18928
    *) objformat=elf ;;
18929
    esac
18930
  fi
18931
  version_type=freebsd-$objformat
18932
  case $version_type in
18933
    freebsd-elf*)
18934
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18935
      need_version=no
18936
      need_lib_prefix=no
18937
      ;;
18938
    freebsd-*)
18939
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18940
      need_version=yes
18941
      ;;
18942
  esac
18943
  shlibpath_var=LD_LIBRARY_PATH
18944
  case $host_os in
18945
  freebsd2*)
18946
    shlibpath_overrides_runpath=yes
18947
    ;;
18948
  freebsd3.[01]* | freebsdelf3.[01]*)
18949
    shlibpath_overrides_runpath=yes
18950
    hardcode_into_libs=yes
18951
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18952
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18953
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18954
    shlibpath_overrides_runpath=no
18955
    hardcode_into_libs=yes
18956
    ;;
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
18957
  *) # from 4.6 on, and DragonFly
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
18958
    shlibpath_overrides_runpath=yes
18959
    hardcode_into_libs=yes
18960
    ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
18961
  esac
18962
  ;;
18963
18964
gnu*)
18965
  version_type=linux
18966
  need_lib_prefix=no
18967
  need_version=no
18968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18969
  soname_spec='${libname}${release}${shared_ext}$major'
18970
  shlibpath_var=LD_LIBRARY_PATH
18971
  hardcode_into_libs=yes
18972
  ;;
18973
18974
hpux9* | hpux10* | hpux11*)
18975
  # Give a soname corresponding to the major version so that dld.sl refuses to
18976
  # link against other versions.
18977
  version_type=sunos
18978
  need_lib_prefix=no
18979
  need_version=no
18980
  case $host_cpu in
18981
  ia64*)
18982
    shrext_cmds='.so'
18983
    hardcode_into_libs=yes
18984
    dynamic_linker="$host_os dld.so"
18985
    shlibpath_var=LD_LIBRARY_PATH
18986
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18987
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988
    soname_spec='${libname}${release}${shared_ext}$major'
18989
    if test "X$HPUX_IA64_MODE" = X32; then
18990
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18991
    else
18992
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18993
    fi
18994
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18995
    ;;
18996
   hppa*64*)
18997
     shrext_cmds='.sl'
18998
     hardcode_into_libs=yes
18999
     dynamic_linker="$host_os dld.sl"
19000
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19001
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19002
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19003
     soname_spec='${libname}${release}${shared_ext}$major'
19004
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19005
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19006
     ;;
19007
   *)
19008
    shrext_cmds='.sl'
19009
    dynamic_linker="$host_os dld.sl"
19010
    shlibpath_var=SHLIB_PATH
19011
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19012
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013
    soname_spec='${libname}${release}${shared_ext}$major'
19014
    ;;
19015
  esac
19016
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19017
  postinstall_cmds='chmod 555 $lib'
19018
  ;;
19019
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19020
interix[3-9]*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19021
  version_type=linux
19022
  need_lib_prefix=no
19023
  need_version=no
19024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19025
  soname_spec='${libname}${release}${shared_ext}$major'
19026
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19027
  shlibpath_var=LD_LIBRARY_PATH
19028
  shlibpath_overrides_runpath=no
19029
  hardcode_into_libs=yes
19030
  ;;
19031
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19032
irix5* | irix6* | nonstopux*)
19033
  case $host_os in
19034
    nonstopux*) version_type=nonstopux ;;
19035
    *)
19036
	if test "$lt_cv_prog_gnu_ld" = yes; then
19037
		version_type=linux
19038
	else
19039
		version_type=irix
19040
	fi ;;
19041
  esac
19042
  need_lib_prefix=no
19043
  need_version=no
19044
  soname_spec='${libname}${release}${shared_ext}$major'
19045
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19046
  case $host_os in
19047
  irix5* | nonstopux*)
19048
    libsuff= shlibsuff=
19049
    ;;
19050
  *)
19051
    case $LD in # libtool.m4 will add one of these switches to LD
19052
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19053
      libsuff= shlibsuff= libmagic=32-bit;;
19054
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19055
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19056
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19057
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19058
    *) libsuff= shlibsuff= libmagic=never-match;;
19059
    esac
19060
    ;;
19061
  esac
19062
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19063
  shlibpath_overrides_runpath=no
19064
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19065
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19066
  hardcode_into_libs=yes
19067
  ;;
19068
19069
# No shared lib support for Linux oldld, aout, or coff.
19070
linux*oldld* | linux*aout* | linux*coff*)
19071
  dynamic_linker=no
19072
  ;;
19073
19074
# This must be Linux ELF.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19075
linux* | k*bsd*-gnu)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19076
  version_type=linux
19077
  need_lib_prefix=no
19078
  need_version=no
19079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080
  soname_spec='${libname}${release}${shared_ext}$major'
19081
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19082
  shlibpath_var=LD_LIBRARY_PATH
19083
  shlibpath_overrides_runpath=no
19084
  # This implies no fast_install, which is unacceptable.
19085
  # Some rework will be needed to allow for fast_install
19086
  # before this can be enabled.
19087
  hardcode_into_libs=yes
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19088
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19089
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19090
19091
  # Append ld.so.conf contents to the search path
19092
  if test -f /etc/ld.so.conf; then
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19093
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19094
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19095
  fi
19096
19097
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19098
  # powerpc, because MkLinux only supported shared libraries with the
19099
  # GNU dynamic linker.  Since this was broken with cross compilers,
19100
  # most powerpc-linux boxes support dynamic linking these days and
19101
  # people can always --disable-shared, the test was removed, and we
19102
  # assume the GNU/Linux dynamic linker is in use.
19103
  dynamic_linker='GNU/Linux ld.so'
19104
  ;;
19105
19106
netbsd*)
19107
  version_type=sunos
19108
  need_lib_prefix=no
19109
  need_version=no
19110
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19111
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19112
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19113
    dynamic_linker='NetBSD (a.out) ld.so'
19114
  else
19115
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19116
    soname_spec='${libname}${release}${shared_ext}$major'
19117
    dynamic_linker='NetBSD ld.elf_so'
19118
  fi
19119
  shlibpath_var=LD_LIBRARY_PATH
19120
  shlibpath_overrides_runpath=yes
19121
  hardcode_into_libs=yes
19122
  ;;
19123
19124
newsos6)
19125
  version_type=linux
19126
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19127
  shlibpath_var=LD_LIBRARY_PATH
19128
  shlibpath_overrides_runpath=yes
19129
  ;;
19130
19131
nto-qnx*)
19132
  version_type=linux
19133
  need_lib_prefix=no
19134
  need_version=no
19135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136
  soname_spec='${libname}${release}${shared_ext}$major'
19137
  shlibpath_var=LD_LIBRARY_PATH
19138
  shlibpath_overrides_runpath=yes
19139
  ;;
19140
19141
openbsd*)
19142
  version_type=sunos
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19143
  sys_lib_dlsearch_path_spec="/usr/lib"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19144
  need_lib_prefix=no
19145
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19146
  case $host_os in
19147
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19148
    *)                         need_version=no  ;;
19149
  esac
19150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19151
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19152
  shlibpath_var=LD_LIBRARY_PATH
19153
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19154
    case $host_os in
19155
      openbsd2.[89] | openbsd2.[89].*)
19156
	shlibpath_overrides_runpath=no
19157
	;;
19158
      *)
19159
	shlibpath_overrides_runpath=yes
19160
	;;
19161
      esac
19162
  else
19163
    shlibpath_overrides_runpath=yes
19164
  fi
19165
  ;;
19166
19167
os2*)
19168
  libname_spec='$name'
19169
  shrext_cmds=".dll"
19170
  need_lib_prefix=no
19171
  library_names_spec='$libname${shared_ext} $libname.a'
19172
  dynamic_linker='OS/2 ld.exe'
19173
  shlibpath_var=LIBPATH
19174
  ;;
19175
19176
osf3* | osf4* | osf5*)
19177
  version_type=osf
19178
  need_lib_prefix=no
19179
  need_version=no
19180
  soname_spec='${libname}${release}${shared_ext}$major'
19181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19182
  shlibpath_var=LD_LIBRARY_PATH
19183
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19184
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19185
  ;;
19186
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19187
rdos*)
19188
  dynamic_linker=no
19189
  ;;
19190
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19191
solaris*)
19192
  version_type=linux
19193
  need_lib_prefix=no
19194
  need_version=no
19195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196
  soname_spec='${libname}${release}${shared_ext}$major'
19197
  shlibpath_var=LD_LIBRARY_PATH
19198
  shlibpath_overrides_runpath=yes
19199
  hardcode_into_libs=yes
19200
  # ldd complains unless libraries are executable
19201
  postinstall_cmds='chmod +x $lib'
19202
  ;;
19203
19204
sunos4*)
19205
  version_type=sunos
19206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19207
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19208
  shlibpath_var=LD_LIBRARY_PATH
19209
  shlibpath_overrides_runpath=yes
19210
  if test "$with_gnu_ld" = yes; then
19211
    need_lib_prefix=no
19212
  fi
19213
  need_version=yes
19214
  ;;
19215
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19216
sysv4 | sysv4.3*)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19217
  version_type=linux
19218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219
  soname_spec='${libname}${release}${shared_ext}$major'
19220
  shlibpath_var=LD_LIBRARY_PATH
19221
  case $host_vendor in
19222
    sni)
19223
      shlibpath_overrides_runpath=no
19224
      need_lib_prefix=no
19225
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19226
      runpath_var=LD_RUN_PATH
19227
      ;;
19228
    siemens)
19229
      need_lib_prefix=no
19230
      ;;
19231
    motorola)
19232
      need_lib_prefix=no
19233
      need_version=no
19234
      shlibpath_overrides_runpath=no
19235
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19236
      ;;
19237
  esac
19238
  ;;
19239
19240
sysv4*MP*)
19241
  if test -d /usr/nec ;then
19242
    version_type=linux
19243
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19244
    soname_spec='$libname${shared_ext}.$major'
19245
    shlibpath_var=LD_LIBRARY_PATH
19246
  fi
19247
  ;;
19248
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19249
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19250
  version_type=freebsd-elf
19251
  need_lib_prefix=no
19252
  need_version=no
19253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19254
  soname_spec='${libname}${release}${shared_ext}$major'
19255
  shlibpath_var=LD_LIBRARY_PATH
19256
  hardcode_into_libs=yes
19257
  if test "$with_gnu_ld" = yes; then
19258
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19259
    shlibpath_overrides_runpath=no
19260
  else
19261
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19262
    shlibpath_overrides_runpath=yes
19263
    case $host_os in
19264
      sco3.2v5*)
19265
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19266
	;;
19267
    esac
19268
  fi
19269
  sys_lib_dlsearch_path_spec='/usr/lib'
19270
  ;;
19271
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19272
uts4*)
19273
  version_type=linux
19274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275
  soname_spec='${libname}${release}${shared_ext}$major'
19276
  shlibpath_var=LD_LIBRARY_PATH
19277
  ;;
19278
19279
*)
19280
  dynamic_linker=no
19281
  ;;
19282
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19283
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19284
$as_echo "$dynamic_linker" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19285
test "$dynamic_linker" = no && can_build_shared=no
19286
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19287
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19288
  $as_echo_n "(cached) " >&6
19289
else
19290
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19291
fi
19292
19293
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19294
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19295
  $as_echo_n "(cached) " >&6
19296
else
19297
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19298
fi
19299
19300
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19301
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19302
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19303
if test "$GCC" = yes; then
19304
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19305
fi
19306
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19307
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19308
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19309
hardcode_action_GCJ=
19310
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19311
   test -n "$runpath_var_GCJ" || \
19312
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19313
19314
  # We can hardcode non-existant directories.
19315
  if test "$hardcode_direct_GCJ" != no &&
19316
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19317
     # have to relink, otherwise we might link with an installed library
19318
     # when we should be linking with a yet-to-be-installed one
19319
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19320
     test "$hardcode_minus_L_GCJ" != no; then
19321
    # Linking always hardcodes the temporary library directory.
19322
    hardcode_action_GCJ=relink
19323
  else
19324
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19325
    hardcode_action_GCJ=immediate
19326
  fi
19327
else
19328
  # We cannot hardcode anything, or else we can only hardcode existing
19329
  # directories.
19330
  hardcode_action_GCJ=unsupported
19331
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19332
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19333
$as_echo "$hardcode_action_GCJ" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19334
19335
if test "$hardcode_action_GCJ" = relink; then
19336
  # Fast installation is not supported
19337
  enable_fast_install=no
19338
elif test "$shlibpath_overrides_runpath" = yes ||
19339
     test "$enable_shared" = no; then
19340
  # Fast installation is not necessary
19341
  enable_fast_install=needless
19342
fi
19343
19344
19345
# The else clause should only fire when bootstrapping the
19346
# libtool distribution, otherwise you forgot to ship ltmain.sh
19347
# with your package, and you will get complaints that there are
19348
# no rules to generate ltmain.sh.
19349
if test -f "$ltmain"; then
19350
  # See if we are running on zsh, and set the options which allow our commands through
19351
  # without removal of \ escapes.
19352
  if test -n "${ZSH_VERSION+set}" ; then
19353
    setopt NO_GLOB_SUBST
19354
  fi
19355
  # Now quote all the things that may contain metacharacters while being
19356
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19357
  # variables and quote the copies for generation of the libtool script.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19358
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19359
    SED SHELL STRIP \
19360
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19361
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19362
    deplibs_check_method reload_flag reload_cmds need_locks \
19363
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19364
    lt_cv_sys_global_symbol_to_c_name_address \
19365
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19366
    old_postinstall_cmds old_postuninstall_cmds \
19367
    compiler_GCJ \
19368
    CC_GCJ \
19369
    LD_GCJ \
19370
    lt_prog_compiler_wl_GCJ \
19371
    lt_prog_compiler_pic_GCJ \
19372
    lt_prog_compiler_static_GCJ \
19373
    lt_prog_compiler_no_builtin_flag_GCJ \
19374
    export_dynamic_flag_spec_GCJ \
19375
    thread_safe_flag_spec_GCJ \
19376
    whole_archive_flag_spec_GCJ \
19377
    enable_shared_with_static_runtimes_GCJ \
19378
    old_archive_cmds_GCJ \
19379
    old_archive_from_new_cmds_GCJ \
19380
    predep_objects_GCJ \
19381
    postdep_objects_GCJ \
19382
    predeps_GCJ \
19383
    postdeps_GCJ \
19384
    compiler_lib_search_path_GCJ \
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19385
    compiler_lib_search_dirs_GCJ \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19386
    archive_cmds_GCJ \
19387
    archive_expsym_cmds_GCJ \
19388
    postinstall_cmds_GCJ \
19389
    postuninstall_cmds_GCJ \
19390
    old_archive_from_expsyms_cmds_GCJ \
19391
    allow_undefined_flag_GCJ \
19392
    no_undefined_flag_GCJ \
19393
    export_symbols_cmds_GCJ \
19394
    hardcode_libdir_flag_spec_GCJ \
19395
    hardcode_libdir_flag_spec_ld_GCJ \
19396
    hardcode_libdir_separator_GCJ \
19397
    hardcode_automatic_GCJ \
19398
    module_cmds_GCJ \
19399
    module_expsym_cmds_GCJ \
19400
    lt_cv_prog_compiler_c_o_GCJ \
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19401
    fix_srcfile_path_GCJ \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19402
    exclude_expsyms_GCJ \
19403
    include_expsyms_GCJ; do
19404
19405
    case $var in
19406
    old_archive_cmds_GCJ | \
19407
    old_archive_from_new_cmds_GCJ | \
19408
    archive_cmds_GCJ | \
19409
    archive_expsym_cmds_GCJ | \
19410
    module_cmds_GCJ | \
19411
    module_expsym_cmds_GCJ | \
19412
    old_archive_from_expsyms_cmds_GCJ | \
19413
    export_symbols_cmds_GCJ | \
19414
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19415
    postinstall_cmds | postuninstall_cmds | \
19416
    old_postinstall_cmds | old_postuninstall_cmds | \
19417
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19418
      # Double-quote double-evaled strings.
19419
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19420
      ;;
19421
    *)
19422
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19423
      ;;
19424
    esac
19425
  done
19426
19427
  case $lt_echo in
19428
  *'\$0 --fallback-echo"')
19429
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19430
    ;;
19431
  esac
19432
19433
cfgfile="$ofile"
19434
19435
  cat <<__EOF__ >> "$cfgfile"
19436
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19437
19438
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19439
19440
# Shell to use when invoking shell scripts.
19441
SHELL=$lt_SHELL
19442
19443
# Whether or not to build shared libraries.
19444
build_libtool_libs=$enable_shared
19445
19446
# Whether or not to build static libraries.
19447
build_old_libs=$enable_static
19448
19449
# Whether or not to add -lc for building shared libraries.
19450
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19451
19452
# Whether or not to disallow shared libs when runtime libs are static
19453
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19454
19455
# Whether or not to optimize for fast installation.
19456
fast_install=$enable_fast_install
19457
19458
# The host system.
19459
host_alias=$host_alias
19460
host=$host
19461
host_os=$host_os
19462
19463
# The build system.
19464
build_alias=$build_alias
19465
build=$build
19466
build_os=$build_os
19467
19468
# An echo program that does not interpret backslashes.
19469
echo=$lt_echo
19470
19471
# The archiver.
19472
AR=$lt_AR
19473
AR_FLAGS=$lt_AR_FLAGS
19474
19475
# A C compiler.
19476
LTCC=$lt_LTCC
19477
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19478
# LTCC compiler flags.
19479
LTCFLAGS=$lt_LTCFLAGS
19480
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19481
# A language-specific compiler.
19482
CC=$lt_compiler_GCJ
19483
19484
# Is the compiler the GNU C compiler?
19485
with_gcc=$GCC_GCJ
19486
19487
# An ERE matcher.
19488
EGREP=$lt_EGREP
19489
19490
# The linker used to build libraries.
19491
LD=$lt_LD_GCJ
19492
19493
# Whether we need hard or soft links.
19494
LN_S=$lt_LN_S
19495
19496
# A BSD-compatible nm program.
19497
NM=$lt_NM
19498
19499
# A symbol stripping program
19500
STRIP=$lt_STRIP
19501
19502
# Used to examine libraries when file_magic_cmd begins "file"
19503
MAGIC_CMD=$MAGIC_CMD
19504
19505
# Used on cygwin: DLL creation program.
19506
DLLTOOL="$DLLTOOL"
19507
19508
# Used on cygwin: object dumper.
19509
OBJDUMP="$OBJDUMP"
19510
19511
# Used on cygwin: assembler.
19512
AS="$AS"
19513
19514
# The name of the directory that contains temporary libtool files.
19515
objdir=$objdir
19516
19517
# How to create reloadable object files.
19518
reload_flag=$lt_reload_flag
19519
reload_cmds=$lt_reload_cmds
19520
19521
# How to pass a linker flag through the compiler.
19522
wl=$lt_lt_prog_compiler_wl_GCJ
19523
19524
# Object file suffix (normally "o").
19525
objext="$ac_objext"
19526
19527
# Old archive suffix (normally "a").
19528
libext="$libext"
19529
19530
# Shared library suffix (normally ".so").
19531
shrext_cmds='$shrext_cmds'
19532
19533
# Executable file suffix (normally "").
19534
exeext="$exeext"
19535
19536
# Additional compiler flags for building library objects.
19537
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19538
pic_mode=$pic_mode
19539
19540
# What is the maximum length of a command?
19541
max_cmd_len=$lt_cv_sys_max_cmd_len
19542
19543
# Does compiler simultaneously support -c and -o options?
19544
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19545
19546
# Must we lock files when doing compilation?
19547
need_locks=$lt_need_locks
19548
19549
# Do we need the lib prefix for modules?
19550
need_lib_prefix=$need_lib_prefix
19551
19552
# Do we need a version for libraries?
19553
need_version=$need_version
19554
19555
# Whether dlopen is supported.
19556
dlopen_support=$enable_dlopen
19557
19558
# Whether dlopen of programs is supported.
19559
dlopen_self=$enable_dlopen_self
19560
19561
# Whether dlopen of statically linked programs is supported.
19562
dlopen_self_static=$enable_dlopen_self_static
19563
19564
# Compiler flag to prevent dynamic linking.
19565
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19566
19567
# Compiler flag to turn off builtin functions.
19568
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19569
19570
# Compiler flag to allow reflexive dlopens.
19571
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19572
19573
# Compiler flag to generate shared objects directly from archives.
19574
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19575
19576
# Compiler flag to generate thread-safe objects.
19577
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19578
19579
# Library versioning type.
19580
version_type=$version_type
19581
19582
# Format of library name prefix.
19583
libname_spec=$lt_libname_spec
19584
19585
# List of archive names.  First name is the real one, the rest are links.
19586
# The last name is the one that the linker finds with -lNAME.
19587
library_names_spec=$lt_library_names_spec
19588
19589
# The coded name of the library, if different from the real name.
19590
soname_spec=$lt_soname_spec
19591
19592
# Commands used to build and install an old-style archive.
19593
RANLIB=$lt_RANLIB
19594
old_archive_cmds=$lt_old_archive_cmds_GCJ
19595
old_postinstall_cmds=$lt_old_postinstall_cmds
19596
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19597
19598
# Create an old-style archive from a shared archive.
19599
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19600
19601
# Create a temporary old-style archive to link instead of a shared archive.
19602
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19603
19604
# Commands used to build and install a shared archive.
19605
archive_cmds=$lt_archive_cmds_GCJ
19606
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19607
postinstall_cmds=$lt_postinstall_cmds
19608
postuninstall_cmds=$lt_postuninstall_cmds
19609
19610
# Commands used to build a loadable module (assumed same as above if empty)
19611
module_cmds=$lt_module_cmds_GCJ
19612
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19613
19614
# Commands to strip libraries.
19615
old_striplib=$lt_old_striplib
19616
striplib=$lt_striplib
19617
19618
# Dependencies to place before the objects being linked to create a
19619
# shared library.
19620
predep_objects=$lt_predep_objects_GCJ
19621
19622
# Dependencies to place after the objects being linked to create a
19623
# shared library.
19624
postdep_objects=$lt_postdep_objects_GCJ
19625
19626
# Dependencies to place before the objects being linked to create a
19627
# shared library.
19628
predeps=$lt_predeps_GCJ
19629
19630
# Dependencies to place after the objects being linked to create a
19631
# shared library.
19632
postdeps=$lt_postdeps_GCJ
19633
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19634
# The directories searched by this compiler when creating a shared
19635
# library
19636
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19637
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19638
# The library search path used internally by the compiler when linking
19639
# a shared library.
19640
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19641
19642
# Method to check whether dependent libraries are shared objects.
19643
deplibs_check_method=$lt_deplibs_check_method
19644
19645
# Command to use when deplibs_check_method == file_magic.
19646
file_magic_cmd=$lt_file_magic_cmd
19647
19648
# Flag that allows shared libraries with undefined symbols to be built.
19649
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19650
19651
# Flag that forces no undefined symbols.
19652
no_undefined_flag=$lt_no_undefined_flag_GCJ
19653
19654
# Commands used to finish a libtool library installation in a directory.
19655
finish_cmds=$lt_finish_cmds
19656
19657
# Same as above, but a single script fragment to be evaled but not shown.
19658
finish_eval=$lt_finish_eval
19659
19660
# Take the output of nm and produce a listing of raw symbols and C names.
19661
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19662
19663
# Transform the output of nm in a proper C declaration
19664
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19665
19666
# Transform the output of nm in a C name address pair
19667
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19668
19669
# This is the shared library runtime path variable.
19670
runpath_var=$runpath_var
19671
19672
# This is the shared library path variable.
19673
shlibpath_var=$shlibpath_var
19674
19675
# Is shlibpath searched before the hard-coded library search path?
19676
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19677
19678
# How to hardcode a shared library path into an executable.
19679
hardcode_action=$hardcode_action_GCJ
19680
19681
# Whether we should hardcode library paths into libraries.
19682
hardcode_into_libs=$hardcode_into_libs
19683
19684
# Flag to hardcode \$libdir into a binary during linking.
19685
# This must work even if \$libdir does not exist.
19686
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19687
19688
# If ld is used when linking, flag to hardcode \$libdir into
19689
# a binary during linking. This must work even if \$libdir does
19690
# not exist.
19691
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19692
19693
# Whether we need a single -rpath flag with a separated argument.
19694
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19695
19696
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19697
# resulting binary.
19698
hardcode_direct=$hardcode_direct_GCJ
19699
19700
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19701
# resulting binary.
19702
hardcode_minus_L=$hardcode_minus_L_GCJ
19703
19704
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19705
# the resulting binary.
19706
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19707
19708
# Set to yes if building a shared library automatically hardcodes DIR into the library
19709
# and all subsequent libraries and executables linked against it.
19710
hardcode_automatic=$hardcode_automatic_GCJ
19711
19712
# Variables whose values should be saved in libtool wrapper scripts and
19713
# restored at relink time.
19714
variables_saved_for_relink="$variables_saved_for_relink"
19715
19716
# Whether libtool must link a program against all its dependency libraries.
19717
link_all_deplibs=$link_all_deplibs_GCJ
19718
19719
# Compile-time system search path for libraries
19720
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19721
19722
# Run-time system search path for libraries
19723
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19724
19725
# Fix the shell variable \$srcfile for the compiler.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19726
fix_srcfile_path=$lt_fix_srcfile_path
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19727
19728
# Set to yes if exported symbols are required.
19729
always_export_symbols=$always_export_symbols_GCJ
19730
19731
# The commands to list exported symbols.
19732
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19733
19734
# The commands to extract the exported symbol list from a shared archive.
19735
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19736
19737
# Symbols that should not be listed in the preloaded symbols.
19738
exclude_expsyms=$lt_exclude_expsyms_GCJ
19739
19740
# Symbols that must always be exported.
19741
include_expsyms=$lt_include_expsyms_GCJ
19742
19743
# ### END LIBTOOL TAG CONFIG: $tagname
19744
19745
__EOF__
19746
19747
19748
else
19749
  # If there is no Makefile yet, we rely on a make rule to execute
19750
  # `config.status --recheck' to rerun these tests and create the
19751
  # libtool script then.
19752
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19753
  if test -f "$ltmain_in"; then
19754
    test -f Makefile && make "$ltmain"
19755
  fi
19756
fi
19757
19758
19759
ac_ext=c
19760
ac_cpp='$CPP $CPPFLAGS'
19761
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764
19765
CC="$lt_save_CC"
19766
19767
	else
19768
	  tagname=""
19769
	fi
19770
	;;
19771
19772
      RC)
19773
19774
19775
# Source file extension for RC test sources.
19776
ac_ext=rc
19777
19778
# Object file extension for compiled RC test sources.
19779
objext=o
19780
objext_RC=$objext
19781
19782
# Code to be used in simple compile tests
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19783
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19784
19785
# Code to be used in simple link tests
19786
lt_simple_link_test_code="$lt_simple_compile_test_code"
19787
19788
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19789
19790
# If no C compiler was specified, use CC.
19791
LTCC=${LTCC-"$CC"}
19792
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19793
# If no C compiler flags were specified, use CFLAGS.
19794
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19795
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19796
# Allow CC to be a program name with arguments.
19797
compiler=$CC
19798
19799
19800
# save warnings/boilerplate of simple test code
19801
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19802
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19803
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19804
_lt_compiler_boilerplate=`cat conftest.err`
19805
$rm conftest*
19806
19807
ac_outfile=conftest.$ac_objext
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19808
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19809
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19810
_lt_linker_boilerplate=`cat conftest.err`
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19811
$rm -r conftest*
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19812
19813
19814
# Allow CC to be a program name with arguments.
19815
lt_save_CC="$CC"
19816
CC=${RC-"windres"}
19817
compiler=$CC
19818
compiler_RC=$CC
19819
for cc_temp in $compiler""; do
19820
  case $cc_temp in
19821
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19822
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19823
    \-*) ;;
19824
    *) break;;
19825
  esac
19826
done
19827
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19828
19829
lt_cv_prog_compiler_c_o_RC=yes
19830
19831
# The else clause should only fire when bootstrapping the
19832
# libtool distribution, otherwise you forgot to ship ltmain.sh
19833
# with your package, and you will get complaints that there are
19834
# no rules to generate ltmain.sh.
19835
if test -f "$ltmain"; then
19836
  # See if we are running on zsh, and set the options which allow our commands through
19837
  # without removal of \ escapes.
19838
  if test -n "${ZSH_VERSION+set}" ; then
19839
    setopt NO_GLOB_SUBST
19840
  fi
19841
  # Now quote all the things that may contain metacharacters while being
19842
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19843
  # variables and quote the copies for generation of the libtool script.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19844
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19845
    SED SHELL STRIP \
19846
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19847
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19848
    deplibs_check_method reload_flag reload_cmds need_locks \
19849
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19850
    lt_cv_sys_global_symbol_to_c_name_address \
19851
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19852
    old_postinstall_cmds old_postuninstall_cmds \
19853
    compiler_RC \
19854
    CC_RC \
19855
    LD_RC \
19856
    lt_prog_compiler_wl_RC \
19857
    lt_prog_compiler_pic_RC \
19858
    lt_prog_compiler_static_RC \
19859
    lt_prog_compiler_no_builtin_flag_RC \
19860
    export_dynamic_flag_spec_RC \
19861
    thread_safe_flag_spec_RC \
19862
    whole_archive_flag_spec_RC \
19863
    enable_shared_with_static_runtimes_RC \
19864
    old_archive_cmds_RC \
19865
    old_archive_from_new_cmds_RC \
19866
    predep_objects_RC \
19867
    postdep_objects_RC \
19868
    predeps_RC \
19869
    postdeps_RC \
19870
    compiler_lib_search_path_RC \
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
19871
    compiler_lib_search_dirs_RC \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19872
    archive_cmds_RC \
19873
    archive_expsym_cmds_RC \
19874
    postinstall_cmds_RC \
19875
    postuninstall_cmds_RC \
19876
    old_archive_from_expsyms_cmds_RC \
19877
    allow_undefined_flag_RC \
19878
    no_undefined_flag_RC \
19879
    export_symbols_cmds_RC \
19880
    hardcode_libdir_flag_spec_RC \
19881
    hardcode_libdir_flag_spec_ld_RC \
19882
    hardcode_libdir_separator_RC \
19883
    hardcode_automatic_RC \
19884
    module_cmds_RC \
19885
    module_expsym_cmds_RC \
19886
    lt_cv_prog_compiler_c_o_RC \
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
19887
    fix_srcfile_path_RC \
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19888
    exclude_expsyms_RC \
19889
    include_expsyms_RC; do
19890
19891
    case $var in
19892
    old_archive_cmds_RC | \
19893
    old_archive_from_new_cmds_RC | \
19894
    archive_cmds_RC | \
19895
    archive_expsym_cmds_RC | \
19896
    module_cmds_RC | \
19897
    module_expsym_cmds_RC | \
19898
    old_archive_from_expsyms_cmds_RC | \
19899
    export_symbols_cmds_RC | \
19900
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19901
    postinstall_cmds | postuninstall_cmds | \
19902
    old_postinstall_cmds | old_postuninstall_cmds | \
19903
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19904
      # Double-quote double-evaled strings.
19905
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19906
      ;;
19907
    *)
19908
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19909
      ;;
19910
    esac
19911
  done
19912
19913
  case $lt_echo in
19914
  *'\$0 --fallback-echo"')
19915
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19916
    ;;
19917
  esac
19918
19919
cfgfile="$ofile"
19920
19921
  cat <<__EOF__ >> "$cfgfile"
19922
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19923
19924
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19925
19926
# Shell to use when invoking shell scripts.
19927
SHELL=$lt_SHELL
19928
19929
# Whether or not to build shared libraries.
19930
build_libtool_libs=$enable_shared
19931
19932
# Whether or not to build static libraries.
19933
build_old_libs=$enable_static
19934
19935
# Whether or not to add -lc for building shared libraries.
19936
build_libtool_need_lc=$archive_cmds_need_lc_RC
19937
19938
# Whether or not to disallow shared libs when runtime libs are static
19939
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19940
19941
# Whether or not to optimize for fast installation.
19942
fast_install=$enable_fast_install
19943
19944
# The host system.
19945
host_alias=$host_alias
19946
host=$host
19947
host_os=$host_os
19948
19949
# The build system.
19950
build_alias=$build_alias
19951
build=$build
19952
build_os=$build_os
19953
19954
# An echo program that does not interpret backslashes.
19955
echo=$lt_echo
19956
19957
# The archiver.
19958
AR=$lt_AR
19959
AR_FLAGS=$lt_AR_FLAGS
19960
19961
# A C compiler.
19962
LTCC=$lt_LTCC
19963
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
19964
# LTCC compiler flags.
19965
LTCFLAGS=$lt_LTCFLAGS
19966
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
19967
# A language-specific compiler.
19968
CC=$lt_compiler_RC
19969
19970
# Is the compiler the GNU C compiler?
19971
with_gcc=$GCC_RC
19972
19973
# An ERE matcher.
19974
EGREP=$lt_EGREP
19975
19976
# The linker used to build libraries.
19977
LD=$lt_LD_RC
19978
19979
# Whether we need hard or soft links.
19980
LN_S=$lt_LN_S
19981
19982
# A BSD-compatible nm program.
19983
NM=$lt_NM
19984
19985
# A symbol stripping program
19986
STRIP=$lt_STRIP
19987
19988
# Used to examine libraries when file_magic_cmd begins "file"
19989
MAGIC_CMD=$MAGIC_CMD
19990
19991
# Used on cygwin: DLL creation program.
19992
DLLTOOL="$DLLTOOL"
19993
19994
# Used on cygwin: object dumper.
19995
OBJDUMP="$OBJDUMP"
19996
19997
# Used on cygwin: assembler.
19998
AS="$AS"
19999
20000
# The name of the directory that contains temporary libtool files.
20001
objdir=$objdir
20002
20003
# How to create reloadable object files.
20004
reload_flag=$lt_reload_flag
20005
reload_cmds=$lt_reload_cmds
20006
20007
# How to pass a linker flag through the compiler.
20008
wl=$lt_lt_prog_compiler_wl_RC
20009
20010
# Object file suffix (normally "o").
20011
objext="$ac_objext"
20012
20013
# Old archive suffix (normally "a").
20014
libext="$libext"
20015
20016
# Shared library suffix (normally ".so").
20017
shrext_cmds='$shrext_cmds'
20018
20019
# Executable file suffix (normally "").
20020
exeext="$exeext"
20021
20022
# Additional compiler flags for building library objects.
20023
pic_flag=$lt_lt_prog_compiler_pic_RC
20024
pic_mode=$pic_mode
20025
20026
# What is the maximum length of a command?
20027
max_cmd_len=$lt_cv_sys_max_cmd_len
20028
20029
# Does compiler simultaneously support -c and -o options?
20030
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20031
20032
# Must we lock files when doing compilation?
20033
need_locks=$lt_need_locks
20034
20035
# Do we need the lib prefix for modules?
20036
need_lib_prefix=$need_lib_prefix
20037
20038
# Do we need a version for libraries?
20039
need_version=$need_version
20040
20041
# Whether dlopen is supported.
20042
dlopen_support=$enable_dlopen
20043
20044
# Whether dlopen of programs is supported.
20045
dlopen_self=$enable_dlopen_self
20046
20047
# Whether dlopen of statically linked programs is supported.
20048
dlopen_self_static=$enable_dlopen_self_static
20049
20050
# Compiler flag to prevent dynamic linking.
20051
link_static_flag=$lt_lt_prog_compiler_static_RC
20052
20053
# Compiler flag to turn off builtin functions.
20054
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20055
20056
# Compiler flag to allow reflexive dlopens.
20057
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20058
20059
# Compiler flag to generate shared objects directly from archives.
20060
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20061
20062
# Compiler flag to generate thread-safe objects.
20063
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20064
20065
# Library versioning type.
20066
version_type=$version_type
20067
20068
# Format of library name prefix.
20069
libname_spec=$lt_libname_spec
20070
20071
# List of archive names.  First name is the real one, the rest are links.
20072
# The last name is the one that the linker finds with -lNAME.
20073
library_names_spec=$lt_library_names_spec
20074
20075
# The coded name of the library, if different from the real name.
20076
soname_spec=$lt_soname_spec
20077
20078
# Commands used to build and install an old-style archive.
20079
RANLIB=$lt_RANLIB
20080
old_archive_cmds=$lt_old_archive_cmds_RC
20081
old_postinstall_cmds=$lt_old_postinstall_cmds
20082
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20083
20084
# Create an old-style archive from a shared archive.
20085
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20086
20087
# Create a temporary old-style archive to link instead of a shared archive.
20088
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20089
20090
# Commands used to build and install a shared archive.
20091
archive_cmds=$lt_archive_cmds_RC
20092
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20093
postinstall_cmds=$lt_postinstall_cmds
20094
postuninstall_cmds=$lt_postuninstall_cmds
20095
20096
# Commands used to build a loadable module (assumed same as above if empty)
20097
module_cmds=$lt_module_cmds_RC
20098
module_expsym_cmds=$lt_module_expsym_cmds_RC
20099
20100
# Commands to strip libraries.
20101
old_striplib=$lt_old_striplib
20102
striplib=$lt_striplib
20103
20104
# Dependencies to place before the objects being linked to create a
20105
# shared library.
20106
predep_objects=$lt_predep_objects_RC
20107
20108
# Dependencies to place after the objects being linked to create a
20109
# shared library.
20110
postdep_objects=$lt_postdep_objects_RC
20111
20112
# Dependencies to place before the objects being linked to create a
20113
# shared library.
20114
predeps=$lt_predeps_RC
20115
20116
# Dependencies to place after the objects being linked to create a
20117
# shared library.
20118
postdeps=$lt_postdeps_RC
20119
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20120
# The directories searched by this compiler when creating a shared
20121
# library
20122
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20123
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20124
# The library search path used internally by the compiler when linking
20125
# a shared library.
20126
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20127
20128
# Method to check whether dependent libraries are shared objects.
20129
deplibs_check_method=$lt_deplibs_check_method
20130
20131
# Command to use when deplibs_check_method == file_magic.
20132
file_magic_cmd=$lt_file_magic_cmd
20133
20134
# Flag that allows shared libraries with undefined symbols to be built.
20135
allow_undefined_flag=$lt_allow_undefined_flag_RC
20136
20137
# Flag that forces no undefined symbols.
20138
no_undefined_flag=$lt_no_undefined_flag_RC
20139
20140
# Commands used to finish a libtool library installation in a directory.
20141
finish_cmds=$lt_finish_cmds
20142
20143
# Same as above, but a single script fragment to be evaled but not shown.
20144
finish_eval=$lt_finish_eval
20145
20146
# Take the output of nm and produce a listing of raw symbols and C names.
20147
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20148
20149
# Transform the output of nm in a proper C declaration
20150
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20151
20152
# Transform the output of nm in a C name address pair
20153
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20154
20155
# This is the shared library runtime path variable.
20156
runpath_var=$runpath_var
20157
20158
# This is the shared library path variable.
20159
shlibpath_var=$shlibpath_var
20160
20161
# Is shlibpath searched before the hard-coded library search path?
20162
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20163
20164
# How to hardcode a shared library path into an executable.
20165
hardcode_action=$hardcode_action_RC
20166
20167
# Whether we should hardcode library paths into libraries.
20168
hardcode_into_libs=$hardcode_into_libs
20169
20170
# Flag to hardcode \$libdir into a binary during linking.
20171
# This must work even if \$libdir does not exist.
20172
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20173
20174
# If ld is used when linking, flag to hardcode \$libdir into
20175
# a binary during linking. This must work even if \$libdir does
20176
# not exist.
20177
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20178
20179
# Whether we need a single -rpath flag with a separated argument.
20180
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20181
20182
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20183
# resulting binary.
20184
hardcode_direct=$hardcode_direct_RC
20185
20186
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20187
# resulting binary.
20188
hardcode_minus_L=$hardcode_minus_L_RC
20189
20190
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20191
# the resulting binary.
20192
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20193
20194
# Set to yes if building a shared library automatically hardcodes DIR into the library
20195
# and all subsequent libraries and executables linked against it.
20196
hardcode_automatic=$hardcode_automatic_RC
20197
20198
# Variables whose values should be saved in libtool wrapper scripts and
20199
# restored at relink time.
20200
variables_saved_for_relink="$variables_saved_for_relink"
20201
20202
# Whether libtool must link a program against all its dependency libraries.
20203
link_all_deplibs=$link_all_deplibs_RC
20204
20205
# Compile-time system search path for libraries
20206
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20207
20208
# Run-time system search path for libraries
20209
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20210
20211
# Fix the shell variable \$srcfile for the compiler.
1.1.7 by Daniel Holbach
Import upstream version 1.20.0
20212
fix_srcfile_path=$lt_fix_srcfile_path
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20213
20214
# Set to yes if exported symbols are required.
20215
always_export_symbols=$always_export_symbols_RC
20216
20217
# The commands to list exported symbols.
20218
export_symbols_cmds=$lt_export_symbols_cmds_RC
20219
20220
# The commands to extract the exported symbol list from a shared archive.
20221
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20222
20223
# Symbols that should not be listed in the preloaded symbols.
20224
exclude_expsyms=$lt_exclude_expsyms_RC
20225
20226
# Symbols that must always be exported.
20227
include_expsyms=$lt_include_expsyms_RC
20228
20229
# ### END LIBTOOL TAG CONFIG: $tagname
20230
20231
__EOF__
20232
20233
20234
else
20235
  # If there is no Makefile yet, we rely on a make rule to execute
20236
  # `config.status --recheck' to rerun these tests and create the
20237
  # libtool script then.
20238
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20239
  if test -f "$ltmain_in"; then
20240
    test -f Makefile && make "$ltmain"
20241
  fi
20242
fi
20243
20244
20245
ac_ext=c
20246
ac_cpp='$CPP $CPPFLAGS'
20247
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20248
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20249
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250
20251
CC="$lt_save_CC"
20252
20253
	;;
20254
20255
      *)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20256
	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20257
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20258
   { (exit 1); exit 1; }; }
20259
	;;
20260
      esac
20261
20262
      # Append the new tag name to the list of available tags.
20263
      if test -n "$tagname" ; then
20264
      available_tags="$available_tags $tagname"
20265
    fi
20266
    fi
20267
  done
20268
  IFS="$lt_save_ifs"
20269
20270
  # Now substitute the updated list of available tags.
20271
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20272
    mv "${ofile}T" "$ofile"
20273
    chmod +x "$ofile"
20274
  else
20275
    rm -f "${ofile}T"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20276
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20277
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20278
   { (exit 1); exit 1; }; }
20279
  fi
20280
fi
20281
20282
20283
20284
# This can be used to rebuild libtool when needed
20285
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20286
20287
# Always use our own libtool.
20288
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20289
20290
# Prevent multiple expansion
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20312
{ $as_echo "$as_me:$LINENO: checking for Win32" >&5
20313
$as_echo_n "checking for Win32... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20314
case "$host" in
20315
  *-*-mingw*)
20316
    gail_native_win32=yes
20317
    ;;
20318
  *)
20319
    gail_native_win32=no
20320
    ;;
20321
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20322
{ $as_echo "$as_me:$LINENO: result: $gail_native_win32" >&5
20323
$as_echo "$gail_native_win32" >&6; }
20324
 if test "$gail_native_win32" = "yes"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20325
  OS_WIN32_TRUE=
20326
  OS_WIN32_FALSE='#'
20327
else
20328
  OS_WIN32_TRUE='#'
20329
  OS_WIN32_FALSE=
20330
fi
20331
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20332
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20333
if test "$gail_native_win32" = "yes"; then
20334
  # Extract the first word of "lib.exe", so it can be a program name with args.
20335
set dummy lib.exe; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20336
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20337
$as_echo_n "checking for $ac_word... " >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20338
if test "${ac_cv_prog_ms_librarian+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20339
  $as_echo_n "(cached) " >&6
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20340
else
20341
  if test -n "$ms_librarian"; then
20342
  ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
20343
else
20344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20345
for as_dir in $PATH
20346
do
20347
  IFS=$as_save_IFS
20348
  test -z "$as_dir" && as_dir=.
20349
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20350
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20351
    ac_cv_prog_ms_librarian="yes"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20352
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20353
    break 2
20354
  fi
20355
done
20356
done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20357
IFS=$as_save_IFS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20358
20359
  test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
20360
fi
20361
fi
20362
ms_librarian=$ac_cv_prog_ms_librarian
20363
if test -n "$ms_librarian"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20364
  { $as_echo "$as_me:$LINENO: result: $ms_librarian" >&5
20365
$as_echo "$ms_librarian" >&6; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20366
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20367
  { $as_echo "$as_me:$LINENO: result: no" >&5
20368
$as_echo "no" >&6; }
20369
fi
20370
20371
20372
fi
20373
 if test "$ms_librarian" = "yes"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20374
  MS_LIB_AVAILABLE_TRUE=
20375
  MS_LIB_AVAILABLE_FALSE='#'
20376
else
20377
  MS_LIB_AVAILABLE_TRUE='#'
20378
  MS_LIB_AVAILABLE_FALSE=
20379
fi
20380
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20381
20382
20383
20384
20385
      ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
20386
  if test -n "$ac_macro_dir"; then
20387
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
20388
  fi
20389
20390
20391
20392
20393
	# Check whether --enable-debug was given.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20394
if test "${enable_debug+set}" = set; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20395
  enableval=$enable_debug;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20396
else
20397
  enable_debug=no
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20398
fi
20399
20400
20401
	if test x$enable_debug = xyes ; then
20402
20403
cat >>confdefs.h <<\_ACEOF
20404
#define GNOME_ENABLE_DEBUG 1
20405
_ACEOF
20406
20407
	fi
20408
20409
20410
20411
    # Check whether --enable-compile-warnings was given.
20412
if test "${enable_compile_warnings+set}" = set; then
20413
  enableval=$enable_compile_warnings;
20414
else
20415
  enable_compile_warnings="maximum"
20416
fi
20417
20418
20419
    warnCFLAGS=
20420
    if test "x$GCC" != xyes; then
20421
	enable_compile_warnings=no
20422
    fi
20423
20424
    warning_flags=
20425
    realsave_CFLAGS="$CFLAGS"
20426
20427
    case "$enable_compile_warnings" in
20428
    no)
20429
	warning_flags=
20430
	;;
20431
    minimum)
20432
	warning_flags="-Wall"
20433
	;;
20434
    yes)
20435
	warning_flags="-Wall -Wmissing-prototypes"
20436
	;;
20437
    maximum|error)
20438
	warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
20439
	CFLAGS="$warning_flags $CFLAGS"
20440
	for option in -Wno-sign-compare; do
20441
		SAVE_CFLAGS="$CFLAGS"
20442
		CFLAGS="$CFLAGS $option"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20443
		{ $as_echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
20444
$as_echo_n "checking whether gcc understands $option... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20445
		cat >conftest.$ac_ext <<_ACEOF
20446
/* confdefs.h.  */
20447
_ACEOF
20448
cat confdefs.h >>conftest.$ac_ext
20449
cat >>conftest.$ac_ext <<_ACEOF
20450
/* end confdefs.h.  */
20451
20452
int
20453
main ()
20454
{
20455
20456
  ;
20457
  return 0;
20458
}
20459
_ACEOF
20460
rm -f conftest.$ac_objext
20461
if { (ac_try="$ac_compile"
20462
case "(($ac_try" in
20463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464
  *) ac_try_echo=$ac_try;;
20465
esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467
$as_echo "$ac_try_echo") >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20468
  (eval "$ac_compile") 2>conftest.er1
20469
  ac_status=$?
20470
  grep -v '^ *+' conftest.er1 >conftest.err
20471
  rm -f conftest.er1
20472
  cat conftest.err >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20473
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20474
  (exit $ac_status); } && {
20475
	 test -z "$ac_c_werror_flag" ||
20476
	 test ! -s conftest.err
20477
       } && test -s conftest.$ac_objext; then
20478
  has_option=yes
20479
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20480
  $as_echo "$as_me: failed program was:" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20481
sed 's/^/| /' conftest.$ac_ext >&5
20482
20483
	has_option=no
20484
fi
20485
20486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487
		CFLAGS="$SAVE_CFLAGS"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20488
		{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
20489
$as_echo "$has_option" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20490
		if test $has_option = yes; then
20491
		  warning_flags="$warning_flags $option"
20492
		fi
20493
		unset has_option
20494
		unset SAVE_CFLAGS
20495
	done
20496
	unset option
20497
	if test "$enable_compile_warnings" = "error" ; then
20498
	    warning_flags="$warning_flags -Werror"
20499
	fi
20500
	;;
20501
    *)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20502
	{ { $as_echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
20503
$as_echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20504
   { (exit 1); exit 1; }; }
20505
	;;
20506
    esac
20507
    CFLAGS="$realsave_CFLAGS"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20508
    { $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
20509
$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
20510
    { $as_echo "$as_me:$LINENO: result: $warning_flags" >&5
20511
$as_echo "$warning_flags" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20512
20513
    # Check whether --enable-iso-c was given.
20514
if test "${enable_iso_c+set}" = set; then
20515
  enableval=$enable_iso_c;
20516
else
20517
  enable_iso_c=no
20518
fi
20519
20520
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20521
    { $as_echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
20522
$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20523
    complCFLAGS=
20524
    if test "x$enable_iso_c" != "xno"; then
20525
	if test "x$GCC" = "xyes"; then
20526
	case " $CFLAGS " in
20527
	    *\ \	-ansi\ \	*) ;;
20528
	    *) complCFLAGS="$complCFLAGS -ansi" ;;
20529
	esac
20530
	case " $CFLAGS " in
20531
	    *\ \	-pedantic\ \	*) ;;
20532
	    *) complCFLAGS="$complCFLAGS -pedantic" ;;
20533
	esac
20534
	fi
20535
    fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20536
    { $as_echo "$as_me:$LINENO: result: $complCFLAGS" >&5
20537
$as_echo "$complCFLAGS" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20538
20539
    WARN_CFLAGS="$warning_flags $complCFLAGS"
20540
20541
20542
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20543
if test "$enable_debug" = "yes"; then
20544
  GAIL_GNOME_DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
20545
else
20546
  GAIL_GNOME_DEBUG_CFLAGS=""
20547
fi
20548
20549
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20550
# FIXME: is this still needed?
20551
# Cache $ACLOCAL_FLAGS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20552
{ $as_echo "$as_me:$LINENO: checking for aclocal flags" >&5
20553
$as_echo_n "checking for aclocal flags... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20554
if test "${ac_cv_atk_aclocal_flags+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20555
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20556
else
20557
20558
   ac_cv_atk_aclocal_flags="$ACLOCAL_FLAGS"
20559
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20560
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20561
{ $as_echo "$as_me:$LINENO: result: $ac_cv_atk_aclocal_flags" >&5
20562
$as_echo "$ac_cv_atk_aclocal_flags" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20563
ACLOCAL="$ACLOCAL $ac_cv_atk_aclocal_flags"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
20564
20565
ATK_PACKAGES="atk"
20566
GTK_PACKAGES="gtk+-2.0"
20567
LIBBONOBO_PACKAGES="libbonobo-2.0"
20568
LIBBONOBOUI_PACKAGES="libbonoboui-2.0"
20569
LIBGNOMEUI_PACKAGES="libgnomeui-2.0"
20570
PANEL_APPLET_PACKAGES="libpanelapplet-2.0"
20571
AT_SPI_PACKAGES="libspi-1.0"
20572
CSPI_PACKAGES="cspi-1.0"
20573
ATK_REQUIRED_VERSION=1.7.2
20574
GTK_REQUIRED_VERSION=1.3.11
20575
LIBBONOBO_REQUIRED_VERSION=1.1.0
20576
LIBBONOBOUI_REQUIRED_VERSION=1.1.0
20577
LIBGNOMEUI_REQUIRED_VERSION=1.1.0
20578
PANEL_APPLET_REQUIRED_VERSION=0.0.18
20579
AT_SPI_REQUIRED_VERSION=0.10.0
20580
CSPI_REQUIRED_VERSION=0.10.0
20581
20582
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20583
20584
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20585
	if test -n "$ac_tool_prefix"; then
20586
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20587
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20588
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20589
$as_echo_n "checking for $ac_word... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20590
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20591
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20592
else
20593
  case $PKG_CONFIG in
20594
  [\\/]* | ?:[\\/]*)
20595
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20596
  ;;
20597
  *)
20598
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20599
for as_dir in $PATH
20600
do
20601
  IFS=$as_save_IFS
20602
  test -z "$as_dir" && as_dir=.
20603
  for ac_exec_ext in '' $ac_executable_extensions; do
20604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20605
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20606
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20607
    break 2
20608
  fi
20609
done
20610
done
20611
IFS=$as_save_IFS
20612
20613
  ;;
20614
esac
20615
fi
20616
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20617
if test -n "$PKG_CONFIG"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20618
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20619
$as_echo "$PKG_CONFIG" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20620
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20621
  { $as_echo "$as_me:$LINENO: result: no" >&5
20622
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20623
fi
20624
20625
20626
fi
20627
if test -z "$ac_cv_path_PKG_CONFIG"; then
20628
  ac_pt_PKG_CONFIG=$PKG_CONFIG
20629
  # Extract the first word of "pkg-config", so it can be a program name with args.
20630
set dummy pkg-config; ac_word=$2
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20631
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20632
$as_echo_n "checking for $ac_word... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20633
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20634
  $as_echo_n "(cached) " >&6
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20635
else
20636
  case $ac_pt_PKG_CONFIG in
20637
  [\\/]* | ?:[\\/]*)
20638
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20639
  ;;
20640
  *)
20641
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20642
for as_dir in $PATH
20643
do
20644
  IFS=$as_save_IFS
20645
  test -z "$as_dir" && as_dir=.
20646
  for ac_exec_ext in '' $ac_executable_extensions; do
20647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20648
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20649
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20650
    break 2
20651
  fi
20652
done
20653
done
20654
IFS=$as_save_IFS
20655
20656
  ;;
20657
esac
20658
fi
20659
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20660
if test -n "$ac_pt_PKG_CONFIG"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20661
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20662
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20663
else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20664
  { $as_echo "$as_me:$LINENO: result: no" >&5
20665
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20666
fi
20667
20668
  if test "x$ac_pt_PKG_CONFIG" = x; then
20669
    PKG_CONFIG=""
20670
  else
20671
    case $cross_compiling:$ac_tool_warned in
20672
yes:)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20673
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20674
whose name does not start with the host triplet.  If you think this
20675
configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20676
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20677
whose name does not start with the host triplet.  If you think this
20678
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20679
ac_tool_warned=yes ;;
20680
esac
20681
    PKG_CONFIG=$ac_pt_PKG_CONFIG
20682
  fi
20683
else
20684
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20685
fi
20686
20687
fi
20688
if test -n "$PKG_CONFIG"; then
20689
	_pkg_min_version=0.9.0
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20690
	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20691
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20692
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20693
		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20694
$as_echo "yes" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20695
	else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20696
		{ $as_echo "$as_me:$LINENO: result: no" >&5
20697
$as_echo "no" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20698
		PKG_CONFIG=""
20699
	fi
20700
20701
fi
20702
20703
pkg_failed=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20704
{ $as_echo "$as_me:$LINENO: checking for DEPS" >&5
20705
$as_echo_n "checking for DEPS... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20706
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20707
if test -n "$DEPS_CFLAGS"; then
20708
    pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
20709
 elif test -n "$PKG_CONFIG"; then
20710
    if test -n "$PKG_CONFIG" && \
20711
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20712
	\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION
20713
	\$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION
20714
	\$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20715
	\$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20716
	\$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION
20717
	\$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION
20718
	\$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
20719
  ($PKG_CONFIG --exists --print-errors "
20720
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20721
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20722
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20723
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20724
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20725
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20726
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
20727
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20728
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20729
  (exit $ac_status); }; then
20730
  pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "
20731
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20732
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20733
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20734
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20735
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20736
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20737
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
20738
else
20739
  pkg_failed=yes
20740
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20741
 else
20742
    pkg_failed=untried
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20743
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20744
if test -n "$DEPS_LIBS"; then
20745
    pkg_cv_DEPS_LIBS="$DEPS_LIBS"
20746
 elif test -n "$PKG_CONFIG"; then
20747
    if test -n "$PKG_CONFIG" && \
20748
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20749
	\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION
20750
	\$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION
20751
	\$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20752
	\$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20753
	\$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION
20754
	\$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION
20755
	\$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
20756
  ($PKG_CONFIG --exists --print-errors "
20757
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20758
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20759
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20760
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20761
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20762
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20763
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
20764
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20765
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20766
  (exit $ac_status); }; then
20767
  pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "
20768
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20769
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20770
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20771
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20772
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20773
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20774
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
20775
else
20776
  pkg_failed=yes
20777
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20778
 else
20779
    pkg_failed=untried
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20780
fi
20781
20782
20783
20784
if test $pkg_failed = yes; then
20785
20786
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20787
        _pkg_short_errors_supported=yes
20788
else
20789
        _pkg_short_errors_supported=no
20790
fi
20791
        if test $_pkg_short_errors_supported = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20792
	        DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20793
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20794
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20795
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20796
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20797
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20798
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20799
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>&1`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20800
        else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20801
	        DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20802
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20803
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20804
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20805
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20806
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20807
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20808
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>&1`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20809
        fi
20810
	# Put the nasty error message in config.log where it belongs
20811
	echo "$DEPS_PKG_ERRORS" >&5
20812
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20813
	{ { $as_echo "$as_me:$LINENO: error: Package requirements (
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20814
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20815
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20816
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20817
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20818
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20819
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20820
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
20821
20822
$DEPS_PKG_ERRORS
20823
20824
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20825
installed software in a non-standard prefix.
20826
20827
Alternatively, you may set the environment variables DEPS_CFLAGS
20828
and DEPS_LIBS to avoid the need to call pkg-config.
20829
See the pkg-config man page for more details.
20830
" >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20831
$as_echo "$as_me: error: Package requirements (
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20832
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20833
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20834
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20835
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20836
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20837
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20838
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
20839
20840
$DEPS_PKG_ERRORS
20841
20842
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20843
installed software in a non-standard prefix.
20844
20845
Alternatively, you may set the environment variables DEPS_CFLAGS
20846
and DEPS_LIBS to avoid the need to call pkg-config.
20847
See the pkg-config man page for more details.
20848
" >&2;}
20849
   { (exit 1); exit 1; }; }
20850
elif test $pkg_failed = untried; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20851
	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20852
is in your PATH or set the PKG_CONFIG environment variable to the full
20853
path to pkg-config.
20854
20855
Alternatively, you may set the environment variables DEPS_CFLAGS
20856
and DEPS_LIBS to avoid the need to call pkg-config.
20857
See the pkg-config man page for more details.
20858
1.1.6 by Aron Sisak
Import upstream version 1.19.5
20859
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20860
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20861
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20862
is in your PATH or set the PKG_CONFIG environment variable to the full
20863
path to pkg-config.
20864
20865
Alternatively, you may set the environment variables DEPS_CFLAGS
20866
and DEPS_LIBS to avoid the need to call pkg-config.
20867
See the pkg-config man page for more details.
20868
1.1.6 by Aron Sisak
Import upstream version 1.19.5
20869
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20870
See \`config.log' for more details." >&2;}
20871
   { (exit 1); exit 1; }; }
20872
else
20873
	DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
20874
	DEPS_LIBS=$pkg_cv_DEPS_LIBS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20875
        { $as_echo "$as_me:$LINENO: result: yes" >&5
20876
$as_echo "yes" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20877
	:
20878
fi
20879
20880
20881
pkg_failed=no
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20882
{ $as_echo "$as_me:$LINENO: checking for TEST" >&5
20883
$as_echo_n "checking for TEST... " >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20884
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20885
if test -n "$TEST_CFLAGS"; then
20886
    pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
20887
 elif test -n "$PKG_CONFIG"; then
20888
    if test -n "$PKG_CONFIG" && \
20889
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20890
	\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION
20891
	\$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION
20892
	\$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20893
	\$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20894
	\$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION
20895
	\$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION
20896
	\$CSPI_PACKAGES >= \$CSPI_REQUIRED_VERSION
20897
	\$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
20898
  ($PKG_CONFIG --exists --print-errors "
20899
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20900
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20901
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20902
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20903
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20904
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20905
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
20906
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
20907
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20908
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20909
  (exit $ac_status); }; then
20910
  pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "
20911
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20912
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20913
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20914
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20915
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20916
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20917
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
20918
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
20919
else
20920
  pkg_failed=yes
20921
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20922
 else
20923
    pkg_failed=untried
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20924
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20925
if test -n "$TEST_LIBS"; then
20926
    pkg_cv_TEST_LIBS="$TEST_LIBS"
20927
 elif test -n "$PKG_CONFIG"; then
20928
    if test -n "$PKG_CONFIG" && \
20929
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20930
	\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION
20931
	\$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION
20932
	\$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20933
	\$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION
20934
	\$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION
20935
	\$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION
20936
	\$CSPI_PACKAGES >= \$CSPI_REQUIRED_VERSION
20937
	\$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
20938
  ($PKG_CONFIG --exists --print-errors "
20939
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20940
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20941
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20942
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20943
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20944
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20945
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
20946
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
20947
  ac_status=$?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20948
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20949
  (exit $ac_status); }; then
20950
  pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "
20951
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20952
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20953
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20954
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20955
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20956
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20957
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
20958
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
20959
else
20960
  pkg_failed=yes
20961
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20962
 else
20963
    pkg_failed=untried
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20964
fi
20965
20966
20967
20968
if test $pkg_failed = yes; then
20969
20970
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20971
        _pkg_short_errors_supported=yes
20972
else
20973
        _pkg_short_errors_supported=no
20974
fi
20975
        if test $_pkg_short_errors_supported = yes; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20976
	        TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20977
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20978
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20979
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20980
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20981
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20982
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20983
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20984
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>&1`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20985
        else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20986
	        TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20987
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
20988
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
20989
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20990
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
20991
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
20992
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
20993
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20994
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>&1`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
20995
        fi
20996
	# Put the nasty error message in config.log where it belongs
20997
	echo "$TEST_PKG_ERRORS" >&5
20998
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
20999
	{ { $as_echo "$as_me:$LINENO: error: Package requirements (
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21000
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
21001
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
21002
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
21003
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
21004
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
21005
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
21006
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
21007
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
21008
21009
$TEST_PKG_ERRORS
21010
21011
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21012
installed software in a non-standard prefix.
21013
21014
Alternatively, you may set the environment variables TEST_CFLAGS
21015
and TEST_LIBS to avoid the need to call pkg-config.
21016
See the pkg-config man page for more details.
21017
" >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21018
$as_echo "$as_me: error: Package requirements (
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21019
	$ATK_PACKAGES >= $ATK_REQUIRED_VERSION
21020
	$GTK_PACKAGES >= $GTK_REQUIRED_VERSION
21021
	$LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
21022
	$LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION
21023
	$LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION
21024
	$AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION
21025
	$CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION
21026
	$PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
21027
21028
$TEST_PKG_ERRORS
21029
21030
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21031
installed software in a non-standard prefix.
21032
21033
Alternatively, you may set the environment variables TEST_CFLAGS
21034
and TEST_LIBS to avoid the need to call pkg-config.
21035
See the pkg-config man page for more details.
21036
" >&2;}
21037
   { (exit 1); exit 1; }; }
21038
elif test $pkg_failed = untried; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21039
	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21040
is in your PATH or set the PKG_CONFIG environment variable to the full
21041
path to pkg-config.
21042
21043
Alternatively, you may set the environment variables TEST_CFLAGS
21044
and TEST_LIBS to avoid the need to call pkg-config.
21045
See the pkg-config man page for more details.
21046
1.1.6 by Aron Sisak
Import upstream version 1.19.5
21047
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21048
See \`config.log' for more details." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21049
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21050
is in your PATH or set the PKG_CONFIG environment variable to the full
21051
path to pkg-config.
21052
21053
Alternatively, you may set the environment variables TEST_CFLAGS
21054
and TEST_LIBS to avoid the need to call pkg-config.
21055
See the pkg-config man page for more details.
21056
1.1.6 by Aron Sisak
Import upstream version 1.19.5
21057
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21058
See \`config.log' for more details." >&2;}
21059
   { (exit 1); exit 1; }; }
21060
else
21061
	TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
21062
	TEST_LIBS=$pkg_cv_TEST_LIBS
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21063
        { $as_echo "$as_me:$LINENO: result: yes" >&5
21064
$as_echo "yes" >&6; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21065
	:
21066
fi
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
ac_config_files="$ac_config_files Makefile libgail-gnome.pc gail-gnome/Makefile test/Makefile"
21078
21079
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21080
cat >confcache <<\_ACEOF
21081
# This file is a shell script that caches the results of configure
21082
# tests run on this system so they can be shared between configure
21083
# scripts and configure runs, see configure's option --config-cache.
21084
# It is not useful on other systems.  If it contains results you don't
21085
# want to keep, you may remove or edit it.
21086
#
21087
# config.status only pays attention to the cache file if you give it
21088
# the --recheck option to rerun configure.
21089
#
21090
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21091
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21092
# following values.
21093
21094
_ACEOF
21095
21096
# The following way of writing the cache mishandles newlines in values,
21097
# but we know of no workaround that is simple, portable, and efficient.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21098
# So, we kill variables containing newlines.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21099
# Ultrix sh set writes to stderr and can't be redirected directly,
21100
# and sets the high bit in the cache file unless we assign to the vars.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21101
(
21102
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21103
    eval ac_val=\$$ac_var
21104
    case $ac_val in #(
21105
    *${as_nl}*)
21106
      case $ac_var in #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21107
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21108
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21109
      esac
21110
      case $ac_var in #(
21111
      _ | IFS | as_nl) ;; #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21112
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21113
      *) $as_unset $ac_var ;;
21114
      esac ;;
21115
    esac
21116
  done
21117
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21118
  (set) 2>&1 |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21119
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21120
    *${as_nl}ac_space=\ *)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21121
      # `set' does not quote correctly, so add quotes (double-quote
21122
      # substitution turns \\\\ into \\, and sed turns \\ into \).
21123
      sed -n \
21124
	"s/'/'\\\\''/g;
21125
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21126
      ;; #(
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21127
    *)
21128
      # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21129
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21130
      ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21131
    esac |
21132
    sort
21133
) |
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21134
  sed '
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21135
     /^ac_cv_env_/b end
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21136
     t clear
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21137
     :clear
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21138
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21139
     t end
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21140
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21141
     :end' >>confcache
21142
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21143
  if test -w "$cache_file"; then
21144
    test "x$cache_file" != "x/dev/null" &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21145
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21146
$as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21147
    cat confcache >$cache_file
21148
  else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21149
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21150
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21151
  fi
21152
fi
21153
rm -f confcache
21154
21155
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21156
# Let make expand exec_prefix.
21157
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21158
21159
DEFS=-DHAVE_CONFIG_H
21160
21161
ac_libobjs=
21162
ac_ltlibobjs=
21163
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21164
  # 1. Remove the extension, and $U if already installed.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21165
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21166
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21167
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21168
  #    will be set to the directory where LIBOBJS objects are built.
21169
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21170
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21171
done
21172
LIBOBJS=$ac_libobjs
21173
21174
LTLIBOBJS=$ac_ltlibobjs
21175
21176
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21177
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21178
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21179
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21180
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21181
Usually this means the macro was only invoked conditionally." >&2;}
21182
   { (exit 1); exit 1; }; }
21183
fi
21184
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21185
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21186
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21187
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21188
Usually this means the macro was only invoked conditionally." >&2;}
21189
   { (exit 1); exit 1; }; }
21190
fi
21191
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21192
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21193
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21194
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21195
Usually this means the macro was only invoked conditionally." >&2;}
21196
   { (exit 1); exit 1; }; }
21197
fi
21198
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21199
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21200
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21201
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21202
Usually this means the macro was only invoked conditionally." >&2;}
21203
   { (exit 1); exit 1; }; }
21204
fi
21205
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21206
  { { $as_echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21207
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21208
$as_echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21209
Usually this means the macro was only invoked conditionally." >&2;}
21210
   { (exit 1); exit 1; }; }
21211
fi
21212
if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21213
  { { $as_echo "$as_me:$LINENO: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21214
Usually this means the macro was only invoked conditionally." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21215
$as_echo "$as_me: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21216
Usually this means the macro was only invoked conditionally." >&2;}
21217
   { (exit 1); exit 1; }; }
21218
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21219
21220
: ${CONFIG_STATUS=./config.status}
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21221
ac_write_fail=0
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21222
ac_clean_files_save=$ac_clean_files
21223
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21224
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21225
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21226
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21227
#! $SHELL
21228
# Generated by $as_me.
21229
# Run this file to recreate the current configuration.
21230
# Compiler output produced by configure, useful for debugging
21231
# configure, is in config.log if it exists.
21232
21233
debug=false
21234
ac_cs_recheck=false
21235
ac_cs_silent=false
21236
SHELL=\${CONFIG_SHELL-$SHELL}
21237
_ACEOF
21238
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21239
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21240
## --------------------- ##
21241
## M4sh Initialization.  ##
21242
## --------------------- ##
21243
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21244
# Be more Bourne compatible
21245
DUALCASE=1; export DUALCASE # for MKS sh
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21246
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21247
  emulate sh
21248
  NULLCMD=:
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21249
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21250
  # is contrary to our usage.  Disable this feature.
21251
  alias -g '${1+"$@"}'='"$@"'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21252
  setopt NO_GLOB_SUBST
21253
else
21254
  case `(set -o) 2>/dev/null` in
21255
  *posix*) set -o posix ;;
21256
esac
21257
21258
fi
21259
21260
21261
21262
21263
# PATH needs CR
21264
# Avoid depending upon Character Ranges.
21265
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21266
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21267
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21268
as_cr_digits='0123456789'
21269
as_cr_alnum=$as_cr_Letters$as_cr_digits
21270
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21271
as_nl='
21272
'
21273
export as_nl
21274
# Printing a long string crashes Solaris 7 /usr/bin/printf.
21275
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21276
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21277
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21278
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21279
  as_echo='printf %s\n'
21280
  as_echo_n='printf %s'
21281
else
21282
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21283
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21284
    as_echo_n='/usr/ucb/echo -n'
21285
  else
21286
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21287
    as_echo_n_body='eval
21288
      arg=$1;
21289
      case $arg in
21290
      *"$as_nl"*)
21291
	expr "X$arg" : "X\\(.*\\)$as_nl";
21292
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21293
      esac;
21294
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21295
    '
21296
    export as_echo_n_body
21297
    as_echo_n='sh -c $as_echo_n_body as_echo'
21298
  fi
21299
  export as_echo_body
21300
  as_echo='sh -c $as_echo_body as_echo'
21301
fi
21302
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21303
# The user is always right.
21304
if test "${PATH_SEPARATOR+set}" != set; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21305
  PATH_SEPARATOR=:
21306
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21307
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21308
      PATH_SEPARATOR=';'
21309
  }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21310
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21311
21312
# Support unset when possible.
21313
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21314
  as_unset=unset
21315
else
21316
  as_unset=false
21317
fi
21318
21319
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21320
# IFS
21321
# We need space, tab and new line, in precisely that order.  Quoting is
21322
# there to prevent editors from complaining about space-tab.
21323
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21324
# splitting by setting IFS to empty value.)
21325
IFS=" ""	$as_nl"
21326
21327
# Find who we are.  Look in the path if we contain no directory separator.
21328
case $0 in
21329
  *[\\/]* ) as_myself=$0 ;;
21330
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21331
for as_dir in $PATH
21332
do
21333
  IFS=$as_save_IFS
21334
  test -z "$as_dir" && as_dir=.
21335
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21336
done
21337
IFS=$as_save_IFS
21338
21339
     ;;
21340
esac
21341
# We did not find ourselves, most probably we were run as `sh COMMAND'
21342
# in which case we are not to be found in the path.
21343
if test "x$as_myself" = x; then
21344
  as_myself=$0
21345
fi
21346
if test ! -f "$as_myself"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21347
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21348
  { (exit 1); exit 1; }
21349
fi
21350
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21351
# Work around bugs in pre-3.0 UWIN ksh.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21352
for as_var in ENV MAIL MAILPATH
21353
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21354
done
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21355
PS1='$ '
21356
PS2='> '
21357
PS4='+ '
21358
21359
# NLS nuisances.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21360
LC_ALL=C
21361
export LC_ALL
21362
LANGUAGE=C
21363
export LANGUAGE
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21364
21365
# Required to use basename.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21366
if expr a : '\(a\)' >/dev/null 2>&1 &&
21367
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21368
  as_expr=expr
21369
else
21370
  as_expr=false
21371
fi
21372
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21373
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21374
  as_basename=basename
21375
else
21376
  as_basename=false
21377
fi
21378
21379
21380
# Name of the executable.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21381
as_me=`$as_basename -- "$0" ||
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21382
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21383
	 X"$0" : 'X\(//\)$' \| \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21384
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21385
$as_echo X/"$0" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21386
    sed '/^.*\/\([^/][^/]*\)\/*$/{
21387
	    s//\1/
21388
	    q
21389
	  }
21390
	  /^X\/\(\/\/\)$/{
21391
	    s//\1/
21392
	    q
21393
	  }
21394
	  /^X\/\(\/\).*/{
21395
	    s//\1/
21396
	    q
21397
	  }
21398
	  s/.*/./; q'`
21399
21400
# CDPATH.
21401
$as_unset CDPATH
21402
21403
21404
21405
  as_lineno_1=$LINENO
21406
  as_lineno_2=$LINENO
21407
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21408
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21409
21410
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21411
  # uniformly replaced by the line number.  The first 'sed' inserts a
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21412
  # line-number line after each line using $LINENO; the second 'sed'
21413
  # does the real work.  The second script uses 'N' to pair each
21414
  # line-number line with the line containing $LINENO, and appends
21415
  # trailing '-' during substitution so that $LINENO is not a special
21416
  # case at line end.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21417
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21418
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21419
  # E. McMahon (1931-1989) for sed's syntax.  :-)
21420
  sed -n '
21421
    p
21422
    /[$]LINENO/=
21423
  ' <$as_myself |
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21424
    sed '
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21425
      s/[$]LINENO.*/&-/
21426
      t lineno
21427
      b
21428
      :lineno
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21429
      N
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21430
      :loop
21431
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21432
      t loop
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21433
      s/-\n.*//
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21434
    ' >$as_me.lineno &&
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21435
  chmod +x "$as_me.lineno" ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21436
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21437
   { (exit 1); exit 1; }; }
21438
21439
  # Don't try to exec as it changes $[0], causing all sort of problems
21440
  # (the dirname of $[0] is not the place where we might find the
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21441
  # original and so on.  Autoconf is especially sensitive to this).
21442
  . "./$as_me.lineno"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21443
  # Exit status is that of the last command.
21444
  exit
21445
}
21446
21447
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21448
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21449
  as_dirname=dirname
21450
else
21451
  as_dirname=false
21452
fi
21453
21454
ECHO_C= ECHO_N= ECHO_T=
21455
case `echo -n x` in
21456
-n*)
21457
  case `echo 'x\c'` in
21458
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21459
  *)   ECHO_C='\c';;
21460
  esac;;
21461
*)
21462
  ECHO_N='-n';;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21463
esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21464
if expr a : '\(a\)' >/dev/null 2>&1 &&
21465
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21466
  as_expr=expr
21467
else
21468
  as_expr=false
21469
fi
21470
21471
rm -f conf$$ conf$$.exe conf$$.file
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21472
if test -d conf$$.dir; then
21473
  rm -f conf$$.dir/conf$$.file
21474
else
21475
  rm -f conf$$.dir
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21476
  mkdir conf$$.dir 2>/dev/null
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21477
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21478
if (echo >conf$$.file) 2>/dev/null; then
21479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
21480
    as_ln_s='ln -s'
21481
    # ... but there are two gotchas:
21482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21484
    # In both cases, we have to default to `cp -p'.
21485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21486
      as_ln_s='cp -p'
21487
  elif ln conf$$.file conf$$ 2>/dev/null; then
21488
    as_ln_s=ln
21489
  else
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21490
    as_ln_s='cp -p'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21491
  fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21492
else
21493
  as_ln_s='cp -p'
21494
fi
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21496
rmdir conf$$.dir 2>/dev/null
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21497
21498
if mkdir -p . 2>/dev/null; then
21499
  as_mkdir_p=:
21500
else
21501
  test -d ./-p && rmdir ./-p
21502
  as_mkdir_p=false
21503
fi
21504
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21505
if test -x / >/dev/null 2>&1; then
21506
  as_test_x='test -x'
21507
else
21508
  if ls -dL / >/dev/null 2>&1; then
21509
    as_ls_L_option=L
21510
  else
21511
    as_ls_L_option=
21512
  fi
21513
  as_test_x='
21514
    eval sh -c '\''
21515
      if test -d "$1"; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21516
	test -d "$1/.";
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21517
      else
21518
	case $1 in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21519
	-*)set "./$1";;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21520
	esac;
21521
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21522
	???[sx]*):;;*)false;;esac;fi
21523
    '\'' sh
21524
  '
21525
fi
21526
as_executable_p=$as_test_x
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21527
21528
# Sed expression to map a string onto a valid CPP name.
21529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21530
21531
# Sed expression to map a string onto a valid variable name.
21532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21533
21534
21535
exec 6>&1
21536
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21537
# Save the log message, to keep $[0] and so on meaningful, and to
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21538
# report actual input values of CONFIG_FILES etc. instead of their
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21539
# values after options handling.
21540
ac_log="
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21541
This file was extended by Gail GNOME $as_me 1.20.1, which was
21542
generated by GNU Autoconf 2.62.  Invocation command line was
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21543
21544
  CONFIG_FILES    = $CONFIG_FILES
21545
  CONFIG_HEADERS  = $CONFIG_HEADERS
21546
  CONFIG_LINKS    = $CONFIG_LINKS
21547
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21548
  $ $0 $@
21549
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21550
on `(hostname || uname -n) 2>/dev/null | sed 1q`
21551
"
21552
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21553
_ACEOF
21554
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21555
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21556
# Files that config.status was made for.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21557
config_files="$ac_config_files"
21558
config_headers="$ac_config_headers"
21559
config_commands="$ac_config_commands"
21560
21561
_ACEOF
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21562
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21563
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21564
ac_cs_usage="\
21565
\`$as_me' instantiates files from templates according to the
21566
current configuration.
21567
21568
Usage: $0 [OPTIONS] [FILE]...
21569
21570
  -h, --help       print this help, then exit
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21571
  -V, --version    print version number and configuration settings, then exit
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21572
  -q, --quiet      do not print progress messages
21573
  -d, --debug      don't remove temporary files
21574
      --recheck    update $as_me by reconfiguring in the same conditions
21575
  --file=FILE[:TEMPLATE]
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21576
                   instantiate the configuration file FILE
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21577
  --header=FILE[:TEMPLATE]
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21578
                   instantiate the configuration header FILE
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21579
21580
Configuration files:
21581
$config_files
21582
21583
Configuration headers:
21584
$config_headers
21585
21586
Configuration commands:
21587
$config_commands
21588
21589
Report bugs to <bug-autoconf@gnu.org>."
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21590
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21591
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21592
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21593
ac_cs_version="\\
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21594
Gail GNOME config.status 1.20.1
21595
configured by $0, generated by GNU Autoconf 2.62,
21596
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21597
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21598
Copyright (C) 2008 Free Software Foundation, Inc.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21599
This config.status script is free software; the Free Software Foundation
21600
gives unlimited permission to copy, distribute and modify it."
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21601
21602
ac_pwd='$ac_pwd'
21603
srcdir='$srcdir'
21604
INSTALL='$INSTALL'
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21605
MKDIR_P='$MKDIR_P'
21606
AWK='$AWK'
21607
test -n "\$AWK" || AWK=awk
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21608
_ACEOF
21609
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21610
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21611
# The default lists apply if the user does not specify any file.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21612
ac_need_defaults=:
21613
while test $# != 0
21614
do
21615
  case $1 in
21616
  --*=*)
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21617
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21618
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21619
    ac_shift=:
21620
    ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21621
  *)
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21622
    ac_option=$1
21623
    ac_optarg=$2
21624
    ac_shift=shift
21625
    ;;
21626
  esac
21627
21628
  case $ac_option in
21629
  # Handling of the options.
21630
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21631
    ac_cs_recheck=: ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21632
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21633
    $as_echo "$ac_cs_version"; exit ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21634
  --debug | --debu | --deb | --de | --d | -d )
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21635
    debug=: ;;
21636
  --file | --fil | --fi | --f )
21637
    $ac_shift
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21638
    case $ac_optarg in
21639
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21640
    esac
21641
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21642
    ac_need_defaults=false;;
21643
  --header | --heade | --head | --hea )
21644
    $ac_shift
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21645
    case $ac_optarg in
21646
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21647
    esac
21648
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21649
    ac_need_defaults=false;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21650
  --he | --h)
21651
    # Conflict between --help and --header
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21652
    { $as_echo "$as_me: error: ambiguous option: $1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21653
Try \`$0 --help' for more information." >&2
21654
   { (exit 1); exit 1; }; };;
21655
  --help | --hel | -h )
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21656
    $as_echo "$ac_cs_usage"; exit ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21657
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21658
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21659
    ac_cs_silent=: ;;
21660
21661
  # This is an error.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21662
  -*) { $as_echo "$as_me: error: unrecognized option: $1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21663
Try \`$0 --help' for more information." >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21664
   { (exit 1); exit 1; }; } ;;
21665
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21666
  *) ac_config_targets="$ac_config_targets $1"
21667
     ac_need_defaults=false ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21668
21669
  esac
21670
  shift
21671
done
21672
21673
ac_configure_extra_args=
21674
21675
if $ac_cs_silent; then
21676
  exec 6>/dev/null
21677
  ac_configure_extra_args="$ac_configure_extra_args --silent"
21678
fi
21679
21680
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21681
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21682
if \$ac_cs_recheck; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21683
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21684
  shift
21685
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21686
  CONFIG_SHELL='$SHELL'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21687
  export CONFIG_SHELL
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21688
  exec "\$@"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21689
fi
21690
21691
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21692
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21693
exec 5>>config.log
21694
{
21695
  echo
21696
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21697
## Running $as_me. ##
21698
_ASBOX
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21699
  $as_echo "$ac_log"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21700
} >&5
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21701
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21702
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21703
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21704
#
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21705
# INIT-COMMANDS
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21706
#
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21707
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21708
21709
_ACEOF
21710
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21711
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21712
21713
# Handling of arguments.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21714
for ac_config_target in $ac_config_targets
21715
do
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21716
  case $ac_config_target in
21717
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21718
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21719
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21720
    "libgail-gnome.pc") CONFIG_FILES="$CONFIG_FILES libgail-gnome.pc" ;;
21721
    "gail-gnome/Makefile") CONFIG_FILES="$CONFIG_FILES gail-gnome/Makefile" ;;
21722
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21723
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21724
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21725
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21726
   { (exit 1); exit 1; }; };;
21727
  esac
21728
done
21729
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21730
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21731
# If the user did not use the arguments to specify the items to instantiate,
21732
# then the envvar interface is used.  Set only those that are not.
21733
# We use the long form for the default assignment because of an extremely
21734
# bizarre bug on SunOS 4.1.3.
21735
if $ac_need_defaults; then
21736
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21737
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21738
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21739
fi
21740
21741
# Have a temporary directory for convenience.  Make it in the build tree
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21742
# simply because there is no reason against having it here, and in addition,
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21743
# creating and moving files from /tmp can sometimes cause problems.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21744
# Hook for its removal unless debugging.
21745
# Note that there is a small window in which the directory will not be cleaned:
21746
# after its creation but before its name has been assigned to `$tmp'.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21747
$debug ||
21748
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21749
  tmp=
21750
  trap 'exit_status=$?
21751
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21752
' 0
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21753
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21754
}
21755
# Create a (secure) tmp directory for tmp files.
21756
21757
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21758
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21759
  test -n "$tmp" && test -d "$tmp"
21760
}  ||
21761
{
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21762
  tmp=./conf$$-$RANDOM
21763
  (umask 077 && mkdir "$tmp")
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21764
} ||
21765
{
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21766
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21767
   { (exit 1); exit 1; }
21768
}
21769
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21770
# Set up the scripts for CONFIG_FILES section.
21771
# No need to generate them if there are no CONFIG_FILES.
21772
# This happens for instance with `./config.status config.h'.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21773
if test -n "$CONFIG_FILES"; then
21774
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21775
21776
ac_cr='
'
21777
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21778
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21779
  ac_cs_awk_cr='\\r'
21780
else
21781
  ac_cs_awk_cr=$ac_cr
21782
fi
21783
21784
echo 'BEGIN {' >"$tmp/subs1.awk" &&
21785
_ACEOF
21786
21787
21788
{
21789
  echo "cat >conf$$subs.awk <<_ACEOF" &&
21790
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21791
  echo "_ACEOF"
21792
} >conf$$subs.sh ||
21793
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21794
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21795
   { (exit 1); exit 1; }; }
21796
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21797
ac_delim='%!_!# '
21798
for ac_last_try in false false false false false :; do
21799
  . ./conf$$subs.sh ||
21800
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21801
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21802
   { (exit 1); exit 1; }; }
21803
21804
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
21805
    break
21806
  elif $ac_last_try; then
21807
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21808
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21809
   { (exit 1); exit 1; }; }
21810
  else
21811
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21812
  fi
21813
done
21814
rm -f conf$$subs.sh
21815
21816
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21817
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21818
_ACEOF
21819
sed -n '
21820
h
21821
s/^/S["/; s/!.*/"]=/
21822
p
21823
g
21824
s/^[^!]*!//
21825
:repl
21826
t repl
21827
s/'"$ac_delim"'$//
21828
t delim
21829
:nl
21830
h
21831
s/\(.\{148\}\).*/\1/
21832
t more1
21833
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21834
p
21835
n
21836
b repl
21837
:more1
21838
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21839
p
21840
g
21841
s/.\{148\}//
21842
t nl
21843
:delim
21844
h
21845
s/\(.\{148\}\).*/\1/
21846
t more2
21847
s/["\\]/\\&/g; s/^/"/; s/$/"/
21848
p
21849
b
21850
:more2
21851
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21852
p
21853
g
21854
s/.\{148\}//
21855
t delim
21856
' <conf$$subs.awk | sed '
21857
/^[^""]/{
21858
  N
21859
  s/\n//
21860
}
21861
' >>$CONFIG_STATUS || ac_write_fail=1
21862
rm -f conf$$subs.awk
21863
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21864
_ACAWK
21865
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21866
  for (key in S) S_is_set[key] = 1
21867
  FS = ""
21868
21869
}
21870
{
21871
  line = $ 0
21872
  nfields = split(line, field, "@")
21873
  substed = 0
21874
  len = length(field[1])
21875
  for (i = 2; i < nfields; i++) {
21876
    key = field[i]
21877
    keylen = length(key)
21878
    if (S_is_set[key]) {
21879
      value = S[key]
21880
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21881
      len += length(value) + length(field[++i])
21882
      substed = 1
21883
    } else
21884
      len += 1 + keylen
21885
  }
21886
21887
  print line
21888
}
21889
21890
_ACAWK
21891
_ACEOF
21892
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21893
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21894
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21895
else
21896
  cat
21897
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21898
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21899
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21900
   { (exit 1); exit 1; }; }
21901
_ACEOF
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
21902
21903
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21904
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21905
# trailing colons and then remove the whole line if VPATH becomes empty
21906
# (actually we leave an empty line to preserve line numbers).
21907
if test "x$srcdir" = x.; then
21908
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21909
s/:*\$(srcdir):*/:/
21910
s/:*\${srcdir}:*/:/
21911
s/:*@srcdir@:*/:/
21912
s/^\([^=]*=[	 ]*\):*/\1/
21913
s/:*$//
21914
s/^[^=]*=[	 ]*$//
21915
}'
21916
fi
21917
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21918
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
21919
fi # test -n "$CONFIG_FILES"
21920
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
21921
# Set up the scripts for CONFIG_HEADERS section.
21922
# No need to generate them if there are no CONFIG_HEADERS.
21923
# This happens for instance with `./config.status Makefile'.
21924
if test -n "$CONFIG_HEADERS"; then
21925
cat >"$tmp/defines.awk" <<\_ACAWK ||
21926
BEGIN {
21927
_ACEOF
21928
21929
# Transform confdefs.h into an awk script `defines.awk', embedded as
21930
# here-document in config.status, that substitutes the proper values into
21931
# config.h.in to produce config.h.
21932
21933
# Create a delimiter string that does not exist in confdefs.h, to ease
21934
# handling of long lines.
21935
ac_delim='%!_!# '
21936
for ac_last_try in false false :; do
21937
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21938
  if test -z "$ac_t"; then
21939
    break
21940
  elif $ac_last_try; then
21941
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21942
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21943
   { (exit 1); exit 1; }; }
21944
  else
21945
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21946
  fi
21947
done
21948
21949
# For the awk script, D is an array of macro values keyed by name,
21950
# likewise P contains macro parameters if any.  Preserve backslash
21951
# newline sequences.
21952
21953
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21954
sed -n '
21955
s/.\{148\}/&'"$ac_delim"'/g
21956
t rset
21957
:rset
21958
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21959
t def
21960
d
21961
:def
21962
s/\\$//
21963
t bsnl
21964
s/["\\]/\\&/g
21965
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21966
D["\1"]=" \3"/p
21967
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21968
d
21969
:bsnl
21970
s/["\\]/\\&/g
21971
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21972
D["\1"]=" \3\\\\\\n"\\/p
21973
t cont
21974
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21975
t cont
21976
d
21977
:cont
21978
n
21979
s/.\{148\}/&'"$ac_delim"'/g
21980
t clear
21981
:clear
21982
s/\\$//
21983
t bsnlc
21984
s/["\\]/\\&/g; s/^/"/; s/$/"/p
21985
d
21986
:bsnlc
21987
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21988
b cont
21989
' <confdefs.h | sed '
21990
s/'"$ac_delim"'/"\\\
21991
"/g' >>$CONFIG_STATUS || ac_write_fail=1
21992
21993
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21994
  for (key in D) D_is_set[key] = 1
21995
  FS = ""
21996
}
21997
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21998
  line = \$ 0
21999
  split(line, arg, " ")
22000
  if (arg[1] == "#") {
22001
    defundef = arg[2]
22002
    mac1 = arg[3]
22003
  } else {
22004
    defundef = substr(arg[1], 2)
22005
    mac1 = arg[2]
22006
  }
22007
  split(mac1, mac2, "(") #)
22008
  macro = mac2[1]
22009
  if (D_is_set[macro]) {
22010
    # Preserve the white space surrounding the "#".
22011
    prefix = substr(line, 1, index(line, defundef) - 1)
22012
    print prefix "define", macro P[macro] D[macro]
22013
    next
22014
  } else {
22015
    # Replace #undef with comments.  This is necessary, for example,
22016
    # in the case of _POSIX_SOURCE, which is predefined and required
22017
    # on some systems where configure will not decide to define it.
22018
    if (defundef == "undef") {
22019
      print "/*", line, "*/"
22020
      next
22021
    }
22022
  }
22023
}
22024
{ print }
22025
_ACAWK
22026
_ACEOF
22027
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22028
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22029
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22030
   { (exit 1); exit 1; }; }
22031
fi # test -n "$CONFIG_HEADERS"
22032
22033
22034
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22035
shift
22036
for ac_tag
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22037
do
22038
  case $ac_tag in
22039
  :[FHLC]) ac_mode=$ac_tag; continue;;
22040
  esac
22041
  case $ac_mode$ac_tag in
22042
  :[FHL]*:*);;
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22043
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22044
$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22045
   { (exit 1); exit 1; }; };;
22046
  :[FH]-) ac_tag=-:-;;
22047
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22048
  esac
22049
  ac_save_IFS=$IFS
22050
  IFS=:
22051
  set x $ac_tag
22052
  IFS=$ac_save_IFS
22053
  shift
22054
  ac_file=$1
22055
  shift
22056
22057
  case $ac_mode in
22058
  :L) ac_source=$1;;
22059
  :[FH])
22060
    ac_file_inputs=
22061
    for ac_f
22062
    do
22063
      case $ac_f in
22064
      -) ac_f="$tmp/stdin";;
22065
      *) # Look for the file first in the build tree, then in the source tree
22066
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22067
	 # because $ac_f cannot contain `:'.
22068
	 test -f "$ac_f" ||
22069
	   case $ac_f in
22070
	   [\\/$]*) false;;
22071
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22072
	   esac ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22073
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22074
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22075
   { (exit 1); exit 1; }; };;
22076
      esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22077
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22078
      ac_file_inputs="$ac_file_inputs '$ac_f'"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22079
    done
22080
22081
    # Let's still pretend it is `configure' which instantiates (i.e., don't
22082
    # use $as_me), people would be surprised to read:
22083
    #    /* config.h.  Generated by config.status.  */
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22084
    configure_input='Generated from '`
22085
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22086
	`' by configure.'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22087
    if test x"$ac_file" != x-; then
22088
      configure_input="$ac_file.  $configure_input"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22089
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22090
$as_echo "$as_me: creating $ac_file" >&6;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22091
    fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22092
    # Neutralize special characters interpreted by sed in replacement strings.
22093
    case $configure_input in #(
22094
    *\&* | *\|* | *\\* )
22095
       ac_sed_conf_input=`$as_echo "$configure_input" |
22096
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22097
    *) ac_sed_conf_input=$configure_input;;
22098
    esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22099
22100
    case $ac_tag in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22101
    *:-:* | *:-) cat >"$tmp/stdin" \
22102
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22103
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22104
   { (exit 1); exit 1; }; } ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22105
    esac
22106
    ;;
22107
  esac
22108
22109
  ac_dir=`$as_dirname -- "$ac_file" ||
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22110
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22111
	 X"$ac_file" : 'X\(//\)[^/]' \| \
22112
	 X"$ac_file" : 'X\(//\)$' \| \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22113
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22114
$as_echo X"$ac_file" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22115
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22116
	    s//\1/
22117
	    q
22118
	  }
22119
	  /^X\(\/\/\)[^/].*/{
22120
	    s//\1/
22121
	    q
22122
	  }
22123
	  /^X\(\/\/\)$/{
22124
	    s//\1/
22125
	    q
22126
	  }
22127
	  /^X\(\/\).*/{
22128
	    s//\1/
22129
	    q
22130
	  }
22131
	  s/.*/./; q'`
22132
  { as_dir="$ac_dir"
22133
  case $as_dir in #(
22134
  -*) as_dir=./$as_dir;;
22135
  esac
22136
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22137
    as_dirs=
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22138
    while :; do
22139
      case $as_dir in #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22140
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22141
      *) as_qdir=$as_dir;;
22142
      esac
22143
      as_dirs="'$as_qdir' $as_dirs"
22144
      as_dir=`$as_dirname -- "$as_dir" ||
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22145
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22146
	 X"$as_dir" : 'X\(//\)[^/]' \| \
22147
	 X"$as_dir" : 'X\(//\)$' \| \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22148
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22149
$as_echo X"$as_dir" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22150
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22151
	    s//\1/
22152
	    q
22153
	  }
22154
	  /^X\(\/\/\)[^/].*/{
22155
	    s//\1/
22156
	    q
22157
	  }
22158
	  /^X\(\/\/\)$/{
22159
	    s//\1/
22160
	    q
22161
	  }
22162
	  /^X\(\/\).*/{
22163
	    s//\1/
22164
	    q
22165
	  }
22166
	  s/.*/./; q'`
22167
      test -d "$as_dir" && break
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22168
    done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22169
    test -z "$as_dirs" || eval "mkdir $as_dirs"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22170
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22171
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22172
   { (exit 1); exit 1; }; }; }
22173
  ac_builddir=.
22174
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22175
case "$ac_dir" in
22176
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22177
*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22178
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22179
  # A ".." for each directory in $ac_dir_suffix.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22180
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22181
  case $ac_top_builddir_sub in
22182
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22183
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22184
  esac ;;
22185
esac
22186
ac_abs_top_builddir=$ac_pwd
22187
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22188
# for backward compatibility:
22189
ac_top_builddir=$ac_top_build_prefix
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22190
22191
case $srcdir in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22192
  .)  # We are building in place.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22193
    ac_srcdir=.
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22194
    ac_top_srcdir=$ac_top_builddir_sub
22195
    ac_abs_top_srcdir=$ac_pwd ;;
22196
  [\\/]* | ?:[\\/]* )  # Absolute name.
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22197
    ac_srcdir=$srcdir$ac_dir_suffix;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22198
    ac_top_srcdir=$srcdir
22199
    ac_abs_top_srcdir=$srcdir ;;
22200
  *) # Relative name.
22201
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22202
    ac_top_srcdir=$ac_top_build_prefix$srcdir
22203
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22204
esac
22205
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22206
22207
22208
  case $ac_mode in
22209
  :F)
22210
  #
22211
  # CONFIG_FILE
22212
  #
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22213
22214
  case $INSTALL in
22215
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22216
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22217
  esac
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22218
  ac_MKDIR_P=$MKDIR_P
22219
  case $MKDIR_P in
22220
  [\\/$]* | ?:[\\/]* ) ;;
22221
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22222
  esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22223
_ACEOF
22224
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22225
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22226
# If the template does not know about datarootdir, expand it.
22227
# FIXME: This hack should be removed a few years after 2.60.
22228
ac_datarootdir_hack=; ac_datarootdir_seen=
22229
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22230
ac_sed_dataroot='
22231
/datarootdir/ {
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22232
  p
22233
  q
22234
}
22235
/@datadir@/p
22236
/@docdir@/p
22237
/@infodir@/p
22238
/@localedir@/p
22239
/@mandir@/p
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22240
'
22241
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22242
*datarootdir*) ac_datarootdir_seen=yes;;
22243
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22244
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22245
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22246
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22247
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22248
  ac_datarootdir_hack='
22249
  s&@datadir@&$datadir&g
22250
  s&@docdir@&$docdir&g
22251
  s&@infodir@&$infodir&g
22252
  s&@localedir@&$localedir&g
22253
  s&@mandir@&$mandir&g
22254
    s&\\\${datarootdir}&$datarootdir&g' ;;
22255
esac
22256
_ACEOF
22257
22258
# Neutralize VPATH when `$srcdir' = `.'.
22259
# Shell code in configure.ac might set extrasub.
22260
# FIXME: do we really want to maintain this feature?
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22261
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22262
ac_sed_extra="$ac_vpsub
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22263
$extrasub
22264
_ACEOF
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22265
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22266
:t
22267
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22268
s|@configure_input@|$ac_sed_conf_input|;t t
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22269
s&@top_builddir@&$ac_top_builddir_sub&;t t
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22270
s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22271
s&@srcdir@&$ac_srcdir&;t t
22272
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22273
s&@top_srcdir@&$ac_top_srcdir&;t t
22274
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22275
s&@builddir@&$ac_builddir&;t t
22276
s&@abs_builddir@&$ac_abs_builddir&;t t
22277
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22278
s&@INSTALL@&$ac_INSTALL&;t t
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22279
s&@MKDIR_P@&$ac_MKDIR_P&;t t
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22280
$ac_datarootdir_hack
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22281
"
22282
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22283
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22284
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22285
   { (exit 1); exit 1; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22286
22287
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22290
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22291
which seems to be undefined.  Please make sure it is defined." >&5
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22292
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22293
which seems to be undefined.  Please make sure it is defined." >&2;}
22294
22295
  rm -f "$tmp/stdin"
22296
  case $ac_file in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22297
  -) cat "$tmp/out" && rm -f "$tmp/out";;
22298
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22299
  esac \
22300
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22301
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22302
   { (exit 1); exit 1; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22303
 ;;
22304
  :H)
22305
  #
22306
  # CONFIG_HEADER
22307
  #
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22308
  if test x"$ac_file" != x-; then
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22309
    {
22310
      $as_echo "/* $configure_input  */" \
22311
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22312
    } >"$tmp/config.h" \
22313
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22314
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22315
   { (exit 1); exit 1; }; }
22316
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22317
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22318
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22319
    else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22320
      rm -f "$ac_file"
22321
      mv "$tmp/config.h" "$ac_file" \
22322
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22323
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22324
   { (exit 1); exit 1; }; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22325
    fi
22326
  else
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22327
    $as_echo "/* $configure_input  */" \
22328
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22329
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22330
$as_echo "$as_me: error: could not create -" >&2;}
22331
   { (exit 1); exit 1; }; }
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22332
  fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22333
# Compute "$ac_file"'s index in $config_headers.
22334
_am_arg="$ac_file"
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22335
_am_stamp_count=1
22336
for _am_header in $config_headers :; do
22337
  case $_am_header in
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22338
    $_am_arg | $_am_arg:* )
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22339
      break ;;
22340
    * )
22341
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22342
  esac
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22343
done
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22344
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22345
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22346
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22347
	 X"$_am_arg" : 'X\(//\)$' \| \
22348
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22349
$as_echo X"$_am_arg" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22350
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22351
	    s//\1/
22352
	    q
22353
	  }
22354
	  /^X\(\/\/\)[^/].*/{
22355
	    s//\1/
22356
	    q
22357
	  }
22358
	  /^X\(\/\/\)$/{
22359
	    s//\1/
22360
	    q
22361
	  }
22362
	  /^X\(\/\).*/{
22363
	    s//\1/
22364
	    q
22365
	  }
22366
	  s/.*/./; q'`/stamp-h$_am_stamp_count
22367
 ;;
22368
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22369
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22370
$as_echo "$as_me: executing $ac_file commands" >&6;}
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22371
 ;;
22372
  esac
22373
22374
22375
  case $ac_file$ac_mode in
22376
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22377
  # Strip MF so we end up with the name of the file.
22378
  mf=`echo "$mf" | sed -e 's/:.*$//'`
22379
  # Check whether this is an Automake generated Makefile or not.
22380
  # We used to match only the files named `Makefile.in', but
22381
  # some people rename them; so instead we look at the file content.
22382
  # Grep'ing the first line is not enough: some people post-process
22383
  # each Makefile.in and add a new line on top of each file to say so.
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22384
  # Grep'ing the whole file is not good either: AIX grep has a line
22385
  # limit of 2048, but all sed's we know have understand at least 4000.
22386
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22387
    dirpart=`$as_dirname -- "$mf" ||
22388
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389
	 X"$mf" : 'X\(//\)[^/]' \| \
22390
	 X"$mf" : 'X\(//\)$' \| \
22391
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22392
$as_echo X"$mf" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22393
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22394
	    s//\1/
22395
	    q
22396
	  }
22397
	  /^X\(\/\/\)[^/].*/{
22398
	    s//\1/
22399
	    q
22400
	  }
22401
	  /^X\(\/\/\)$/{
22402
	    s//\1/
22403
	    q
22404
	  }
22405
	  /^X\(\/\).*/{
22406
	    s//\1/
22407
	    q
22408
	  }
22409
	  s/.*/./; q'`
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22410
  else
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22411
    continue
22412
  fi
22413
  # Extract the definition of DEPDIR, am__include, and am__quote
22414
  # from the Makefile without running `make'.
22415
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22416
  test -z "$DEPDIR" && continue
22417
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22418
  test -z "am__include" && continue
22419
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22420
  # When using ansi2knr, U may be empty or an underscore; expand it
22421
  U=`sed -n 's/^U = //p' < "$mf"`
22422
  # Find all dependency output files, they are included files with
22423
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22424
  # simplest approach to changing $(DEPDIR) to its actual value in the
22425
  # expansion.
22426
  for file in `sed -n "
22427
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22428
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22429
    # Make sure the directory exists.
22430
    test -f "$dirpart/$file" && continue
22431
    fdir=`$as_dirname -- "$file" ||
22432
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22433
	 X"$file" : 'X\(//\)[^/]' \| \
22434
	 X"$file" : 'X\(//\)$' \| \
22435
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22436
$as_echo X"$file" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22437
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22438
	    s//\1/
22439
	    q
22440
	  }
22441
	  /^X\(\/\/\)[^/].*/{
22442
	    s//\1/
22443
	    q
22444
	  }
22445
	  /^X\(\/\/\)$/{
22446
	    s//\1/
22447
	    q
22448
	  }
22449
	  /^X\(\/\).*/{
22450
	    s//\1/
22451
	    q
22452
	  }
22453
	  s/.*/./; q'`
22454
    { as_dir=$dirpart/$fdir
22455
  case $as_dir in #(
22456
  -*) as_dir=./$as_dir;;
22457
  esac
22458
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22459
    as_dirs=
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22460
    while :; do
22461
      case $as_dir in #(
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22462
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22463
      *) as_qdir=$as_dir;;
22464
      esac
22465
      as_dirs="'$as_qdir' $as_dirs"
22466
      as_dir=`$as_dirname -- "$as_dir" ||
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22467
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22468
	 X"$as_dir" : 'X\(//\)[^/]' \| \
22469
	 X"$as_dir" : 'X\(//\)$' \| \
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22470
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22471
$as_echo X"$as_dir" |
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22472
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22473
	    s//\1/
22474
	    q
22475
	  }
22476
	  /^X\(\/\/\)[^/].*/{
22477
	    s//\1/
22478
	    q
22479
	  }
22480
	  /^X\(\/\/\)$/{
22481
	    s//\1/
22482
	    q
22483
	  }
22484
	  /^X\(\/\).*/{
22485
	    s//\1/
22486
	    q
22487
	  }
22488
	  s/.*/./; q'`
22489
      test -d "$as_dir" && break
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22490
    done
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22491
    test -z "$as_dirs" || eval "mkdir $as_dirs"
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22492
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22493
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22494
   { (exit 1); exit 1; }; }; }
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22495
    # echo "creating $dirpart/$file"
22496
    echo '# dummy' > "$dirpart/$file"
22497
  done
22498
done
22499
 ;;
22500
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22501
  esac
1.1.5 by Daniel Holbach
Import upstream version 1.18.0
22502
done # for ac_tag
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22503
22504
22505
{ (exit 0); exit 0; }
22506
_ACEOF
22507
chmod +x $CONFIG_STATUS
22508
ac_clean_files=$ac_clean_files_save
22509
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22510
test $ac_write_fail = 0 ||
22511
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22512
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22513
   { (exit 1); exit 1; }; }
22514
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22515
22516
# configure is writing to config.log, and then calls config.status.
22517
# config.status does its own redirection, appending to config.log.
22518
# Unfortunately, on DOS this fails, as config.log is still kept open
22519
# by configure, so config.status won't be able to write to it; its
22520
# output is simply discarded.  So we exec the FD to /dev/null,
22521
# effectively closing config.log, so it can be properly (re)opened and
22522
# appended to by config.status.  When coming back to configure, we
22523
# need to make the FD available again.
22524
if test "$no_create" != yes; then
22525
  ac_cs_success=:
22526
  ac_config_status_args=
22527
  test "$silent" = yes &&
22528
    ac_config_status_args="$ac_config_status_args --quiet"
22529
  exec 5>/dev/null
22530
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22531
  exec 5>>config.log
22532
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22533
  # would make configure fail if this is the last instruction.
22534
  $ac_cs_success || { (exit 1); exit 1; }
22535
fi
1.1.8 by Josselin Mouette
Import upstream version 1.20.1
22536
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22537
  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22538
$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
22539
fi
1.1.3 by Daniel Holbach
Import upstream version 1.1.2
22540