blob: cf9794e6abf99d35782bc0cfe0b6060ac25bc90f [file] [log] [blame]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for open_pdks 1.0.
4#
5# Report bugs to <github.com/RTimothyEdwards/open_pdks>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: github.com/RTimothyEdwards/open_pdks about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536else
537 as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='open_pdks'
581PACKAGE_TARNAME='open_pdks'
582PACKAGE_VERSION='1.0'
583PACKAGE_STRING='open_pdks 1.0'
584PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400589EF_STYLE
Tim Edwards1168a8b2021-02-10 22:06:54 -0500590XSCHEM_SKY130_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500591SKY130_ML_XX_HD_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200592PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500593MAGIC
Tim Edwards1168a8b2021-02-10 22:06:54 -0500594XSCHEM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500595QFLOW_DISABLED
596OPENLANE_DISABLED
Tim Edwards367711e2021-01-27 10:35:12 -0500597IRSIM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500598NETGEN_DISABLED
599MAGIC_DISABLED
600KLAYOUT_DISABLED
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400601SKY130_DIST_PATH
602SKY130_LOCAL_PATH
603SKY130_SOURCE_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500604SKY130_LINK_TARGETS
Tim Edwards66e53e52021-01-24 21:21:36 -0500605pkgpyexecdir
606pyexecdir
607pkgpythondir
608pythondir
609PYTHON_PLATFORM
610PYTHON_EXEC_PREFIX
611PYTHON_PREFIX
612PYTHON_VERSION
613PYTHON
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200614target_alias
615host_alias
616build_alias
617LIBS
618ECHO_T
619ECHO_N
620ECHO_C
621DEFS
622mandir
623localedir
624libdir
625psdir
626pdfdir
627dvidir
628htmldir
629infodir
630docdir
631oldincludedir
632includedir
Tim Edwards1168a8b2021-02-10 22:06:54 -0500633runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200634localstatedir
635sharedstatedir
636sysconfdir
637datadir
638datarootdir
639libexecdir
640sbindir
641bindir
642program_transform_name
643prefix
644exec_prefix
645PACKAGE_URL
646PACKAGE_BUGREPORT
647PACKAGE_STRING
648PACKAGE_VERSION
649PACKAGE_TARNAME
650PACKAGE_NAME
651PATH_SEPARATOR
652SHELL'
653ac_subst_files=''
654ac_user_opts='
655enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500656enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400657with_sky130_local_path
658with_sky130_dist_path
659with_sky130_link_targets
Tim Edwardsccaea722020-12-24 10:59:42 -0500660enable_klayout
661enable_magic
662enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500663enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500664enable_openlane
665enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500666enable_xschem
Tim Edwards1168a8b2021-02-10 22:06:54 -0500667enable_alpha_sky130
668enable_xschem_sky130
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400669with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200670'
671 ac_precious_vars='build_alias
672host_alias
673target_alias
674PYTHON'
675
676
677# Initialize some variables set by options.
678ac_init_help=
679ac_init_version=false
680ac_unrecognized_opts=
681ac_unrecognized_sep=
682# The variables have the same names as the options, with
683# dashes changed to underlines.
684cache_file=/dev/null
685exec_prefix=NONE
686no_create=
687no_recursion=
688prefix=NONE
689program_prefix=NONE
690program_suffix=NONE
691program_transform_name=s,x,x,
692silent=
693site=
694srcdir=
695verbose=
696x_includes=NONE
697x_libraries=NONE
698
699# Installation directory options.
700# These are left unexpanded so users can "make install exec_prefix=/foo"
701# and all the variables that are supposed to be based on exec_prefix
702# by default will actually change.
703# Use braces instead of parens because sh, perl, etc. also accept them.
704# (The list follows the same order as the GNU Coding Standards.)
705bindir='${exec_prefix}/bin'
706sbindir='${exec_prefix}/sbin'
707libexecdir='${exec_prefix}/libexec'
708datarootdir='${prefix}/share'
709datadir='${datarootdir}'
710sysconfdir='${prefix}/etc'
711sharedstatedir='${prefix}/com'
712localstatedir='${prefix}/var'
Tim Edwards1168a8b2021-02-10 22:06:54 -0500713runstatedir='${localstatedir}/run'
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200714includedir='${prefix}/include'
715oldincludedir='/usr/include'
716docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717infodir='${datarootdir}/info'
718htmldir='${docdir}'
719dvidir='${docdir}'
720pdfdir='${docdir}'
721psdir='${docdir}'
722libdir='${exec_prefix}/lib'
723localedir='${datarootdir}/locale'
724mandir='${datarootdir}/man'
725
726ac_prev=
727ac_dashdash=
728for ac_option
729do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *=) ac_optarg= ;;
740 *) ac_optarg=yes ;;
741 esac
742
743 # Accept the important Cygnus configure options, so we can diagnose typos.
744
745 case $ac_dashdash$ac_option in
746 --)
747 ac_dashdash=yes ;;
748
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 ac_prev=bindir ;;
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
752 bindir=$ac_optarg ;;
753
754 -build | --build | --buil | --bui | --bu)
755 ac_prev=build_alias ;;
756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757 build_alias=$ac_optarg ;;
758
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764 cache_file=$ac_optarg ;;
765
766 --config-cache | -C)
767 cache_file=config.cache ;;
768
769 -datadir | --datadir | --datadi | --datad)
770 ac_prev=datadir ;;
771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
772 datadir=$ac_optarg ;;
773
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
780
781 -disable-* | --disable-*)
782 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
785 as_fn_error $? "invalid feature name: $ac_useropt"
786 ac_useropt_orig=$ac_useropt
787 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788 case $ac_user_opts in
789 *"
790"enable_$ac_useropt"
791"*) ;;
792 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
793 ac_unrecognized_sep=', ';;
794 esac
795 eval enable_$ac_useropt=no ;;
796
797 -docdir | --docdir | --docdi | --doc | --do)
798 ac_prev=docdir ;;
799 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800 docdir=$ac_optarg ;;
801
802 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803 ac_prev=dvidir ;;
804 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805 dvidir=$ac_optarg ;;
806
807 -enable-* | --enable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error $? "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
815 *"
816"enable_$ac_useropt"
817"*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
820 esac
821 eval enable_$ac_useropt=\$ac_optarg ;;
822
823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
825 | --exec | --exe | --ex)
826 ac_prev=exec_prefix ;;
827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
829 | --exec=* | --exe=* | --ex=*)
830 exec_prefix=$ac_optarg ;;
831
832 -gas | --gas | --ga | --g)
833 # Obsolete; use --with-gas.
834 with_gas=yes ;;
835
836 -help | --help | --hel | --he | -h)
837 ac_init_help=long ;;
838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
839 ac_init_help=recursive ;;
840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
841 ac_init_help=short ;;
842
843 -host | --host | --hos | --ho)
844 ac_prev=host_alias ;;
845 -host=* | --host=* | --hos=* | --ho=*)
846 host_alias=$ac_optarg ;;
847
848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 ac_prev=htmldir ;;
850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 | --ht=*)
852 htmldir=$ac_optarg ;;
853
854 -includedir | --includedir | --includedi | --included | --include \
855 | --includ | --inclu | --incl | --inc)
856 ac_prev=includedir ;;
857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
858 | --includ=* | --inclu=* | --incl=* | --inc=*)
859 includedir=$ac_optarg ;;
860
861 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 ac_prev=infodir ;;
863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
864 infodir=$ac_optarg ;;
865
866 -libdir | --libdir | --libdi | --libd)
867 ac_prev=libdir ;;
868 -libdir=* | --libdir=* | --libdi=* | --libd=*)
869 libdir=$ac_optarg ;;
870
871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
872 | --libexe | --libex | --libe)
873 ac_prev=libexecdir ;;
874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
875 | --libexe=* | --libex=* | --libe=*)
876 libexecdir=$ac_optarg ;;
877
878 -localedir | --localedir | --localedi | --localed | --locale)
879 ac_prev=localedir ;;
880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
881 localedir=$ac_optarg ;;
882
883 -localstatedir | --localstatedir | --localstatedi | --localstated \
884 | --localstate | --localstat | --localsta | --localst | --locals)
885 ac_prev=localstatedir ;;
886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
888 localstatedir=$ac_optarg ;;
889
890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 ac_prev=mandir ;;
892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
893 mandir=$ac_optarg ;;
894
895 -nfp | --nfp | --nf)
896 # Obsolete; use --without-fp.
897 with_fp=no ;;
898
899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
900 | --no-cr | --no-c | -n)
901 no_create=yes ;;
902
903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 no_recursion=yes ;;
906
907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
909 | --oldin | --oldi | --old | --ol | --o)
910 ac_prev=oldincludedir ;;
911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
914 oldincludedir=$ac_optarg ;;
915
916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 ac_prev=prefix ;;
918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
919 prefix=$ac_optarg ;;
920
921 -program-prefix | --program-prefix | --program-prefi | --program-pref \
922 | --program-pre | --program-pr | --program-p)
923 ac_prev=program_prefix ;;
924 -program-prefix=* | --program-prefix=* | --program-prefi=* \
925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
926 program_prefix=$ac_optarg ;;
927
928 -program-suffix | --program-suffix | --program-suffi | --program-suff \
929 | --program-suf | --program-su | --program-s)
930 ac_prev=program_suffix ;;
931 -program-suffix=* | --program-suffix=* | --program-suffi=* \
932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
933 program_suffix=$ac_optarg ;;
934
935 -program-transform-name | --program-transform-name \
936 | --program-transform-nam | --program-transform-na \
937 | --program-transform-n | --program-transform- \
938 | --program-transform | --program-transfor \
939 | --program-transfo | --program-transf \
940 | --program-trans | --program-tran \
941 | --progr-tra | --program-tr | --program-t)
942 ac_prev=program_transform_name ;;
943 -program-transform-name=* | --program-transform-name=* \
944 | --program-transform-nam=* | --program-transform-na=* \
945 | --program-transform-n=* | --program-transform-=* \
946 | --program-transform=* | --program-transfor=* \
947 | --program-transfo=* | --program-transf=* \
948 | --program-trans=* | --program-tran=* \
949 | --progr-tra=* | --program-tr=* | --program-t=*)
950 program_transform_name=$ac_optarg ;;
951
952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 ac_prev=pdfdir ;;
954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 pdfdir=$ac_optarg ;;
956
957 -psdir | --psdir | --psdi | --psd | --ps)
958 ac_prev=psdir ;;
959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 psdir=$ac_optarg ;;
961
962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
963 | -silent | --silent | --silen | --sile | --sil)
964 silent=yes ;;
965
Tim Edwards1168a8b2021-02-10 22:06:54 -0500966 -runstatedir | --runstatedir | --runstatedi | --runstated \
967 | --runstate | --runstat | --runsta | --runst | --runs \
968 | --run | --ru | --r)
969 ac_prev=runstatedir ;;
970 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
971 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
972 | --run=* | --ru=* | --r=*)
973 runstatedir=$ac_optarg ;;
974
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976 ac_prev=sbindir ;;
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978 | --sbi=* | --sb=*)
979 sbindir=$ac_optarg ;;
980
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
984 | --sha | --sh)
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989 | --sha=* | --sh=*)
990 sharedstatedir=$ac_optarg ;;
991
992 -site | --site | --sit)
993 ac_prev=site ;;
994 -site=* | --site=* | --sit=*)
995 site=$ac_optarg ;;
996
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998 ac_prev=srcdir ;;
999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000 srcdir=$ac_optarg ;;
1001
1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003 | --syscon | --sysco | --sysc | --sys | --sy)
1004 ac_prev=sysconfdir ;;
1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007 sysconfdir=$ac_optarg ;;
1008
1009 -target | --target | --targe | --targ | --tar | --ta | --t)
1010 ac_prev=target_alias ;;
1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012 target_alias=$ac_optarg ;;
1013
1014 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015 verbose=yes ;;
1016
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1019
1020 -with-* | --with-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid package name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029"with_$ac_useropt"
1030"*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval with_$ac_useropt=\$ac_optarg ;;
1035
1036 -without-* | --without-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid package name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"with_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval with_$ac_useropt=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1071Try \`$0 --help' for more information"
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 case $ac_envvar in #(
1078 '' | [0-9]* | *[!_$as_cr_alnum]* )
1079 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1080 esac
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1090 ;;
1091
1092 esac
1093done
1094
1095if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 as_fn_error $? "missing argument to $ac_option"
1098fi
1099
1100if test -n "$ac_unrecognized_opts"; then
1101 case $enable_option_checking in
1102 no) ;;
1103 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 esac
1106fi
1107
1108# Check all directory arguments for consistency.
1109for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Tim Edwards1168a8b2021-02-10 22:06:54 -05001112 libdir localedir mandir runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001113do
1114 eval ac_val=\$$ac_var
1115 # Remove trailing slashes.
1116 case $ac_val in
1117 */ )
1118 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119 eval $ac_var=\$ac_val;;
1120 esac
1121 # Be sure to have absolute directory names.
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127done
1128
1129# There might be people who depend on the old broken behavior: `$host'
1130# used to hold the argument of --host etc.
1131# FIXME: To remove some day.
1132build=$build_alias
1133host=$host_alias
1134target=$target_alias
1135
1136# FIXME: To remove some day.
1137if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 elif test "x$build_alias" != "x$host_alias"; then
1141 cross_compiling=yes
1142 fi
1143fi
1144
1145ac_tool_prefix=
1146test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148test "$silent" = yes && exec 6>/dev/null
1149
1150
1151ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152ac_ls_di=`ls -di .` &&
1153ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error $? "working directory cannot be determined"
1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error $? "pwd does not report name of working directory"
1157
1158
1159# Find the source files, if location was not specified.
1160if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1164$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168$as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
1186 srcdir=$ac_confdir
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1188 srcdir=..
1189 fi
1190else
1191 ac_srcdir_defaulted=no
1192fi
1193if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1196fi
1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1200 pwd)`
1201# When building in place, set srcdir=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
1205# Remove unnecessary trailing slashes from srcdir.
1206# Double slashes in file names in object file debugging info
1207# mess up M-x gdb in Emacs.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216done
1217
1218#
1219# Report the --help message.
1220#
1221if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1226
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking ...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001265 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279_ACEOF
1280
1281 cat <<\_ACEOF
1282_ACEOF
1283fi
1284
1285if test -n "$ac_init_help"; then
1286 case $ac_init_help in
1287 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1288 esac
1289 cat <<\_ACEOF
1290
Tim Edwardsccaea722020-12-24 10:59:42 -05001291Optional Features:
1292 --disable-option-checking ignore unrecognized --enable/--with options
1293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001295 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1296 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001297 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001298 if the path is omitted)"
1299 --enable-klayout
Tim Edwards1168a8b2021-02-10 22:06:54 -05001300 Enable or disable klayout setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001301
1302
1303 --enable-magic
Tim Edwards1168a8b2021-02-10 22:06:54 -05001304 Enable or disable magic setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001305
1306
1307 --enable-netgen
Tim Edwards1168a8b2021-02-10 22:06:54 -05001308 Enable or disable netgen setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001309
1310
Tim Edwards367711e2021-01-27 10:35:12 -05001311 --enable-irsim
Tim Edwards1168a8b2021-02-10 22:06:54 -05001312 Enable or disable irsim setup [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001313
1314
Tim Edwards8292c902020-12-24 16:25:25 -05001315 --enable-openlane
Tim Edwards1168a8b2021-02-10 22:06:54 -05001316 Enable or disable openlane setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001317
1318
1319 --enable-qflow
Tim Edwards1168a8b2021-02-10 22:06:54 -05001320 Enable or disable qflow setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001321
1322
Tim Edwards1168a8b2021-02-10 22:06:54 -05001323 --enable-xschem
1324 Enable or disable xschem setup [default=enabled]
1325
1326
1327 --enable-alpha-sky130[=path]
Tim Edwards8292c902020-12-24 16:25:25 -05001328 Install sky130_ml_xx_hd. If path is omitted, it'll be
1329 downloaded. [default=disabled]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001330 --enable-xschem-sky130[=path]
1331 Install xschem_sky130. If path is omitted, it'll be
Tim Edwards8292c902020-12-24 16:25:25 -05001332 downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001333
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards8292c902020-12-24 16:25:25 -05001337 --with-sky130-local-path=/path/to/install/sky130
1338 "run-time location of the PDK"
1339 --with-sky130-dist-path=/path/to/install/sky130
1340 "staging location to install the PDK for
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001341 distribution (optional)"
1342 --with-sky130-link-targets=none|source
1343 "make symbolic links to existing files
1344 [default=none]"
1345 --with-ef-style Use efabless style file system structure
1346 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001347
1348Some influential environment variables:
1349 PYTHON the Python interpreter
1350
1351Use these variables to override the choices made by `configure' or to help
1352it to find libraries and programs with nonstandard names/locations.
1353
1354Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1355_ACEOF
1356ac_status=$?
1357fi
1358
1359if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" ||
1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1364 continue
1365 ac_builddir=.
1366
1367case "$ac_dir" in
1368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369*)
1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371 # A ".." for each directory in $ac_dir_suffix.
1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373 case $ac_top_builddir_sub in
1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1376 esac ;;
1377esac
1378ac_abs_top_builddir=$ac_pwd
1379ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380# for backward compatibility:
1381ac_top_builddir=$ac_top_build_prefix
1382
1383case $srcdir in
1384 .) # We are building in place.
1385 ac_srcdir=.
1386 ac_top_srcdir=$ac_top_builddir_sub
1387 ac_abs_top_srcdir=$ac_pwd ;;
1388 [\\/]* | ?:[\\/]* ) # Absolute name.
1389 ac_srcdir=$srcdir$ac_dir_suffix;
1390 ac_top_srcdir=$srcdir
1391 ac_abs_top_srcdir=$srcdir ;;
1392 *) # Relative name.
1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394 ac_top_srcdir=$ac_top_build_prefix$srcdir
1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1396esac
1397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398
1399 cd "$ac_dir" || { ac_status=$?; continue; }
1400 # Check for guested configure.
1401 if test -f "$ac_srcdir/configure.gnu"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404 elif test -f "$ac_srcdir/configure"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure" --help=recursive
1407 else
1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1409 fi || ac_status=$?
1410 cd "$ac_pwd" || { ac_status=$?; break; }
1411 done
1412fi
1413
1414test -n "$ac_init_help" && exit $ac_status
1415if $ac_init_version; then
1416 cat <<\_ACEOF
1417open_pdks configure 1.0
1418generated by GNU Autoconf 2.69
1419
1420Copyright (C) 2012 Free Software Foundation, Inc.
1421This configure script is free software; the Free Software Foundation
1422gives unlimited permission to copy, distribute and modify it.
1423_ACEOF
1424 exit
1425fi
1426
1427## ------------------------ ##
1428## Autoconf initialization. ##
1429## ------------------------ ##
1430cat >config.log <<_ACEOF
1431This file contains any messages produced by compilers while
1432running configure, to aid debugging if configure makes a mistake.
1433
1434It was created by open_pdks $as_me 1.0, which was
1435generated by GNU Autoconf 2.69. Invocation command line was
1436
1437 $ $0 $@
1438
1439_ACEOF
1440exec 5>>config.log
1441{
1442cat <<_ASUNAME
1443## --------- ##
1444## Platform. ##
1445## --------- ##
1446
1447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464_ASUNAME
1465
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 $as_echo "PATH: $as_dir"
1472 done
1473IFS=$as_save_IFS
1474
1475} >&5
1476
1477cat >&5 <<_ACEOF
1478
1479
1480## ----------- ##
1481## Core tests. ##
1482## ----------- ##
1483
1484_ACEOF
1485
1486
1487# Keep a trace of the command line.
1488# Strip out --no-create and --no-recursion so they do not pile up.
1489# Strip out --silent because we don't want to record it for future runs.
1490# Also quote any args containing shell meta-characters.
1491# Make two passes to allow for proper duplicate-argument suppression.
1492ac_configure_args=
1493ac_configure_args0=
1494ac_configure_args1=
1495ac_must_keep_next=false
1496for ac_pass in 1 2
1497do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
1505 *\'*)
1506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1510 2)
1511 as_fn_append ac_configure_args1 " '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
1527 as_fn_append ac_configure_args " '$ac_arg'"
1528 ;;
1529 esac
1530 done
1531done
1532{ ac_configure_args0=; unset ac_configure_args0;}
1533{ ac_configure_args1=; unset ac_configure_args1;}
1534
1535# When interrupted or exit'd, cleanup temporary files, and complete
1536# config.log. We remove comments because anyway the quotes in there
1537# would cause problems or look ugly.
1538# WARNING: Use '\'' to represent an apostrophe within the trap.
1539# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 $as_echo "## ---------------- ##
1546## Cache variables. ##
1547## ---------------- ##"
1548 echo
1549 # The following way of writing the cache mishandles newlines in values,
1550(
1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1552 eval ac_val=\$$ac_var
1553 case $ac_val in #(
1554 *${as_nl}*)
1555 case $ac_var in #(
1556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1558 esac
1559 case $ac_var in #(
1560 _ | IFS | as_nl) ;; #(
1561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1562 *) { eval $ac_var=; unset $ac_var;} ;;
1563 esac ;;
1564 esac
1565 done
1566 (set) 2>&1 |
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
1569 sed -n \
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
1573 *)
1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1575 ;;
1576 esac |
1577 sort
1578)
1579 echo
1580
1581 $as_echo "## ----------------- ##
1582## Output variables. ##
1583## ----------------- ##"
1584 echo
1585 for ac_var in $ac_subst_vars
1586 do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in
1589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 esac
1591 $as_echo "$ac_var='\''$ac_val'\''"
1592 done | sort
1593 echo
1594
1595 if test -n "$ac_subst_files"; then
1596 $as_echo "## ------------------- ##
1597## File substitutions. ##
1598## ------------------- ##"
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 $as_echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 $as_echo "## ----------- ##
1613## confdefs.h. ##
1614## ----------- ##"
1615 echo
1616 cat confdefs.h
1617 echo
1618 fi
1619 test "$ac_signal" != 0 &&
1620 $as_echo "$as_me: caught signal $ac_signal"
1621 $as_echo "$as_me: exit $exit_status"
1622 } >&5
1623 rm -f core *.core core.conftest.* &&
1624 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1625 exit $exit_status
1626' 0
1627for ac_signal in 1 2 13 15; do
1628 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1629done
1630ac_signal=0
1631
1632# confdefs.h avoids OS command line length limits that DEFS can exceed.
1633rm -f -r conftest* confdefs.h
1634
1635$as_echo "/* confdefs.h */" > confdefs.h
1636
1637# Predefined preprocessor variables.
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_NAME "$PACKAGE_NAME"
1641_ACEOF
1642
1643cat >>confdefs.h <<_ACEOF
1644#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1645_ACEOF
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_VERSION "$PACKAGE_VERSION"
1649_ACEOF
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_STRING "$PACKAGE_STRING"
1653_ACEOF
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657_ACEOF
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_URL "$PACKAGE_URL"
1661_ACEOF
1662
1663
1664# Let the site file select an alternate cache file if it wants to.
1665# Prefer an explicitly selected file to automatically selected ones.
1666ac_site_file1=NONE
1667ac_site_file2=NONE
1668if test -n "$CONFIG_SITE"; then
1669 # We do not want a PATH search for config.site.
1670 case $CONFIG_SITE in #((
1671 -*) ac_site_file1=./$CONFIG_SITE;;
1672 */*) ac_site_file1=$CONFIG_SITE;;
1673 *) ac_site_file1=./$CONFIG_SITE;;
1674 esac
1675elif test "x$prefix" != xNONE; then
1676 ac_site_file1=$prefix/share/config.site
1677 ac_site_file2=$prefix/etc/config.site
1678else
1679 ac_site_file1=$ac_default_prefix/share/config.site
1680 ac_site_file2=$ac_default_prefix/etc/config.site
1681fi
1682for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1683do
1684 test "x$ac_site_file" = xNONE && continue
1685 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1687$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1689 . "$ac_site_file" \
1690 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1692as_fn_error $? "failed to load site script $ac_site_file
1693See \`config.log' for more details" "$LINENO" 5; }
1694 fi
1695done
1696
1697if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special files
1699 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1700 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1702$as_echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1707 fi
1708else
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1710$as_echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1712fi
1713
1714# Check that the precious variables saved in the cache have kept the same
1715# value.
1716ac_cache_corrupted=false
1717for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1729$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1732 *)
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 # differences in whitespace do not lead to failure.
1735 ac_old_val_w=`echo x $ac_old_val`
1736 ac_new_val_w=`echo x $ac_new_val`
1737 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1739$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 ac_cache_corrupted=:
1741 else
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1743$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1744 eval $ac_var=\$ac_old_val
1745 fi
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1747$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1749$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1761 esac
1762 fi
1763done
1764if $ac_cache_corrupted; then
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1768$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1770fi
1771## -------------------- ##
1772## Main body of script. ##
1773## -------------------- ##
1774
1775ac_ext=c
1776ac_cpp='$CPP $CPPFLAGS'
1777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780
1781
1782
Tim Edwardsccaea722020-12-24 10:59:42 -05001783## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001784
1785
1786
1787
1788
1789
1790 if test -n "$PYTHON"; then
1791 # If the user set $PYTHON, use it and don't search something else.
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1793$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1794 prog="import sys
1795# split strings by '.' and convert to numeric. Append some zeros
1796# because we need at least 4 digits for the hex conversion.
1797# map returns an iterator in Python 3.0 and a list in 2.x
1798minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1799minverhex = 0
1800# xrange is not present in Python 3.0 and range returns an iterator
1801for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1802sys.exit(sys.hexversion < minverhex)"
1803 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1804 ($PYTHON -c "$prog") >&5 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1809$as_echo "yes" >&6; }
1810else
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1812$as_echo "no" >&6; }
1813 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1814fi
1815 am_display_PYTHON=$PYTHON
1816 else
1817 # Otherwise, try each interpreter until we find one that satisfies
1818 # VERSION.
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1820$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1821if ${am_cv_pathless_PYTHON+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824
Tim Edwards1168a8b2021-02-10 22:06:54 -05001825 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001826 test "$am_cv_pathless_PYTHON" = none && break
1827 prog="import sys
1828# split strings by '.' and convert to numeric. Append some zeros
1829# because we need at least 4 digits for the hex conversion.
1830# map returns an iterator in Python 3.0 and a list in 2.x
1831minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1832minverhex = 0
1833# xrange is not present in Python 3.0 and range returns an iterator
1834for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1835sys.exit(sys.hexversion < minverhex)"
1836 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1837 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; then :
1841 break
1842fi
1843 done
1844fi
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1846$as_echo "$am_cv_pathless_PYTHON" >&6; }
1847 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1848 if test "$am_cv_pathless_PYTHON" = none; then
1849 PYTHON=:
1850 else
1851 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1852set dummy $am_cv_pathless_PYTHON; ac_word=$2
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1854$as_echo_n "checking for $ac_word... " >&6; }
1855if ${ac_cv_path_PYTHON+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 case $PYTHON in
1859 [\\/]* | ?:[\\/]*)
1860 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1861 ;;
1862 *)
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
1875 done
1876IFS=$as_save_IFS
1877
1878 ;;
1879esac
1880fi
1881PYTHON=$ac_cv_path_PYTHON
1882if test -n "$PYTHON"; then
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1884$as_echo "$PYTHON" >&6; }
1885else
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1887$as_echo "no" >&6; }
1888fi
1889
1890
1891 fi
1892 am_display_PYTHON=$am_cv_pathless_PYTHON
1893 fi
1894
1895
1896 if test "$PYTHON" = :; then
1897 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1898 else
1899
1900
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1902$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1903if ${am_cv_python_version+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905else
1906 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1907fi
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1909$as_echo "$am_cv_python_version" >&6; }
1910 PYTHON_VERSION=$am_cv_python_version
1911
1912
1913
1914 PYTHON_PREFIX='${prefix}'
1915
1916 PYTHON_EXEC_PREFIX='${exec_prefix}'
1917
1918
1919
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1921$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1922if ${am_cv_python_platform+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1926fi
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1928$as_echo "$am_cv_python_platform" >&6; }
1929 PYTHON_PLATFORM=$am_cv_python_platform
1930
1931
1932 # Just factor out some code duplication.
1933 am_python_setup_sysconfig="\
1934import sys
1935# Prefer sysconfig over distutils.sysconfig, for better compatibility
1936# with python 3.x. See automake bug#10227.
1937try:
1938 import sysconfig
1939except ImportError:
1940 can_use_sysconfig = 0
1941else:
1942 can_use_sysconfig = 1
1943# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1944# <https://github.com/pypa/virtualenv/issues/118>
1945try:
1946 from platform import python_implementation
1947 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1948 can_use_sysconfig = 0
1949except ImportError:
1950 pass"
1951
1952
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1954$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1955if ${am_cv_python_pythondir+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957else
1958 if test "x$prefix" = xNONE
1959 then
1960 am_py_prefix=$ac_default_prefix
1961 else
1962 am_py_prefix=$prefix
1963 fi
1964 am_cv_python_pythondir=`$PYTHON -c "
1965$am_python_setup_sysconfig
1966if can_use_sysconfig:
1967 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1968else:
1969 from distutils import sysconfig
1970 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1971sys.stdout.write(sitedir)"`
1972 case $am_cv_python_pythondir in
1973 $am_py_prefix*)
1974 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1975 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1976 ;;
1977 *)
1978 case $am_py_prefix in
1979 /usr|/System*) ;;
1980 *)
1981 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1982 ;;
1983 esac
1984 ;;
1985 esac
1986
1987fi
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
1989$as_echo "$am_cv_python_pythondir" >&6; }
1990 pythondir=$am_cv_python_pythondir
1991
1992
1993
1994 pkgpythondir=\${pythondir}/$PACKAGE
1995
1996
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
1998$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
1999if ${am_cv_python_pyexecdir+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 if test "x$exec_prefix" = xNONE
2003 then
2004 am_py_exec_prefix=$am_py_prefix
2005 else
2006 am_py_exec_prefix=$exec_prefix
2007 fi
2008 am_cv_python_pyexecdir=`$PYTHON -c "
2009$am_python_setup_sysconfig
2010if can_use_sysconfig:
2011 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2012else:
2013 from distutils import sysconfig
2014 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2015sys.stdout.write(sitedir)"`
2016 case $am_cv_python_pyexecdir in
2017 $am_py_exec_prefix*)
2018 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2019 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2020 ;;
2021 *)
2022 case $am_py_exec_prefix in
2023 /usr|/System*) ;;
2024 *)
2025 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2026 ;;
2027 esac
2028 ;;
2029 esac
2030
2031fi
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2033$as_echo "$am_cv_python_pyexecdir" >&6; }
2034 pyexecdir=$am_cv_python_pyexecdir
2035
2036
2037
2038 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2039
2040
2041
2042 fi
2043
2044
2045
2046 if test -z $PYTHON;
2047 then
Tim Edwards1168a8b2021-02-10 22:06:54 -05002048 if test -z "";
2049 then
2050 PYTHON="python3"
2051 else
2052 PYTHON=""
2053 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002054 fi
2055 PYTHON_NAME=`basename $PYTHON`
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2057$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002058 $PYTHON -c "import distutils" 2>/dev/null
2059 if test $? -eq 0;
2060 then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002062$as_echo "yes" >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002063 eval HAVE_PYMOD_DISTUTILS=yes
2064 else
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002066$as_echo "no" >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002067 eval HAVE_PYMOD_DISTUTILS=no
2068 #
2069 if test -n ""
2070 then
2071 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2072 exit 1
2073 fi
2074 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002075
2076
Tim Edwards66e53e52021-01-24 21:21:36 -05002077realpath() {
2078 # Cross-platform, handles ~
2079 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2080}
2081
2082# detect PDKs based on directories that include Makefile.in files
2083
2084
2085# define tools
2086# define tools to install setup files for. This does not imply that the tools are
2087# available on the system; just that open_pdks will install the setup files for them.
Tim Edwards66e53e52021-01-24 21:21:36 -05002088
2089
Tim Edwards66e53e52021-01-24 21:21:36 -05002090# check for the source and install paths for each PDK.
2091
2092
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2094$as_echo "$as_me: Found technology directories: sky130" >&6;}
2095
2096
2097
2098 # --enable-pdk-[pdk]=/path/to/pdk
2099
Tim Edwards1168a8b2021-02-10 22:06:54 -05002100 echo "Checking technology sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002101
2102
2103 SKY130_SOURCE_PATH=""
Tim Edwards7e0a6442021-02-11 15:37:42 -05002104 SKY130_LOCAL_PATH="/usr/share/pdk"
Tim Edwards66e53e52021-01-24 21:21:36 -05002105 SKY130_DIST_PATH=""
2106 SKY130_LINK_TARGETS="none"
Tim Edwards7e0a6442021-02-11 15:37:42 -05002107 SKY130_AUTO="0"
Tim Edwards66e53e52021-01-24 21:21:36 -05002108
2109 # Check whether --enable-sky130-sky130 was given.
2110if test "${enable_sky130_pdk+set}" = set; then :
2111 enableval=$enable_sky130_pdk;
2112 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002113 export SKY130_SOURCE_PATH=../sources/sky130-pdk
2114 SKY130_AUTO="1"
Tim Edwards66e53e52021-01-24 21:21:36 -05002115 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2116 echo "Disabling sky130..."
2117 else
2118 SKY130_SOURCE_PATH=$enableval
2119 fi
2120
Tim Edwards66e53e52021-01-24 21:21:36 -05002121fi
2122
2123 # # Require this argument
2124
2125 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2126 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2127 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2128 if [ "$SKY130_BASENAME" = "libraries" ]; then
2129 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2130 fi
Tim Edwards6ee11532021-02-11 12:29:33 -05002131 # Basic check that the PDK path exists, unless depending on Makefile
2132 # to download it automatically.
Tim Edwards7e0a6442021-02-11 15:37:42 -05002133 if [ "$SKY130_AUTO" = "0" ]; then
Tim Edwards6ee11532021-02-11 12:29:33 -05002134 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002135$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002136 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
Tim Edwards66e53e52021-01-24 21:21:36 -05002137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2138$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2139if eval \${$as_ac_File+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141else
2142 test "$cross_compiling" = yes &&
2143 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2144if test -r "$SKY130_SOURCE_PATH"; then
2145 eval "$as_ac_File=yes"
2146else
2147 eval "$as_ac_File=no"
2148fi
2149fi
2150eval ac_res=\$$as_ac_File
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2154
Tim Edwards6ee11532021-02-11 12:29:33 -05002155 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002156$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2157
2158else
2159
Tim Edwards6ee11532021-02-11 12:29:33 -05002160 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
Tim Edwards66e53e52021-01-24 21:21:36 -05002161
2162fi
2163
Tim Edwards6ee11532021-02-11 12:29:33 -05002164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5
2166$as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;}
2167 fi
Tim Edwards66e53e52021-01-24 21:21:36 -05002168
2169 # --with-pdk-local-path=PDK_LOCAL_PATH
2170
2171# Check whether --with-sky130-local-path was given.
2172if test "${with_sky130_local_path+set}" = set; then :
2173 withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval
2174
2175fi
2176
2177
2178 # Require this argument
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5
2180$as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;}
2181 if test "x$SKY130_LOCAL_PATH" == "x" ; then
2182 as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5
2183 SKY130_LOCAL_PATH=""
2184 else
Tim Edwards7e0a6442021-02-11 15:37:42 -05002185 { $as_echo "$as_me:${as_lineno-$LINENO}: Install path for 'sky130' is $SKY130_LOCAL_PATH" >&5
2186$as_echo "$as_me: Install path for 'sky130' is $SKY130_LOCAL_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002187 SKY130_LOCAL_PATH=`realpath $SKY130_LOCAL_PATH`
2188 fi
2189
2190 # --with-pdk-dist-path=PDK_DIST_PATH
2191
2192# Check whether --with-sky130-dist-path was given.
2193if test "${with_sky130_dist_path+set}" = set; then :
2194 withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval
2195
2196fi
2197
2198
Tim Edwards66e53e52021-01-24 21:21:36 -05002199 # "Require" this argument
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5
2201$as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;}
2202 if test "x$SKY130_DIST_PATH" == "x" ; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only." >&5
2204$as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only." >&6;}
2205 SKY130_DIST_PATH=""
2206 else
2207 SKY130_DIST_PATH=`realpath $SKY130_DIST_PATH`
2208 fi
2209
2210 # --with-pdk-link-targets=PDK_LINK_TARGETS
2211
2212# Check whether --with-sky130-link-targets was given.
2213if test "${with_sky130_link_targets+set}" = set; then :
2214 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2215
2216fi
2217
2218
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2220$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
2221 fi
2222
2223
2224
2225
2226
2227
2228
2229
2230# Set variables for tool setups
2231
2232
Tim Edwards1168a8b2021-02-10 22:06:54 -05002233{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5
2234$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002235
2236
2237
2238
2239
2240 KLAYOUT_DISABLED=0
2241 # Check whether --enable-klayout was given.
2242if test "${enable_klayout+set}" = set; then :
2243 enableval=$enable_klayout;
2244 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2245 KLAYOUT_DISABLED=1
2246 fi
2247
2248
2249fi
2250
2251
2252
2253
2254
2255 MAGIC_DISABLED=0
2256 # Check whether --enable-magic was given.
2257if test "${enable_magic+set}" = set; then :
2258 enableval=$enable_magic;
2259 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2260 MAGIC_DISABLED=1
2261 fi
2262
2263
2264fi
2265
2266
2267
2268
2269
2270 NETGEN_DISABLED=0
2271 # Check whether --enable-netgen was given.
2272if test "${enable_netgen+set}" = set; then :
2273 enableval=$enable_netgen;
2274 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2275 NETGEN_DISABLED=1
2276 fi
2277
2278
2279fi
2280
2281
2282
2283
2284
Tim Edwards367711e2021-01-27 10:35:12 -05002285 IRSIM_DISABLED=0
2286 # Check whether --enable-irsim was given.
2287if test "${enable_irsim+set}" = set; then :
2288 enableval=$enable_irsim;
2289 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2290 IRSIM_DISABLED=1
2291 fi
2292
2293
2294fi
2295
2296
2297
2298
2299
Tim Edwards66e53e52021-01-24 21:21:36 -05002300 OPENLANE_DISABLED=0
2301 # Check whether --enable-openlane was given.
2302if test "${enable_openlane+set}" = set; then :
2303 enableval=$enable_openlane;
2304 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2305 OPENLANE_DISABLED=1
2306 fi
2307
2308
2309fi
2310
2311
2312
2313
2314
2315 QFLOW_DISABLED=0
2316 # Check whether --enable-qflow was given.
2317if test "${enable_qflow+set}" = set; then :
2318 enableval=$enable_qflow;
2319 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2320 QFLOW_DISABLED=1
2321 fi
2322
2323
2324fi
2325
2326
2327
2328
2329
Tim Edwards1168a8b2021-02-10 22:06:54 -05002330 XSCHEM_DISABLED=0
2331 # Check whether --enable-xschem was given.
2332if test "${enable_xschem+set}" = set; then :
2333 enableval=$enable_xschem;
2334 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2335 XSCHEM_DISABLED=1
2336 fi
2337
2338
2339fi
2340
2341
2342
2343
2344
Tim Edwards66e53e52021-01-24 21:21:36 -05002345# Magic
2346# Extract the first word of "magic", so it can be a program name with args.
2347set dummy magic; ac_word=$2
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349$as_echo_n "checking for $ac_word... " >&6; }
2350if ${ac_cv_path_MAGIC+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352else
2353 case $MAGIC in
2354 [\\/]* | ?:[\\/]*)
2355 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2356 ;;
2357 *)
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369done
2370 done
2371IFS=$as_save_IFS
2372
2373 ;;
2374esac
2375fi
2376MAGIC=$ac_cv_path_MAGIC
2377if test -n "$MAGIC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2379$as_echo "$MAGIC" >&6; }
2380else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385
2386if test -z "$MAGIC"; then
2387 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2388fi
2389# Extract the first word of "patch", so it can be a program name with args.
2390set dummy patch; ac_word=$2
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if ${ac_cv_path_PATCH+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395else
2396 case $PATCH in
2397 [\\/]* | ?:[\\/]*)
2398 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2399 ;;
2400 *)
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 break 2
2411 fi
2412done
2413 done
2414IFS=$as_save_IFS
2415
2416 ;;
2417esac
2418fi
2419PATCH=$ac_cv_path_PATCH
2420if test -n "$PATCH"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2422$as_echo "$PATCH" >&6; }
2423else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425$as_echo "no" >&6; }
2426fi
2427
2428
2429if test -z "$PATCH"; then
2430 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2431fi
2432
2433# Other installations (libraries or tools if applicable)
Tim Edwards66e53e52021-01-24 21:21:36 -05002434
2435
2436
2437
2438
2439
2440
2441
Tim Edwards6ee11532021-02-11 12:29:33 -05002442 # echo target targetvar flag location
Tim Edwards66e53e52021-01-24 21:21:36 -05002443
2444 SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002445
Tim Edwards1168a8b2021-02-10 22:06:54 -05002446 # Check whether --enable-alpha-sky130 was given.
2447if test "${enable_alpha_sky130+set}" = set; then :
2448 enableval=$enable_alpha_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002449 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002450 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2451$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002452 export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
Tim Edwards66e53e52021-01-24 21:21:36 -05002453 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002454 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_ml_xx_hd'" >&5
2455$as_echo "$as_me: Disabling package 'sky130_ml_xx_hd'" >&6;}
2456 export SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002457 else
2458 SKY130_ML_XX_HD_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002459 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5
2460$as_echo "$as_me: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002461 fi
2462 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2463
Tim Edwards7e0a6442021-02-11 15:37:42 -05002464else
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2467$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
2468 SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
2469
2470
Tim Edwards66e53e52021-01-24 21:21:36 -05002471fi
2472
2473
2474
2475
2476
2477
2478
Tim Edwards66e53e52021-01-24 21:21:36 -05002479
2480
2481
2482
2483
Tim Edwards6ee11532021-02-11 12:29:33 -05002484 # echo target targetvar flag location
Tim Edwards66e53e52021-01-24 21:21:36 -05002485
Tim Edwards1168a8b2021-02-10 22:06:54 -05002486 XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002487
Tim Edwards1168a8b2021-02-10 22:06:54 -05002488 # Check whether --enable-xschem-sky130 was given.
2489if test "${enable_xschem_sky130+set}" = set; then :
2490 enableval=$enable_xschem_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002491 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002492 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2493$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002494 export XSCHEM_SKY130_PATH=../sources/xschem_sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002495 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002496 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'xschem_sky130'" >&5
2497$as_echo "$as_me: Disabling package 'xschem_sky130'" >&6;}
2498 export XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002499 else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002500 XSCHEM_SKY130_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002501 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5
2502$as_echo "$as_me: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002503 fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002504 XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH`
Tim Edwards66e53e52021-01-24 21:21:36 -05002505
Tim Edwards7e0a6442021-02-11 15:37:42 -05002506else
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2509$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
2510 XSCHEM_SKY130_PATH=../sources/xschem_sky130
2511
2512
Tim Edwards66e53e52021-01-24 21:21:36 -05002513fi
2514
2515
2516
2517
2518
Tim Edwards66e53e52021-01-24 21:21:36 -05002519
2520
2521
2522
Tim Edwards1168a8b2021-02-10 22:06:54 -05002523{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5
2524$as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002525
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002526# Check for "--with-ef-style"
2527EF_STYLE=0
2528
2529# Check whether --with-ef-style was given.
2530if test "${with_ef_style+set}" = set; then :
2531 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002532 pdks_ef_style=$withval
2533 if test "$withval" == "yes" -o "$withval" == "YES"; then
2534 EF_STYLE=1
2535 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002536
2537fi
2538
2539
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002540
2541
2542MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2543ac_config_files="$ac_config_files $MAKEFILES"
2544
2545
2546cat >confcache <<\_ACEOF
2547# This file is a shell script that caches the results of configure
2548# tests run on this system so they can be shared between configure
2549# scripts and configure runs, see configure's option --config-cache.
2550# It is not useful on other systems. If it contains results you don't
2551# want to keep, you may remove or edit it.
2552#
2553# config.status only pays attention to the cache file if you give it
2554# the --recheck option to rerun configure.
2555#
2556# `ac_cv_env_foo' variables (set or unset) will be overridden when
2557# loading this file, other *unset* `ac_cv_foo' will be assigned the
2558# following values.
2559
2560_ACEOF
2561
2562# The following way of writing the cache mishandles newlines in values,
2563# but we know of no workaround that is simple, portable, and efficient.
2564# So, we kill variables containing newlines.
2565# Ultrix sh set writes to stderr and can't be redirected directly,
2566# and sets the high bit in the cache file unless we assign to the vars.
2567(
2568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2569 eval ac_val=\$$ac_var
2570 case $ac_val in #(
2571 *${as_nl}*)
2572 case $ac_var in #(
2573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2574$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2575 esac
2576 case $ac_var in #(
2577 _ | IFS | as_nl) ;; #(
2578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2579 *) { eval $ac_var=; unset $ac_var;} ;;
2580 esac ;;
2581 esac
2582 done
2583
2584 (set) 2>&1 |
2585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2586 *${as_nl}ac_space=\ *)
2587 # `set' does not quote correctly, so add quotes: double-quote
2588 # substitution turns \\\\ into \\, and sed turns \\ into \.
2589 sed -n \
2590 "s/'/'\\\\''/g;
2591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2592 ;; #(
2593 *)
2594 # `set' quotes correctly as required by POSIX, so do not add quotes.
2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2596 ;;
2597 esac |
2598 sort
2599) |
2600 sed '
2601 /^ac_cv_env_/b end
2602 t clear
2603 :clear
2604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2605 t end
2606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2607 :end' >>confcache
2608if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2609 if test -w "$cache_file"; then
2610 if test "x$cache_file" != "x/dev/null"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2612$as_echo "$as_me: updating cache $cache_file" >&6;}
2613 if test ! -f "$cache_file" || test -h "$cache_file"; then
2614 cat confcache >"$cache_file"
2615 else
2616 case $cache_file in #(
2617 */* | ?:*)
2618 mv -f confcache "$cache_file"$$ &&
2619 mv -f "$cache_file"$$ "$cache_file" ;; #(
2620 *)
2621 mv -f confcache "$cache_file" ;;
2622 esac
2623 fi
2624 fi
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2627$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2628 fi
2629fi
2630rm -f confcache
2631
2632test "x$prefix" = xNONE && prefix=$ac_default_prefix
2633# Let make expand exec_prefix.
2634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2635
2636# Transform confdefs.h into DEFS.
2637# Protect against shell expansion while executing Makefile rules.
2638# Protect against Makefile macro expansion.
2639#
2640# If the first sed substitution is executed (which looks for macros that
2641# take arguments), then branch to the quote section. Otherwise,
2642# look for a macro that doesn't take arguments.
2643ac_script='
2644:mline
2645/\\$/{
2646 N
2647 s,\\\n,,
2648 b mline
2649}
2650t clear
2651:clear
2652s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2653t quote
2654s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2655t quote
2656b any
2657:quote
2658s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2659s/\[/\\&/g
2660s/\]/\\&/g
2661s/\$/$$/g
2662H
2663:any
2664${
2665 g
2666 s/^\n//
2667 s/\n/ /g
2668 p
2669}
2670'
2671DEFS=`sed -n "$ac_script" confdefs.h`
2672
2673
2674ac_libobjs=
2675ac_ltlibobjs=
2676U=
2677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2678 # 1. Remove the extension, and $U if already installed.
2679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2682 # will be set to the directory where LIBOBJS objects are built.
2683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2685done
2686LIBOBJS=$ac_libobjs
2687
2688LTLIBOBJS=$ac_ltlibobjs
2689
2690
2691
2692: "${CONFIG_STATUS=./config.status}"
2693ac_write_fail=0
2694ac_clean_files_save=$ac_clean_files
2695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2698as_write_fail=0
2699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2700#! $SHELL
2701# Generated by $as_me.
2702# Run this file to recreate the current configuration.
2703# Compiler output produced by configure, useful for debugging
2704# configure, is in config.log if it exists.
2705
2706debug=false
2707ac_cs_recheck=false
2708ac_cs_silent=false
2709
2710SHELL=\${CONFIG_SHELL-$SHELL}
2711export SHELL
2712_ASEOF
2713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2714## -------------------- ##
2715## M4sh Initialization. ##
2716## -------------------- ##
2717
2718# Be more Bourne compatible
2719DUALCASE=1; export DUALCASE # for MKS sh
2720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2721 emulate sh
2722 NULLCMD=:
2723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2724 # is contrary to our usage. Disable this feature.
2725 alias -g '${1+"$@"}'='"$@"'
2726 setopt NO_GLOB_SUBST
2727else
2728 case `(set -o) 2>/dev/null` in #(
2729 *posix*) :
2730 set -o posix ;; #(
2731 *) :
2732 ;;
2733esac
2734fi
2735
2736
2737as_nl='
2738'
2739export as_nl
2740# Printing a long string crashes Solaris 7 /usr/bin/printf.
2741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2744# Prefer a ksh shell builtin over an external printf program on Solaris,
2745# but without wasting forks for bash or zsh.
2746if test -z "$BASH_VERSION$ZSH_VERSION" \
2747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2748 as_echo='print -r --'
2749 as_echo_n='print -rn --'
2750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2751 as_echo='printf %s\n'
2752 as_echo_n='printf %s'
2753else
2754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2756 as_echo_n='/usr/ucb/echo -n'
2757 else
2758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2759 as_echo_n_body='eval
2760 arg=$1;
2761 case $arg in #(
2762 *"$as_nl"*)
2763 expr "X$arg" : "X\\(.*\\)$as_nl";
2764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2765 esac;
2766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2767 '
2768 export as_echo_n_body
2769 as_echo_n='sh -c $as_echo_n_body as_echo'
2770 fi
2771 export as_echo_body
2772 as_echo='sh -c $as_echo_body as_echo'
2773fi
2774
2775# The user is always right.
2776if test "${PATH_SEPARATOR+set}" != set; then
2777 PATH_SEPARATOR=:
2778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2780 PATH_SEPARATOR=';'
2781 }
2782fi
2783
2784
2785# IFS
2786# We need space, tab and new line, in precisely that order. Quoting is
2787# there to prevent editors from complaining about space-tab.
2788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2789# splitting by setting IFS to empty value.)
2790IFS=" "" $as_nl"
2791
2792# Find who we are. Look in the path if we contain no directory separator.
2793as_myself=
2794case $0 in #((
2795 *[\\/]* ) as_myself=$0 ;;
2796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2802 done
2803IFS=$as_save_IFS
2804
2805 ;;
2806esac
2807# We did not find ourselves, most probably we were run as `sh COMMAND'
2808# in which case we are not to be found in the path.
2809if test "x$as_myself" = x; then
2810 as_myself=$0
2811fi
2812if test ! -f "$as_myself"; then
2813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2814 exit 1
2815fi
2816
2817# Unset variables that we do not need and which cause bugs (e.g. in
2818# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2819# suppresses any "Segmentation fault" message there. '((' could
2820# trigger a bug in pdksh 5.2.14.
2821for as_var in BASH_ENV ENV MAIL MAILPATH
2822do eval test x\${$as_var+set} = xset \
2823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2824done
2825PS1='$ '
2826PS2='> '
2827PS4='+ '
2828
2829# NLS nuisances.
2830LC_ALL=C
2831export LC_ALL
2832LANGUAGE=C
2833export LANGUAGE
2834
2835# CDPATH.
2836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2837
2838
2839# as_fn_error STATUS ERROR [LINENO LOG_FD]
2840# ----------------------------------------
2841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2843# script with STATUS, using 1 if that was 0.
2844as_fn_error ()
2845{
2846 as_status=$1; test $as_status -eq 0 && as_status=1
2847 if test "$4"; then
2848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2850 fi
2851 $as_echo "$as_me: error: $2" >&2
2852 as_fn_exit $as_status
2853} # as_fn_error
2854
2855
2856# as_fn_set_status STATUS
2857# -----------------------
2858# Set $? to STATUS, without forking.
2859as_fn_set_status ()
2860{
2861 return $1
2862} # as_fn_set_status
2863
2864# as_fn_exit STATUS
2865# -----------------
2866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2867as_fn_exit ()
2868{
2869 set +e
2870 as_fn_set_status $1
2871 exit $1
2872} # as_fn_exit
2873
2874# as_fn_unset VAR
2875# ---------------
2876# Portably unset VAR.
2877as_fn_unset ()
2878{
2879 { eval $1=; unset $1;}
2880}
2881as_unset=as_fn_unset
2882# as_fn_append VAR VALUE
2883# ----------------------
2884# Append the text in VALUE to the end of the definition contained in VAR. Take
2885# advantage of any shell optimizations that allow amortized linear growth over
2886# repeated appends, instead of the typical quadratic growth present in naive
2887# implementations.
2888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2889 eval 'as_fn_append ()
2890 {
2891 eval $1+=\$2
2892 }'
2893else
2894 as_fn_append ()
2895 {
2896 eval $1=\$$1\$2
2897 }
2898fi # as_fn_append
2899
2900# as_fn_arith ARG...
2901# ------------------
2902# Perform arithmetic evaluation on the ARGs, and store the result in the
2903# global $as_val. Take advantage of shells that can avoid forks. The arguments
2904# must be portable across $(()) and expr.
2905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2906 eval 'as_fn_arith ()
2907 {
2908 as_val=$(( $* ))
2909 }'
2910else
2911 as_fn_arith ()
2912 {
2913 as_val=`expr "$@" || test $? -eq 1`
2914 }
2915fi # as_fn_arith
2916
2917
2918if expr a : '\(a\)' >/dev/null 2>&1 &&
2919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2920 as_expr=expr
2921else
2922 as_expr=false
2923fi
2924
2925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2926 as_basename=basename
2927else
2928 as_basename=false
2929fi
2930
2931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2932 as_dirname=dirname
2933else
2934 as_dirname=false
2935fi
2936
2937as_me=`$as_basename -- "$0" ||
2938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2939 X"$0" : 'X\(//\)$' \| \
2940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2941$as_echo X/"$0" |
2942 sed '/^.*\/\([^/][^/]*\)\/*$/{
2943 s//\1/
2944 q
2945 }
2946 /^X\/\(\/\/\)$/{
2947 s//\1/
2948 q
2949 }
2950 /^X\/\(\/\).*/{
2951 s//\1/
2952 q
2953 }
2954 s/.*/./; q'`
2955
2956# Avoid depending upon Character Ranges.
2957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2960as_cr_digits='0123456789'
2961as_cr_alnum=$as_cr_Letters$as_cr_digits
2962
2963ECHO_C= ECHO_N= ECHO_T=
2964case `echo -n x` in #(((((
2965-n*)
2966 case `echo 'xy\c'` in
2967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2968 xy) ECHO_C='\c';;
2969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2970 ECHO_T=' ';;
2971 esac;;
2972*)
2973 ECHO_N='-n';;
2974esac
2975
2976rm -f conf$$ conf$$.exe conf$$.file
2977if test -d conf$$.dir; then
2978 rm -f conf$$.dir/conf$$.file
2979else
2980 rm -f conf$$.dir
2981 mkdir conf$$.dir 2>/dev/null
2982fi
2983if (echo >conf$$.file) 2>/dev/null; then
2984 if ln -s conf$$.file conf$$ 2>/dev/null; then
2985 as_ln_s='ln -s'
2986 # ... but there are two gotchas:
2987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2989 # In both cases, we have to default to `cp -pR'.
2990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2991 as_ln_s='cp -pR'
2992 elif ln conf$$.file conf$$ 2>/dev/null; then
2993 as_ln_s=ln
2994 else
2995 as_ln_s='cp -pR'
2996 fi
2997else
2998 as_ln_s='cp -pR'
2999fi
3000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3001rmdir conf$$.dir 2>/dev/null
3002
3003
3004# as_fn_mkdir_p
3005# -------------
3006# Create "$as_dir" as a directory, including parents if necessary.
3007as_fn_mkdir_p ()
3008{
3009
3010 case $as_dir in #(
3011 -*) as_dir=./$as_dir;;
3012 esac
3013 test -d "$as_dir" || eval $as_mkdir_p || {
3014 as_dirs=
3015 while :; do
3016 case $as_dir in #(
3017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3018 *) as_qdir=$as_dir;;
3019 esac
3020 as_dirs="'$as_qdir' $as_dirs"
3021 as_dir=`$as_dirname -- "$as_dir" ||
3022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3023 X"$as_dir" : 'X\(//\)[^/]' \| \
3024 X"$as_dir" : 'X\(//\)$' \| \
3025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3026$as_echo X"$as_dir" |
3027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3028 s//\1/
3029 q
3030 }
3031 /^X\(\/\/\)[^/].*/{
3032 s//\1/
3033 q
3034 }
3035 /^X\(\/\/\)$/{
3036 s//\1/
3037 q
3038 }
3039 /^X\(\/\).*/{
3040 s//\1/
3041 q
3042 }
3043 s/.*/./; q'`
3044 test -d "$as_dir" && break
3045 done
3046 test -z "$as_dirs" || eval "mkdir $as_dirs"
3047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3048
3049
3050} # as_fn_mkdir_p
3051if mkdir -p . 2>/dev/null; then
3052 as_mkdir_p='mkdir -p "$as_dir"'
3053else
3054 test -d ./-p && rmdir ./-p
3055 as_mkdir_p=false
3056fi
3057
3058
3059# as_fn_executable_p FILE
3060# -----------------------
3061# Test if FILE is an executable regular file.
3062as_fn_executable_p ()
3063{
3064 test -f "$1" && test -x "$1"
3065} # as_fn_executable_p
3066as_test_x='test -x'
3067as_executable_p=as_fn_executable_p
3068
3069# Sed expression to map a string onto a valid CPP name.
3070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3071
3072# Sed expression to map a string onto a valid variable name.
3073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3074
3075
3076exec 6>&1
3077## ----------------------------------- ##
3078## Main body of $CONFIG_STATUS script. ##
3079## ----------------------------------- ##
3080_ASEOF
3081test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3082
3083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3084# Save the log message, to keep $0 and so on meaningful, and to
3085# report actual input values of CONFIG_FILES etc. instead of their
3086# values after options handling.
3087ac_log="
3088This file was extended by open_pdks $as_me 1.0, which was
3089generated by GNU Autoconf 2.69. Invocation command line was
3090
3091 CONFIG_FILES = $CONFIG_FILES
3092 CONFIG_HEADERS = $CONFIG_HEADERS
3093 CONFIG_LINKS = $CONFIG_LINKS
3094 CONFIG_COMMANDS = $CONFIG_COMMANDS
3095 $ $0 $@
3096
3097on `(hostname || uname -n) 2>/dev/null | sed 1q`
3098"
3099
3100_ACEOF
3101
3102case $ac_config_files in *"
3103"*) set x $ac_config_files; shift; ac_config_files=$*;;
3104esac
3105
3106
3107
3108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3109# Files that config.status was made for.
3110config_files="$ac_config_files"
3111
3112_ACEOF
3113
3114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3115ac_cs_usage="\
3116\`$as_me' instantiates files and other configuration actions
3117from templates according to the current configuration. Unless the files
3118and actions are specified as TAGs, all are instantiated by default.
3119
3120Usage: $0 [OPTION]... [TAG]...
3121
3122 -h, --help print this help, then exit
3123 -V, --version print version number and configuration settings, then exit
3124 --config print configuration, then exit
3125 -q, --quiet, --silent
3126 do not print progress messages
3127 -d, --debug don't remove temporary files
3128 --recheck update $as_me by reconfiguring in the same conditions
3129 --file=FILE[:TEMPLATE]
3130 instantiate the configuration file FILE
3131
3132Configuration files:
3133$config_files
3134
3135Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3136
3137_ACEOF
3138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3139ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3140ac_cs_version="\\
3141open_pdks config.status 1.0
3142configured by $0, generated by GNU Autoconf 2.69,
3143 with options \\"\$ac_cs_config\\"
3144
3145Copyright (C) 2012 Free Software Foundation, Inc.
3146This config.status script is free software; the Free Software Foundation
3147gives unlimited permission to copy, distribute and modify it."
3148
3149ac_pwd='$ac_pwd'
3150srcdir='$srcdir'
3151test -n "\$AWK" || AWK=awk
3152_ACEOF
3153
3154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3155# The default lists apply if the user does not specify any file.
3156ac_need_defaults=:
3157while test $# != 0
3158do
3159 case $1 in
3160 --*=?*)
3161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3163 ac_shift=:
3164 ;;
3165 --*=)
3166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3167 ac_optarg=
3168 ac_shift=:
3169 ;;
3170 *)
3171 ac_option=$1
3172 ac_optarg=$2
3173 ac_shift=shift
3174 ;;
3175 esac
3176
3177 case $ac_option in
3178 # Handling of the options.
3179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3180 ac_cs_recheck=: ;;
3181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3182 $as_echo "$ac_cs_version"; exit ;;
3183 --config | --confi | --conf | --con | --co | --c )
3184 $as_echo "$ac_cs_config"; exit ;;
3185 --debug | --debu | --deb | --de | --d | -d )
3186 debug=: ;;
3187 --file | --fil | --fi | --f )
3188 $ac_shift
3189 case $ac_optarg in
3190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 '') as_fn_error $? "missing file argument" ;;
3192 esac
3193 as_fn_append CONFIG_FILES " '$ac_optarg'"
3194 ac_need_defaults=false;;
3195 --he | --h | --help | --hel | -h )
3196 $as_echo "$ac_cs_usage"; exit ;;
3197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3199 ac_cs_silent=: ;;
3200
3201 # This is an error.
3202 -*) as_fn_error $? "unrecognized option: \`$1'
3203Try \`$0 --help' for more information." ;;
3204
3205 *) as_fn_append ac_config_targets " $1"
3206 ac_need_defaults=false ;;
3207
3208 esac
3209 shift
3210done
3211
3212ac_configure_extra_args=
3213
3214if $ac_cs_silent; then
3215 exec 6>/dev/null
3216 ac_configure_extra_args="$ac_configure_extra_args --silent"
3217fi
3218
3219_ACEOF
3220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3221if \$ac_cs_recheck; then
3222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3223 shift
3224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3225 CONFIG_SHELL='$SHELL'
3226 export CONFIG_SHELL
3227 exec "\$@"
3228fi
3229
3230_ACEOF
3231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3232exec 5>>config.log
3233{
3234 echo
3235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3236## Running $as_me. ##
3237_ASBOX
3238 $as_echo "$ac_log"
3239} >&5
3240
3241_ACEOF
3242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3243_ACEOF
3244
3245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3246
3247# Handling of arguments.
3248for ac_config_target in $ac_config_targets
3249do
3250 case $ac_config_target in
3251 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3252
3253 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3254 esac
3255done
3256
3257
3258# If the user did not use the arguments to specify the items to instantiate,
3259# then the envvar interface is used. Set only those that are not.
3260# We use the long form for the default assignment because of an extremely
3261# bizarre bug on SunOS 4.1.3.
3262if $ac_need_defaults; then
3263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3264fi
3265
3266# Have a temporary directory for convenience. Make it in the build tree
3267# simply because there is no reason against having it here, and in addition,
3268# creating and moving files from /tmp can sometimes cause problems.
3269# Hook for its removal unless debugging.
3270# Note that there is a small window in which the directory will not be cleaned:
3271# after its creation but before its name has been assigned to `$tmp'.
3272$debug ||
3273{
3274 tmp= ac_tmp=
3275 trap 'exit_status=$?
3276 : "${ac_tmp:=$tmp}"
3277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3278' 0
3279 trap 'as_fn_exit 1' 1 2 13 15
3280}
3281# Create a (secure) tmp directory for tmp files.
3282
3283{
3284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3285 test -d "$tmp"
3286} ||
3287{
3288 tmp=./conf$$-$RANDOM
3289 (umask 077 && mkdir "$tmp")
3290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3291ac_tmp=$tmp
3292
3293# Set up the scripts for CONFIG_FILES section.
3294# No need to generate them if there are no CONFIG_FILES.
3295# This happens for instance with `./config.status config.h'.
3296if test -n "$CONFIG_FILES"; then
3297
3298
3299ac_cr=`echo X | tr X '\015'`
3300# On cygwin, bash can eat \r inside `` if the user requested igncr.
3301# But we know of no other shell where ac_cr would be empty at this
3302# point, so we can use a bashism as a fallback.
3303if test "x$ac_cr" = x; then
3304 eval ac_cr=\$\'\\r\'
3305fi
3306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3308 ac_cs_awk_cr='\\r'
3309else
3310 ac_cs_awk_cr=$ac_cr
3311fi
3312
3313echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3314_ACEOF
3315
3316
3317{
3318 echo "cat >conf$$subs.awk <<_ACEOF" &&
3319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3320 echo "_ACEOF"
3321} >conf$$subs.sh ||
3322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3324ac_delim='%!_!# '
3325for ac_last_try in false false false false false :; do
3326 . ./conf$$subs.sh ||
3327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3328
3329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3330 if test $ac_delim_n = $ac_delim_num; then
3331 break
3332 elif $ac_last_try; then
3333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3334 else
3335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3336 fi
3337done
3338rm -f conf$$subs.sh
3339
3340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3342_ACEOF
3343sed -n '
3344h
3345s/^/S["/; s/!.*/"]=/
3346p
3347g
3348s/^[^!]*!//
3349:repl
3350t repl
3351s/'"$ac_delim"'$//
3352t delim
3353:nl
3354h
3355s/\(.\{148\}\)..*/\1/
3356t more1
3357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3358p
3359n
3360b repl
3361:more1
3362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3363p
3364g
3365s/.\{148\}//
3366t nl
3367:delim
3368h
3369s/\(.\{148\}\)..*/\1/
3370t more2
3371s/["\\]/\\&/g; s/^/"/; s/$/"/
3372p
3373b
3374:more2
3375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3376p
3377g
3378s/.\{148\}//
3379t delim
3380' <conf$$subs.awk | sed '
3381/^[^""]/{
3382 N
3383 s/\n//
3384}
3385' >>$CONFIG_STATUS || ac_write_fail=1
3386rm -f conf$$subs.awk
3387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3388_ACAWK
3389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3390 for (key in S) S_is_set[key] = 1
3391 FS = ""
3392
3393}
3394{
3395 line = $ 0
3396 nfields = split(line, field, "@")
3397 substed = 0
3398 len = length(field[1])
3399 for (i = 2; i < nfields; i++) {
3400 key = field[i]
3401 keylen = length(key)
3402 if (S_is_set[key]) {
3403 value = S[key]
3404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3405 len += length(value) + length(field[++i])
3406 substed = 1
3407 } else
3408 len += 1 + keylen
3409 }
3410
3411 print line
3412}
3413
3414_ACAWK
3415_ACEOF
3416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3419else
3420 cat
3421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3423_ACEOF
3424
3425# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3427# trailing colons and then remove the whole line if VPATH becomes empty
3428# (actually we leave an empty line to preserve line numbers).
3429if test "x$srcdir" = x.; then
3430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3431h
3432s///
3433s/^/:/
3434s/[ ]*$/:/
3435s/:\$(srcdir):/:/g
3436s/:\${srcdir}:/:/g
3437s/:@srcdir@:/:/g
3438s/^:*//
3439s/:*$//
3440x
3441s/\(=[ ]*\).*/\1/
3442G
3443s/\n//
3444s/^[^=]*=[ ]*$//
3445}'
3446fi
3447
3448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3449fi # test -n "$CONFIG_FILES"
3450
3451
3452eval set X " :F $CONFIG_FILES "
3453shift
3454for ac_tag
3455do
3456 case $ac_tag in
3457 :[FHLC]) ac_mode=$ac_tag; continue;;
3458 esac
3459 case $ac_mode$ac_tag in
3460 :[FHL]*:*);;
3461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3462 :[FH]-) ac_tag=-:-;;
3463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3464 esac
3465 ac_save_IFS=$IFS
3466 IFS=:
3467 set x $ac_tag
3468 IFS=$ac_save_IFS
3469 shift
3470 ac_file=$1
3471 shift
3472
3473 case $ac_mode in
3474 :L) ac_source=$1;;
3475 :[FH])
3476 ac_file_inputs=
3477 for ac_f
3478 do
3479 case $ac_f in
3480 -) ac_f="$ac_tmp/stdin";;
3481 *) # Look for the file first in the build tree, then in the source tree
3482 # (if the path is not absolute). The absolute path cannot be DOS-style,
3483 # because $ac_f cannot contain `:'.
3484 test -f "$ac_f" ||
3485 case $ac_f in
3486 [\\/$]*) false;;
3487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3488 esac ||
3489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3490 esac
3491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3492 as_fn_append ac_file_inputs " '$ac_f'"
3493 done
3494
3495 # Let's still pretend it is `configure' which instantiates (i.e., don't
3496 # use $as_me), people would be surprised to read:
3497 # /* config.h. Generated by config.status. */
3498 configure_input='Generated from '`
3499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3500 `' by configure.'
3501 if test x"$ac_file" != x-; then
3502 configure_input="$ac_file. $configure_input"
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3504$as_echo "$as_me: creating $ac_file" >&6;}
3505 fi
3506 # Neutralize special characters interpreted by sed in replacement strings.
3507 case $configure_input in #(
3508 *\&* | *\|* | *\\* )
3509 ac_sed_conf_input=`$as_echo "$configure_input" |
3510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3511 *) ac_sed_conf_input=$configure_input;;
3512 esac
3513
3514 case $ac_tag in
3515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3517 esac
3518 ;;
3519 esac
3520
3521 ac_dir=`$as_dirname -- "$ac_file" ||
3522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3523 X"$ac_file" : 'X\(//\)[^/]' \| \
3524 X"$ac_file" : 'X\(//\)$' \| \
3525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3526$as_echo X"$ac_file" |
3527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3528 s//\1/
3529 q
3530 }
3531 /^X\(\/\/\)[^/].*/{
3532 s//\1/
3533 q
3534 }
3535 /^X\(\/\/\)$/{
3536 s//\1/
3537 q
3538 }
3539 /^X\(\/\).*/{
3540 s//\1/
3541 q
3542 }
3543 s/.*/./; q'`
3544 as_dir="$ac_dir"; as_fn_mkdir_p
3545 ac_builddir=.
3546
3547case "$ac_dir" in
3548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3549*)
3550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3551 # A ".." for each directory in $ac_dir_suffix.
3552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3553 case $ac_top_builddir_sub in
3554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3556 esac ;;
3557esac
3558ac_abs_top_builddir=$ac_pwd
3559ac_abs_builddir=$ac_pwd$ac_dir_suffix
3560# for backward compatibility:
3561ac_top_builddir=$ac_top_build_prefix
3562
3563case $srcdir in
3564 .) # We are building in place.
3565 ac_srcdir=.
3566 ac_top_srcdir=$ac_top_builddir_sub
3567 ac_abs_top_srcdir=$ac_pwd ;;
3568 [\\/]* | ?:[\\/]* ) # Absolute name.
3569 ac_srcdir=$srcdir$ac_dir_suffix;
3570 ac_top_srcdir=$srcdir
3571 ac_abs_top_srcdir=$srcdir ;;
3572 *) # Relative name.
3573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3574 ac_top_srcdir=$ac_top_build_prefix$srcdir
3575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3576esac
3577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3578
3579
3580 case $ac_mode in
3581 :F)
3582 #
3583 # CONFIG_FILE
3584 #
3585
3586_ACEOF
3587
3588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3589# If the template does not know about datarootdir, expand it.
3590# FIXME: This hack should be removed a few years after 2.60.
3591ac_datarootdir_hack=; ac_datarootdir_seen=
3592ac_sed_dataroot='
3593/datarootdir/ {
3594 p
3595 q
3596}
3597/@datadir@/p
3598/@docdir@/p
3599/@infodir@/p
3600/@localedir@/p
3601/@mandir@/p'
3602case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3603*datarootdir*) ac_datarootdir_seen=yes;;
3604*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3606$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3607_ACEOF
3608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3609 ac_datarootdir_hack='
3610 s&@datadir@&$datadir&g
3611 s&@docdir@&$docdir&g
3612 s&@infodir@&$infodir&g
3613 s&@localedir@&$localedir&g
3614 s&@mandir@&$mandir&g
3615 s&\\\${datarootdir}&$datarootdir&g' ;;
3616esac
3617_ACEOF
3618
3619# Neutralize VPATH when `$srcdir' = `.'.
3620# Shell code in configure.ac might set extrasub.
3621# FIXME: do we really want to maintain this feature?
3622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3623ac_sed_extra="$ac_vpsub
3624$extrasub
3625_ACEOF
3626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3627:t
3628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3629s|@configure_input@|$ac_sed_conf_input|;t t
3630s&@top_builddir@&$ac_top_builddir_sub&;t t
3631s&@top_build_prefix@&$ac_top_build_prefix&;t t
3632s&@srcdir@&$ac_srcdir&;t t
3633s&@abs_srcdir@&$ac_abs_srcdir&;t t
3634s&@top_srcdir@&$ac_top_srcdir&;t t
3635s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3636s&@builddir@&$ac_builddir&;t t
3637s&@abs_builddir@&$ac_abs_builddir&;t t
3638s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3639$ac_datarootdir_hack
3640"
3641eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3642 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3643
3644test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3645 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3647 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3649which seems to be undefined. Please make sure it is defined" >&5
3650$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3651which seems to be undefined. Please make sure it is defined" >&2;}
3652
3653 rm -f "$ac_tmp/stdin"
3654 case $ac_file in
3655 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3656 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3657 esac \
3658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3659 ;;
3660
3661
3662
3663 esac
3664
3665done # for ac_tag
3666
3667
3668as_fn_exit 0
3669_ACEOF
3670ac_clean_files=$ac_clean_files_save
3671
3672test $ac_write_fail = 0 ||
3673 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3674
3675
3676# configure is writing to config.log, and then calls config.status.
3677# config.status does its own redirection, appending to config.log.
3678# Unfortunately, on DOS this fails, as config.log is still kept open
3679# by configure, so config.status won't be able to write to it; its
3680# output is simply discarded. So we exec the FD to /dev/null,
3681# effectively closing config.log, so it can be properly (re)opened and
3682# appended to by config.status. When coming back to configure, we
3683# need to make the FD available again.
3684if test "$no_create" != yes; then
3685 ac_cs_success=:
3686 ac_config_status_args=
3687 test "$silent" = yes &&
3688 ac_config_status_args="$ac_config_status_args --quiet"
3689 exec 5>/dev/null
3690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3691 exec 5>>config.log
3692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3693 # would make configure fail if this is the last instruction.
3694 $ac_cs_success || as_fn_exit 1
3695fi
3696if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3698$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3699fi
3700
3701
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3703$as_echo "Build configured successfully" >&6; }