blob: a199e50311f2fa379583cce899321e4eccb29ca4 [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 Edwards8292c902020-12-24 16:25:25 -0500590XSCHEM_PATH
591SKY130_ML_XX_HD_PATH
592OSU_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200593PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500594MAGIC
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
633localstatedir
634sharedstatedir
635sysconfdir
636datadir
637datarootdir
638libexecdir
639sbindir
640bindir
641program_transform_name
642prefix
643exec_prefix
644PACKAGE_URL
645PACKAGE_BUGREPORT
646PACKAGE_STRING
647PACKAGE_VERSION
648PACKAGE_TARNAME
649PACKAGE_NAME
650PATH_SEPARATOR
651SHELL'
652ac_subst_files=''
653ac_user_opts='
654enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500655enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400656with_sky130_local_path
657with_sky130_dist_path
658with_sky130_link_targets
Tim Edwardsccaea722020-12-24 10:59:42 -0500659enable_klayout
660enable_magic
661enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500662enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500663enable_openlane
664enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500665enable_osu_lib
666enable_alpha_lib
667enable_xschem
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400668with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200669'
670 ac_precious_vars='build_alias
671host_alias
672target_alias
673PYTHON'
674
675
676# Initialize some variables set by options.
677ac_init_help=
678ac_init_version=false
679ac_unrecognized_opts=
680ac_unrecognized_sep=
681# The variables have the same names as the options, with
682# dashes changed to underlines.
683cache_file=/dev/null
684exec_prefix=NONE
685no_create=
686no_recursion=
687prefix=NONE
688program_prefix=NONE
689program_suffix=NONE
690program_transform_name=s,x,x,
691silent=
692site=
693srcdir=
694verbose=
695x_includes=NONE
696x_libraries=NONE
697
698# Installation directory options.
699# These are left unexpanded so users can "make install exec_prefix=/foo"
700# and all the variables that are supposed to be based on exec_prefix
701# by default will actually change.
702# Use braces instead of parens because sh, perl, etc. also accept them.
703# (The list follows the same order as the GNU Coding Standards.)
704bindir='${exec_prefix}/bin'
705sbindir='${exec_prefix}/sbin'
706libexecdir='${exec_prefix}/libexec'
707datarootdir='${prefix}/share'
708datadir='${datarootdir}'
709sysconfdir='${prefix}/etc'
710sharedstatedir='${prefix}/com'
711localstatedir='${prefix}/var'
712includedir='${prefix}/include'
713oldincludedir='/usr/include'
714docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
715infodir='${datarootdir}/info'
716htmldir='${docdir}'
717dvidir='${docdir}'
718pdfdir='${docdir}'
719psdir='${docdir}'
720libdir='${exec_prefix}/lib'
721localedir='${datarootdir}/locale'
722mandir='${datarootdir}/man'
723
724ac_prev=
725ac_dashdash=
726for ac_option
727do
728 # If the previous option needs an argument, assign it.
729 if test -n "$ac_prev"; then
730 eval $ac_prev=\$ac_option
731 ac_prev=
732 continue
733 fi
734
735 case $ac_option in
736 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
737 *=) ac_optarg= ;;
738 *) ac_optarg=yes ;;
739 esac
740
741 # Accept the important Cygnus configure options, so we can diagnose typos.
742
743 case $ac_dashdash$ac_option in
744 --)
745 ac_dashdash=yes ;;
746
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750 bindir=$ac_optarg ;;
751
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
756
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
763
764 --config-cache | -C)
765 cache_file=config.cache ;;
766
767 -datadir | --datadir | --datadi | --datad)
768 ac_prev=datadir ;;
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
771
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
778
779 -disable-* | --disable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error $? "invalid feature name: $ac_useropt"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
787 *"
788"enable_$ac_useropt"
789"*) ;;
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
792 esac
793 eval enable_$ac_useropt=no ;;
794
795 -docdir | --docdir | --docdi | --doc | --do)
796 ac_prev=docdir ;;
797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
798 docdir=$ac_optarg ;;
799
800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801 ac_prev=dvidir ;;
802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
803 dvidir=$ac_optarg ;;
804
805 -enable-* | --enable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814"enable_$ac_useropt"
815"*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=\$ac_optarg ;;
820
821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823 | --exec | --exe | --ex)
824 ac_prev=exec_prefix ;;
825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827 | --exec=* | --exe=* | --ex=*)
828 exec_prefix=$ac_optarg ;;
829
830 -gas | --gas | --ga | --g)
831 # Obsolete; use --with-gas.
832 with_gas=yes ;;
833
834 -help | --help | --hel | --he | -h)
835 ac_init_help=long ;;
836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837 ac_init_help=recursive ;;
838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839 ac_init_help=short ;;
840
841 -host | --host | --hos | --ho)
842 ac_prev=host_alias ;;
843 -host=* | --host=* | --hos=* | --ho=*)
844 host_alias=$ac_optarg ;;
845
846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847 ac_prev=htmldir ;;
848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849 | --ht=*)
850 htmldir=$ac_optarg ;;
851
852 -includedir | --includedir | --includedi | --included | --include \
853 | --includ | --inclu | --incl | --inc)
854 ac_prev=includedir ;;
855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856 | --includ=* | --inclu=* | --incl=* | --inc=*)
857 includedir=$ac_optarg ;;
858
859 -infodir | --infodir | --infodi | --infod | --info | --inf)
860 ac_prev=infodir ;;
861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862 infodir=$ac_optarg ;;
863
864 -libdir | --libdir | --libdi | --libd)
865 ac_prev=libdir ;;
866 -libdir=* | --libdir=* | --libdi=* | --libd=*)
867 libdir=$ac_optarg ;;
868
869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870 | --libexe | --libex | --libe)
871 ac_prev=libexecdir ;;
872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873 | --libexe=* | --libex=* | --libe=*)
874 libexecdir=$ac_optarg ;;
875
876 -localedir | --localedir | --localedi | --localed | --locale)
877 ac_prev=localedir ;;
878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879 localedir=$ac_optarg ;;
880
881 -localstatedir | --localstatedir | --localstatedi | --localstated \
882 | --localstate | --localstat | --localsta | --localst | --locals)
883 ac_prev=localstatedir ;;
884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886 localstatedir=$ac_optarg ;;
887
888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889 ac_prev=mandir ;;
890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891 mandir=$ac_optarg ;;
892
893 -nfp | --nfp | --nf)
894 # Obsolete; use --without-fp.
895 with_fp=no ;;
896
897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898 | --no-cr | --no-c | -n)
899 no_create=yes ;;
900
901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903 no_recursion=yes ;;
904
905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907 | --oldin | --oldi | --old | --ol | --o)
908 ac_prev=oldincludedir ;;
909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912 oldincludedir=$ac_optarg ;;
913
914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915 ac_prev=prefix ;;
916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917 prefix=$ac_optarg ;;
918
919 -program-prefix | --program-prefix | --program-prefi | --program-pref \
920 | --program-pre | --program-pr | --program-p)
921 ac_prev=program_prefix ;;
922 -program-prefix=* | --program-prefix=* | --program-prefi=* \
923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924 program_prefix=$ac_optarg ;;
925
926 -program-suffix | --program-suffix | --program-suffi | --program-suff \
927 | --program-suf | --program-su | --program-s)
928 ac_prev=program_suffix ;;
929 -program-suffix=* | --program-suffix=* | --program-suffi=* \
930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931 program_suffix=$ac_optarg ;;
932
933 -program-transform-name | --program-transform-name \
934 | --program-transform-nam | --program-transform-na \
935 | --program-transform-n | --program-transform- \
936 | --program-transform | --program-transfor \
937 | --program-transfo | --program-transf \
938 | --program-trans | --program-tran \
939 | --progr-tra | --program-tr | --program-t)
940 ac_prev=program_transform_name ;;
941 -program-transform-name=* | --program-transform-name=* \
942 | --program-transform-nam=* | --program-transform-na=* \
943 | --program-transform-n=* | --program-transform-=* \
944 | --program-transform=* | --program-transfor=* \
945 | --program-transfo=* | --program-transf=* \
946 | --program-trans=* | --program-tran=* \
947 | --progr-tra=* | --program-tr=* | --program-t=*)
948 program_transform_name=$ac_optarg ;;
949
950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951 ac_prev=pdfdir ;;
952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953 pdfdir=$ac_optarg ;;
954
955 -psdir | --psdir | --psdi | --psd | --ps)
956 ac_prev=psdir ;;
957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958 psdir=$ac_optarg ;;
959
960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961 | -silent | --silent | --silen | --sile | --sil)
962 silent=yes ;;
963
964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
965 ac_prev=sbindir ;;
966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
967 | --sbi=* | --sb=*)
968 sbindir=$ac_optarg ;;
969
970 -sharedstatedir | --sharedstatedir | --sharedstatedi \
971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
972 | --sharedst | --shareds | --shared | --share | --shar \
973 | --sha | --sh)
974 ac_prev=sharedstatedir ;;
975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
978 | --sha=* | --sh=*)
979 sharedstatedir=$ac_optarg ;;
980
981 -site | --site | --sit)
982 ac_prev=site ;;
983 -site=* | --site=* | --sit=*)
984 site=$ac_optarg ;;
985
986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
987 ac_prev=srcdir ;;
988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989 srcdir=$ac_optarg ;;
990
991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
992 | --syscon | --sysco | --sysc | --sys | --sy)
993 ac_prev=sysconfdir ;;
994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996 sysconfdir=$ac_optarg ;;
997
998 -target | --target | --targe | --targ | --tar | --ta | --t)
999 ac_prev=target_alias ;;
1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001 target_alias=$ac_optarg ;;
1002
1003 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1004 verbose=yes ;;
1005
1006 -version | --version | --versio | --versi | --vers | -V)
1007 ac_init_version=: ;;
1008
1009 -with-* | --with-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid package name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"with_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval with_$ac_useropt=\$ac_optarg ;;
1024
1025 -without-* | --without-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"with_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=no ;;
1040
1041 --x)
1042 # Obsolete; use --with-x.
1043 with_x=yes ;;
1044
1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046 | --x-incl | --x-inc | --x-in | --x-i)
1047 ac_prev=x_includes ;;
1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050 x_includes=$ac_optarg ;;
1051
1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054 ac_prev=x_libraries ;;
1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057 x_libraries=$ac_optarg ;;
1058
1059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1060Try \`$0 --help' for more information"
1061 ;;
1062
1063 *=*)
1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1065 # Reject names that are not valid shell variable names.
1066 case $ac_envvar in #(
1067 '' | [0-9]* | *[!_$as_cr_alnum]* )
1068 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1069 esac
1070 eval $ac_envvar=\$ac_optarg
1071 export $ac_envvar ;;
1072
1073 *)
1074 # FIXME: should be removed in autoconf 3.0.
1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1079 ;;
1080
1081 esac
1082done
1083
1084if test -n "$ac_prev"; then
1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086 as_fn_error $? "missing argument to $ac_option"
1087fi
1088
1089if test -n "$ac_unrecognized_opts"; then
1090 case $enable_option_checking in
1091 no) ;;
1092 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1094 esac
1095fi
1096
1097# Check all directory arguments for consistency.
1098for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Ahmed Ghazy32385482021-01-19 20:38:14 +02001101 libdir localedir mandir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001102do
1103 eval ac_val=\$$ac_var
1104 # Remove trailing slashes.
1105 case $ac_val in
1106 */ )
1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108 eval $ac_var=\$ac_val;;
1109 esac
1110 # Be sure to have absolute directory names.
1111 case $ac_val in
1112 [\\/$]* | ?:[\\/]* ) continue;;
1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114 esac
1115 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1116done
1117
1118# There might be people who depend on the old broken behavior: `$host'
1119# used to hold the argument of --host etc.
1120# FIXME: To remove some day.
1121build=$build_alias
1122host=$host_alias
1123target=$target_alias
1124
1125# FIXME: To remove some day.
1126if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132fi
1133
1134ac_tool_prefix=
1135test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137test "$silent" = yes && exec 6>/dev/null
1138
1139
1140ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141ac_ls_di=`ls -di .` &&
1142ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 as_fn_error $? "working directory cannot be determined"
1144test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 as_fn_error $? "pwd does not report name of working directory"
1146
1147
1148# Find the source files, if location was not specified.
1149if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$as_myself" ||
1153$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$as_myself" : 'X\(//\)[^/]' \| \
1155 X"$as_myself" : 'X\(//\)$' \| \
1156 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1157$as_echo X"$as_myself" |
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 s//\1/
1160 q
1161 }
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)$/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\).*/{
1171 s//\1/
1172 q
1173 }
1174 s/.*/./; q'`
1175 srcdir=$ac_confdir
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 srcdir=..
1178 fi
1179else
1180 ac_srcdir_defaulted=no
1181fi
1182if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1185fi
1186ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1187ac_abs_confdir=`(
1188 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1189 pwd)`
1190# When building in place, set srcdir=.
1191if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 srcdir=.
1193fi
1194# Remove unnecessary trailing slashes from srcdir.
1195# Double slashes in file names in object file debugging info
1196# mess up M-x gdb in Emacs.
1197case $srcdir in
1198*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199esac
1200for ac_var in $ac_precious_vars; do
1201 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_env_${ac_var}_value=\$${ac_var}
1203 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1205done
1206
1207#
1208# Report the --help message.
1209#
1210if test "$ac_init_help" = "long"; then
1211 # Omit some internal or obsolete options to make the list less imposing.
1212 # This message is too long to be a string in the A/UX 3.1 sh.
1213 cat <<_ACEOF
1214\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1215
1216Usage: $0 [OPTION]... [VAR=VALUE]...
1217
1218To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219VAR=VALUE. See below for descriptions of some of the useful variables.
1220
1221Defaults for the options are specified in brackets.
1222
1223Configuration:
1224 -h, --help display this help and exit
1225 --help=short display options specific to this package
1226 --help=recursive display the short help of all the included packages
1227 -V, --version display version information and exit
1228 -q, --quiet, --silent do not print \`checking ...' messages
1229 --cache-file=FILE cache test results in FILE [disabled]
1230 -C, --config-cache alias for \`--cache-file=config.cache'
1231 -n, --no-create do not create output files
1232 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1233
1234Installation directories:
1235 --prefix=PREFIX install architecture-independent files in PREFIX
1236 [$ac_default_prefix]
1237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 [PREFIX]
1239
1240By default, \`make install' will install all the files in
1241\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1242an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243for instance \`--prefix=\$HOME'.
1244
1245For better control, use the options below.
1246
1247Fine tuning of the installation directories:
1248 --bindir=DIR user executables [EPREFIX/bin]
1249 --sbindir=DIR system admin executables [EPREFIX/sbin]
1250 --libexecdir=DIR program executables [EPREFIX/libexec]
1251 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1252 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1253 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1254 --libdir=DIR object code libraries [EPREFIX/lib]
1255 --includedir=DIR C header files [PREFIX/include]
1256 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1257 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1258 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1259 --infodir=DIR info documentation [DATAROOTDIR/info]
1260 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1261 --mandir=DIR man documentation [DATAROOTDIR/man]
1262 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1263 --htmldir=DIR html documentation [DOCDIR]
1264 --dvidir=DIR dvi documentation [DOCDIR]
1265 --pdfdir=DIR pdf documentation [DOCDIR]
1266 --psdir=DIR ps documentation [DOCDIR]
1267_ACEOF
1268
1269 cat <<\_ACEOF
1270_ACEOF
1271fi
1272
1273if test -n "$ac_init_help"; then
1274 case $ac_init_help in
1275 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1276 esac
1277 cat <<\_ACEOF
1278
Tim Edwardsccaea722020-12-24 10:59:42 -05001279Optional Features:
1280 --disable-option-checking ignore unrecognized --enable/--with options
1281 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1282 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001283 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1284 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001285 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001286 if the path is omitted)"
1287 --enable-klayout
1288 Enable or disable klayout [default=enabled]
1289
1290
1291 --enable-magic
1292 Enable or disable magic [default=enabled]
1293
1294
1295 --enable-netgen
1296 Enable or disable netgen [default=enabled]
1297
1298
Tim Edwards367711e2021-01-27 10:35:12 -05001299 --enable-irsim
1300 Enable or disable irsim [default=enabled]
1301
1302
Tim Edwards8292c902020-12-24 16:25:25 -05001303 --enable-openlane
1304 Enable or disable openlane [default=enabled]
1305
1306
1307 --enable-qflow
1308 Enable or disable qflow [default=enabled]
1309
1310
1311 --enable-osu-lib[=path] Install osu. If path is omitted, it'll be
1312 downloaded. [default=disabled]
1313 --enable-alpha-lib[=path]
1314 Install sky130_ml_xx_hd. If path is omitted, it'll be
1315 downloaded. [default=disabled]
1316 --enable-xschem[=path] Install xschem. If path is omitted, it'll be
1317 downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001318 --enable-klayout --disable-klayout
1319 Enable or disable klayout [default=enabled]
1320 --enable-magic --disable-magic
1321 Enable or disable magic [default=enabled]
1322 --enable-netgen --disable-netgen
1323 Enable or disable netgen [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001324 --enable-irsim --disable-irsim
1325 Enable or disable irsim [default=enabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001326 --enable-openlane --disable-openlane
1327 Enable or disable openlane [default=enabled]
1328 --enable-qflow --disable-qflow
1329 Enable or disable qflow [default=enabled]
1330
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001331Optional Packages:
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards8292c902020-12-24 16:25:25 -05001334 --with-sky130-local-path=/path/to/install/sky130
1335 "run-time location of the PDK"
1336 --with-sky130-dist-path=/path/to/install/sky130
1337 "staging location to install the PDK for
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001338 distribution (optional)"
1339 --with-sky130-link-targets=none|source
1340 "make symbolic links to existing files
1341 [default=none]"
1342 --with-ef-style Use efabless style file system structure
1343 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001344
1345Some influential environment variables:
1346 PYTHON the Python interpreter
1347
1348Use these variables to override the choices made by `configure' or to help
1349it to find libraries and programs with nonstandard names/locations.
1350
1351Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1352_ACEOF
1353ac_status=$?
1354fi
1355
1356if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
1362 ac_builddir=.
1363
1364case "$ac_dir" in
1365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366*)
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374esac
1375ac_abs_top_builddir=$ac_pwd
1376ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377# for backward compatibility:
1378ac_top_builddir=$ac_top_build_prefix
1379
1380case $srcdir in
1381 .) # We are building in place.
1382 ac_srcdir=.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393esac
1394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409fi
1410
1411test -n "$ac_init_help" && exit $ac_status
1412if $ac_init_version; then
1413 cat <<\_ACEOF
1414open_pdks configure 1.0
1415generated by GNU Autoconf 2.69
1416
1417Copyright (C) 2012 Free Software Foundation, Inc.
1418This configure script is free software; the Free Software Foundation
1419gives unlimited permission to copy, distribute and modify it.
1420_ACEOF
1421 exit
1422fi
1423
1424## ------------------------ ##
1425## Autoconf initialization. ##
1426## ------------------------ ##
1427cat >config.log <<_ACEOF
1428This file contains any messages produced by compilers while
1429running configure, to aid debugging if configure makes a mistake.
1430
1431It was created by open_pdks $as_me 1.0, which was
1432generated by GNU Autoconf 2.69. Invocation command line was
1433
1434 $ $0 $@
1435
1436_ACEOF
1437exec 5>>config.log
1438{
1439cat <<_ASUNAME
1440## --------- ##
1441## Platform. ##
1442## --------- ##
1443
1444hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1445uname -m = `(uname -m) 2>/dev/null || echo unknown`
1446uname -r = `(uname -r) 2>/dev/null || echo unknown`
1447uname -s = `(uname -s) 2>/dev/null || echo unknown`
1448uname -v = `(uname -v) 2>/dev/null || echo unknown`
1449
1450/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1451/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1452
1453/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1454/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1455/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1456/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1457/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1458/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1459/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1460
1461_ASUNAME
1462
1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 $as_echo "PATH: $as_dir"
1469 done
1470IFS=$as_save_IFS
1471
1472} >&5
1473
1474cat >&5 <<_ACEOF
1475
1476
1477## ----------- ##
1478## Core tests. ##
1479## ----------- ##
1480
1481_ACEOF
1482
1483
1484# Keep a trace of the command line.
1485# Strip out --no-create and --no-recursion so they do not pile up.
1486# Strip out --silent because we don't want to record it for future runs.
1487# Also quote any args containing shell meta-characters.
1488# Make two passes to allow for proper duplicate-argument suppression.
1489ac_configure_args=
1490ac_configure_args0=
1491ac_configure_args1=
1492ac_must_keep_next=false
1493for ac_pass in 1 2
1494do
1495 for ac_arg
1496 do
1497 case $ac_arg in
1498 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1500 | -silent | --silent | --silen | --sile | --sil)
1501 continue ;;
1502 *\'*)
1503 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 esac
1505 case $ac_pass in
1506 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1507 2)
1508 as_fn_append ac_configure_args1 " '$ac_arg'"
1509 if test $ac_must_keep_next = true; then
1510 ac_must_keep_next=false # Got value, back to normal.
1511 else
1512 case $ac_arg in
1513 *=* | --config-cache | -C | -disable-* | --disable-* \
1514 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1515 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1516 | -with-* | --with-* | -without-* | --without-* | --x)
1517 case "$ac_configure_args0 " in
1518 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1519 esac
1520 ;;
1521 -* ) ac_must_keep_next=true ;;
1522 esac
1523 fi
1524 as_fn_append ac_configure_args " '$ac_arg'"
1525 ;;
1526 esac
1527 done
1528done
1529{ ac_configure_args0=; unset ac_configure_args0;}
1530{ ac_configure_args1=; unset ac_configure_args1;}
1531
1532# When interrupted or exit'd, cleanup temporary files, and complete
1533# config.log. We remove comments because anyway the quotes in there
1534# would cause problems or look ugly.
1535# WARNING: Use '\'' to represent an apostrophe within the trap.
1536# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1537trap 'exit_status=$?
1538 # Save into config.log some information that might help in debugging.
1539 {
1540 echo
1541
1542 $as_echo "## ---------------- ##
1543## Cache variables. ##
1544## ---------------- ##"
1545 echo
1546 # The following way of writing the cache mishandles newlines in values,
1547(
1548 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549 eval ac_val=\$$ac_var
1550 case $ac_val in #(
1551 *${as_nl}*)
1552 case $ac_var in #(
1553 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1554$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1555 esac
1556 case $ac_var in #(
1557 _ | IFS | as_nl) ;; #(
1558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1559 *) { eval $ac_var=; unset $ac_var;} ;;
1560 esac ;;
1561 esac
1562 done
1563 (set) 2>&1 |
1564 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565 *${as_nl}ac_space=\ *)
1566 sed -n \
1567 "s/'\''/'\''\\\\'\'''\''/g;
1568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569 ;; #(
1570 *)
1571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1572 ;;
1573 esac |
1574 sort
1575)
1576 echo
1577
1578 $as_echo "## ----------------- ##
1579## Output variables. ##
1580## ----------------- ##"
1581 echo
1582 for ac_var in $ac_subst_vars
1583 do
1584 eval ac_val=\$$ac_var
1585 case $ac_val in
1586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587 esac
1588 $as_echo "$ac_var='\''$ac_val'\''"
1589 done | sort
1590 echo
1591
1592 if test -n "$ac_subst_files"; then
1593 $as_echo "## ------------------- ##
1594## File substitutions. ##
1595## ------------------- ##"
1596 echo
1597 for ac_var in $ac_subst_files
1598 do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in
1601 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602 esac
1603 $as_echo "$ac_var='\''$ac_val'\''"
1604 done | sort
1605 echo
1606 fi
1607
1608 if test -s confdefs.h; then
1609 $as_echo "## ----------- ##
1610## confdefs.h. ##
1611## ----------- ##"
1612 echo
1613 cat confdefs.h
1614 echo
1615 fi
1616 test "$ac_signal" != 0 &&
1617 $as_echo "$as_me: caught signal $ac_signal"
1618 $as_echo "$as_me: exit $exit_status"
1619 } >&5
1620 rm -f core *.core core.conftest.* &&
1621 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1622 exit $exit_status
1623' 0
1624for ac_signal in 1 2 13 15; do
1625 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1626done
1627ac_signal=0
1628
1629# confdefs.h avoids OS command line length limits that DEFS can exceed.
1630rm -f -r conftest* confdefs.h
1631
1632$as_echo "/* confdefs.h */" > confdefs.h
1633
1634# Predefined preprocessor variables.
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_NAME "$PACKAGE_NAME"
1638_ACEOF
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1642_ACEOF
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648cat >>confdefs.h <<_ACEOF
1649#define PACKAGE_STRING "$PACKAGE_STRING"
1650_ACEOF
1651
1652cat >>confdefs.h <<_ACEOF
1653#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1654_ACEOF
1655
1656cat >>confdefs.h <<_ACEOF
1657#define PACKAGE_URL "$PACKAGE_URL"
1658_ACEOF
1659
1660
1661# Let the site file select an alternate cache file if it wants to.
1662# Prefer an explicitly selected file to automatically selected ones.
1663ac_site_file1=NONE
1664ac_site_file2=NONE
1665if test -n "$CONFIG_SITE"; then
1666 # We do not want a PATH search for config.site.
1667 case $CONFIG_SITE in #((
1668 -*) ac_site_file1=./$CONFIG_SITE;;
1669 */*) ac_site_file1=$CONFIG_SITE;;
1670 *) ac_site_file1=./$CONFIG_SITE;;
1671 esac
1672elif test "x$prefix" != xNONE; then
1673 ac_site_file1=$prefix/share/config.site
1674 ac_site_file2=$prefix/etc/config.site
1675else
1676 ac_site_file1=$ac_default_prefix/share/config.site
1677 ac_site_file2=$ac_default_prefix/etc/config.site
1678fi
1679for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1680do
1681 test "x$ac_site_file" = xNONE && continue
1682 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1684$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1685 sed 's/^/| /' "$ac_site_file" >&5
1686 . "$ac_site_file" \
1687 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1689as_fn_error $? "failed to load site script $ac_site_file
1690See \`config.log' for more details" "$LINENO" 5; }
1691 fi
1692done
1693
1694if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special files
1696 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1697 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1699$as_echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1703 esac
1704 fi
1705else
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1707$as_echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1709fi
1710
1711# Check that the precious variables saved in the cache have kept the same
1712# value.
1713ac_cache_corrupted=false
1714for ac_var in $ac_precious_vars; do
1715 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1716 eval ac_new_set=\$ac_env_${ac_var}_set
1717 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1718 eval ac_new_val=\$ac_env_${ac_var}_value
1719 case $ac_old_set,$ac_new_set in
1720 set,)
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1722$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,set)
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1726$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,);;
1729 *)
1730 if test "x$ac_old_val" != "x$ac_new_val"; then
1731 # differences in whitespace do not lead to failure.
1732 ac_old_val_w=`echo x $ac_old_val`
1733 ac_new_val_w=`echo x $ac_new_val`
1734 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1736$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 ac_cache_corrupted=:
1738 else
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1740$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1741 eval $ac_var=\$ac_old_val
1742 fi
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1744$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1746$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1747 fi;;
1748 esac
1749 # Pass precious variables to config.status.
1750 if test "$ac_new_set" = set; then
1751 case $ac_new_val in
1752 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 *) ac_arg=$ac_var=$ac_new_val ;;
1754 esac
1755 case " $ac_configure_args " in
1756 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1757 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1758 esac
1759 fi
1760done
1761if $ac_cache_corrupted; then
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1765$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1767fi
1768## -------------------- ##
1769## Main body of script. ##
1770## -------------------- ##
1771
1772ac_ext=c
1773ac_cpp='$CPP $CPPFLAGS'
1774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1776ac_compiler_gnu=$ac_cv_c_compiler_gnu
1777
1778
1779
Tim Edwardsccaea722020-12-24 10:59:42 -05001780## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001781
1782
1783
1784
1785
1786
1787 if test -n "$PYTHON"; then
1788 # If the user set $PYTHON, use it and don't search something else.
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1790$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1791 prog="import sys
1792# split strings by '.' and convert to numeric. Append some zeros
1793# because we need at least 4 digits for the hex conversion.
1794# map returns an iterator in Python 3.0 and a list in 2.x
1795minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1796minverhex = 0
1797# xrange is not present in Python 3.0 and range returns an iterator
1798for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1799sys.exit(sys.hexversion < minverhex)"
1800 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1801 ($PYTHON -c "$prog") >&5 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then :
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1806$as_echo "yes" >&6; }
1807else
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1809$as_echo "no" >&6; }
1810 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1811fi
1812 am_display_PYTHON=$PYTHON
1813 else
1814 # Otherwise, try each interpreter until we find one that satisfies
1815 # VERSION.
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1817$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1818if ${am_cv_pathless_PYTHON+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820else
1821
Tim Edwardsbb8ab292021-01-22 10:19:40 -05001822 for am_cv_pathless_PYTHON in python python2 python3 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 +02001823 test "$am_cv_pathless_PYTHON" = none && break
1824 prog="import sys
1825# split strings by '.' and convert to numeric. Append some zeros
1826# because we need at least 4 digits for the hex conversion.
1827# map returns an iterator in Python 3.0 and a list in 2.x
1828minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1829minverhex = 0
1830# xrange is not present in Python 3.0 and range returns an iterator
1831for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1832sys.exit(sys.hexversion < minverhex)"
1833 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1834 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then :
1838 break
1839fi
1840 done
1841fi
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1843$as_echo "$am_cv_pathless_PYTHON" >&6; }
1844 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1845 if test "$am_cv_pathless_PYTHON" = none; then
1846 PYTHON=:
1847 else
1848 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1849set dummy $am_cv_pathless_PYTHON; ac_word=$2
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1851$as_echo_n "checking for $ac_word... " >&6; }
1852if ${ac_cv_path_PYTHON+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 case $PYTHON in
1856 [\\/]* | ?:[\\/]*)
1857 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1858 ;;
1859 *)
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
1872 done
1873IFS=$as_save_IFS
1874
1875 ;;
1876esac
1877fi
1878PYTHON=$ac_cv_path_PYTHON
1879if test -n "$PYTHON"; then
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1881$as_echo "$PYTHON" >&6; }
1882else
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1884$as_echo "no" >&6; }
1885fi
1886
1887
1888 fi
1889 am_display_PYTHON=$am_cv_pathless_PYTHON
1890 fi
1891
1892
1893 if test "$PYTHON" = :; then
1894 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1895 else
1896
1897
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1899$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1900if ${am_cv_python_version+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902else
1903 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1904fi
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1906$as_echo "$am_cv_python_version" >&6; }
1907 PYTHON_VERSION=$am_cv_python_version
1908
1909
1910
1911 PYTHON_PREFIX='${prefix}'
1912
1913 PYTHON_EXEC_PREFIX='${exec_prefix}'
1914
1915
1916
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1918$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1919if ${am_cv_python_platform+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921else
1922 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1923fi
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1925$as_echo "$am_cv_python_platform" >&6; }
1926 PYTHON_PLATFORM=$am_cv_python_platform
1927
1928
1929 # Just factor out some code duplication.
1930 am_python_setup_sysconfig="\
1931import sys
1932# Prefer sysconfig over distutils.sysconfig, for better compatibility
1933# with python 3.x. See automake bug#10227.
1934try:
1935 import sysconfig
1936except ImportError:
1937 can_use_sysconfig = 0
1938else:
1939 can_use_sysconfig = 1
1940# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1941# <https://github.com/pypa/virtualenv/issues/118>
1942try:
1943 from platform import python_implementation
1944 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1945 can_use_sysconfig = 0
1946except ImportError:
1947 pass"
1948
1949
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1951$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1952if ${am_cv_python_pythondir+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954else
1955 if test "x$prefix" = xNONE
1956 then
1957 am_py_prefix=$ac_default_prefix
1958 else
1959 am_py_prefix=$prefix
1960 fi
1961 am_cv_python_pythondir=`$PYTHON -c "
1962$am_python_setup_sysconfig
1963if can_use_sysconfig:
1964 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1965else:
1966 from distutils import sysconfig
1967 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1968sys.stdout.write(sitedir)"`
1969 case $am_cv_python_pythondir in
1970 $am_py_prefix*)
1971 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1972 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1973 ;;
1974 *)
1975 case $am_py_prefix in
1976 /usr|/System*) ;;
1977 *)
1978 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1979 ;;
1980 esac
1981 ;;
1982 esac
1983
1984fi
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
1986$as_echo "$am_cv_python_pythondir" >&6; }
1987 pythondir=$am_cv_python_pythondir
1988
1989
1990
1991 pkgpythondir=\${pythondir}/$PACKAGE
1992
1993
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
1995$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
1996if ${am_cv_python_pyexecdir+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998else
1999 if test "x$exec_prefix" = xNONE
2000 then
2001 am_py_exec_prefix=$am_py_prefix
2002 else
2003 am_py_exec_prefix=$exec_prefix
2004 fi
2005 am_cv_python_pyexecdir=`$PYTHON -c "
2006$am_python_setup_sysconfig
2007if can_use_sysconfig:
2008 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2009else:
2010 from distutils import sysconfig
2011 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2012sys.stdout.write(sitedir)"`
2013 case $am_cv_python_pyexecdir in
2014 $am_py_exec_prefix*)
2015 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2016 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2017 ;;
2018 *)
2019 case $am_py_exec_prefix in
2020 /usr|/System*) ;;
2021 *)
2022 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2023 ;;
2024 esac
2025 ;;
2026 esac
2027
2028fi
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2030$as_echo "$am_cv_python_pyexecdir" >&6; }
2031 pyexecdir=$am_cv_python_pyexecdir
2032
2033
2034
2035 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2036
2037
2038
2039 fi
2040
2041
2042
2043 if test -z $PYTHON;
2044 then
Tim Edwardsbb8ab292021-01-22 10:19:40 -05002045 PYTHON="python"
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002046 fi
2047 PYTHON_NAME=`basename $PYTHON`
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2049$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwardsbb8ab292021-01-22 10:19:40 -05002050 $PYTHON -c "import distutils" 2>/dev/null
2051 if test $? -eq 0;
2052 then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002054$as_echo "yes" >&6; }
Tim Edwardsbb8ab292021-01-22 10:19:40 -05002055 eval HAVE_PYMOD_DISTUTILS=yes
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002058$as_echo "no" >&6; }
Tim Edwardsbb8ab292021-01-22 10:19:40 -05002059 eval HAVE_PYMOD_DISTUTILS=no
2060 #
2061 if test -n ""
2062 then
2063 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2064 exit 1
2065 fi
2066 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002067
2068
Tim Edwards66e53e52021-01-24 21:21:36 -05002069realpath() {
2070 # Cross-platform, handles ~
2071 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2072}
2073
2074# detect PDKs based on directories that include Makefile.in files
2075
2076
2077# define tools
2078# define tools to install setup files for. This does not imply that the tools are
2079# available on the system; just that open_pdks will install the setup files for them.
2080## DO NOT INCLUDE XSCHEM IN THE TOOL LIST. XSCHEM CAN BE INSTALLED IN THE CONFIG SCRIPT
2081
2082
2083mkdir -p ../pdks
2084
2085# check for the source and install paths for each PDK.
2086
2087
2088{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2089$as_echo "$as_me: Found technology directories: sky130" >&6;}
2090
2091
2092
2093 # --enable-pdk-[pdk]=/path/to/pdk
2094
2095
2096
2097 SKY130_SOURCE_PATH=""
2098 SKY130_LOCAL_PATH=""
2099 SKY130_DIST_PATH=""
2100 SKY130_LINK_TARGETS="none"
2101
2102 pdk_get() {
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../sky130/pdk_info" >&5
2104$as_echo_n "checking for ../sky130/pdk_info... " >&6; }
2105if ${ac_cv_file____sky130_pdk_info+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107else
2108 test "$cross_compiling" = yes &&
2109 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2110if test -r "../sky130/pdk_info"; then
2111 ac_cv_file____sky130_pdk_info=yes
2112else
2113 ac_cv_file____sky130_pdk_info=no
2114fi
2115fi
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____sky130_pdk_info" >&5
2117$as_echo "$ac_cv_file____sky130_pdk_info" >&6; }
2118if test "x$ac_cv_file____sky130_pdk_info" = xyes; then :
2119
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../pdks/sky130" >&5
2121$as_echo_n "checking for ../pdks/sky130... " >&6; }
2122if ${ac_cv_file____pdks_sky130+:} false; then :
2123 $as_echo_n "(cached) " >&6
2124else
2125 test "$cross_compiling" = yes &&
2126 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2127if test -r "../pdks/sky130"; then
2128 ac_cv_file____pdks_sky130=yes
2129else
2130 ac_cv_file____pdks_sky130=no
2131fi
2132fi
2133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____pdks_sky130" >&5
2134$as_echo "$ac_cv_file____pdks_sky130" >&6; }
2135if test "x$ac_cv_file____pdks_sky130" = xyes; then :
2136
2137 echo "Using pre-existing sky130 download..."
2138
2139else
2140
2141 REPO=$(cat "../sky130/pdk_info" | sed -n "1p")
2142 POST_CLONE_COMMANDS=$(cat "../sky130/pdk_info" | sed "1d")
2143 mkdir -p ../pdks
2144 git clone "$REPO" ../pdks/sky130;
2145 (cd ../pdks/sky130 && sh -c "$POST_CLONE_COMMANDS")
2146
2147fi
2148
2149 export SKY130_SOURCE_PATH=../pdks/sky130
2150
2151else
2152
2153 as_fn_error $? "PDK sky130 cannot be automatically downloaded and requires a path." "$LINENO" 5
2154
2155fi
2156
2157 }
2158
2159 pdk_find() {
2160 FOUND=0
2161 for path in /opt/pdks/sky130 /usr/share/pdks/sky130 /usr/local/share/pdks/sky130; do
2162 if [ -d $path ] ; then
2163 echo "Found sky130 in $path, using this installation..."
2164 export SKY130_SOURCE_PATH=$path
2165 FOUND=1
2166 fi
2167 done
2168 if [ "$FOUND" = "sky130" ]; then
2169 echo "Could not found sky130 in standard search paths, manually downloading to ../pdks/sky130 ..."
2170 pdk_find
2171 fi
2172 }
2173
2174 # Check whether --enable-sky130-sky130 was given.
2175if test "${enable_sky130_pdk+set}" = set; then :
2176 enableval=$enable_sky130_pdk;
2177 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2178 pdk_find
2179 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2180 echo "Disabling sky130..."
2181 else
2182 SKY130_SOURCE_PATH=$enableval
2183 fi
2184
2185else
2186
2187 pdk_find
2188
2189
2190fi
2191
2192 # # Require this argument
2193
2194 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2195 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2196 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2197 if [ "$SKY130_BASENAME" = "libraries" ]; then
2198 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2199 fi
2200 # basic check that the PDK exists there (the path must exist in any case)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
2202$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
2203 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2205$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2206if eval \${$as_ac_File+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208else
2209 test "$cross_compiling" = yes &&
2210 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2211if test -r "$SKY130_SOURCE_PATH"; then
2212 eval "$as_ac_File=yes"
2213else
2214 eval "$as_ac_File=no"
2215fi
2216fi
2217eval ac_res=\$$as_ac_File
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2221
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
2223$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2224
2225else
2226
2227 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
2228
2229fi
2230
2231
2232 # --with-pdk-local-path=PDK_LOCAL_PATH
2233
2234# Check whether --with-sky130-local-path was given.
2235if test "${with_sky130_local_path+set}" = set; then :
2236 withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval
2237
2238fi
2239
2240
2241 # Require this argument
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5
2243$as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;}
2244 if test "x$SKY130_LOCAL_PATH" == "x" ; then
2245 as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5
2246 SKY130_LOCAL_PATH=""
2247 else
2248 SKY130_LOCAL_PATH=`realpath $SKY130_LOCAL_PATH`
2249 fi
2250
2251 # --with-pdk-dist-path=PDK_DIST_PATH
2252
2253# Check whether --with-sky130-dist-path was given.
2254if test "${with_sky130_dist_path+set}" = set; then :
2255 withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval
2256
2257fi
2258
2259
2260
2261 # "Require" this argument
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5
2263$as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;}
2264 if test "x$SKY130_DIST_PATH" == "x" ; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only." >&5
2266$as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only." >&6;}
2267 SKY130_DIST_PATH=""
2268 else
2269 SKY130_DIST_PATH=`realpath $SKY130_DIST_PATH`
2270 fi
2271
2272 # --with-pdk-link-targets=PDK_LINK_TARGETS
2273
2274# Check whether --with-sky130-link-targets was given.
2275if test "${with_sky130_link_targets+set}" = set; then :
2276 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2277
2278fi
2279
2280
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2282$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
2283 fi
2284
2285
2286
2287
2288
2289
2290
2291
2292# Set variables for tool setups
2293
2294
Tim Edwards367711e2021-01-27 10:35:12 -05002295{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow" >&5
2296$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002297
2298
2299
2300
2301
2302 KLAYOUT_DISABLED=0
2303 # Check whether --enable-klayout was given.
2304if test "${enable_klayout+set}" = set; then :
2305 enableval=$enable_klayout;
2306 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2307 KLAYOUT_DISABLED=1
2308 fi
2309
2310
2311fi
2312
2313
2314
2315
2316
2317 MAGIC_DISABLED=0
2318 # Check whether --enable-magic was given.
2319if test "${enable_magic+set}" = set; then :
2320 enableval=$enable_magic;
2321 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2322 MAGIC_DISABLED=1
2323 fi
2324
2325
2326fi
2327
2328
2329
2330
2331
2332 NETGEN_DISABLED=0
2333 # Check whether --enable-netgen was given.
2334if test "${enable_netgen+set}" = set; then :
2335 enableval=$enable_netgen;
2336 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2337 NETGEN_DISABLED=1
2338 fi
2339
2340
2341fi
2342
2343
2344
2345
2346
Tim Edwards367711e2021-01-27 10:35:12 -05002347 IRSIM_DISABLED=0
2348 # Check whether --enable-irsim was given.
2349if test "${enable_irsim+set}" = set; then :
2350 enableval=$enable_irsim;
2351 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2352 IRSIM_DISABLED=1
2353 fi
2354
2355
2356fi
2357
2358
2359
2360
2361
Tim Edwards66e53e52021-01-24 21:21:36 -05002362 OPENLANE_DISABLED=0
2363 # Check whether --enable-openlane was given.
2364if test "${enable_openlane+set}" = set; then :
2365 enableval=$enable_openlane;
2366 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2367 OPENLANE_DISABLED=1
2368 fi
2369
2370
2371fi
2372
2373
2374
2375
2376
2377 QFLOW_DISABLED=0
2378 # Check whether --enable-qflow was given.
2379if test "${enable_qflow+set}" = set; then :
2380 enableval=$enable_qflow;
2381 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2382 QFLOW_DISABLED=1
2383 fi
2384
2385
2386fi
2387
2388
2389
2390
2391
2392# Magic
2393# Extract the first word of "magic", so it can be a program name with args.
2394set dummy magic; ac_word=$2
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396$as_echo_n "checking for $ac_word... " >&6; }
2397if ${ac_cv_path_MAGIC+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399else
2400 case $MAGIC in
2401 [\\/]* | ?:[\\/]*)
2402 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2403 ;;
2404 *)
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416done
2417 done
2418IFS=$as_save_IFS
2419
2420 ;;
2421esac
2422fi
2423MAGIC=$ac_cv_path_MAGIC
2424if test -n "$MAGIC"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2426$as_echo "$MAGIC" >&6; }
2427else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432
2433if test -z "$MAGIC"; then
2434 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2435fi
2436# Extract the first word of "patch", so it can be a program name with args.
2437set dummy patch; ac_word=$2
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439$as_echo_n "checking for $ac_word... " >&6; }
2440if ${ac_cv_path_PATCH+:} false; then :
2441 $as_echo_n "(cached) " >&6
2442else
2443 case $PATCH in
2444 [\\/]* | ?:[\\/]*)
2445 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2446 ;;
2447 *)
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460 done
2461IFS=$as_save_IFS
2462
2463 ;;
2464esac
2465fi
2466PATCH=$ac_cv_path_PATCH
2467if test -n "$PATCH"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2469$as_echo "$PATCH" >&6; }
2470else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
2473fi
2474
2475
2476if test -z "$PATCH"; then
2477 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2478fi
2479
2480# Other installations (libraries or tools if applicable)
2481mkdir -p ../libs
2482mkdir -p ../tools
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492 # echo target targetvar flag url location
2493
2494 OSU_PATH=""
2495 OSU_GET() {
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../libs/osu" >&5
2497$as_echo_n "checking for ../libs/osu... " >&6; }
2498if ${ac_cv_file____libs_osu+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 test "$cross_compiling" = yes &&
2502 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2503if test -r "../libs/osu"; then
2504 ac_cv_file____libs_osu=yes
2505else
2506 ac_cv_file____libs_osu=no
2507fi
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____libs_osu" >&5
2510$as_echo "$ac_cv_file____libs_osu" >&6; }
2511if test "x$ac_cv_file____libs_osu" = xyes; then :
2512
2513 echo "Using pre-existing osu download..."
2514
2515else
2516
2517 mkdir -p ../libs/osu
2518 sh ./download.sh 'https://vlsiarch.ecen.okstate.edu/flows/MOSIS_SCMOS/osu_stdcells_v2.4/osu_stdcells_lib.v2.4.tar.gz' ../libs/osu.tar.gz
2519 (echo "Extracting osu..." && cd ../libs && tar -xf osu.tar.gz --strip-components 1 -C ../libs/osu)
2520
2521
2522fi
2523
2524 export OSU_PATH=../libs/osu
2525 }
2526
2527 # Check whether --enable-osu-lib was given.
2528if test "${enable_osu_lib+set}" = set; then :
2529 enableval=$enable_osu_lib;
2530 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2531 OSU_GET
2532 XSCHEM_INST=1
2533 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2534 echo "Disabling osu..."
2535 XSCHEM_DISABLED=1
2536 else
2537 OSU_PATH=$enableval
2538 fi
2539 OSU_PATH=`realpath $OSU_PATH`
2540
2541fi
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555 # echo target targetvar flag url location
2556
2557 SKY130_ML_XX_HD_PATH=""
2558 SKY130_ML_XX_HD_GET() {
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../libs/sky130_ml_xx_hd" >&5
2560$as_echo_n "checking for ../libs/sky130_ml_xx_hd... " >&6; }
2561if ${ac_cv_file____libs_sky130_ml_xx_hd+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563else
2564 test "$cross_compiling" = yes &&
2565 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2566if test -r "../libs/sky130_ml_xx_hd"; then
2567 ac_cv_file____libs_sky130_ml_xx_hd=yes
2568else
2569 ac_cv_file____libs_sky130_ml_xx_hd=no
2570fi
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____libs_sky130_ml_xx_hd" >&5
2573$as_echo "$ac_cv_file____libs_sky130_ml_xx_hd" >&6; }
2574if test "x$ac_cv_file____libs_sky130_ml_xx_hd" = xyes; then :
2575
2576 echo "Using pre-existing sky130_ml_xx_hd download..."
2577
2578else
2579
2580 mkdir -p ../libs/sky130_ml_xx_hd
2581 sh ./download.sh 'https://github.com/PaulSchulz/sky130_pschulz_xx_hd/archive/master.tar.gz' ../libs/sky130_ml_xx_hd.tar.gz
2582 (echo "Extracting sky130_ml_xx_hd..." && cd ../libs && tar -xf sky130_ml_xx_hd.tar.gz --strip-components 1 -C ../libs/sky130_ml_xx_hd)
2583
2584
2585fi
2586
2587 export SKY130_ML_XX_HD_PATH=../libs/sky130_ml_xx_hd
2588 }
2589
2590 # Check whether --enable-alpha-lib was given.
2591if test "${enable_alpha_lib+set}" = set; then :
2592 enableval=$enable_alpha_lib;
2593 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2594 SKY130_ML_XX_HD_GET
2595 XSCHEM_INST=1
2596 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2597 echo "Disabling sky130_ml_xx_hd..."
2598 XSCHEM_DISABLED=1
2599 else
2600 SKY130_ML_XX_HD_PATH=$enableval
2601 fi
2602 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2603
2604fi
2605
2606
2607
2608
2609
2610
2611
2612XSCHEM_DISABLED=0
2613XSCHEM_INST=0
2614
2615
2616
2617
2618
2619
2620
2621 # echo target targetvar flag url location
2622
2623 XSCHEM_PATH=""
2624 XSCHEM_GET() {
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../tools/xschem" >&5
2626$as_echo_n "checking for ../tools/xschem... " >&6; }
2627if ${ac_cv_file____tools_xschem+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629else
2630 test "$cross_compiling" = yes &&
2631 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2632if test -r "../tools/xschem"; then
2633 ac_cv_file____tools_xschem=yes
2634else
2635 ac_cv_file____tools_xschem=no
2636fi
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____tools_xschem" >&5
2639$as_echo "$ac_cv_file____tools_xschem" >&6; }
2640if test "x$ac_cv_file____tools_xschem" = xyes; then :
2641
2642 echo "Using pre-existing xschem download..."
2643
2644else
2645
2646 mkdir -p ../tools/xschem
2647 sh ./download.sh 'https://github.com/StefanSchippers/xschem/archive/master.tar.gz' ../tools/xschem.tar.gz
2648 (echo "Extracting xschem..." && cd ../tools && tar -xf xschem.tar.gz --strip-components 1 -C ../tools/xschem)
2649
2650
2651fi
2652
2653 export XSCHEM_PATH=../tools/xschem
2654 }
2655
2656 # Check whether --enable-xschem was given.
2657if test "${enable_xschem+set}" = set; then :
2658 enableval=$enable_xschem;
2659 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2660 XSCHEM_GET
2661 XSCHEM_INST=1
2662 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2663 echo "Disabling xschem..."
2664 XSCHEM_DISABLED=1
2665 else
2666 XSCHEM_PATH=$enableval
2667 fi
2668 XSCHEM_PATH=`realpath $XSCHEM_PATH`
2669
2670fi
2671
2672
2673
2674 if [ "$XSCHEM_INST" = 1 ]; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../tools/xschem-install" >&5
2676$as_echo_n "checking for ../tools/xschem-install... " >&6; }
2677if ${ac_cv_file____tools_xschem_install+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679else
2680 test "$cross_compiling" = yes &&
2681 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2682if test -r "../tools/xschem-install"; then
2683 ac_cv_file____tools_xschem_install=yes
2684else
2685 ac_cv_file____tools_xschem_install=no
2686fi
2687fi
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____tools_xschem_install" >&5
2689$as_echo "$ac_cv_file____tools_xschem_install" >&6; }
2690if test "x$ac_cv_file____tools_xschem_install" = xyes; then :
2691
2692 echo "Using pre-existing xschem installation..."
2693
2694else
2695
2696 echo "---"
2697 echo "Note: attempting to build xschem. Xschem requires all of Magic's dependencies and further, flex, bison and libxpm."
2698 echo "Your build WILL fail if any of these are missing. You can choose to remove --enable-xschem or add a known installation path."
2699 sleep 2
2700 mkdir -p ../tools/xschem-install
2701 XSCHEM_ABSOLUTE=`realpath ../tools/xschem-install`
2702 (cd ../tools/xschem && ./configure --prefix=$XSCHEM_ABSOLUTE && make && make install)
2703 XSCHEM_PATH=$XSCHEM_ABSOLUTE
2704
2705fi
2706
2707 fi
2708
2709
2710
2711
2712
2713
2714
Tim Edwards367711e2021-01-27 10:35:12 -05002715{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow" >&5
2716$as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002717
2718
2719
2720
2721
2722 KLAYOUT_DISABLED=0
2723 # Check whether --enable-klayout was given.
2724if test "${enable_klayout+set}" = set; then :
2725 enableval=$enable_klayout;
2726 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2727 KLAYOUT_DISABLED=1
2728 fi
2729
2730fi
2731
2732
2733
2734
2735
2736 MAGIC_DISABLED=0
2737 # Check whether --enable-magic was given.
2738if test "${enable_magic+set}" = set; then :
2739 enableval=$enable_magic;
2740 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2741 MAGIC_DISABLED=1
2742 fi
2743
2744fi
2745
2746
2747
2748
2749
2750 NETGEN_DISABLED=0
2751 # Check whether --enable-netgen was given.
2752if test "${enable_netgen+set}" = set; then :
2753 enableval=$enable_netgen;
2754 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2755 NETGEN_DISABLED=1
2756 fi
2757
2758fi
2759
2760
2761
2762
2763
Tim Edwards367711e2021-01-27 10:35:12 -05002764 IRSIM_DISABLED=0
2765 # Check whether --enable-irsim was given.
2766if test "${enable_irsim+set}" = set; then :
2767 enableval=$enable_irsim;
2768 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2769 IRSIM_DISABLED=1
2770 fi
2771
2772fi
2773
2774
2775
2776
2777
Tim Edwards66e53e52021-01-24 21:21:36 -05002778 OPENLANE_DISABLED=0
2779 # Check whether --enable-openlane was given.
2780if test "${enable_openlane+set}" = set; then :
2781 enableval=$enable_openlane;
2782 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2783 OPENLANE_DISABLED=1
2784 fi
2785
2786fi
2787
2788
2789
2790
2791
2792 QFLOW_DISABLED=0
2793 # Check whether --enable-qflow was given.
2794if test "${enable_qflow+set}" = set; then :
2795 enableval=$enable_qflow;
2796 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2797 QFLOW_DISABLED=1
2798 fi
2799
2800fi
2801
2802
2803
2804
2805
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002806# Check for "--with-ef-style"
2807EF_STYLE=0
2808
2809# Check whether --with-ef-style was given.
2810if test "${with_ef_style+set}" = set; then :
2811 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002812 pdks_ef_style=$withval
2813 if test "$withval" == "yes" -o "$withval" == "YES"; then
2814 EF_STYLE=1
2815 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002816
2817fi
2818
2819
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002820
2821
2822MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2823ac_config_files="$ac_config_files $MAKEFILES"
2824
2825
2826cat >confcache <<\_ACEOF
2827# This file is a shell script that caches the results of configure
2828# tests run on this system so they can be shared between configure
2829# scripts and configure runs, see configure's option --config-cache.
2830# It is not useful on other systems. If it contains results you don't
2831# want to keep, you may remove or edit it.
2832#
2833# config.status only pays attention to the cache file if you give it
2834# the --recheck option to rerun configure.
2835#
2836# `ac_cv_env_foo' variables (set or unset) will be overridden when
2837# loading this file, other *unset* `ac_cv_foo' will be assigned the
2838# following values.
2839
2840_ACEOF
2841
2842# The following way of writing the cache mishandles newlines in values,
2843# but we know of no workaround that is simple, portable, and efficient.
2844# So, we kill variables containing newlines.
2845# Ultrix sh set writes to stderr and can't be redirected directly,
2846# and sets the high bit in the cache file unless we assign to the vars.
2847(
2848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2849 eval ac_val=\$$ac_var
2850 case $ac_val in #(
2851 *${as_nl}*)
2852 case $ac_var in #(
2853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2854$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2855 esac
2856 case $ac_var in #(
2857 _ | IFS | as_nl) ;; #(
2858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2859 *) { eval $ac_var=; unset $ac_var;} ;;
2860 esac ;;
2861 esac
2862 done
2863
2864 (set) 2>&1 |
2865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2866 *${as_nl}ac_space=\ *)
2867 # `set' does not quote correctly, so add quotes: double-quote
2868 # substitution turns \\\\ into \\, and sed turns \\ into \.
2869 sed -n \
2870 "s/'/'\\\\''/g;
2871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2872 ;; #(
2873 *)
2874 # `set' quotes correctly as required by POSIX, so do not add quotes.
2875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2876 ;;
2877 esac |
2878 sort
2879) |
2880 sed '
2881 /^ac_cv_env_/b end
2882 t clear
2883 :clear
2884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2885 t end
2886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2887 :end' >>confcache
2888if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2889 if test -w "$cache_file"; then
2890 if test "x$cache_file" != "x/dev/null"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2892$as_echo "$as_me: updating cache $cache_file" >&6;}
2893 if test ! -f "$cache_file" || test -h "$cache_file"; then
2894 cat confcache >"$cache_file"
2895 else
2896 case $cache_file in #(
2897 */* | ?:*)
2898 mv -f confcache "$cache_file"$$ &&
2899 mv -f "$cache_file"$$ "$cache_file" ;; #(
2900 *)
2901 mv -f confcache "$cache_file" ;;
2902 esac
2903 fi
2904 fi
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2907$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2908 fi
2909fi
2910rm -f confcache
2911
2912test "x$prefix" = xNONE && prefix=$ac_default_prefix
2913# Let make expand exec_prefix.
2914test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2915
2916# Transform confdefs.h into DEFS.
2917# Protect against shell expansion while executing Makefile rules.
2918# Protect against Makefile macro expansion.
2919#
2920# If the first sed substitution is executed (which looks for macros that
2921# take arguments), then branch to the quote section. Otherwise,
2922# look for a macro that doesn't take arguments.
2923ac_script='
2924:mline
2925/\\$/{
2926 N
2927 s,\\\n,,
2928 b mline
2929}
2930t clear
2931:clear
2932s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2933t quote
2934s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2935t quote
2936b any
2937:quote
2938s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2939s/\[/\\&/g
2940s/\]/\\&/g
2941s/\$/$$/g
2942H
2943:any
2944${
2945 g
2946 s/^\n//
2947 s/\n/ /g
2948 p
2949}
2950'
2951DEFS=`sed -n "$ac_script" confdefs.h`
2952
2953
2954ac_libobjs=
2955ac_ltlibobjs=
2956U=
2957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2958 # 1. Remove the extension, and $U if already installed.
2959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2960 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2962 # will be set to the directory where LIBOBJS objects are built.
2963 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2964 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2965done
2966LIBOBJS=$ac_libobjs
2967
2968LTLIBOBJS=$ac_ltlibobjs
2969
2970
2971
2972: "${CONFIG_STATUS=./config.status}"
2973ac_write_fail=0
2974ac_clean_files_save=$ac_clean_files
2975ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2977$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2978as_write_fail=0
2979cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2980#! $SHELL
2981# Generated by $as_me.
2982# Run this file to recreate the current configuration.
2983# Compiler output produced by configure, useful for debugging
2984# configure, is in config.log if it exists.
2985
2986debug=false
2987ac_cs_recheck=false
2988ac_cs_silent=false
2989
2990SHELL=\${CONFIG_SHELL-$SHELL}
2991export SHELL
2992_ASEOF
2993cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2994## -------------------- ##
2995## M4sh Initialization. ##
2996## -------------------- ##
2997
2998# Be more Bourne compatible
2999DUALCASE=1; export DUALCASE # for MKS sh
3000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3001 emulate sh
3002 NULLCMD=:
3003 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3004 # is contrary to our usage. Disable this feature.
3005 alias -g '${1+"$@"}'='"$@"'
3006 setopt NO_GLOB_SUBST
3007else
3008 case `(set -o) 2>/dev/null` in #(
3009 *posix*) :
3010 set -o posix ;; #(
3011 *) :
3012 ;;
3013esac
3014fi
3015
3016
3017as_nl='
3018'
3019export as_nl
3020# Printing a long string crashes Solaris 7 /usr/bin/printf.
3021as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3024# Prefer a ksh shell builtin over an external printf program on Solaris,
3025# but without wasting forks for bash or zsh.
3026if test -z "$BASH_VERSION$ZSH_VERSION" \
3027 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3028 as_echo='print -r --'
3029 as_echo_n='print -rn --'
3030elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3031 as_echo='printf %s\n'
3032 as_echo_n='printf %s'
3033else
3034 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3035 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3036 as_echo_n='/usr/ucb/echo -n'
3037 else
3038 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3039 as_echo_n_body='eval
3040 arg=$1;
3041 case $arg in #(
3042 *"$as_nl"*)
3043 expr "X$arg" : "X\\(.*\\)$as_nl";
3044 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3045 esac;
3046 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3047 '
3048 export as_echo_n_body
3049 as_echo_n='sh -c $as_echo_n_body as_echo'
3050 fi
3051 export as_echo_body
3052 as_echo='sh -c $as_echo_body as_echo'
3053fi
3054
3055# The user is always right.
3056if test "${PATH_SEPARATOR+set}" != set; then
3057 PATH_SEPARATOR=:
3058 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3059 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3060 PATH_SEPARATOR=';'
3061 }
3062fi
3063
3064
3065# IFS
3066# We need space, tab and new line, in precisely that order. Quoting is
3067# there to prevent editors from complaining about space-tab.
3068# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3069# splitting by setting IFS to empty value.)
3070IFS=" "" $as_nl"
3071
3072# Find who we are. Look in the path if we contain no directory separator.
3073as_myself=
3074case $0 in #((
3075 *[\\/]* ) as_myself=$0 ;;
3076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3082 done
3083IFS=$as_save_IFS
3084
3085 ;;
3086esac
3087# We did not find ourselves, most probably we were run as `sh COMMAND'
3088# in which case we are not to be found in the path.
3089if test "x$as_myself" = x; then
3090 as_myself=$0
3091fi
3092if test ! -f "$as_myself"; then
3093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3094 exit 1
3095fi
3096
3097# Unset variables that we do not need and which cause bugs (e.g. in
3098# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3099# suppresses any "Segmentation fault" message there. '((' could
3100# trigger a bug in pdksh 5.2.14.
3101for as_var in BASH_ENV ENV MAIL MAILPATH
3102do eval test x\${$as_var+set} = xset \
3103 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3104done
3105PS1='$ '
3106PS2='> '
3107PS4='+ '
3108
3109# NLS nuisances.
3110LC_ALL=C
3111export LC_ALL
3112LANGUAGE=C
3113export LANGUAGE
3114
3115# CDPATH.
3116(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3117
3118
3119# as_fn_error STATUS ERROR [LINENO LOG_FD]
3120# ----------------------------------------
3121# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3122# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3123# script with STATUS, using 1 if that was 0.
3124as_fn_error ()
3125{
3126 as_status=$1; test $as_status -eq 0 && as_status=1
3127 if test "$4"; then
3128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3129 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3130 fi
3131 $as_echo "$as_me: error: $2" >&2
3132 as_fn_exit $as_status
3133} # as_fn_error
3134
3135
3136# as_fn_set_status STATUS
3137# -----------------------
3138# Set $? to STATUS, without forking.
3139as_fn_set_status ()
3140{
3141 return $1
3142} # as_fn_set_status
3143
3144# as_fn_exit STATUS
3145# -----------------
3146# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3147as_fn_exit ()
3148{
3149 set +e
3150 as_fn_set_status $1
3151 exit $1
3152} # as_fn_exit
3153
3154# as_fn_unset VAR
3155# ---------------
3156# Portably unset VAR.
3157as_fn_unset ()
3158{
3159 { eval $1=; unset $1;}
3160}
3161as_unset=as_fn_unset
3162# as_fn_append VAR VALUE
3163# ----------------------
3164# Append the text in VALUE to the end of the definition contained in VAR. Take
3165# advantage of any shell optimizations that allow amortized linear growth over
3166# repeated appends, instead of the typical quadratic growth present in naive
3167# implementations.
3168if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3169 eval 'as_fn_append ()
3170 {
3171 eval $1+=\$2
3172 }'
3173else
3174 as_fn_append ()
3175 {
3176 eval $1=\$$1\$2
3177 }
3178fi # as_fn_append
3179
3180# as_fn_arith ARG...
3181# ------------------
3182# Perform arithmetic evaluation on the ARGs, and store the result in the
3183# global $as_val. Take advantage of shells that can avoid forks. The arguments
3184# must be portable across $(()) and expr.
3185if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3186 eval 'as_fn_arith ()
3187 {
3188 as_val=$(( $* ))
3189 }'
3190else
3191 as_fn_arith ()
3192 {
3193 as_val=`expr "$@" || test $? -eq 1`
3194 }
3195fi # as_fn_arith
3196
3197
3198if expr a : '\(a\)' >/dev/null 2>&1 &&
3199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3200 as_expr=expr
3201else
3202 as_expr=false
3203fi
3204
3205if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3206 as_basename=basename
3207else
3208 as_basename=false
3209fi
3210
3211if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3212 as_dirname=dirname
3213else
3214 as_dirname=false
3215fi
3216
3217as_me=`$as_basename -- "$0" ||
3218$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3219 X"$0" : 'X\(//\)$' \| \
3220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3221$as_echo X/"$0" |
3222 sed '/^.*\/\([^/][^/]*\)\/*$/{
3223 s//\1/
3224 q
3225 }
3226 /^X\/\(\/\/\)$/{
3227 s//\1/
3228 q
3229 }
3230 /^X\/\(\/\).*/{
3231 s//\1/
3232 q
3233 }
3234 s/.*/./; q'`
3235
3236# Avoid depending upon Character Ranges.
3237as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3238as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3239as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3240as_cr_digits='0123456789'
3241as_cr_alnum=$as_cr_Letters$as_cr_digits
3242
3243ECHO_C= ECHO_N= ECHO_T=
3244case `echo -n x` in #(((((
3245-n*)
3246 case `echo 'xy\c'` in
3247 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3248 xy) ECHO_C='\c';;
3249 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3250 ECHO_T=' ';;
3251 esac;;
3252*)
3253 ECHO_N='-n';;
3254esac
3255
3256rm -f conf$$ conf$$.exe conf$$.file
3257if test -d conf$$.dir; then
3258 rm -f conf$$.dir/conf$$.file
3259else
3260 rm -f conf$$.dir
3261 mkdir conf$$.dir 2>/dev/null
3262fi
3263if (echo >conf$$.file) 2>/dev/null; then
3264 if ln -s conf$$.file conf$$ 2>/dev/null; then
3265 as_ln_s='ln -s'
3266 # ... but there are two gotchas:
3267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3269 # In both cases, we have to default to `cp -pR'.
3270 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3271 as_ln_s='cp -pR'
3272 elif ln conf$$.file conf$$ 2>/dev/null; then
3273 as_ln_s=ln
3274 else
3275 as_ln_s='cp -pR'
3276 fi
3277else
3278 as_ln_s='cp -pR'
3279fi
3280rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3281rmdir conf$$.dir 2>/dev/null
3282
3283
3284# as_fn_mkdir_p
3285# -------------
3286# Create "$as_dir" as a directory, including parents if necessary.
3287as_fn_mkdir_p ()
3288{
3289
3290 case $as_dir in #(
3291 -*) as_dir=./$as_dir;;
3292 esac
3293 test -d "$as_dir" || eval $as_mkdir_p || {
3294 as_dirs=
3295 while :; do
3296 case $as_dir in #(
3297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3298 *) as_qdir=$as_dir;;
3299 esac
3300 as_dirs="'$as_qdir' $as_dirs"
3301 as_dir=`$as_dirname -- "$as_dir" ||
3302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3303 X"$as_dir" : 'X\(//\)[^/]' \| \
3304 X"$as_dir" : 'X\(//\)$' \| \
3305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3306$as_echo X"$as_dir" |
3307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3308 s//\1/
3309 q
3310 }
3311 /^X\(\/\/\)[^/].*/{
3312 s//\1/
3313 q
3314 }
3315 /^X\(\/\/\)$/{
3316 s//\1/
3317 q
3318 }
3319 /^X\(\/\).*/{
3320 s//\1/
3321 q
3322 }
3323 s/.*/./; q'`
3324 test -d "$as_dir" && break
3325 done
3326 test -z "$as_dirs" || eval "mkdir $as_dirs"
3327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3328
3329
3330} # as_fn_mkdir_p
3331if mkdir -p . 2>/dev/null; then
3332 as_mkdir_p='mkdir -p "$as_dir"'
3333else
3334 test -d ./-p && rmdir ./-p
3335 as_mkdir_p=false
3336fi
3337
3338
3339# as_fn_executable_p FILE
3340# -----------------------
3341# Test if FILE is an executable regular file.
3342as_fn_executable_p ()
3343{
3344 test -f "$1" && test -x "$1"
3345} # as_fn_executable_p
3346as_test_x='test -x'
3347as_executable_p=as_fn_executable_p
3348
3349# Sed expression to map a string onto a valid CPP name.
3350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3351
3352# Sed expression to map a string onto a valid variable name.
3353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3354
3355
3356exec 6>&1
3357## ----------------------------------- ##
3358## Main body of $CONFIG_STATUS script. ##
3359## ----------------------------------- ##
3360_ASEOF
3361test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3362
3363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3364# Save the log message, to keep $0 and so on meaningful, and to
3365# report actual input values of CONFIG_FILES etc. instead of their
3366# values after options handling.
3367ac_log="
3368This file was extended by open_pdks $as_me 1.0, which was
3369generated by GNU Autoconf 2.69. Invocation command line was
3370
3371 CONFIG_FILES = $CONFIG_FILES
3372 CONFIG_HEADERS = $CONFIG_HEADERS
3373 CONFIG_LINKS = $CONFIG_LINKS
3374 CONFIG_COMMANDS = $CONFIG_COMMANDS
3375 $ $0 $@
3376
3377on `(hostname || uname -n) 2>/dev/null | sed 1q`
3378"
3379
3380_ACEOF
3381
3382case $ac_config_files in *"
3383"*) set x $ac_config_files; shift; ac_config_files=$*;;
3384esac
3385
3386
3387
3388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3389# Files that config.status was made for.
3390config_files="$ac_config_files"
3391
3392_ACEOF
3393
3394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3395ac_cs_usage="\
3396\`$as_me' instantiates files and other configuration actions
3397from templates according to the current configuration. Unless the files
3398and actions are specified as TAGs, all are instantiated by default.
3399
3400Usage: $0 [OPTION]... [TAG]...
3401
3402 -h, --help print this help, then exit
3403 -V, --version print version number and configuration settings, then exit
3404 --config print configuration, then exit
3405 -q, --quiet, --silent
3406 do not print progress messages
3407 -d, --debug don't remove temporary files
3408 --recheck update $as_me by reconfiguring in the same conditions
3409 --file=FILE[:TEMPLATE]
3410 instantiate the configuration file FILE
3411
3412Configuration files:
3413$config_files
3414
3415Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3416
3417_ACEOF
3418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3419ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3420ac_cs_version="\\
3421open_pdks config.status 1.0
3422configured by $0, generated by GNU Autoconf 2.69,
3423 with options \\"\$ac_cs_config\\"
3424
3425Copyright (C) 2012 Free Software Foundation, Inc.
3426This config.status script is free software; the Free Software Foundation
3427gives unlimited permission to copy, distribute and modify it."
3428
3429ac_pwd='$ac_pwd'
3430srcdir='$srcdir'
3431test -n "\$AWK" || AWK=awk
3432_ACEOF
3433
3434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3435# The default lists apply if the user does not specify any file.
3436ac_need_defaults=:
3437while test $# != 0
3438do
3439 case $1 in
3440 --*=?*)
3441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3443 ac_shift=:
3444 ;;
3445 --*=)
3446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3447 ac_optarg=
3448 ac_shift=:
3449 ;;
3450 *)
3451 ac_option=$1
3452 ac_optarg=$2
3453 ac_shift=shift
3454 ;;
3455 esac
3456
3457 case $ac_option in
3458 # Handling of the options.
3459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3460 ac_cs_recheck=: ;;
3461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3462 $as_echo "$ac_cs_version"; exit ;;
3463 --config | --confi | --conf | --con | --co | --c )
3464 $as_echo "$ac_cs_config"; exit ;;
3465 --debug | --debu | --deb | --de | --d | -d )
3466 debug=: ;;
3467 --file | --fil | --fi | --f )
3468 $ac_shift
3469 case $ac_optarg in
3470 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3471 '') as_fn_error $? "missing file argument" ;;
3472 esac
3473 as_fn_append CONFIG_FILES " '$ac_optarg'"
3474 ac_need_defaults=false;;
3475 --he | --h | --help | --hel | -h )
3476 $as_echo "$ac_cs_usage"; exit ;;
3477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3479 ac_cs_silent=: ;;
3480
3481 # This is an error.
3482 -*) as_fn_error $? "unrecognized option: \`$1'
3483Try \`$0 --help' for more information." ;;
3484
3485 *) as_fn_append ac_config_targets " $1"
3486 ac_need_defaults=false ;;
3487
3488 esac
3489 shift
3490done
3491
3492ac_configure_extra_args=
3493
3494if $ac_cs_silent; then
3495 exec 6>/dev/null
3496 ac_configure_extra_args="$ac_configure_extra_args --silent"
3497fi
3498
3499_ACEOF
3500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3501if \$ac_cs_recheck; then
3502 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3503 shift
3504 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3505 CONFIG_SHELL='$SHELL'
3506 export CONFIG_SHELL
3507 exec "\$@"
3508fi
3509
3510_ACEOF
3511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3512exec 5>>config.log
3513{
3514 echo
3515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3516## Running $as_me. ##
3517_ASBOX
3518 $as_echo "$ac_log"
3519} >&5
3520
3521_ACEOF
3522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3523_ACEOF
3524
3525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3526
3527# Handling of arguments.
3528for ac_config_target in $ac_config_targets
3529do
3530 case $ac_config_target in
3531 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3532
3533 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3534 esac
3535done
3536
3537
3538# If the user did not use the arguments to specify the items to instantiate,
3539# then the envvar interface is used. Set only those that are not.
3540# We use the long form for the default assignment because of an extremely
3541# bizarre bug on SunOS 4.1.3.
3542if $ac_need_defaults; then
3543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3544fi
3545
3546# Have a temporary directory for convenience. Make it in the build tree
3547# simply because there is no reason against having it here, and in addition,
3548# creating and moving files from /tmp can sometimes cause problems.
3549# Hook for its removal unless debugging.
3550# Note that there is a small window in which the directory will not be cleaned:
3551# after its creation but before its name has been assigned to `$tmp'.
3552$debug ||
3553{
3554 tmp= ac_tmp=
3555 trap 'exit_status=$?
3556 : "${ac_tmp:=$tmp}"
3557 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3558' 0
3559 trap 'as_fn_exit 1' 1 2 13 15
3560}
3561# Create a (secure) tmp directory for tmp files.
3562
3563{
3564 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3565 test -d "$tmp"
3566} ||
3567{
3568 tmp=./conf$$-$RANDOM
3569 (umask 077 && mkdir "$tmp")
3570} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3571ac_tmp=$tmp
3572
3573# Set up the scripts for CONFIG_FILES section.
3574# No need to generate them if there are no CONFIG_FILES.
3575# This happens for instance with `./config.status config.h'.
3576if test -n "$CONFIG_FILES"; then
3577
3578
3579ac_cr=`echo X | tr X '\015'`
3580# On cygwin, bash can eat \r inside `` if the user requested igncr.
3581# But we know of no other shell where ac_cr would be empty at this
3582# point, so we can use a bashism as a fallback.
3583if test "x$ac_cr" = x; then
3584 eval ac_cr=\$\'\\r\'
3585fi
3586ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3587if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3588 ac_cs_awk_cr='\\r'
3589else
3590 ac_cs_awk_cr=$ac_cr
3591fi
3592
3593echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3594_ACEOF
3595
3596
3597{
3598 echo "cat >conf$$subs.awk <<_ACEOF" &&
3599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3600 echo "_ACEOF"
3601} >conf$$subs.sh ||
3602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3603ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3604ac_delim='%!_!# '
3605for ac_last_try in false false false false false :; do
3606 . ./conf$$subs.sh ||
3607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3608
3609 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3610 if test $ac_delim_n = $ac_delim_num; then
3611 break
3612 elif $ac_last_try; then
3613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3614 else
3615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3616 fi
3617done
3618rm -f conf$$subs.sh
3619
3620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3621cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3622_ACEOF
3623sed -n '
3624h
3625s/^/S["/; s/!.*/"]=/
3626p
3627g
3628s/^[^!]*!//
3629:repl
3630t repl
3631s/'"$ac_delim"'$//
3632t delim
3633:nl
3634h
3635s/\(.\{148\}\)..*/\1/
3636t more1
3637s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3638p
3639n
3640b repl
3641:more1
3642s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3643p
3644g
3645s/.\{148\}//
3646t nl
3647:delim
3648h
3649s/\(.\{148\}\)..*/\1/
3650t more2
3651s/["\\]/\\&/g; s/^/"/; s/$/"/
3652p
3653b
3654:more2
3655s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3656p
3657g
3658s/.\{148\}//
3659t delim
3660' <conf$$subs.awk | sed '
3661/^[^""]/{
3662 N
3663 s/\n//
3664}
3665' >>$CONFIG_STATUS || ac_write_fail=1
3666rm -f conf$$subs.awk
3667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3668_ACAWK
3669cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3670 for (key in S) S_is_set[key] = 1
3671 FS = ""
3672
3673}
3674{
3675 line = $ 0
3676 nfields = split(line, field, "@")
3677 substed = 0
3678 len = length(field[1])
3679 for (i = 2; i < nfields; i++) {
3680 key = field[i]
3681 keylen = length(key)
3682 if (S_is_set[key]) {
3683 value = S[key]
3684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3685 len += length(value) + length(field[++i])
3686 substed = 1
3687 } else
3688 len += 1 + keylen
3689 }
3690
3691 print line
3692}
3693
3694_ACAWK
3695_ACEOF
3696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3697if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3698 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3699else
3700 cat
3701fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3702 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3703_ACEOF
3704
3705# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3706# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3707# trailing colons and then remove the whole line if VPATH becomes empty
3708# (actually we leave an empty line to preserve line numbers).
3709if test "x$srcdir" = x.; then
3710 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3711h
3712s///
3713s/^/:/
3714s/[ ]*$/:/
3715s/:\$(srcdir):/:/g
3716s/:\${srcdir}:/:/g
3717s/:@srcdir@:/:/g
3718s/^:*//
3719s/:*$//
3720x
3721s/\(=[ ]*\).*/\1/
3722G
3723s/\n//
3724s/^[^=]*=[ ]*$//
3725}'
3726fi
3727
3728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3729fi # test -n "$CONFIG_FILES"
3730
3731
3732eval set X " :F $CONFIG_FILES "
3733shift
3734for ac_tag
3735do
3736 case $ac_tag in
3737 :[FHLC]) ac_mode=$ac_tag; continue;;
3738 esac
3739 case $ac_mode$ac_tag in
3740 :[FHL]*:*);;
3741 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3742 :[FH]-) ac_tag=-:-;;
3743 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3744 esac
3745 ac_save_IFS=$IFS
3746 IFS=:
3747 set x $ac_tag
3748 IFS=$ac_save_IFS
3749 shift
3750 ac_file=$1
3751 shift
3752
3753 case $ac_mode in
3754 :L) ac_source=$1;;
3755 :[FH])
3756 ac_file_inputs=
3757 for ac_f
3758 do
3759 case $ac_f in
3760 -) ac_f="$ac_tmp/stdin";;
3761 *) # Look for the file first in the build tree, then in the source tree
3762 # (if the path is not absolute). The absolute path cannot be DOS-style,
3763 # because $ac_f cannot contain `:'.
3764 test -f "$ac_f" ||
3765 case $ac_f in
3766 [\\/$]*) false;;
3767 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3768 esac ||
3769 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3770 esac
3771 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3772 as_fn_append ac_file_inputs " '$ac_f'"
3773 done
3774
3775 # Let's still pretend it is `configure' which instantiates (i.e., don't
3776 # use $as_me), people would be surprised to read:
3777 # /* config.h. Generated by config.status. */
3778 configure_input='Generated from '`
3779 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3780 `' by configure.'
3781 if test x"$ac_file" != x-; then
3782 configure_input="$ac_file. $configure_input"
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3784$as_echo "$as_me: creating $ac_file" >&6;}
3785 fi
3786 # Neutralize special characters interpreted by sed in replacement strings.
3787 case $configure_input in #(
3788 *\&* | *\|* | *\\* )
3789 ac_sed_conf_input=`$as_echo "$configure_input" |
3790 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3791 *) ac_sed_conf_input=$configure_input;;
3792 esac
3793
3794 case $ac_tag in
3795 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3797 esac
3798 ;;
3799 esac
3800
3801 ac_dir=`$as_dirname -- "$ac_file" ||
3802$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3803 X"$ac_file" : 'X\(//\)[^/]' \| \
3804 X"$ac_file" : 'X\(//\)$' \| \
3805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3806$as_echo X"$ac_file" |
3807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3808 s//\1/
3809 q
3810 }
3811 /^X\(\/\/\)[^/].*/{
3812 s//\1/
3813 q
3814 }
3815 /^X\(\/\/\)$/{
3816 s//\1/
3817 q
3818 }
3819 /^X\(\/\).*/{
3820 s//\1/
3821 q
3822 }
3823 s/.*/./; q'`
3824 as_dir="$ac_dir"; as_fn_mkdir_p
3825 ac_builddir=.
3826
3827case "$ac_dir" in
3828.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3829*)
3830 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3831 # A ".." for each directory in $ac_dir_suffix.
3832 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3833 case $ac_top_builddir_sub in
3834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3836 esac ;;
3837esac
3838ac_abs_top_builddir=$ac_pwd
3839ac_abs_builddir=$ac_pwd$ac_dir_suffix
3840# for backward compatibility:
3841ac_top_builddir=$ac_top_build_prefix
3842
3843case $srcdir in
3844 .) # We are building in place.
3845 ac_srcdir=.
3846 ac_top_srcdir=$ac_top_builddir_sub
3847 ac_abs_top_srcdir=$ac_pwd ;;
3848 [\\/]* | ?:[\\/]* ) # Absolute name.
3849 ac_srcdir=$srcdir$ac_dir_suffix;
3850 ac_top_srcdir=$srcdir
3851 ac_abs_top_srcdir=$srcdir ;;
3852 *) # Relative name.
3853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3854 ac_top_srcdir=$ac_top_build_prefix$srcdir
3855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3856esac
3857ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3858
3859
3860 case $ac_mode in
3861 :F)
3862 #
3863 # CONFIG_FILE
3864 #
3865
3866_ACEOF
3867
3868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3869# If the template does not know about datarootdir, expand it.
3870# FIXME: This hack should be removed a few years after 2.60.
3871ac_datarootdir_hack=; ac_datarootdir_seen=
3872ac_sed_dataroot='
3873/datarootdir/ {
3874 p
3875 q
3876}
3877/@datadir@/p
3878/@docdir@/p
3879/@infodir@/p
3880/@localedir@/p
3881/@mandir@/p'
3882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3883*datarootdir*) ac_datarootdir_seen=yes;;
3884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3886$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3887_ACEOF
3888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3889 ac_datarootdir_hack='
3890 s&@datadir@&$datadir&g
3891 s&@docdir@&$docdir&g
3892 s&@infodir@&$infodir&g
3893 s&@localedir@&$localedir&g
3894 s&@mandir@&$mandir&g
3895 s&\\\${datarootdir}&$datarootdir&g' ;;
3896esac
3897_ACEOF
3898
3899# Neutralize VPATH when `$srcdir' = `.'.
3900# Shell code in configure.ac might set extrasub.
3901# FIXME: do we really want to maintain this feature?
3902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3903ac_sed_extra="$ac_vpsub
3904$extrasub
3905_ACEOF
3906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3907:t
3908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3909s|@configure_input@|$ac_sed_conf_input|;t t
3910s&@top_builddir@&$ac_top_builddir_sub&;t t
3911s&@top_build_prefix@&$ac_top_build_prefix&;t t
3912s&@srcdir@&$ac_srcdir&;t t
3913s&@abs_srcdir@&$ac_abs_srcdir&;t t
3914s&@top_srcdir@&$ac_top_srcdir&;t t
3915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3916s&@builddir@&$ac_builddir&;t t
3917s&@abs_builddir@&$ac_abs_builddir&;t t
3918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3919$ac_datarootdir_hack
3920"
3921eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3923
3924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3929which seems to be undefined. Please make sure it is defined" >&5
3930$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3931which seems to be undefined. Please make sure it is defined" >&2;}
3932
3933 rm -f "$ac_tmp/stdin"
3934 case $ac_file in
3935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3937 esac \
3938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3939 ;;
3940
3941
3942
3943 esac
3944
3945done # for ac_tag
3946
3947
3948as_fn_exit 0
3949_ACEOF
3950ac_clean_files=$ac_clean_files_save
3951
3952test $ac_write_fail = 0 ||
3953 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3954
3955
3956# configure is writing to config.log, and then calls config.status.
3957# config.status does its own redirection, appending to config.log.
3958# Unfortunately, on DOS this fails, as config.log is still kept open
3959# by configure, so config.status won't be able to write to it; its
3960# output is simply discarded. So we exec the FD to /dev/null,
3961# effectively closing config.log, so it can be properly (re)opened and
3962# appended to by config.status. When coming back to configure, we
3963# need to make the FD available again.
3964if test "$no_create" != yes; then
3965 ac_cs_success=:
3966 ac_config_status_args=
3967 test "$silent" = yes &&
3968 ac_config_status_args="$ac_config_status_args --quiet"
3969 exec 5>/dev/null
3970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3971 exec 5>>config.log
3972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3973 # would make configure fail if this is the last instruction.
3974 $ac_cs_success || as_fn_exit 1
3975fi
3976if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3978$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3979fi
3980
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3983$as_echo "Build configured successfully" >&6; }