~ubuntu-branches/ubuntu/raring/ibutils/raring-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2010-01-11 22:22:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100111222200-53kum2et5nh13rv3
Tags: upstream-1.2-OFED-1.4.2
ImportĀ upstreamĀ versionĀ 1.2-OFED-1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for ibutils 1.2.
 
4
#
 
5
# Report bugs to <openib-general@openib.org>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='ibutils'
 
271
PACKAGE_TARNAME='ibutils'
 
272
PACKAGE_VERSION='1.2'
 
273
PACKAGE_STRING='ibutils 1.2'
 
274
PACKAGE_BUGREPORT='openib-general@openib.org'
 
275
 
 
276
ac_subdirs_all="$ac_subdirs_all ibis ibdm ibdiag"
 
277
ac_subdirs_all="$ac_subdirs_all ibmgtsim"
 
278
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT OSM_VENDOR_TS_TRUE OSM_VENDOR_TS_FALSE OSM_VENDOR_MTL_TRUE OSM_VENDOR_MTL_FALSE OSM_VENDOR_SIM_TRUE OSM_VENDOR_SIM_FALSE OSM_BUILD_OPENIB_TRUE OSM_BUILD_OPENIB_FALSE with_osm OSM_CFLAGS OSM_LDFLAGS OSM_VENDOR OSM_BUILD subdirs BUILD_IBMGTSIM_TRUE BUILD_IBMGTSIM_FALSE LIBOBJS LTLIBOBJS'
 
279
ac_subst_files=''
 
280
 
 
281
# Initialize some variables set by options.
 
282
ac_init_help=
 
283
ac_init_version=false
 
284
# The variables have the same names as the options, with
 
285
# dashes changed to underlines.
 
286
cache_file=/dev/null
 
287
exec_prefix=NONE
 
288
no_create=
 
289
no_recursion=
 
290
prefix=NONE
 
291
program_prefix=NONE
 
292
program_suffix=NONE
 
293
program_transform_name=s,x,x,
 
294
silent=
 
295
site=
 
296
srcdir=
 
297
verbose=
 
298
x_includes=NONE
 
299
x_libraries=NONE
 
300
 
 
301
# Installation directory options.
 
302
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
303
# and all the variables that are supposed to be based on exec_prefix
 
304
# by default will actually change.
 
305
# Use braces instead of parens because sh, perl, etc. also accept them.
 
306
bindir='${exec_prefix}/bin'
 
307
sbindir='${exec_prefix}/sbin'
 
308
libexecdir='${exec_prefix}/libexec'
 
309
datadir='${prefix}/share'
 
310
sysconfdir='${prefix}/etc'
 
311
sharedstatedir='${prefix}/com'
 
312
localstatedir='${prefix}/var'
 
313
libdir='${exec_prefix}/lib'
 
314
includedir='${prefix}/include'
 
315
oldincludedir='/usr/include'
 
316
infodir='${prefix}/info'
 
317
mandir='${prefix}/man'
 
318
 
 
319
ac_prev=
 
320
for ac_option
 
321
do
 
322
  # If the previous option needs an argument, assign it.
 
323
  if test -n "$ac_prev"; then
 
324
    eval "$ac_prev=\$ac_option"
 
325
    ac_prev=
 
326
    continue
 
327
  fi
 
328
 
 
329
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
330
 
 
331
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
332
 
 
333
  case $ac_option in
 
334
 
 
335
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
336
    ac_prev=bindir ;;
 
337
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
338
    bindir=$ac_optarg ;;
 
339
 
 
340
  -build | --build | --buil | --bui | --bu)
 
341
    ac_prev=build_alias ;;
 
342
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
343
    build_alias=$ac_optarg ;;
 
344
 
 
345
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
346
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
347
    ac_prev=cache_file ;;
 
348
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
349
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
350
    cache_file=$ac_optarg ;;
 
351
 
 
352
  --config-cache | -C)
 
353
    cache_file=config.cache ;;
 
354
 
 
355
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
356
    ac_prev=datadir ;;
 
357
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
358
  | --da=*)
 
359
    datadir=$ac_optarg ;;
 
360
 
 
361
  -disable-* | --disable-*)
 
362
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
363
    # Reject names that are not valid shell variable names.
 
364
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
365
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
366
   { (exit 1); exit 1; }; }
 
367
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
368
    eval "enable_$ac_feature=no" ;;
 
369
 
 
370
  -enable-* | --enable-*)
 
371
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
372
    # Reject names that are not valid shell variable names.
 
373
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
374
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
375
   { (exit 1); exit 1; }; }
 
376
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
377
    case $ac_option in
 
378
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
379
      *) ac_optarg=yes ;;
 
380
    esac
 
381
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
382
 
 
383
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
384
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
385
  | --exec | --exe | --ex)
 
386
    ac_prev=exec_prefix ;;
 
387
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
388
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
389
  | --exec=* | --exe=* | --ex=*)
 
390
    exec_prefix=$ac_optarg ;;
 
391
 
 
392
  -gas | --gas | --ga | --g)
 
393
    # Obsolete; use --with-gas.
 
394
    with_gas=yes ;;
 
395
 
 
396
  -help | --help | --hel | --he | -h)
 
397
    ac_init_help=long ;;
 
398
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
399
    ac_init_help=recursive ;;
 
400
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
401
    ac_init_help=short ;;
 
402
 
 
403
  -host | --host | --hos | --ho)
 
404
    ac_prev=host_alias ;;
 
405
  -host=* | --host=* | --hos=* | --ho=*)
 
406
    host_alias=$ac_optarg ;;
 
407
 
 
408
  -includedir | --includedir | --includedi | --included | --include \
 
409
  | --includ | --inclu | --incl | --inc)
 
410
    ac_prev=includedir ;;
 
411
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
412
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
413
    includedir=$ac_optarg ;;
 
414
 
 
415
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
416
    ac_prev=infodir ;;
 
417
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
418
    infodir=$ac_optarg ;;
 
419
 
 
420
  -libdir | --libdir | --libdi | --libd)
 
421
    ac_prev=libdir ;;
 
422
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
423
    libdir=$ac_optarg ;;
 
424
 
 
425
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
426
  | --libexe | --libex | --libe)
 
427
    ac_prev=libexecdir ;;
 
428
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
429
  | --libexe=* | --libex=* | --libe=*)
 
430
    libexecdir=$ac_optarg ;;
 
431
 
 
432
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
433
  | --localstate | --localstat | --localsta | --localst \
 
434
  | --locals | --local | --loca | --loc | --lo)
 
435
    ac_prev=localstatedir ;;
 
436
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
437
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
438
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
439
    localstatedir=$ac_optarg ;;
 
440
 
 
441
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
442
    ac_prev=mandir ;;
 
443
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
444
    mandir=$ac_optarg ;;
 
445
 
 
446
  -nfp | --nfp | --nf)
 
447
    # Obsolete; use --without-fp.
 
448
    with_fp=no ;;
 
449
 
 
450
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
451
  | --no-cr | --no-c | -n)
 
452
    no_create=yes ;;
 
453
 
 
454
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
455
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
456
    no_recursion=yes ;;
 
457
 
 
458
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
459
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
460
  | --oldin | --oldi | --old | --ol | --o)
 
461
    ac_prev=oldincludedir ;;
 
462
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
463
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
464
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
465
    oldincludedir=$ac_optarg ;;
 
466
 
 
467
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
468
    ac_prev=prefix ;;
 
469
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
470
    prefix=$ac_optarg ;;
 
471
 
 
472
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
473
  | --program-pre | --program-pr | --program-p)
 
474
    ac_prev=program_prefix ;;
 
475
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
476
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
477
    program_prefix=$ac_optarg ;;
 
478
 
 
479
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
480
  | --program-suf | --program-su | --program-s)
 
481
    ac_prev=program_suffix ;;
 
482
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
483
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
484
    program_suffix=$ac_optarg ;;
 
485
 
 
486
  -program-transform-name | --program-transform-name \
 
487
  | --program-transform-nam | --program-transform-na \
 
488
  | --program-transform-n | --program-transform- \
 
489
  | --program-transform | --program-transfor \
 
490
  | --program-transfo | --program-transf \
 
491
  | --program-trans | --program-tran \
 
492
  | --progr-tra | --program-tr | --program-t)
 
493
    ac_prev=program_transform_name ;;
 
494
  -program-transform-name=* | --program-transform-name=* \
 
495
  | --program-transform-nam=* | --program-transform-na=* \
 
496
  | --program-transform-n=* | --program-transform-=* \
 
497
  | --program-transform=* | --program-transfor=* \
 
498
  | --program-transfo=* | --program-transf=* \
 
499
  | --program-trans=* | --program-tran=* \
 
500
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
501
    program_transform_name=$ac_optarg ;;
 
502
 
 
503
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
504
  | -silent | --silent | --silen | --sile | --sil)
 
505
    silent=yes ;;
 
506
 
 
507
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
508
    ac_prev=sbindir ;;
 
509
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
510
  | --sbi=* | --sb=*)
 
511
    sbindir=$ac_optarg ;;
 
512
 
 
513
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
514
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
515
  | --sharedst | --shareds | --shared | --share | --shar \
 
516
  | --sha | --sh)
 
517
    ac_prev=sharedstatedir ;;
 
518
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
519
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
520
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
521
  | --sha=* | --sh=*)
 
522
    sharedstatedir=$ac_optarg ;;
 
523
 
 
524
  -site | --site | --sit)
 
525
    ac_prev=site ;;
 
526
  -site=* | --site=* | --sit=*)
 
527
    site=$ac_optarg ;;
 
528
 
 
529
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
530
    ac_prev=srcdir ;;
 
531
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
532
    srcdir=$ac_optarg ;;
 
533
 
 
534
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
535
  | --syscon | --sysco | --sysc | --sys | --sy)
 
536
    ac_prev=sysconfdir ;;
 
537
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
538
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
539
    sysconfdir=$ac_optarg ;;
 
540
 
 
541
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
542
    ac_prev=target_alias ;;
 
543
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
544
    target_alias=$ac_optarg ;;
 
545
 
 
546
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
547
    verbose=yes ;;
 
548
 
 
549
  -version | --version | --versio | --versi | --vers | -V)
 
550
    ac_init_version=: ;;
 
551
 
 
552
  -with-* | --with-*)
 
553
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
554
    # Reject names that are not valid shell variable names.
 
555
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
556
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
557
   { (exit 1); exit 1; }; }
 
558
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
559
    case $ac_option in
 
560
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
561
      *) ac_optarg=yes ;;
 
562
    esac
 
563
    eval "with_$ac_package='$ac_optarg'" ;;
 
564
 
 
565
  -without-* | --without-*)
 
566
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
567
    # Reject names that are not valid shell variable names.
 
568
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
569
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
570
   { (exit 1); exit 1; }; }
 
571
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
572
    eval "with_$ac_package=no" ;;
 
573
 
 
574
  --x)
 
575
    # Obsolete; use --with-x.
 
576
    with_x=yes ;;
 
577
 
 
578
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
579
  | --x-incl | --x-inc | --x-in | --x-i)
 
580
    ac_prev=x_includes ;;
 
581
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
582
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
583
    x_includes=$ac_optarg ;;
 
584
 
 
585
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
586
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
587
    ac_prev=x_libraries ;;
 
588
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
589
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
590
    x_libraries=$ac_optarg ;;
 
591
 
 
592
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
593
Try \`$0 --help' for more information." >&2
 
594
   { (exit 1); exit 1; }; }
 
595
    ;;
 
596
 
 
597
  *=*)
 
598
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
599
    # Reject names that are not valid shell variable names.
 
600
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
601
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
602
   { (exit 1); exit 1; }; }
 
603
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
604
    eval "$ac_envvar='$ac_optarg'"
 
605
    export $ac_envvar ;;
 
606
 
 
607
  *)
 
608
    # FIXME: should be removed in autoconf 3.0.
 
609
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
610
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
611
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
612
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
613
    ;;
 
614
 
 
615
  esac
 
616
done
 
617
 
 
618
if test -n "$ac_prev"; then
 
619
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
620
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
621
   { (exit 1); exit 1; }; }
 
622
fi
 
623
 
 
624
# Be sure to have absolute paths.
 
625
for ac_var in exec_prefix prefix
 
626
do
 
627
  eval ac_val=$`echo $ac_var`
 
628
  case $ac_val in
 
629
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
630
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
631
   { (exit 1); exit 1; }; };;
 
632
  esac
 
633
done
 
634
 
 
635
# Be sure to have absolute paths.
 
636
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
637
              localstatedir libdir includedir oldincludedir infodir mandir
 
638
do
 
639
  eval ac_val=$`echo $ac_var`
 
640
  case $ac_val in
 
641
    [\\/$]* | ?:[\\/]* ) ;;
 
642
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
643
   { (exit 1); exit 1; }; };;
 
644
  esac
 
645
done
 
646
 
 
647
# There might be people who depend on the old broken behavior: `$host'
 
648
# used to hold the argument of --host etc.
 
649
# FIXME: To remove some day.
 
650
build=$build_alias
 
651
host=$host_alias
 
652
target=$target_alias
 
653
 
 
654
# FIXME: To remove some day.
 
655
if test "x$host_alias" != x; then
 
656
  if test "x$build_alias" = x; then
 
657
    cross_compiling=maybe
 
658
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
659
    If a cross compiler is detected then cross compile mode will be used." >&2
 
660
  elif test "x$build_alias" != "x$host_alias"; then
 
661
    cross_compiling=yes
 
662
  fi
 
663
fi
 
664
 
 
665
ac_tool_prefix=
 
666
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
667
 
 
668
test "$silent" = yes && exec 6>/dev/null
 
669
 
 
670
 
 
671
# Find the source files, if location was not specified.
 
672
if test -z "$srcdir"; then
 
673
  ac_srcdir_defaulted=yes
 
674
  # Try the directory containing this script, then its parent.
 
675
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
676
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
677
         X"$0" : 'X\(//\)[^/]' \| \
 
678
         X"$0" : 'X\(//\)$' \| \
 
679
         X"$0" : 'X\(/\)' \| \
 
680
         .     : '\(.\)' 2>/dev/null ||
 
681
echo X"$0" |
 
682
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
683
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
684
          /^X\(\/\/\)$/{ s//\1/; q; }
 
685
          /^X\(\/\).*/{ s//\1/; q; }
 
686
          s/.*/./; q'`
 
687
  srcdir=$ac_confdir
 
688
  if test ! -r $srcdir/$ac_unique_file; then
 
689
    srcdir=..
 
690
  fi
 
691
else
 
692
  ac_srcdir_defaulted=no
 
693
fi
 
694
if test ! -r $srcdir/$ac_unique_file; then
 
695
  if test "$ac_srcdir_defaulted" = yes; then
 
696
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
697
   { (exit 1); exit 1; }; }
 
698
  else
 
699
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
700
   { (exit 1); exit 1; }; }
 
701
  fi
 
702
fi
 
703
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
704
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
705
   { (exit 1); exit 1; }; }
 
706
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
707
ac_env_build_alias_set=${build_alias+set}
 
708
ac_env_build_alias_value=$build_alias
 
709
ac_cv_env_build_alias_set=${build_alias+set}
 
710
ac_cv_env_build_alias_value=$build_alias
 
711
ac_env_host_alias_set=${host_alias+set}
 
712
ac_env_host_alias_value=$host_alias
 
713
ac_cv_env_host_alias_set=${host_alias+set}
 
714
ac_cv_env_host_alias_value=$host_alias
 
715
ac_env_target_alias_set=${target_alias+set}
 
716
ac_env_target_alias_value=$target_alias
 
717
ac_cv_env_target_alias_set=${target_alias+set}
 
718
ac_cv_env_target_alias_value=$target_alias
 
719
 
 
720
#
 
721
# Report the --help message.
 
722
#
 
723
if test "$ac_init_help" = "long"; then
 
724
  # Omit some internal or obsolete options to make the list less imposing.
 
725
  # This message is too long to be a string in the A/UX 3.1 sh.
 
726
  cat <<_ACEOF
 
727
\`configure' configures ibutils 1.2 to adapt to many kinds of systems.
 
728
 
 
729
Usage: $0 [OPTION]... [VAR=VALUE]...
 
730
 
 
731
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
732
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
733
 
 
734
Defaults for the options are specified in brackets.
 
735
 
 
736
Configuration:
 
737
  -h, --help              display this help and exit
 
738
      --help=short        display options specific to this package
 
739
      --help=recursive    display the short help of all the included packages
 
740
  -V, --version           display version information and exit
 
741
  -q, --quiet, --silent   do not print \`checking...' messages
 
742
      --cache-file=FILE   cache test results in FILE [disabled]
 
743
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
744
  -n, --no-create         do not create output files
 
745
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
746
 
 
747
_ACEOF
 
748
 
 
749
  cat <<_ACEOF
 
750
Installation directories:
 
751
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
752
                          [$ac_default_prefix]
 
753
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
754
                          [PREFIX]
 
755
 
 
756
By default, \`make install' will install all the files in
 
757
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
758
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
759
for instance \`--prefix=\$HOME'.
 
760
 
 
761
For better control, use the options below.
 
762
 
 
763
Fine tuning of the installation directories:
 
764
  --bindir=DIR           user executables [EPREFIX/bin]
 
765
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
766
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
767
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
768
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
769
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
770
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
771
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
772
  --includedir=DIR       C header files [PREFIX/include]
 
773
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
774
  --infodir=DIR          info documentation [PREFIX/info]
 
775
  --mandir=DIR           man documentation [PREFIX/man]
 
776
_ACEOF
 
777
 
 
778
  cat <<\_ACEOF
 
779
 
 
780
Program names:
 
781
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
782
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
783
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
784
_ACEOF
 
785
fi
 
786
 
 
787
if test -n "$ac_init_help"; then
 
788
  case $ac_init_help in
 
789
     short | recursive ) echo "Configuration of ibutils 1.2:";;
 
790
   esac
 
791
  cat <<\_ACEOF
 
792
 
 
793
Optional Features:
 
794
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
795
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
796
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
797
                          (and sometimes confusing) to the casual installer
 
798
  --enable-debug    Turn on debugging
 
799
  --enable-libcheck    Enable Dependency Checking
 
800
  --enable-ibmgtsim    Build ibmgtsim
 
801
 
 
802
Optional Packages:
 
803
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
804
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
805
  --with-osm=<dir> define OSM prefix
 
806
  --with-osm-libs=<dir> define where to find OSM libs
 
807
 
 
808
Report bugs to <openib-general@openib.org>.
 
809
_ACEOF
 
810
fi
 
811
 
 
812
if test "$ac_init_help" = "recursive"; then
 
813
  # If there are subdirs, report their specific --help.
 
814
  ac_popdir=`pwd`
 
815
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
816
    test -d $ac_dir || continue
 
817
    ac_builddir=.
 
818
 
 
819
if test "$ac_dir" != .; then
 
820
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
821
  # A "../" for each directory in $ac_dir_suffix.
 
822
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
823
else
 
824
  ac_dir_suffix= ac_top_builddir=
 
825
fi
 
826
 
 
827
case $srcdir in
 
828
  .)  # No --srcdir option.  We are building in place.
 
829
    ac_srcdir=.
 
830
    if test -z "$ac_top_builddir"; then
 
831
       ac_top_srcdir=.
 
832
    else
 
833
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
834
    fi ;;
 
835
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
836
    ac_srcdir=$srcdir$ac_dir_suffix;
 
837
    ac_top_srcdir=$srcdir ;;
 
838
  *) # Relative path.
 
839
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
840
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
841
esac
 
842
 
 
843
# Do not use `cd foo && pwd` to compute absolute paths, because
 
844
# the directories may not exist.
 
845
case `pwd` in
 
846
.) ac_abs_builddir="$ac_dir";;
 
847
*)
 
848
  case "$ac_dir" in
 
849
  .) ac_abs_builddir=`pwd`;;
 
850
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
851
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
852
  esac;;
 
853
esac
 
854
case $ac_abs_builddir in
 
855
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
856
*)
 
857
  case ${ac_top_builddir}. in
 
858
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
859
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
860
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
861
  esac;;
 
862
esac
 
863
case $ac_abs_builddir in
 
864
.) ac_abs_srcdir=$ac_srcdir;;
 
865
*)
 
866
  case $ac_srcdir in
 
867
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
868
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
869
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
870
  esac;;
 
871
esac
 
872
case $ac_abs_builddir in
 
873
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
874
*)
 
875
  case $ac_top_srcdir in
 
876
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
877
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
878
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
879
  esac;;
 
880
esac
 
881
 
 
882
    cd $ac_dir
 
883
    # Check for guested configure; otherwise get Cygnus style configure.
 
884
    if test -f $ac_srcdir/configure.gnu; then
 
885
      echo
 
886
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
887
    elif test -f $ac_srcdir/configure; then
 
888
      echo
 
889
      $SHELL $ac_srcdir/configure  --help=recursive
 
890
    elif test -f $ac_srcdir/configure.ac ||
 
891
           test -f $ac_srcdir/configure.in; then
 
892
      echo
 
893
      $ac_configure --help
 
894
    else
 
895
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
896
    fi
 
897
    cd "$ac_popdir"
 
898
  done
 
899
fi
 
900
 
 
901
test -n "$ac_init_help" && exit 0
 
902
if $ac_init_version; then
 
903
  cat <<\_ACEOF
 
904
ibutils configure 1.2
 
905
generated by GNU Autoconf 2.59
 
906
 
 
907
Copyright (C) 2003 Free Software Foundation, Inc.
 
908
This configure script is free software; the Free Software Foundation
 
909
gives unlimited permission to copy, distribute and modify it.
 
910
_ACEOF
 
911
  exit 0
 
912
fi
 
913
exec 5>config.log
 
914
cat >&5 <<_ACEOF
 
915
This file contains any messages produced by compilers while
 
916
running configure, to aid debugging if configure makes a mistake.
 
917
 
 
918
It was created by ibutils $as_me 1.2, which was
 
919
generated by GNU Autoconf 2.59.  Invocation command line was
 
920
 
 
921
  $ $0 $@
 
922
 
 
923
_ACEOF
 
924
{
 
925
cat <<_ASUNAME
 
926
## --------- ##
 
927
## Platform. ##
 
928
## --------- ##
 
929
 
 
930
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
931
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
932
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
933
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
934
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
935
 
 
936
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
937
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
938
 
 
939
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
940
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
941
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
942
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
943
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
944
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
945
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
946
 
 
947
_ASUNAME
 
948
 
 
949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
950
for as_dir in $PATH
 
951
do
 
952
  IFS=$as_save_IFS
 
953
  test -z "$as_dir" && as_dir=.
 
954
  echo "PATH: $as_dir"
 
955
done
 
956
 
 
957
} >&5
 
958
 
 
959
cat >&5 <<_ACEOF
 
960
 
 
961
 
 
962
## ----------- ##
 
963
## Core tests. ##
 
964
## ----------- ##
 
965
 
 
966
_ACEOF
 
967
 
 
968
 
 
969
# Keep a trace of the command line.
 
970
# Strip out --no-create and --no-recursion so they do not pile up.
 
971
# Strip out --silent because we don't want to record it for future runs.
 
972
# Also quote any args containing shell meta-characters.
 
973
# Make two passes to allow for proper duplicate-argument suppression.
 
974
ac_configure_args=
 
975
ac_configure_args0=
 
976
ac_configure_args1=
 
977
ac_sep=
 
978
ac_must_keep_next=false
 
979
for ac_pass in 1 2
 
980
do
 
981
  for ac_arg
 
982
  do
 
983
    case $ac_arg in
 
984
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
985
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
986
    | -silent | --silent | --silen | --sile | --sil)
 
987
      continue ;;
 
988
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
989
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
990
    esac
 
991
    case $ac_pass in
 
992
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
993
    2)
 
994
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
995
      if test $ac_must_keep_next = true; then
 
996
        ac_must_keep_next=false # Got value, back to normal.
 
997
      else
 
998
        case $ac_arg in
 
999
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1000
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1001
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1002
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1003
            case "$ac_configure_args0 " in
 
1004
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1005
            esac
 
1006
            ;;
 
1007
          -* ) ac_must_keep_next=true ;;
 
1008
        esac
 
1009
      fi
 
1010
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1011
      # Get rid of the leading space.
 
1012
      ac_sep=" "
 
1013
      ;;
 
1014
    esac
 
1015
  done
 
1016
done
 
1017
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1018
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1019
 
 
1020
# When interrupted or exit'd, cleanup temporary files, and complete
 
1021
# config.log.  We remove comments because anyway the quotes in there
 
1022
# would cause problems or look ugly.
 
1023
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1024
# such as our DU 5.0 friend, will then `close' the trap.
 
1025
trap 'exit_status=$?
 
1026
  # Save into config.log some information that might help in debugging.
 
1027
  {
 
1028
    echo
 
1029
 
 
1030
    cat <<\_ASBOX
 
1031
## ---------------- ##
 
1032
## Cache variables. ##
 
1033
## ---------------- ##
 
1034
_ASBOX
 
1035
    echo
 
1036
    # The following way of writing the cache mishandles newlines in values,
 
1037
{
 
1038
  (set) 2>&1 |
 
1039
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1040
    *ac_space=\ *)
 
1041
      sed -n \
 
1042
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1043
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1044
      ;;
 
1045
    *)
 
1046
      sed -n \
 
1047
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1048
      ;;
 
1049
    esac;
 
1050
}
 
1051
    echo
 
1052
 
 
1053
    cat <<\_ASBOX
 
1054
## ----------------- ##
 
1055
## Output variables. ##
 
1056
## ----------------- ##
 
1057
_ASBOX
 
1058
    echo
 
1059
    for ac_var in $ac_subst_vars
 
1060
    do
 
1061
      eval ac_val=$`echo $ac_var`
 
1062
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1063
    done | sort
 
1064
    echo
 
1065
 
 
1066
    if test -n "$ac_subst_files"; then
 
1067
      cat <<\_ASBOX
 
1068
## ------------- ##
 
1069
## Output files. ##
 
1070
## ------------- ##
 
1071
_ASBOX
 
1072
      echo
 
1073
      for ac_var in $ac_subst_files
 
1074
      do
 
1075
        eval ac_val=$`echo $ac_var`
 
1076
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1077
      done | sort
 
1078
      echo
 
1079
    fi
 
1080
 
 
1081
    if test -s confdefs.h; then
 
1082
      cat <<\_ASBOX
 
1083
## ----------- ##
 
1084
## confdefs.h. ##
 
1085
## ----------- ##
 
1086
_ASBOX
 
1087
      echo
 
1088
      sed "/^$/d" confdefs.h | sort
 
1089
      echo
 
1090
    fi
 
1091
    test "$ac_signal" != 0 &&
 
1092
      echo "$as_me: caught signal $ac_signal"
 
1093
    echo "$as_me: exit $exit_status"
 
1094
  } >&5
 
1095
  rm -f core *.core &&
 
1096
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1097
    exit $exit_status
 
1098
     ' 0
 
1099
for ac_signal in 1 2 13 15; do
 
1100
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1101
done
 
1102
ac_signal=0
 
1103
 
 
1104
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1105
rm -rf conftest* confdefs.h
 
1106
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1107
echo >confdefs.h
 
1108
 
 
1109
# Predefined preprocessor variables.
 
1110
 
 
1111
cat >>confdefs.h <<_ACEOF
 
1112
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1113
_ACEOF
 
1114
 
 
1115
 
 
1116
cat >>confdefs.h <<_ACEOF
 
1117
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1118
_ACEOF
 
1119
 
 
1120
 
 
1121
cat >>confdefs.h <<_ACEOF
 
1122
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1123
_ACEOF
 
1124
 
 
1125
 
 
1126
cat >>confdefs.h <<_ACEOF
 
1127
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1128
_ACEOF
 
1129
 
 
1130
 
 
1131
cat >>confdefs.h <<_ACEOF
 
1132
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1133
_ACEOF
 
1134
 
 
1135
 
 
1136
# Let the site file select an alternate cache file if it wants to.
 
1137
# Prefer explicitly selected file to automatically selected ones.
 
1138
if test -z "$CONFIG_SITE"; then
 
1139
  if test "x$prefix" != xNONE; then
 
1140
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1141
  else
 
1142
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1143
  fi
 
1144
fi
 
1145
for ac_site_file in $CONFIG_SITE; do
 
1146
  if test -r "$ac_site_file"; then
 
1147
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1148
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1149
    sed 's/^/| /' "$ac_site_file" >&5
 
1150
    . "$ac_site_file"
 
1151
  fi
 
1152
done
 
1153
 
 
1154
if test -r "$cache_file"; then
 
1155
  # Some versions of bash will fail to source /dev/null (special
 
1156
  # files actually), so we avoid doing that.
 
1157
  if test -f "$cache_file"; then
 
1158
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1159
echo "$as_me: loading cache $cache_file" >&6;}
 
1160
    case $cache_file in
 
1161
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1162
      *)                      . ./$cache_file;;
 
1163
    esac
 
1164
  fi
 
1165
else
 
1166
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1167
echo "$as_me: creating cache $cache_file" >&6;}
 
1168
  >$cache_file
 
1169
fi
 
1170
 
 
1171
# Check that the precious variables saved in the cache have kept the same
 
1172
# value.
 
1173
ac_cache_corrupted=false
 
1174
for ac_var in `(set) 2>&1 |
 
1175
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1176
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1177
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1178
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1179
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1180
  case $ac_old_set,$ac_new_set in
 
1181
    set,)
 
1182
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1183
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1184
      ac_cache_corrupted=: ;;
 
1185
    ,set)
 
1186
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1187
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1188
      ac_cache_corrupted=: ;;
 
1189
    ,);;
 
1190
    *)
 
1191
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1192
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1193
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1194
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1195
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1196
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1197
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1198
        ac_cache_corrupted=:
 
1199
      fi;;
 
1200
  esac
 
1201
  # Pass precious variables to config.status.
 
1202
  if test "$ac_new_set" = set; then
 
1203
    case $ac_new_val in
 
1204
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1205
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1206
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1207
    esac
 
1208
    case " $ac_configure_args " in
 
1209
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1210
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1211
    esac
 
1212
  fi
 
1213
done
 
1214
if $ac_cache_corrupted; then
 
1215
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1216
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1217
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1218
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1219
   { (exit 1); exit 1; }; }
 
1220
fi
 
1221
 
 
1222
ac_ext=c
 
1223
ac_cpp='$CPP $CPPFLAGS'
 
1224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1227
 
 
1228
 
 
1229
 
 
1230
 
 
1231
 
 
1232
 
 
1233
 
 
1234
 
 
1235
 
 
1236
 
 
1237
 
 
1238
 
 
1239
 
 
1240
 
 
1241
 
 
1242
 
 
1243
 
 
1244
 
 
1245
 
 
1246
 
 
1247
 
 
1248
 
 
1249
 
 
1250
 
 
1251
 
 
1252
 
 
1253
 
 
1254
ac_aux_dir=
 
1255
for ac_dir in config $srcdir/config; do
 
1256
  if test -f $ac_dir/install-sh; then
 
1257
    ac_aux_dir=$ac_dir
 
1258
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1259
    break
 
1260
  elif test -f $ac_dir/install.sh; then
 
1261
    ac_aux_dir=$ac_dir
 
1262
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1263
    break
 
1264
  elif test -f $ac_dir/shtool; then
 
1265
    ac_aux_dir=$ac_dir
 
1266
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1267
    break
 
1268
  fi
 
1269
done
 
1270
if test -z "$ac_aux_dir"; then
 
1271
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
 
1272
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
 
1273
   { (exit 1); exit 1; }; }
 
1274
fi
 
1275
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1276
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1277
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1278
 
 
1279
 
 
1280
am__api_version="1.9"
 
1281
# Find a good install program.  We prefer a C program (faster),
 
1282
# so one script is as good as another.  But avoid the broken or
 
1283
# incompatible versions:
 
1284
# SysV /etc/install, /usr/sbin/install
 
1285
# SunOS /usr/etc/install
 
1286
# IRIX /sbin/install
 
1287
# AIX /bin/install
 
1288
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1289
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1290
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1291
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1292
# OS/2's system install, which has a completely different semantic
 
1293
# ./install, which can be erroneously created by make from ./install.sh.
 
1294
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1295
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1296
if test -z "$INSTALL"; then
 
1297
if test "${ac_cv_path_install+set}" = set; then
 
1298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1299
else
 
1300
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1301
for as_dir in $PATH
 
1302
do
 
1303
  IFS=$as_save_IFS
 
1304
  test -z "$as_dir" && as_dir=.
 
1305
  # Account for people who put trailing slashes in PATH elements.
 
1306
case $as_dir/ in
 
1307
  ./ | .// | /cC/* | \
 
1308
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1309
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1310
  /usr/ucb/* ) ;;
 
1311
  *)
 
1312
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1313
    # Don't use installbsd from OSF since it installs stuff as root
 
1314
    # by default.
 
1315
    for ac_prog in ginstall scoinst install; do
 
1316
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1317
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1318
          if test $ac_prog = install &&
 
1319
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1320
            # AIX install.  It has an incompatible calling convention.
 
1321
            :
 
1322
          elif test $ac_prog = install &&
 
1323
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1324
            # program-specific install script used by HP pwplus--don't use.
 
1325
            :
 
1326
          else
 
1327
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1328
            break 3
 
1329
          fi
 
1330
        fi
 
1331
      done
 
1332
    done
 
1333
    ;;
 
1334
esac
 
1335
done
 
1336
 
 
1337
 
 
1338
fi
 
1339
  if test "${ac_cv_path_install+set}" = set; then
 
1340
    INSTALL=$ac_cv_path_install
 
1341
  else
 
1342
    # As a last resort, use the slow shell script.  We don't cache a
 
1343
    # path for INSTALL within a source directory, because that will
 
1344
    # break other packages using the cache if that directory is
 
1345
    # removed, or if the path is relative.
 
1346
    INSTALL=$ac_install_sh
 
1347
  fi
 
1348
fi
 
1349
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1350
echo "${ECHO_T}$INSTALL" >&6
 
1351
 
 
1352
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1353
# It thinks the first close brace ends the variable substitution.
 
1354
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1355
 
 
1356
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1357
 
 
1358
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1359
 
 
1360
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1361
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1362
# Just in case
 
1363
sleep 1
 
1364
echo timestamp > conftest.file
 
1365
# Do `set' in a subshell so we don't clobber the current shell's
 
1366
# arguments.  Must try -L first in case configure is actually a
 
1367
# symlink; some systems play weird games with the mod time of symlinks
 
1368
# (eg FreeBSD returns the mod time of the symlink's containing
 
1369
# directory).
 
1370
if (
 
1371
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1372
   if test "$*" = "X"; then
 
1373
      # -L didn't work.
 
1374
      set X `ls -t $srcdir/configure conftest.file`
 
1375
   fi
 
1376
   rm -f conftest.file
 
1377
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1378
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1379
 
 
1380
      # If neither matched, then we have a broken ls.  This can happen
 
1381
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1382
      # broken ls alias from the environment.  This has actually
 
1383
      # happened.  Such a system could not be considered "sane".
 
1384
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1385
alias in your environment" >&5
 
1386
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1387
alias in your environment" >&2;}
 
1388
   { (exit 1); exit 1; }; }
 
1389
   fi
 
1390
 
 
1391
   test "$2" = conftest.file
 
1392
   )
 
1393
then
 
1394
   # Ok.
 
1395
   :
 
1396
else
 
1397
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1398
Check your system clock" >&5
 
1399
echo "$as_me: error: newly created file is older than distributed files!
 
1400
Check your system clock" >&2;}
 
1401
   { (exit 1); exit 1; }; }
 
1402
fi
 
1403
echo "$as_me:$LINENO: result: yes" >&5
 
1404
echo "${ECHO_T}yes" >&6
 
1405
test "$program_prefix" != NONE &&
 
1406
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1407
# Use a double $ so make ignores it.
 
1408
test "$program_suffix" != NONE &&
 
1409
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1410
# Double any \ or $.  echo might interpret backslashes.
 
1411
# By default was `s,x,x', remove it if useless.
 
1412
cat <<\_ACEOF >conftest.sed
 
1413
s/[\\$]/&&/g;s/;s,x,x,$//
 
1414
_ACEOF
 
1415
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1416
rm conftest.sed
 
1417
 
 
1418
# expand $ac_aux_dir to an absolute path
 
1419
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1420
 
 
1421
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1422
# Use eval to expand $SHELL
 
1423
if eval "$MISSING --run true"; then
 
1424
  am_missing_run="$MISSING --run "
 
1425
else
 
1426
  am_missing_run=
 
1427
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1428
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1429
fi
 
1430
 
 
1431
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1432
  # We used to keeping the `.' as first argument, in order to
 
1433
  # allow $(mkdir_p) to be used without argument.  As in
 
1434
  #   $(mkdir_p) $(somedir)
 
1435
  # where $(somedir) is conditionally defined.  However this is wrong
 
1436
  # for two reasons:
 
1437
  #  1. if the package is installed by a user who cannot write `.'
 
1438
  #     make install will fail,
 
1439
  #  2. the above comment should most certainly read
 
1440
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1441
  #     so it does not work when $(somedir) is undefined and
 
1442
  #     $(DESTDIR) is not.
 
1443
  #  To support the latter case, we have to write
 
1444
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1445
  #  so the `.' trick is pointless.
 
1446
  mkdir_p='mkdir -p --'
 
1447
else
 
1448
  # On NextStep and OpenStep, the `mkdir' command does not
 
1449
  # recognize any option.  It will interpret all options as
 
1450
  # directories to create, and then abort because `.' already
 
1451
  # exists.
 
1452
  for d in ./-p ./--version;
 
1453
  do
 
1454
    test -d $d && rmdir $d
 
1455
  done
 
1456
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1457
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1458
    mkdir_p='$(mkinstalldirs)'
 
1459
  else
 
1460
    mkdir_p='$(install_sh) -d'
 
1461
  fi
 
1462
fi
 
1463
 
 
1464
for ac_prog in gawk mawk nawk awk
 
1465
do
 
1466
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1467
set dummy $ac_prog; ac_word=$2
 
1468
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1469
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1470
if test "${ac_cv_prog_AWK+set}" = set; then
 
1471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1472
else
 
1473
  if test -n "$AWK"; then
 
1474
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1475
else
 
1476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1477
for as_dir in $PATH
 
1478
do
 
1479
  IFS=$as_save_IFS
 
1480
  test -z "$as_dir" && as_dir=.
 
1481
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1482
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1483
    ac_cv_prog_AWK="$ac_prog"
 
1484
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1485
    break 2
 
1486
  fi
 
1487
done
 
1488
done
 
1489
 
 
1490
fi
 
1491
fi
 
1492
AWK=$ac_cv_prog_AWK
 
1493
if test -n "$AWK"; then
 
1494
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1495
echo "${ECHO_T}$AWK" >&6
 
1496
else
 
1497
  echo "$as_me:$LINENO: result: no" >&5
 
1498
echo "${ECHO_T}no" >&6
 
1499
fi
 
1500
 
 
1501
  test -n "$AWK" && break
 
1502
done
 
1503
 
 
1504
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1505
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1506
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1507
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1509
else
 
1510
  cat >conftest.make <<\_ACEOF
 
1511
all:
 
1512
        @echo 'ac_maketemp="$(MAKE)"'
 
1513
_ACEOF
 
1514
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1515
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1516
if test -n "$ac_maketemp"; then
 
1517
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1518
else
 
1519
  eval ac_cv_prog_make_${ac_make}_set=no
 
1520
fi
 
1521
rm -f conftest.make
 
1522
fi
 
1523
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1524
  echo "$as_me:$LINENO: result: yes" >&5
 
1525
echo "${ECHO_T}yes" >&6
 
1526
  SET_MAKE=
 
1527
else
 
1528
  echo "$as_me:$LINENO: result: no" >&5
 
1529
echo "${ECHO_T}no" >&6
 
1530
  SET_MAKE="MAKE=${MAKE-make}"
 
1531
fi
 
1532
 
 
1533
rm -rf .tst 2>/dev/null
 
1534
mkdir .tst 2>/dev/null
 
1535
if test -d .tst; then
 
1536
  am__leading_dot=.
 
1537
else
 
1538
  am__leading_dot=_
 
1539
fi
 
1540
rmdir .tst 2>/dev/null
 
1541
 
 
1542
# test to see if srcdir already configured
 
1543
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1544
   test -f $srcdir/config.status; then
 
1545
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1546
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1547
   { (exit 1); exit 1; }; }
 
1548
fi
 
1549
 
 
1550
# test whether we have cygpath
 
1551
if test -z "$CYGPATH_W"; then
 
1552
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1553
    CYGPATH_W='cygpath -w'
 
1554
  else
 
1555
    CYGPATH_W=echo
 
1556
  fi
 
1557
fi
 
1558
 
 
1559
 
 
1560
# Define the identity of the package.
 
1561
 PACKAGE='ibutils'
 
1562
 VERSION='1.2'
 
1563
 
 
1564
 
 
1565
cat >>confdefs.h <<_ACEOF
 
1566
#define PACKAGE "$PACKAGE"
 
1567
_ACEOF
 
1568
 
 
1569
 
 
1570
cat >>confdefs.h <<_ACEOF
 
1571
#define VERSION "$VERSION"
 
1572
_ACEOF
 
1573
 
 
1574
# Some tools Automake needs.
 
1575
 
 
1576
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1577
 
 
1578
 
 
1579
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1580
 
 
1581
 
 
1582
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1583
 
 
1584
 
 
1585
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1586
 
 
1587
 
 
1588
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1589
 
 
1590
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1591
 
 
1592
# Installed binaries are usually stripped using `strip' when the user
 
1593
# run `make install-strip'.  However `strip' might not be the right
 
1594
# tool to use in cross-compilation environments, therefore Automake
 
1595
# will honor the `STRIP' environment variable to overrule this program.
 
1596
if test "$cross_compiling" != no; then
 
1597
  if test -n "$ac_tool_prefix"; then
 
1598
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1599
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1600
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1602
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1604
else
 
1605
  if test -n "$STRIP"; then
 
1606
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1607
else
 
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1609
for as_dir in $PATH
 
1610
do
 
1611
  IFS=$as_save_IFS
 
1612
  test -z "$as_dir" && as_dir=.
 
1613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1615
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1617
    break 2
 
1618
  fi
 
1619
done
 
1620
done
 
1621
 
 
1622
fi
 
1623
fi
 
1624
STRIP=$ac_cv_prog_STRIP
 
1625
if test -n "$STRIP"; then
 
1626
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1627
echo "${ECHO_T}$STRIP" >&6
 
1628
else
 
1629
  echo "$as_me:$LINENO: result: no" >&5
 
1630
echo "${ECHO_T}no" >&6
 
1631
fi
 
1632
 
 
1633
fi
 
1634
if test -z "$ac_cv_prog_STRIP"; then
 
1635
  ac_ct_STRIP=$STRIP
 
1636
  # Extract the first word of "strip", so it can be a program name with args.
 
1637
set dummy strip; ac_word=$2
 
1638
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1640
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1642
else
 
1643
  if test -n "$ac_ct_STRIP"; then
 
1644
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1645
else
 
1646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1647
for as_dir in $PATH
 
1648
do
 
1649
  IFS=$as_save_IFS
 
1650
  test -z "$as_dir" && as_dir=.
 
1651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1653
    ac_cv_prog_ac_ct_STRIP="strip"
 
1654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1655
    break 2
 
1656
  fi
 
1657
done
 
1658
done
 
1659
 
 
1660
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1661
fi
 
1662
fi
 
1663
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1664
if test -n "$ac_ct_STRIP"; then
 
1665
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1666
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1667
else
 
1668
  echo "$as_me:$LINENO: result: no" >&5
 
1669
echo "${ECHO_T}no" >&6
 
1670
fi
 
1671
 
 
1672
  STRIP=$ac_ct_STRIP
 
1673
else
 
1674
  STRIP="$ac_cv_prog_STRIP"
 
1675
fi
 
1676
 
 
1677
fi
 
1678
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1679
 
 
1680
# We need awk for the "check" target.  The system "awk" is bad on
 
1681
# some platforms.
 
1682
# Always define AMTAR for backward compatibility.
 
1683
 
 
1684
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1685
 
 
1686
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1687
 
 
1688
 
 
1689
 
 
1690
 
 
1691
 
 
1692
 
 
1693
ac_ext=c
 
1694
ac_cpp='$CPP $CPPFLAGS'
 
1695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1698
 
 
1699
 
 
1700
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1701
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1702
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1703
if test "${enable_maintainer_mode+set}" = set; then
 
1704
  enableval="$enable_maintainer_mode"
 
1705
  USE_MAINTAINER_MODE=$enableval
 
1706
else
 
1707
  USE_MAINTAINER_MODE=no
 
1708
fi;
 
1709
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1710
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1711
 
 
1712
 
 
1713
if test $USE_MAINTAINER_MODE = yes; then
 
1714
  MAINTAINER_MODE_TRUE=
 
1715
  MAINTAINER_MODE_FALSE='#'
 
1716
else
 
1717
  MAINTAINER_MODE_TRUE='#'
 
1718
  MAINTAINER_MODE_FALSE=
 
1719
fi
 
1720
 
 
1721
  MAINT=$MAINTAINER_MODE_TRUE
 
1722
 
 
1723
 
 
1724
 
 
1725
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1726
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1727
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1728
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1730
else
 
1731
  cat >conftest.make <<\_ACEOF
 
1732
all:
 
1733
        @echo 'ac_maketemp="$(MAKE)"'
 
1734
_ACEOF
 
1735
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1736
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1737
if test -n "$ac_maketemp"; then
 
1738
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1739
else
 
1740
  eval ac_cv_prog_make_${ac_make}_set=no
 
1741
fi
 
1742
rm -f conftest.make
 
1743
fi
 
1744
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1745
  echo "$as_me:$LINENO: result: yes" >&5
 
1746
echo "${ECHO_T}yes" >&6
 
1747
  SET_MAKE=
 
1748
else
 
1749
  echo "$as_me:$LINENO: result: no" >&5
 
1750
echo "${ECHO_T}no" >&6
 
1751
  SET_MAKE="MAKE=${MAKE-make}"
 
1752
fi
 
1753
 
 
1754
 
 
1755
# Check whether --enable-debug or --disable-debug was given.
 
1756
if test "${enable_debug+set}" = set; then
 
1757
  enableval="$enable_debug"
 
1758
  case "${enableval}" in
 
1759
  yes) debug=true ;;
 
1760
  no)  debug=false ;;
 
1761
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
 
1762
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
 
1763
   { (exit 1); exit 1; }; } ;;
 
1764
esac
 
1765
else
 
1766
  debug=false
 
1767
fi;
 
1768
 
 
1769
# Check whether --enable-libcheck or --disable-libcheck was given.
 
1770
if test "${enable_libcheck+set}" = set; then
 
1771
  enableval="$enable_libcheck"
 
1772
  case "${enableval}" in
 
1773
  yes) libcheck=true ;;
 
1774
  no)  libcheck=false ;;
 
1775
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libcheck" >&5
 
1776
echo "$as_me: error: bad value ${enableval} for --enable-libcheck" >&2;}
 
1777
   { (exit 1); exit 1; }; } ;;
 
1778
esac
 
1779
else
 
1780
  libcheck=true
 
1781
fi;
 
1782
 
 
1783
 
 
1784
# --- BEGIN OPENIB_APP_OSM ---
 
1785
 
 
1786
 
 
1787
# Check whether --with-osm or --without-osm was given.
 
1788
if test "${with_osm+set}" = set; then
 
1789
  withval="$with_osm"
 
1790
  { echo "$as_me:$LINENO: Using OSM from:$with_osm" >&5
 
1791
echo "$as_me: Using OSM from:$with_osm" >&6;}
 
1792
else
 
1793
  with_osm="none"
 
1794
fi;
 
1795
 
 
1796
 
 
1797
# Check whether --with-osm-libs or --without-osm-libs was given.
 
1798
if test "${with_osm_libs+set}" = set; then
 
1799
  withval="$with_osm_libs"
 
1800
  { echo "$as_me:$LINENO: Using OSM libs from:$with_osm_libs" >&5
 
1801
echo "$as_me: Using OSM libs from:$with_osm_libs" >&6;}
 
1802
else
 
1803
  with_osm_libs="none"
 
1804
fi;
 
1805
 
 
1806
osm_lib_dir="none"
 
1807
 
 
1808
if test "x$libcheck" = "xtrue"; then
 
1809
      if test "x$with_osm" = xnone; then
 
1810
      if test -d /usr/local/ibgd/apps/osm; then
 
1811
         with_osm=/usr/local/ibgd/apps/osm
 
1812
      elif test -d /usr/mellanox/osm; then
 
1813
         with_osm=/usr/mellanox
 
1814
            elif test -f /etc/infiniband/info; then
 
1815
         ofed_dir=`/etc/infiniband/info | grep prefix | cut -d = -f 2`
 
1816
         if (test -f $ofed_dir/lib/libopensm.so ||
 
1817
                                test -f $ofed_dir/lib64/libopensm.so); then
 
1818
            with_osm=$ofed_dir
 
1819
         fi
 
1820
      elif (test -f /usr/local/lib64/libopensm.so ||
 
1821
                                test -f /usr/local/lib/libopensm.so); then
 
1822
         with_osm=/usr/local
 
1823
      elif (test -f /usr/lib64/libopensm.so ||
 
1824
                                test -f /usr/lib/libopensm.so); then
 
1825
         with_osm=/usr
 
1826
      else
 
1827
         { { echo "$as_me:$LINENO: error: OSM: --with-osm must be provided - fail to find standard OpenSM installation" >&5
 
1828
echo "$as_me: error: OSM: --with-osm must be provided - fail to find standard OpenSM installation" >&2;}
 
1829
   { (exit 1); exit 1; }; }
 
1830
      fi
 
1831
   fi
 
1832
   { echo "$as_me:$LINENO: OSM: used from $with_osm" >&5
 
1833
echo "$as_me: OSM: used from $with_osm" >&6;}
 
1834
 
 
1835
   if test "x$with_osm_libs" = "xnone"; then
 
1836
         if (test -f $with_osm/lib64/libosmvendor_gen1.so ||
 
1837
                         test -f $with_osm/lib64/libosmvendor_vapi.so ||
 
1838
         test -f $with_osm/lib64/libopensm.so         ||
 
1839
                         test -f $with_osm/lib64/libosmvendor_sim.so); then
 
1840
         osm_lib_dir=lib64
 
1841
      else
 
1842
         osm_lib_dir=lib
 
1843
      fi
 
1844
   fi
 
1845
   with_osm_libs=$with_osm/$osm_lib_dir
 
1846
 
 
1847
      if test -d $with_osm/include/infiniband; then
 
1848
      OSM_BUILD=openib
 
1849
   else
 
1850
      OSM_BUILD=gen1
 
1851
   fi
 
1852
   { echo "$as_me:$LINENO: OSM: build type $OSM_BUILD" >&5
 
1853
echo "$as_me: OSM: build type $OSM_BUILD" >&6;}
 
1854
 
 
1855
   OSM_LDFLAGS="-Wl,-rpath -Wl,$with_osm_libs -L$with_osm_libs"
 
1856
         if test $OSM_BUILD = openib; then
 
1857
            osm_include_dir="$with_osm/include/infiniband"
 
1858
      osm_extra_includes="-I$with_osm/include"
 
1859
 
 
1860
      if test -L $with_osm_libs/libosmvendor_gen1.so; then
 
1861
         OSM_VENDOR=ts
 
1862
         osm_vendor_sel="-DOSM_VENDOR_INTF_TS"
 
1863
         OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp"
 
1864
      elif test -L $with_osm_libs/libosmvendor_vapi.so; then
 
1865
         OSM_VENDOR=mtl
 
1866
         osm_vendor_sel="-DOSM_VENDOR_INTF_MTL"
 
1867
         OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp -lvapi -lib_mgt"
 
1868
      elif test -L $with_osm_libs/libosmvendor_sim.so; then
 
1869
         OSM_VENDOR=sim
 
1870
         osm_vendor_sel="-DOSM_VENDOR_INTF_SIM"
 
1871
         OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -libmscli -losmcomp"
 
1872
      elif test -L $with_osm_libs/libopensm.so; then
 
1873
         OSM_VENDOR=openib
 
1874
         osm_vendor_sel="-DOSM_VENDOR_INTF_OPENIB "
 
1875
         OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp -libumad -libcommon"
 
1876
      else
 
1877
         { { echo "$as_me:$LINENO: error: OSM: Fail to recognize vendor type" >&5
 
1878
echo "$as_me: error: OSM: Fail to recognize vendor type" >&2;}
 
1879
   { (exit 1); exit 1; }; }
 
1880
      fi
 
1881
      osm_vendor_sel="$osm_vendor_sel -DOSM_BUILD_OPENIB"
 
1882
   else
 
1883
      # we are in gen1 build
 
1884
      osm_include_dir="$with_osm/include"
 
1885
 
 
1886
      if test -L $with_osm_libs/libosmsvc_ts.so; then
 
1887
         OSM_VENDOR=ts
 
1888
         OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_ts -lcomplib"
 
1889
         osm_vendor_sel="-DOSM_VENDOR_INTF_TS"
 
1890
      elif test -L $with_osm_libs/libosmsvc_mtl.so; then
 
1891
         OSM_VENDOR=mtl
 
1892
         OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_mtl -lcomplib -lvapi -lib_mgt"
 
1893
         osm_vendor_sel="-DOSM_VENDOR_INTF_MTL"
 
1894
      elif test -L $with_osm_libs/libosmsvc_sim.so; then
 
1895
         OSM_VENDOR=sim
 
1896
         OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_sim -lcomplib"
 
1897
         osm_vendor_sel="-DOSM_VENDOR_INTF_SIM"
 
1898
      else
 
1899
         { { echo "$as_me:$LINENO: error: OSM: Fail to recognize vendor type" >&5
 
1900
echo "$as_me: error: OSM: Fail to recognize vendor type" >&2;}
 
1901
   { (exit 1); exit 1; }; }
 
1902
      fi
 
1903
   fi
 
1904
   { echo "$as_me:$LINENO: OSM: vendor type $OSM_VENDOR" >&5
 
1905
echo "$as_me: OSM: vendor type $OSM_VENDOR" >&6;}
 
1906
 
 
1907
 
 
1908
      as_ac_File=`echo "ac_cv_file_$osm_include_dir/opensm/osm_build_id.h" | $as_tr_sh`
 
1909
echo "$as_me:$LINENO: checking for $osm_include_dir/opensm/osm_build_id.h" >&5
 
1910
echo $ECHO_N "checking for $osm_include_dir/opensm/osm_build_id.h... $ECHO_C" >&6
 
1911
if eval "test \"\${$as_ac_File+set}\" = set"; then
 
1912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1913
else
 
1914
  test "$cross_compiling" = yes &&
 
1915
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
1916
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
1917
   { (exit 1); exit 1; }; }
 
1918
if test -r "$osm_include_dir/opensm/osm_build_id.h"; then
 
1919
  eval "$as_ac_File=yes"
 
1920
else
 
1921
  eval "$as_ac_File=no"
 
1922
fi
 
1923
fi
 
1924
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
 
1925
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
 
1926
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
1927
  :
 
1928
else
 
1929
  { { echo "$as_me:$LINENO: error: OSM: could not find $with_osm/include/opensm/osm_build_id.h" >&5
 
1930
echo "$as_me: error: OSM: could not find $with_osm/include/opensm/osm_build_id.h" >&2;}
 
1931
   { (exit 1); exit 1; }; }
 
1932
fi
 
1933
 
 
1934
 
 
1935
      if test `grep debug $osm_include_dir/opensm/osm_build_id.h | wc -l` = 1; then
 
1936
            osm_debug_flags='-DDEBUG -D_DEBUG -D_DEBUG_ -DDBG'
 
1937
      { echo "$as_me:$LINENO: OSM: compiled in DEBUG mode" >&5
 
1938
echo "$as_me: OSM: compiled in DEBUG mode" >&6;}
 
1939
   else
 
1940
      osm_debug_flags=
 
1941
   fi
 
1942
 
 
1943
   OSM_CFLAGS="-I$osm_include_dir $osm_extra_includes $osm_debug_flags $osm_vendor_sel -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1"
 
1944
else
 
1945
      with_osm=disabled
 
1946
   OSM_CLFAGS=disabled
 
1947
   OSM_LDFLAGS=disabled
 
1948
   OSM_VEDNOR=disabled
 
1949
   OSM_BUILD=disabled
 
1950
fi
 
1951
 
 
1952
 
 
1953
 
 
1954
if test "x$OSM_VENDOR" = xts; then
 
1955
  OSM_VENDOR_TS_TRUE=
 
1956
  OSM_VENDOR_TS_FALSE='#'
 
1957
else
 
1958
  OSM_VENDOR_TS_TRUE='#'
 
1959
  OSM_VENDOR_TS_FALSE=
 
1960
fi
 
1961
 
 
1962
 
 
1963
 
 
1964
if test "x$OSM_VENDOR" = xmtl; then
 
1965
  OSM_VENDOR_MTL_TRUE=
 
1966
  OSM_VENDOR_MTL_FALSE='#'
 
1967
else
 
1968
  OSM_VENDOR_MTL_TRUE='#'
 
1969
  OSM_VENDOR_MTL_FALSE=
 
1970
fi
 
1971
 
 
1972
 
 
1973
 
 
1974
if test "x$OSM_VENDOR" = xsim; then
 
1975
  OSM_VENDOR_SIM_TRUE=
 
1976
  OSM_VENDOR_SIM_FALSE='#'
 
1977
else
 
1978
  OSM_VENDOR_SIM_TRUE='#'
 
1979
  OSM_VENDOR_SIM_FALSE=
 
1980
fi
 
1981
 
 
1982
 
 
1983
 
 
1984
if test "x$OSM_BUILD" = xopenib; then
 
1985
  OSM_BUILD_OPENIB_TRUE=
 
1986
  OSM_BUILD_OPENIB_FALSE='#'
 
1987
else
 
1988
  OSM_BUILD_OPENIB_TRUE='#'
 
1989
  OSM_BUILD_OPENIB_FALSE=
 
1990
fi
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
# --- OPENIB_APP_OSM ---
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
subdirs="$subdirs ibis ibdm ibdiag"
 
2005
 
 
2006
 
 
2007
# Check whether --enable-ibmgtsim or --disable-ibmgtsim was given.
 
2008
if test "${enable_ibmgtsim+set}" = set; then
 
2009
  enableval="$enable_ibmgtsim"
 
2010
  case "${enableval}" in
 
2011
  yes) ibmgtsim=true ;;
 
2012
  no)  ibmgtsim=false ;;
 
2013
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ibmgtsim" >&5
 
2014
echo "$as_me: error: bad value ${enableval} for --enable-ibmgtsim" >&2;}
 
2015
   { (exit 1); exit 1; }; } ;;
 
2016
esac
 
2017
else
 
2018
  ibmgtsim=false
 
2019
fi;
 
2020
 
 
2021
 
 
2022
if test "x$ibmgtsim" != xfalse; then
 
2023
  BUILD_IBMGTSIM_TRUE=
 
2024
  BUILD_IBMGTSIM_FALSE='#'
 
2025
else
 
2026
  BUILD_IBMGTSIM_TRUE='#'
 
2027
  BUILD_IBMGTSIM_FALSE=
 
2028
fi
 
2029
 
 
2030
 
 
2031
abs_srcdir=`cd ${0%*/*};pwd`
 
2032
 
 
2033
if test $ibmgtsim = true; then
 
2034
ac_configure_args="$ac_configure_args --with-ibdm=$abs_srcdir/ibdm"
 
2035
 
 
2036
 
 
2037
subdirs="$subdirs ibmgtsim"
 
2038
 
 
2039
fi
 
2040
 
 
2041
          ac_config_files="$ac_config_files ibutils.spec"
 
2042
 
 
2043
          ac_config_files="$ac_config_files Makefile"
 
2044
cat >confcache <<\_ACEOF
 
2045
# This file is a shell script that caches the results of configure
 
2046
# tests run on this system so they can be shared between configure
 
2047
# scripts and configure runs, see configure's option --config-cache.
 
2048
# It is not useful on other systems.  If it contains results you don't
 
2049
# want to keep, you may remove or edit it.
 
2050
#
 
2051
# config.status only pays attention to the cache file if you give it
 
2052
# the --recheck option to rerun configure.
 
2053
#
 
2054
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
2055
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
2056
# following values.
 
2057
 
 
2058
_ACEOF
 
2059
 
 
2060
# The following way of writing the cache mishandles newlines in values,
 
2061
# but we know of no workaround that is simple, portable, and efficient.
 
2062
# So, don't put newlines in cache variables' values.
 
2063
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2064
# and sets the high bit in the cache file unless we assign to the vars.
 
2065
{
 
2066
  (set) 2>&1 |
 
2067
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2068
    *ac_space=\ *)
 
2069
      # `set' does not quote correctly, so add quotes (double-quote
 
2070
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
2071
      sed -n \
 
2072
        "s/'/'\\\\''/g;
 
2073
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2074
      ;;
 
2075
    *)
 
2076
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2077
      sed -n \
 
2078
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2079
      ;;
 
2080
    esac;
 
2081
} |
 
2082
  sed '
 
2083
     t clear
 
2084
     : clear
 
2085
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
2086
     t end
 
2087
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
2088
     : end' >>confcache
 
2089
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
2090
  if test -w $cache_file; then
 
2091
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
2092
    cat confcache >$cache_file
 
2093
  else
 
2094
    echo "not updating unwritable cache $cache_file"
 
2095
  fi
 
2096
fi
 
2097
rm -f confcache
 
2098
 
 
2099
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2100
# Let make expand exec_prefix.
 
2101
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2102
 
 
2103
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
2104
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
2105
# trailing colons and then remove the whole line if VPATH becomes empty
 
2106
# (actually we leave an empty line to preserve line numbers).
 
2107
if test "x$srcdir" = x.; then
 
2108
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
2109
s/:*\$(srcdir):*/:/;
 
2110
s/:*\${srcdir}:*/:/;
 
2111
s/:*@srcdir@:*/:/;
 
2112
s/^\([^=]*=[     ]*\):*/\1/;
 
2113
s/:*$//;
 
2114
s/^[^=]*=[       ]*$//;
 
2115
}'
 
2116
fi
 
2117
 
 
2118
# Transform confdefs.h into DEFS.
 
2119
# Protect against shell expansion while executing Makefile rules.
 
2120
# Protect against Makefile macro expansion.
 
2121
#
 
2122
# If the first sed substitution is executed (which looks for macros that
 
2123
# take arguments), then we branch to the quote section.  Otherwise,
 
2124
# look for a macro that doesn't take arguments.
 
2125
cat >confdef2opt.sed <<\_ACEOF
 
2126
t clear
 
2127
: clear
 
2128
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
2129
t quote
 
2130
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
2131
t quote
 
2132
d
 
2133
: quote
 
2134
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
2135
s,\[,\\&,g
 
2136
s,\],\\&,g
 
2137
s,\$,$$,g
 
2138
p
 
2139
_ACEOF
 
2140
# We use echo to avoid assuming a particular line-breaking character.
 
2141
# The extra dot is to prevent the shell from consuming trailing
 
2142
# line-breaks from the sub-command output.  A line-break within
 
2143
# single-quotes doesn't work because, if this script is created in a
 
2144
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
2145
# would break.
 
2146
ac_LF_and_DOT=`echo; echo .`
 
2147
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
2148
rm -f confdef2opt.sed
 
2149
 
 
2150
 
 
2151
ac_libobjs=
 
2152
ac_ltlibobjs=
 
2153
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
2154
  # 1. Remove the extension, and $U if already installed.
 
2155
  ac_i=`echo "$ac_i" |
 
2156
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
2157
  # 2. Add them.
 
2158
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
2159
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
2160
done
 
2161
LIBOBJS=$ac_libobjs
 
2162
 
 
2163
LTLIBOBJS=$ac_ltlibobjs
 
2164
 
 
2165
 
 
2166
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
2167
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
2168
Usually this means the macro was only invoked conditionally." >&5
 
2169
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
2170
Usually this means the macro was only invoked conditionally." >&2;}
 
2171
   { (exit 1); exit 1; }; }
 
2172
fi
 
2173
if test -z "${OSM_VENDOR_TS_TRUE}" && test -z "${OSM_VENDOR_TS_FALSE}"; then
 
2174
  { { echo "$as_me:$LINENO: error: conditional \"OSM_VENDOR_TS\" was never defined.
 
2175
Usually this means the macro was only invoked conditionally." >&5
 
2176
echo "$as_me: error: conditional \"OSM_VENDOR_TS\" was never defined.
 
2177
Usually this means the macro was only invoked conditionally." >&2;}
 
2178
   { (exit 1); exit 1; }; }
 
2179
fi
 
2180
if test -z "${OSM_VENDOR_MTL_TRUE}" && test -z "${OSM_VENDOR_MTL_FALSE}"; then
 
2181
  { { echo "$as_me:$LINENO: error: conditional \"OSM_VENDOR_MTL\" was never defined.
 
2182
Usually this means the macro was only invoked conditionally." >&5
 
2183
echo "$as_me: error: conditional \"OSM_VENDOR_MTL\" was never defined.
 
2184
Usually this means the macro was only invoked conditionally." >&2;}
 
2185
   { (exit 1); exit 1; }; }
 
2186
fi
 
2187
if test -z "${OSM_VENDOR_SIM_TRUE}" && test -z "${OSM_VENDOR_SIM_FALSE}"; then
 
2188
  { { echo "$as_me:$LINENO: error: conditional \"OSM_VENDOR_SIM\" was never defined.
 
2189
Usually this means the macro was only invoked conditionally." >&5
 
2190
echo "$as_me: error: conditional \"OSM_VENDOR_SIM\" was never defined.
 
2191
Usually this means the macro was only invoked conditionally." >&2;}
 
2192
   { (exit 1); exit 1; }; }
 
2193
fi
 
2194
if test -z "${OSM_BUILD_OPENIB_TRUE}" && test -z "${OSM_BUILD_OPENIB_FALSE}"; then
 
2195
  { { echo "$as_me:$LINENO: error: conditional \"OSM_BUILD_OPENIB\" was never defined.
 
2196
Usually this means the macro was only invoked conditionally." >&5
 
2197
echo "$as_me: error: conditional \"OSM_BUILD_OPENIB\" was never defined.
 
2198
Usually this means the macro was only invoked conditionally." >&2;}
 
2199
   { (exit 1); exit 1; }; }
 
2200
fi
 
2201
if test -z "${BUILD_IBMGTSIM_TRUE}" && test -z "${BUILD_IBMGTSIM_FALSE}"; then
 
2202
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_IBMGTSIM\" was never defined.
 
2203
Usually this means the macro was only invoked conditionally." >&5
 
2204
echo "$as_me: error: conditional \"BUILD_IBMGTSIM\" was never defined.
 
2205
Usually this means the macro was only invoked conditionally." >&2;}
 
2206
   { (exit 1); exit 1; }; }
 
2207
fi
 
2208
 
 
2209
: ${CONFIG_STATUS=./config.status}
 
2210
ac_clean_files_save=$ac_clean_files
 
2211
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
2212
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
2213
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
2214
cat >$CONFIG_STATUS <<_ACEOF
 
2215
#! $SHELL
 
2216
# Generated by $as_me.
 
2217
# Run this file to recreate the current configuration.
 
2218
# Compiler output produced by configure, useful for debugging
 
2219
# configure, is in config.log if it exists.
 
2220
 
 
2221
debug=false
 
2222
ac_cs_recheck=false
 
2223
ac_cs_silent=false
 
2224
SHELL=\${CONFIG_SHELL-$SHELL}
 
2225
_ACEOF
 
2226
 
 
2227
cat >>$CONFIG_STATUS <<\_ACEOF
 
2228
## --------------------- ##
 
2229
## M4sh Initialization.  ##
 
2230
## --------------------- ##
 
2231
 
 
2232
# Be Bourne compatible
 
2233
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
2234
  emulate sh
 
2235
  NULLCMD=:
 
2236
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
2237
  # is contrary to our usage.  Disable this feature.
 
2238
  alias -g '${1+"$@"}'='"$@"'
 
2239
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
2240
  set -o posix
 
2241
fi
 
2242
DUALCASE=1; export DUALCASE # for MKS sh
 
2243
 
 
2244
# Support unset when possible.
 
2245
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
2246
  as_unset=unset
 
2247
else
 
2248
  as_unset=false
 
2249
fi
 
2250
 
 
2251
 
 
2252
# Work around bugs in pre-3.0 UWIN ksh.
 
2253
$as_unset ENV MAIL MAILPATH
 
2254
PS1='$ '
 
2255
PS2='> '
 
2256
PS4='+ '
 
2257
 
 
2258
# NLS nuisances.
 
2259
for as_var in \
 
2260
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
2261
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
2262
  LC_TELEPHONE LC_TIME
 
2263
do
 
2264
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
2265
    eval $as_var=C; export $as_var
 
2266
  else
 
2267
    $as_unset $as_var
 
2268
  fi
 
2269
done
 
2270
 
 
2271
# Required to use basename.
 
2272
if expr a : '\(a\)' >/dev/null 2>&1; then
 
2273
  as_expr=expr
 
2274
else
 
2275
  as_expr=false
 
2276
fi
 
2277
 
 
2278
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
2279
  as_basename=basename
 
2280
else
 
2281
  as_basename=false
 
2282
fi
 
2283
 
 
2284
 
 
2285
# Name of the executable.
 
2286
as_me=`$as_basename "$0" ||
 
2287
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
2288
         X"$0" : 'X\(//\)$' \| \
 
2289
         X"$0" : 'X\(/\)$' \| \
 
2290
         .     : '\(.\)' 2>/dev/null ||
 
2291
echo X/"$0" |
 
2292
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
2293
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
2294
          /^X\/\(\/\).*/{ s//\1/; q; }
 
2295
          s/.*/./; q'`
 
2296
 
 
2297
 
 
2298
# PATH needs CR, and LINENO needs CR and PATH.
 
2299
# Avoid depending upon Character Ranges.
 
2300
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
2301
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
2302
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
2303
as_cr_digits='0123456789'
 
2304
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
2305
 
 
2306
# The user is always right.
 
2307
if test "${PATH_SEPARATOR+set}" != set; then
 
2308
  echo "#! /bin/sh" >conf$$.sh
 
2309
  echo  "exit 0"   >>conf$$.sh
 
2310
  chmod +x conf$$.sh
 
2311
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
2312
    PATH_SEPARATOR=';'
 
2313
  else
 
2314
    PATH_SEPARATOR=:
 
2315
  fi
 
2316
  rm -f conf$$.sh
 
2317
fi
 
2318
 
 
2319
 
 
2320
  as_lineno_1=$LINENO
 
2321
  as_lineno_2=$LINENO
 
2322
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
2323
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
2324
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
2325
  # Find who we are.  Look in the path if we contain no path at all
 
2326
  # relative or not.
 
2327
  case $0 in
 
2328
    *[\\/]* ) as_myself=$0 ;;
 
2329
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2330
for as_dir in $PATH
 
2331
do
 
2332
  IFS=$as_save_IFS
 
2333
  test -z "$as_dir" && as_dir=.
 
2334
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
2335
done
 
2336
 
 
2337
       ;;
 
2338
  esac
 
2339
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
2340
  # in which case we are not to be found in the path.
 
2341
  if test "x$as_myself" = x; then
 
2342
    as_myself=$0
 
2343
  fi
 
2344
  if test ! -f "$as_myself"; then
 
2345
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
2346
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
2347
   { (exit 1); exit 1; }; }
 
2348
  fi
 
2349
  case $CONFIG_SHELL in
 
2350
  '')
 
2351
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2352
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
2353
do
 
2354
  IFS=$as_save_IFS
 
2355
  test -z "$as_dir" && as_dir=.
 
2356
  for as_base in sh bash ksh sh5; do
 
2357
         case $as_dir in
 
2358
         /*)
 
2359
           if ("$as_dir/$as_base" -c '
 
2360
  as_lineno_1=$LINENO
 
2361
  as_lineno_2=$LINENO
 
2362
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
2363
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
2364
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
2365
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
2366
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
2367
             CONFIG_SHELL=$as_dir/$as_base
 
2368
             export CONFIG_SHELL
 
2369
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
2370
           fi;;
 
2371
         esac
 
2372
       done
 
2373
done
 
2374
;;
 
2375
  esac
 
2376
 
 
2377
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
2378
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
2379
  # line-number line before each line; the second 'sed' does the real
 
2380
  # work.  The second script uses 'N' to pair each line-number line
 
2381
  # with the numbered line, and appends trailing '-' during
 
2382
  # substitution so that $LINENO is not a special case at line end.
 
2383
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
2384
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
2385
  sed '=' <$as_myself |
 
2386
    sed '
 
2387
      N
 
2388
      s,$,-,
 
2389
      : loop
 
2390
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
2391
      t loop
 
2392
      s,-$,,
 
2393
      s,^['$as_cr_digits']*\n,,
 
2394
    ' >$as_me.lineno &&
 
2395
  chmod +x $as_me.lineno ||
 
2396
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
2397
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
2398
   { (exit 1); exit 1; }; }
 
2399
 
 
2400
  # Don't try to exec as it changes $[0], causing all sort of problems
 
2401
  # (the dirname of $[0] is not the place where we might find the
 
2402
  # original and so on.  Autoconf is especially sensible to this).
 
2403
  . ./$as_me.lineno
 
2404
  # Exit status is that of the last command.
 
2405
  exit
 
2406
}
 
2407
 
 
2408
 
 
2409
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
2410
  *c*,-n*) ECHO_N= ECHO_C='
 
2411
' ECHO_T='      ' ;;
 
2412
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
2413
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
2414
esac
 
2415
 
 
2416
if expr a : '\(a\)' >/dev/null 2>&1; then
 
2417
  as_expr=expr
 
2418
else
 
2419
  as_expr=false
 
2420
fi
 
2421
 
 
2422
rm -f conf$$ conf$$.exe conf$$.file
 
2423
echo >conf$$.file
 
2424
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
2425
  # We could just check for DJGPP; but this test a) works b) is more generic
 
2426
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
2427
  if test -f conf$$.exe; then
 
2428
    # Don't use ln at all; we don't have any links
 
2429
    as_ln_s='cp -p'
 
2430
  else
 
2431
    as_ln_s='ln -s'
 
2432
  fi
 
2433
elif ln conf$$.file conf$$ 2>/dev/null; then
 
2434
  as_ln_s=ln
 
2435
else
 
2436
  as_ln_s='cp -p'
 
2437
fi
 
2438
rm -f conf$$ conf$$.exe conf$$.file
 
2439
 
 
2440
if mkdir -p . 2>/dev/null; then
 
2441
  as_mkdir_p=:
 
2442
else
 
2443
  test -d ./-p && rmdir ./-p
 
2444
  as_mkdir_p=false
 
2445
fi
 
2446
 
 
2447
as_executable_p="test -f"
 
2448
 
 
2449
# Sed expression to map a string onto a valid CPP name.
 
2450
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
2451
 
 
2452
# Sed expression to map a string onto a valid variable name.
 
2453
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
2454
 
 
2455
 
 
2456
# IFS
 
2457
# We need space, tab and new line, in precisely that order.
 
2458
as_nl='
 
2459
'
 
2460
IFS="   $as_nl"
 
2461
 
 
2462
# CDPATH.
 
2463
$as_unset CDPATH
 
2464
 
 
2465
exec 6>&1
 
2466
 
 
2467
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
2468
# report actual input values of CONFIG_FILES etc. instead of their
 
2469
# values after options handling.  Logging --version etc. is OK.
 
2470
exec 5>>config.log
 
2471
{
 
2472
  echo
 
2473
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
2474
## Running $as_me. ##
 
2475
_ASBOX
 
2476
} >&5
 
2477
cat >&5 <<_CSEOF
 
2478
 
 
2479
This file was extended by ibutils $as_me 1.2, which was
 
2480
generated by GNU Autoconf 2.59.  Invocation command line was
 
2481
 
 
2482
  CONFIG_FILES    = $CONFIG_FILES
 
2483
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
2484
  CONFIG_LINKS    = $CONFIG_LINKS
 
2485
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
2486
  $ $0 $@
 
2487
 
 
2488
_CSEOF
 
2489
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
2490
echo >&5
 
2491
_ACEOF
 
2492
 
 
2493
# Files that config.status was made for.
 
2494
if test -n "$ac_config_files"; then
 
2495
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
2496
fi
 
2497
 
 
2498
if test -n "$ac_config_headers"; then
 
2499
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
2500
fi
 
2501
 
 
2502
if test -n "$ac_config_links"; then
 
2503
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
2504
fi
 
2505
 
 
2506
if test -n "$ac_config_commands"; then
 
2507
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
2508
fi
 
2509
 
 
2510
cat >>$CONFIG_STATUS <<\_ACEOF
 
2511
 
 
2512
ac_cs_usage="\
 
2513
\`$as_me' instantiates files from templates according to the
 
2514
current configuration.
 
2515
 
 
2516
Usage: $0 [OPTIONS] [FILE]...
 
2517
 
 
2518
  -h, --help       print this help, then exit
 
2519
  -V, --version    print version number, then exit
 
2520
  -q, --quiet      do not print progress messages
 
2521
  -d, --debug      don't remove temporary files
 
2522
      --recheck    update $as_me by reconfiguring in the same conditions
 
2523
  --file=FILE[:TEMPLATE]
 
2524
                   instantiate the configuration file FILE
 
2525
 
 
2526
Configuration files:
 
2527
$config_files
 
2528
 
 
2529
Report bugs to <bug-autoconf@gnu.org>."
 
2530
_ACEOF
 
2531
 
 
2532
cat >>$CONFIG_STATUS <<_ACEOF
 
2533
ac_cs_version="\\
 
2534
ibutils config.status 1.2
 
2535
configured by $0, generated by GNU Autoconf 2.59,
 
2536
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
2537
 
 
2538
Copyright (C) 2003 Free Software Foundation, Inc.
 
2539
This config.status script is free software; the Free Software Foundation
 
2540
gives unlimited permission to copy, distribute and modify it."
 
2541
srcdir=$srcdir
 
2542
INSTALL="$INSTALL"
 
2543
_ACEOF
 
2544
 
 
2545
cat >>$CONFIG_STATUS <<\_ACEOF
 
2546
# If no file are specified by the user, then we need to provide default
 
2547
# value.  By we need to know if files were specified by the user.
 
2548
ac_need_defaults=:
 
2549
while test $# != 0
 
2550
do
 
2551
  case $1 in
 
2552
  --*=*)
 
2553
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
2554
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
2555
    ac_shift=:
 
2556
    ;;
 
2557
  -*)
 
2558
    ac_option=$1
 
2559
    ac_optarg=$2
 
2560
    ac_shift=shift
 
2561
    ;;
 
2562
  *) # This is not an option, so the user has probably given explicit
 
2563
     # arguments.
 
2564
     ac_option=$1
 
2565
     ac_need_defaults=false;;
 
2566
  esac
 
2567
 
 
2568
  case $ac_option in
 
2569
  # Handling of the options.
 
2570
_ACEOF
 
2571
cat >>$CONFIG_STATUS <<\_ACEOF
 
2572
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
2573
    ac_cs_recheck=: ;;
 
2574
  --version | --vers* | -V )
 
2575
    echo "$ac_cs_version"; exit 0 ;;
 
2576
  --he | --h)
 
2577
    # Conflict between --help and --header
 
2578
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
2579
Try \`$0 --help' for more information." >&5
 
2580
echo "$as_me: error: ambiguous option: $1
 
2581
Try \`$0 --help' for more information." >&2;}
 
2582
   { (exit 1); exit 1; }; };;
 
2583
  --help | --hel | -h )
 
2584
    echo "$ac_cs_usage"; exit 0 ;;
 
2585
  --debug | --d* | -d )
 
2586
    debug=: ;;
 
2587
  --file | --fil | --fi | --f )
 
2588
    $ac_shift
 
2589
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
2590
    ac_need_defaults=false;;
 
2591
  --header | --heade | --head | --hea )
 
2592
    $ac_shift
 
2593
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
2594
    ac_need_defaults=false;;
 
2595
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2596
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
2597
    ac_cs_silent=: ;;
 
2598
 
 
2599
  # This is an error.
 
2600
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
2601
Try \`$0 --help' for more information." >&5
 
2602
echo "$as_me: error: unrecognized option: $1
 
2603
Try \`$0 --help' for more information." >&2;}
 
2604
   { (exit 1); exit 1; }; } ;;
 
2605
 
 
2606
  *) ac_config_targets="$ac_config_targets $1" ;;
 
2607
 
 
2608
  esac
 
2609
  shift
 
2610
done
 
2611
 
 
2612
ac_configure_extra_args=
 
2613
 
 
2614
if $ac_cs_silent; then
 
2615
  exec 6>/dev/null
 
2616
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
2617
fi
 
2618
 
 
2619
_ACEOF
 
2620
cat >>$CONFIG_STATUS <<_ACEOF
 
2621
if \$ac_cs_recheck; then
 
2622
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
2623
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
2624
fi
 
2625
 
 
2626
_ACEOF
 
2627
 
 
2628
 
 
2629
 
 
2630
 
 
2631
 
 
2632
cat >>$CONFIG_STATUS <<\_ACEOF
 
2633
for ac_config_target in $ac_config_targets
 
2634
do
 
2635
  case "$ac_config_target" in
 
2636
  # Handling of arguments.
 
2637
  "ibutils.spec" ) CONFIG_FILES="$CONFIG_FILES ibutils.spec" ;;
 
2638
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
2639
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
2640
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
2641
   { (exit 1); exit 1; }; };;
 
2642
  esac
 
2643
done
 
2644
 
 
2645
# If the user did not use the arguments to specify the items to instantiate,
 
2646
# then the envvar interface is used.  Set only those that are not.
 
2647
# We use the long form for the default assignment because of an extremely
 
2648
# bizarre bug on SunOS 4.1.3.
 
2649
if $ac_need_defaults; then
 
2650
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
2651
fi
 
2652
 
 
2653
# Have a temporary directory for convenience.  Make it in the build tree
 
2654
# simply because there is no reason to put it here, and in addition,
 
2655
# creating and moving files from /tmp can sometimes cause problems.
 
2656
# Create a temporary directory, and hook for its removal unless debugging.
 
2657
$debug ||
 
2658
{
 
2659
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
2660
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
2661
}
 
2662
 
 
2663
# Create a (secure) tmp directory for tmp files.
 
2664
 
 
2665
{
 
2666
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
2667
  test -n "$tmp" && test -d "$tmp"
 
2668
}  ||
 
2669
{
 
2670
  tmp=./confstat$$-$RANDOM
 
2671
  (umask 077 && mkdir $tmp)
 
2672
} ||
 
2673
{
 
2674
   echo "$me: cannot create a temporary directory in ." >&2
 
2675
   { (exit 1); exit 1; }
 
2676
}
 
2677
 
 
2678
_ACEOF
 
2679
 
 
2680
cat >>$CONFIG_STATUS <<_ACEOF
 
2681
 
 
2682
#
 
2683
# CONFIG_FILES section.
 
2684
#
 
2685
 
 
2686
# No need to generate the scripts if there are no CONFIG_FILES.
 
2687
# This happens for instance when ./config.status config.h
 
2688
if test -n "\$CONFIG_FILES"; then
 
2689
  # Protect against being on the right side of a sed subst in config.status.
 
2690
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
2691
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
2692
s,@SHELL@,$SHELL,;t t
 
2693
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
2694
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
2695
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
2696
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
2697
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
2698
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
2699
s,@exec_prefix@,$exec_prefix,;t t
 
2700
s,@prefix@,$prefix,;t t
 
2701
s,@program_transform_name@,$program_transform_name,;t t
 
2702
s,@bindir@,$bindir,;t t
 
2703
s,@sbindir@,$sbindir,;t t
 
2704
s,@libexecdir@,$libexecdir,;t t
 
2705
s,@datadir@,$datadir,;t t
 
2706
s,@sysconfdir@,$sysconfdir,;t t
 
2707
s,@sharedstatedir@,$sharedstatedir,;t t
 
2708
s,@localstatedir@,$localstatedir,;t t
 
2709
s,@libdir@,$libdir,;t t
 
2710
s,@includedir@,$includedir,;t t
 
2711
s,@oldincludedir@,$oldincludedir,;t t
 
2712
s,@infodir@,$infodir,;t t
 
2713
s,@mandir@,$mandir,;t t
 
2714
s,@build_alias@,$build_alias,;t t
 
2715
s,@host_alias@,$host_alias,;t t
 
2716
s,@target_alias@,$target_alias,;t t
 
2717
s,@DEFS@,$DEFS,;t t
 
2718
s,@ECHO_C@,$ECHO_C,;t t
 
2719
s,@ECHO_N@,$ECHO_N,;t t
 
2720
s,@ECHO_T@,$ECHO_T,;t t
 
2721
s,@LIBS@,$LIBS,;t t
 
2722
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
2723
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
2724
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
2725
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
2726
s,@PACKAGE@,$PACKAGE,;t t
 
2727
s,@VERSION@,$VERSION,;t t
 
2728
s,@ACLOCAL@,$ACLOCAL,;t t
 
2729
s,@AUTOCONF@,$AUTOCONF,;t t
 
2730
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
2731
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
2732
s,@MAKEINFO@,$MAKEINFO,;t t
 
2733
s,@install_sh@,$install_sh,;t t
 
2734
s,@STRIP@,$STRIP,;t t
 
2735
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
2736
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
2737
s,@mkdir_p@,$mkdir_p,;t t
 
2738
s,@AWK@,$AWK,;t t
 
2739
s,@SET_MAKE@,$SET_MAKE,;t t
 
2740
s,@am__leading_dot@,$am__leading_dot,;t t
 
2741
s,@AMTAR@,$AMTAR,;t t
 
2742
s,@am__tar@,$am__tar,;t t
 
2743
s,@am__untar@,$am__untar,;t t
 
2744
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
2745
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
2746
s,@MAINT@,$MAINT,;t t
 
2747
s,@OSM_VENDOR_TS_TRUE@,$OSM_VENDOR_TS_TRUE,;t t
 
2748
s,@OSM_VENDOR_TS_FALSE@,$OSM_VENDOR_TS_FALSE,;t t
 
2749
s,@OSM_VENDOR_MTL_TRUE@,$OSM_VENDOR_MTL_TRUE,;t t
 
2750
s,@OSM_VENDOR_MTL_FALSE@,$OSM_VENDOR_MTL_FALSE,;t t
 
2751
s,@OSM_VENDOR_SIM_TRUE@,$OSM_VENDOR_SIM_TRUE,;t t
 
2752
s,@OSM_VENDOR_SIM_FALSE@,$OSM_VENDOR_SIM_FALSE,;t t
 
2753
s,@OSM_BUILD_OPENIB_TRUE@,$OSM_BUILD_OPENIB_TRUE,;t t
 
2754
s,@OSM_BUILD_OPENIB_FALSE@,$OSM_BUILD_OPENIB_FALSE,;t t
 
2755
s,@with_osm@,$with_osm,;t t
 
2756
s,@OSM_CFLAGS@,$OSM_CFLAGS,;t t
 
2757
s,@OSM_LDFLAGS@,$OSM_LDFLAGS,;t t
 
2758
s,@OSM_VENDOR@,$OSM_VENDOR,;t t
 
2759
s,@OSM_BUILD@,$OSM_BUILD,;t t
 
2760
s,@subdirs@,$subdirs,;t t
 
2761
s,@BUILD_IBMGTSIM_TRUE@,$BUILD_IBMGTSIM_TRUE,;t t
 
2762
s,@BUILD_IBMGTSIM_FALSE@,$BUILD_IBMGTSIM_FALSE,;t t
 
2763
s,@LIBOBJS@,$LIBOBJS,;t t
 
2764
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
2765
CEOF
 
2766
 
 
2767
_ACEOF
 
2768
 
 
2769
  cat >>$CONFIG_STATUS <<\_ACEOF
 
2770
  # Split the substitutions into bite-sized pieces for seds with
 
2771
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
2772
  ac_max_sed_lines=48
 
2773
  ac_sed_frag=1 # Number of current file.
 
2774
  ac_beg=1 # First line for current file.
 
2775
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
2776
  ac_more_lines=:
 
2777
  ac_sed_cmds=
 
2778
  while $ac_more_lines; do
 
2779
    if test $ac_beg -gt 1; then
 
2780
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
2781
    else
 
2782
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
2783
    fi
 
2784
    if test ! -s $tmp/subs.frag; then
 
2785
      ac_more_lines=false
 
2786
    else
 
2787
      # The purpose of the label and of the branching condition is to
 
2788
      # speed up the sed processing (if there are no `@' at all, there
 
2789
      # is no need to browse any of the substitutions).
 
2790
      # These are the two extra sed commands mentioned above.
 
2791
      (echo ':t
 
2792
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
2793
      if test -z "$ac_sed_cmds"; then
 
2794
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
2795
      else
 
2796
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
2797
      fi
 
2798
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
2799
      ac_beg=$ac_end
 
2800
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
2801
    fi
 
2802
  done
 
2803
  if test -z "$ac_sed_cmds"; then
 
2804
    ac_sed_cmds=cat
 
2805
  fi
 
2806
fi # test -n "$CONFIG_FILES"
 
2807
 
 
2808
_ACEOF
 
2809
cat >>$CONFIG_STATUS <<\_ACEOF
 
2810
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
2811
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2812
  case $ac_file in
 
2813
  - | *:- | *:-:* ) # input from stdin
 
2814
        cat >$tmp/stdin
 
2815
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
2816
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
2817
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
2818
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
2819
  * )   ac_file_in=$ac_file.in ;;
 
2820
  esac
 
2821
 
 
2822
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
2823
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
2824
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
2825
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
2826
         X"$ac_file" : 'X\(//\)$' \| \
 
2827
         X"$ac_file" : 'X\(/\)' \| \
 
2828
         .     : '\(.\)' 2>/dev/null ||
 
2829
echo X"$ac_file" |
 
2830
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
2831
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
2832
          /^X\(\/\/\)$/{ s//\1/; q; }
 
2833
          /^X\(\/\).*/{ s//\1/; q; }
 
2834
          s/.*/./; q'`
 
2835
  { if $as_mkdir_p; then
 
2836
    mkdir -p "$ac_dir"
 
2837
  else
 
2838
    as_dir="$ac_dir"
 
2839
    as_dirs=
 
2840
    while test ! -d "$as_dir"; do
 
2841
      as_dirs="$as_dir $as_dirs"
 
2842
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
2843
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
2844
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
2845
         X"$as_dir" : 'X\(//\)$' \| \
 
2846
         X"$as_dir" : 'X\(/\)' \| \
 
2847
         .     : '\(.\)' 2>/dev/null ||
 
2848
echo X"$as_dir" |
 
2849
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
2850
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
2851
          /^X\(\/\/\)$/{ s//\1/; q; }
 
2852
          /^X\(\/\).*/{ s//\1/; q; }
 
2853
          s/.*/./; q'`
 
2854
    done
 
2855
    test ! -n "$as_dirs" || mkdir $as_dirs
 
2856
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
2857
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
2858
   { (exit 1); exit 1; }; }; }
 
2859
 
 
2860
  ac_builddir=.
 
2861
 
 
2862
if test "$ac_dir" != .; then
 
2863
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
2864
  # A "../" for each directory in $ac_dir_suffix.
 
2865
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
2866
else
 
2867
  ac_dir_suffix= ac_top_builddir=
 
2868
fi
 
2869
 
 
2870
case $srcdir in
 
2871
  .)  # No --srcdir option.  We are building in place.
 
2872
    ac_srcdir=.
 
2873
    if test -z "$ac_top_builddir"; then
 
2874
       ac_top_srcdir=.
 
2875
    else
 
2876
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
2877
    fi ;;
 
2878
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
2879
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2880
    ac_top_srcdir=$srcdir ;;
 
2881
  *) # Relative path.
 
2882
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
2883
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
2884
esac
 
2885
 
 
2886
# Do not use `cd foo && pwd` to compute absolute paths, because
 
2887
# the directories may not exist.
 
2888
case `pwd` in
 
2889
.) ac_abs_builddir="$ac_dir";;
 
2890
*)
 
2891
  case "$ac_dir" in
 
2892
  .) ac_abs_builddir=`pwd`;;
 
2893
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
2894
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
2895
  esac;;
 
2896
esac
 
2897
case $ac_abs_builddir in
 
2898
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
2899
*)
 
2900
  case ${ac_top_builddir}. in
 
2901
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
2902
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
2903
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
2904
  esac;;
 
2905
esac
 
2906
case $ac_abs_builddir in
 
2907
.) ac_abs_srcdir=$ac_srcdir;;
 
2908
*)
 
2909
  case $ac_srcdir in
 
2910
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
2911
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
2912
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
2913
  esac;;
 
2914
esac
 
2915
case $ac_abs_builddir in
 
2916
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
2917
*)
 
2918
  case $ac_top_srcdir in
 
2919
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
2920
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
2921
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
2922
  esac;;
 
2923
esac
 
2924
 
 
2925
 
 
2926
  case $INSTALL in
 
2927
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
2928
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
2929
  esac
 
2930
 
 
2931
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
2932
  # use $as_me), people would be surprised to read:
 
2933
  #    /* config.h.  Generated by config.status.  */
 
2934
  if test x"$ac_file" = x-; then
 
2935
    configure_input=
 
2936
  else
 
2937
    configure_input="$ac_file.  "
 
2938
  fi
 
2939
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
2940
                                     sed 's,.*/,,'` by configure."
 
2941
 
 
2942
  # First look for the input files in the build tree, otherwise in the
 
2943
  # src tree.
 
2944
  ac_file_inputs=`IFS=:
 
2945
    for f in $ac_file_in; do
 
2946
      case $f in
 
2947
      -) echo $tmp/stdin ;;
 
2948
      [\\/$]*)
 
2949
         # Absolute (can't be DOS-style, as IFS=:)
 
2950
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
2951
echo "$as_me: error: cannot find input file: $f" >&2;}
 
2952
   { (exit 1); exit 1; }; }
 
2953
         echo "$f";;
 
2954
      *) # Relative
 
2955
         if test -f "$f"; then
 
2956
           # Build tree
 
2957
           echo "$f"
 
2958
         elif test -f "$srcdir/$f"; then
 
2959
           # Source tree
 
2960
           echo "$srcdir/$f"
 
2961
         else
 
2962
           # /dev/null tree
 
2963
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
2964
echo "$as_me: error: cannot find input file: $f" >&2;}
 
2965
   { (exit 1); exit 1; }; }
 
2966
         fi;;
 
2967
      esac
 
2968
    done` || { (exit 1); exit 1; }
 
2969
 
 
2970
  if test x"$ac_file" != x-; then
 
2971
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
2972
echo "$as_me: creating $ac_file" >&6;}
 
2973
    rm -f "$ac_file"
 
2974
  fi
 
2975
_ACEOF
 
2976
cat >>$CONFIG_STATUS <<_ACEOF
 
2977
  sed "$ac_vpsub
 
2978
$extrasub
 
2979
_ACEOF
 
2980
cat >>$CONFIG_STATUS <<\_ACEOF
 
2981
:t
 
2982
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
2983
s,@configure_input@,$configure_input,;t t
 
2984
s,@srcdir@,$ac_srcdir,;t t
 
2985
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
2986
s,@top_srcdir@,$ac_top_srcdir,;t t
 
2987
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
2988
s,@builddir@,$ac_builddir,;t t
 
2989
s,@abs_builddir@,$ac_abs_builddir,;t t
 
2990
s,@top_builddir@,$ac_top_builddir,;t t
 
2991
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
2992
s,@INSTALL@,$ac_INSTALL,;t t
 
2993
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
2994
  rm -f $tmp/stdin
 
2995
  if test x"$ac_file" != x-; then
 
2996
    mv $tmp/out $ac_file
 
2997
  else
 
2998
    cat $tmp/out
 
2999
    rm -f $tmp/out
 
3000
  fi
 
3001
 
 
3002
done
 
3003
_ACEOF
 
3004
 
 
3005
cat >>$CONFIG_STATUS <<\_ACEOF
 
3006
 
 
3007
{ (exit 0); exit 0; }
 
3008
_ACEOF
 
3009
chmod +x $CONFIG_STATUS
 
3010
ac_clean_files=$ac_clean_files_save
 
3011
 
 
3012
 
 
3013
# configure is writing to config.log, and then calls config.status.
 
3014
# config.status does its own redirection, appending to config.log.
 
3015
# Unfortunately, on DOS this fails, as config.log is still kept open
 
3016
# by configure, so config.status won't be able to write to it; its
 
3017
# output is simply discarded.  So we exec the FD to /dev/null,
 
3018
# effectively closing config.log, so it can be properly (re)opened and
 
3019
# appended to by config.status.  When coming back to configure, we
 
3020
# need to make the FD available again.
 
3021
if test "$no_create" != yes; then
 
3022
  ac_cs_success=:
 
3023
  ac_config_status_args=
 
3024
  test "$silent" = yes &&
 
3025
    ac_config_status_args="$ac_config_status_args --quiet"
 
3026
  exec 5>/dev/null
 
3027
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
3028
  exec 5>>config.log
 
3029
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
3030
  # would make configure fail if this is the last instruction.
 
3031
  $ac_cs_success || { (exit 1); exit 1; }
 
3032
fi
 
3033
 
 
3034
#
 
3035
# CONFIG_SUBDIRS section.
 
3036
#
 
3037
if test "$no_recursion" != yes; then
 
3038
 
 
3039
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
3040
  ac_sub_configure_args=
 
3041
  ac_prev=
 
3042
  for ac_arg in $ac_configure_args; do
 
3043
    if test -n "$ac_prev"; then
 
3044
      ac_prev=
 
3045
      continue
 
3046
    fi
 
3047
    case $ac_arg in
 
3048
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
3049
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
3050
      ac_prev=cache_file ;;
 
3051
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
3052
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
3053
    | --c=*)
 
3054
      ;;
 
3055
    --config-cache | -C)
 
3056
      ;;
 
3057
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
3058
      ac_prev=srcdir ;;
 
3059
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
3060
      ;;
 
3061
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
3062
      ac_prev=prefix ;;
 
3063
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
3064
      ;;
 
3065
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
 
3066
    esac
 
3067
  done
 
3068
 
 
3069
  # Always prepend --prefix to ensure using the same prefix
 
3070
  # in subdir configurations.
 
3071
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
3072
 
 
3073
  ac_popdir=`pwd`
 
3074
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
3075
 
 
3076
    # Do not complain, so a configure script can configure whichever
 
3077
    # parts of a large source tree are present.
 
3078
    test -d $srcdir/$ac_dir || continue
 
3079
 
 
3080
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
3081
echo "$as_me: configuring in $ac_dir" >&6;}
 
3082
    { if $as_mkdir_p; then
 
3083
    mkdir -p "$ac_dir"
 
3084
  else
 
3085
    as_dir="$ac_dir"
 
3086
    as_dirs=
 
3087
    while test ! -d "$as_dir"; do
 
3088
      as_dirs="$as_dir $as_dirs"
 
3089
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
3090
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
3091
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
3092
         X"$as_dir" : 'X\(//\)$' \| \
 
3093
         X"$as_dir" : 'X\(/\)' \| \
 
3094
         .     : '\(.\)' 2>/dev/null ||
 
3095
echo X"$as_dir" |
 
3096
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3097
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3098
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3099
          /^X\(\/\).*/{ s//\1/; q; }
 
3100
          s/.*/./; q'`
 
3101
    done
 
3102
    test ! -n "$as_dirs" || mkdir $as_dirs
 
3103
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
3104
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
3105
   { (exit 1); exit 1; }; }; }
 
3106
 
 
3107
    ac_builddir=.
 
3108
 
 
3109
if test "$ac_dir" != .; then
 
3110
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
3111
  # A "../" for each directory in $ac_dir_suffix.
 
3112
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
3113
else
 
3114
  ac_dir_suffix= ac_top_builddir=
 
3115
fi
 
3116
 
 
3117
case $srcdir in
 
3118
  .)  # No --srcdir option.  We are building in place.
 
3119
    ac_srcdir=.
 
3120
    if test -z "$ac_top_builddir"; then
 
3121
       ac_top_srcdir=.
 
3122
    else
 
3123
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
3124
    fi ;;
 
3125
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
3126
    ac_srcdir=$srcdir$ac_dir_suffix;
 
3127
    ac_top_srcdir=$srcdir ;;
 
3128
  *) # Relative path.
 
3129
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
3130
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
3131
esac
 
3132
 
 
3133
# Do not use `cd foo && pwd` to compute absolute paths, because
 
3134
# the directories may not exist.
 
3135
case `pwd` in
 
3136
.) ac_abs_builddir="$ac_dir";;
 
3137
*)
 
3138
  case "$ac_dir" in
 
3139
  .) ac_abs_builddir=`pwd`;;
 
3140
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
3141
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
3142
  esac;;
 
3143
esac
 
3144
case $ac_abs_builddir in
 
3145
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3146
*)
 
3147
  case ${ac_top_builddir}. in
 
3148
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
3149
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3150
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
3151
  esac;;
 
3152
esac
 
3153
case $ac_abs_builddir in
 
3154
.) ac_abs_srcdir=$ac_srcdir;;
 
3155
*)
 
3156
  case $ac_srcdir in
 
3157
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
3158
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
3159
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
3160
  esac;;
 
3161
esac
 
3162
case $ac_abs_builddir in
 
3163
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3164
*)
 
3165
  case $ac_top_srcdir in
 
3166
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
3167
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3168
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
3169
  esac;;
 
3170
esac
 
3171
 
 
3172
 
 
3173
    cd $ac_dir
 
3174
 
 
3175
    # Check for guested configure; otherwise get Cygnus style configure.
 
3176
    if test -f $ac_srcdir/configure.gnu; then
 
3177
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
3178
    elif test -f $ac_srcdir/configure; then
 
3179
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
3180
    elif test -f $ac_srcdir/configure.in; then
 
3181
      ac_sub_configure=$ac_configure
 
3182
    else
 
3183
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
3184
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
3185
      ac_sub_configure=
 
3186
    fi
 
3187
 
 
3188
    # The recursion is here.
 
3189
    if test -n "$ac_sub_configure"; then
 
3190
      # Make the cache file name correct relative to the subdirectory.
 
3191
      case $cache_file in
 
3192
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
3193
      *) # Relative path.
 
3194
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
3195
      esac
 
3196
 
 
3197
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
3198
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
3199
      # The eval makes quoting arguments work.
 
3200
      eval $ac_sub_configure $ac_sub_configure_args \
 
3201
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
3202
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
3203
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
3204
   { (exit 1); exit 1; }; }
 
3205
    fi
 
3206
 
 
3207
    cd "$ac_popdir"
 
3208
  done
 
3209
fi
 
3210
 
 
3211